This commit was manufactured by cvs2svn to create tag
[Samba.git] / source / configure
bloba07e2b55d2034a511c0b2c90a6845d9211aae575
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-maintainer-mode enable some make rules for maintainers"
17 ac_help="$ac_help
18 --enable-static[=PKGS] build static libraries [default=no]"
19 ac_help="$ac_help
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 ac_help="$ac_help
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 ac_help="$ac_help
26 --disable-libtool-lock avoid locking (might break parallel builds)"
27 ac_help="$ac_help
28 --with-sam-pwdb={passdb,tdb,nt5ldap}
29 which password-database to use (passdb)"
30 ac_help="$ac_help
31 --with-libmsrpc Include libmsrpc support (default)
32 --without-libmsrpc Don't include libmsrpc support "
33 ac_help="$ac_help
34 --with-libubiqx Include SMB libubiqx support (default)
35 --without-libubiqx Don't include SMB libubiqx support "
36 ac_help="$ac_help
37 --with-libsamba Include SMB libsamba support (default)
38 --without-libsamba Don't include SMB libsamba support "
39 ac_help="$ac_help
40 --with-libnmb Include NMB libnmb support (default)
41 --without-libnmb Don't include NMB libnmb support "
42 ac_help="$ac_help
43 --with-libsmbpw Include SMB libsmbpw support (default)
44 --without-libsmbpw Don't include SMB libsmbpw support "
45 ac_help="$ac_help
46 --with-libsmb Include SMB libsmb support (default)
47 --without-libsmb Don't include SMB libsmb support "
48 ac_help="$ac_help
49 --with-smbwrapper Include SMB wrapper support
50 --without-smbwrapper Don't include SMB wrapper support (default)"
51 ac_help="$ac_help
52 --with-afs Include AFS support
53 --without-afs Don't include AFS support (default)"
54 ac_help="$ac_help
55 --with-dfs Include DFS support
56 --without-dfs Don't include DFS support (default)"
57 ac_help="$ac_help
58 --with-krb4=base-dir Include Kerberos IV support
59 --without-krb4 Don't include Kerberos IV support (default)"
60 ac_help="$ac_help
61 --with-automount Include AUTOMOUNT support
62 --without-automount Don't include AUTOMOUNT support (default)"
63 ac_help="$ac_help
64 --with-smbmount Include SMBMOUNT (Linux only) support
65 --without-smbmount Don't include SMBMOUNT support (default)"
66 ac_help="$ac_help
67 --with-ldap Include LDAP support
68 --without-ldap Don't include LDAP support (default)"
69 ac_help="$ac_help
70 --with-nt5ldap Include NT5 LDAP support
71 --without-nt5ldap Don't include NT5 LDAP support (default)"
72 ac_help="$ac_help
73 --with-nt5ldap Include NT5 LDAP support
74 --without-nt5ldap Don't include NT5 LDAP support (default)"
75 ac_help="$ac_help
76 --with-nisplus Include NISPLUS password database support
77 --without-nisplus Don't include NISPLUS password database support (default)"
78 ac_help="$ac_help
79 --with-nisplus-home Include NISPLUS_HOME support
80 --without-nisplus-home Don't include NISPLUS_HOME support (default)"
81 ac_help="$ac_help
82 --with-ssl Include SSL support
83 --without-ssl Don't include SSL support (default)"
84 ac_help="$ac_help
85 --with-mmap Include experimental MMAP support
86 --without-mmap Don't include MMAP support (default)"
87 ac_help="$ac_help
88 --with-syslog Include experimental SYSLOG support
89 --without-syslog Don't include SYSLOG support (default)"
90 ac_help="$ac_help
91 --with-profile Include profile support
92 --without-profile Don't include profile support (default)"
93 ac_help="$ac_help
94 --with-netatalk Include experimental Netatalk support
95 --without-netatalk Don't include experimental Netatalk support (default)"
96 ac_help="$ac_help
97 --with-quotas Include experimental disk-quota support
98 --without-quotas Don't include experimental disk-quota support (default)"
100 # Initialize some variables set by options.
101 # The variables have the same names as the options, with
102 # dashes changed to underlines.
103 build=NONE
104 cache_file=./config.cache
105 exec_prefix=NONE
106 host=NONE
107 no_create=
108 nonopt=NONE
109 no_recursion=
110 prefix=NONE
111 program_prefix=NONE
112 program_suffix=NONE
113 program_transform_name=s,x,x,
114 silent=
115 site=
116 srcdir=
117 target=NONE
118 verbose=
119 x_includes=NONE
120 x_libraries=NONE
121 bindir='${exec_prefix}/bin'
122 sbindir='${exec_prefix}/sbin'
123 libexecdir='${exec_prefix}/libexec'
124 datadir='${prefix}/share'
125 sysconfdir='${prefix}/etc'
126 sharedstatedir='${prefix}/com'
127 localstatedir='${prefix}/var'
128 libdir='${exec_prefix}/lib'
129 includedir='${prefix}/include'
130 oldincludedir='/usr/include'
131 infodir='${prefix}/info'
132 mandir='${prefix}/man'
134 # Initialize some other variables.
135 subdirs=
136 MFLAGS= MAKEFLAGS=
137 SHELL=${CONFIG_SHELL-/bin/sh}
138 # Maximum number of lines to put in a shell here document.
139 ac_max_here_lines=12
141 ac_prev=
142 for ac_option
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
148 ac_prev=
149 continue
152 case "$ac_option" in
153 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
154 *) ac_optarg= ;;
155 esac
157 # Accept the important Cygnus configure options, so we can diagnose typos.
159 case "$ac_option" in
161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
162 ac_prev=bindir ;;
163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
164 bindir="$ac_optarg" ;;
166 -build | --build | --buil | --bui | --bu)
167 ac_prev=build ;;
168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
169 build="$ac_optarg" ;;
171 -cache-file | --cache-file | --cache-fil | --cache-fi \
172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
173 ac_prev=cache_file ;;
174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
176 cache_file="$ac_optarg" ;;
178 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
179 ac_prev=datadir ;;
180 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
181 | --da=*)
182 datadir="$ac_optarg" ;;
184 -disable-* | --disable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* | --enable-*)
194 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
200 case "$ac_option" in
201 *=*) ;;
202 *) ac_optarg=yes ;;
203 esac
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
208 | --exec | --exe | --ex)
209 ac_prev=exec_prefix ;;
210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
212 | --exec=* | --exe=* | --ex=*)
213 exec_prefix="$ac_optarg" ;;
215 -gas | --gas | --ga | --g)
216 # Obsolete; use --with-gas.
217 with_gas=yes ;;
219 -help | --help | --hel | --he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
222 cat << EOF
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
225 Configuration:
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
233 [$ac_default_prefix]
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
235 [same as prefix]
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
240 [PREFIX/share]
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
243 [PREFIX/com]
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
256 cat << EOF
257 Host type:
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
272 exit 0 ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host="$ac_optarg" ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir="$ac_optarg" ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir="$ac_optarg" ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir="$ac_optarg" ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir="$ac_optarg" ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir="$ac_optarg" ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir="$ac_optarg" ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir="$ac_optarg" ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix="$ac_optarg" ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix="$ac_optarg" ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name="$ac_optarg" ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir="$ac_optarg" ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir="$ac_optarg" ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site="$ac_optarg" ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.13"
422 exit 0 ;;
424 -with-* | --with-*)
425 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case "$ac_option" in
432 *=*) ;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
474 nonopt="$ac_option"
477 esac
478 done
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
487 # 0 standard input
488 # 1 file creation
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
495 exec 6>/dev/null
496 else
497 exec 6>&1
499 exec 5>./config.log
501 echo "\
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
504 " 1>&5
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
508 ac_configure_args=
509 for ac_arg
511 case "$ac_arg" in
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
519 esac
520 done
522 # NLS nuisances.
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 echo > confdefs.h
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file=include/includes.h
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
552 else
553 ac_srcdir_defaulted=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
558 else
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE; then
567 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
568 else
569 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
575 . "$ac_site_file"
577 done
579 if test -r "$cache_file"; then
580 echo "loading cache $cache_file"
581 . $cache_file
582 else
583 echo "creating cache $cache_file"
584 > $cache_file
587 ac_ext=c
588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
589 ac_cpp='$CPP $CPPFLAGS'
590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
592 cross_compiling=$ac_cv_prog_cc_cross
594 ac_exeext=
595 ac_objext=o
596 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
597 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
598 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
599 ac_n= ac_c='
600 ' ac_t=' '
601 else
602 ac_n=-n ac_c= ac_t=
604 else
605 ac_n= ac_c='\c' ac_t=
610 # we want to be compatibe with older versions of Samba
633 # compile with optimisation and without debugging by default
634 CFLAGS=${CFLAGS-"-O"}
636 # Extract the first word of "gcc", so it can be a program name with args.
637 set dummy gcc; ac_word=$2
638 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
639 echo "configure:640: checking for $ac_word" >&5
640 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
642 else
643 if test -n "$CC"; then
644 ac_cv_prog_CC="$CC" # Let the user override the test.
645 else
646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
647 ac_dummy="$PATH"
648 for ac_dir in $ac_dummy; do
649 test -z "$ac_dir" && ac_dir=.
650 if test -f $ac_dir/$ac_word; then
651 ac_cv_prog_CC="gcc"
652 break
654 done
655 IFS="$ac_save_ifs"
658 CC="$ac_cv_prog_CC"
659 if test -n "$CC"; then
660 echo "$ac_t""$CC" 1>&6
661 else
662 echo "$ac_t""no" 1>&6
665 if test -z "$CC"; then
666 # Extract the first word of "cc", so it can be a program name with args.
667 set dummy cc; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672 else
673 if test -n "$CC"; then
674 ac_cv_prog_CC="$CC" # Let the user override the test.
675 else
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 ac_prog_rejected=no
678 ac_dummy="$PATH"
679 for ac_dir in $ac_dummy; do
680 test -z "$ac_dir" && ac_dir=.
681 if test -f $ac_dir/$ac_word; then
682 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
683 ac_prog_rejected=yes
684 continue
686 ac_cv_prog_CC="cc"
687 break
689 done
690 IFS="$ac_save_ifs"
691 if test $ac_prog_rejected = yes; then
692 # We found a bogon in the path, so make sure we never use it.
693 set dummy $ac_cv_prog_CC
694 shift
695 if test $# -gt 0; then
696 # We chose a different compiler from the bogus one.
697 # However, it has the same basename, so the bogon will be chosen
698 # first if we set CC to just the basename; use the full file name.
699 shift
700 set dummy "$ac_dir/$ac_word" "$@"
701 shift
702 ac_cv_prog_CC="$@"
707 CC="$ac_cv_prog_CC"
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
710 else
711 echo "$ac_t""no" 1>&6
714 if test -z "$CC"; then
715 case "`uname -s`" in
716 *win32* | *WIN32*)
717 # Extract the first word of "cl", so it can be a program name with args.
718 set dummy cl; ac_word=$2
719 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
720 echo "configure:721: checking for $ac_word" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
723 else
724 if test -n "$CC"; then
725 ac_cv_prog_CC="$CC" # Let the user override the test.
726 else
727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
728 ac_dummy="$PATH"
729 for ac_dir in $ac_dummy; do
730 test -z "$ac_dir" && ac_dir=.
731 if test -f $ac_dir/$ac_word; then
732 ac_cv_prog_CC="cl"
733 break
735 done
736 IFS="$ac_save_ifs"
739 CC="$ac_cv_prog_CC"
740 if test -n "$CC"; then
741 echo "$ac_t""$CC" 1>&6
742 else
743 echo "$ac_t""no" 1>&6
746 esac
748 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
751 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
752 echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
754 ac_ext=c
755 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
756 ac_cpp='$CPP $CPPFLAGS'
757 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
758 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
759 cross_compiling=$ac_cv_prog_cc_cross
761 cat > conftest.$ac_ext << EOF
763 #line 764 "configure"
764 #include "confdefs.h"
766 main(){return(0);}
768 if { (eval echo configure:769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
769 ac_cv_prog_cc_works=yes
770 # If we can't run a trivial program, we are probably using a cross compiler.
771 if (./conftest; exit) 2>/dev/null; then
772 ac_cv_prog_cc_cross=no
773 else
774 ac_cv_prog_cc_cross=yes
776 else
777 echo "configure: failed program was:" >&5
778 cat conftest.$ac_ext >&5
779 ac_cv_prog_cc_works=no
781 rm -fr conftest*
782 ac_ext=c
783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
784 ac_cpp='$CPP $CPPFLAGS'
785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
787 cross_compiling=$ac_cv_prog_cc_cross
789 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
790 if test $ac_cv_prog_cc_works = no; then
791 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
794 echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
795 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
796 cross_compiling=$ac_cv_prog_cc_cross
798 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
799 echo "configure:800: checking whether we are using GNU C" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
802 else
803 cat > conftest.c <<EOF
804 #ifdef __GNUC__
805 yes;
806 #endif
808 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
809 ac_cv_prog_gcc=yes
810 else
811 ac_cv_prog_gcc=no
815 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
817 if test $ac_cv_prog_gcc = yes; then
818 GCC=yes
819 else
820 GCC=
823 ac_test_CFLAGS="${CFLAGS+set}"
824 ac_save_CFLAGS="$CFLAGS"
825 CFLAGS=
826 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
827 echo "configure:828: checking whether ${CC-cc} accepts -g" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
830 else
831 echo 'void f(){}' > conftest.c
832 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
833 ac_cv_prog_cc_g=yes
834 else
835 ac_cv_prog_cc_g=no
837 rm -f conftest*
841 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
842 if test "$ac_test_CFLAGS" = set; then
843 CFLAGS="$ac_save_CFLAGS"
844 elif test $ac_cv_prog_cc_g = yes; then
845 if test "$GCC" = yes; then
846 CFLAGS="-g -O2"
847 else
848 CFLAGS="-g"
850 else
851 if test "$GCC" = yes; then
852 CFLAGS="-O2"
853 else
854 CFLAGS=
858 ac_aux_dir=
859 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
860 if test -f $ac_dir/install-sh; then
861 ac_aux_dir=$ac_dir
862 ac_install_sh="$ac_aux_dir/install-sh -c"
863 break
864 elif test -f $ac_dir/install.sh; then
865 ac_aux_dir=$ac_dir
866 ac_install_sh="$ac_aux_dir/install.sh -c"
867 break
869 done
870 if test -z "$ac_aux_dir"; then
871 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
873 ac_config_guess=$ac_aux_dir/config.guess
874 ac_config_sub=$ac_aux_dir/config.sub
875 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
877 # Find a good install program. We prefer a C program (faster),
878 # so one script is as good as another. But avoid the broken or
879 # incompatible versions:
880 # SysV /etc/install, /usr/sbin/install
881 # SunOS /usr/etc/install
882 # IRIX /sbin/install
883 # AIX /bin/install
884 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
885 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
886 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
887 # ./install, which can be erroneously created by make from ./install.sh.
888 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
889 echo "configure:890: checking for a BSD compatible install" >&5
890 if test -z "$INSTALL"; then
891 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
892 echo $ac_n "(cached) $ac_c" 1>&6
893 else
894 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
895 for ac_dir in $PATH; do
896 # Account for people who put trailing slashes in PATH elements.
897 case "$ac_dir/" in
898 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
900 # OSF1 and SCO ODT 3.0 have their own names for install.
901 # Don't use installbsd from OSF since it installs stuff as root
902 # by default.
903 for ac_prog in ginstall scoinst install; do
904 if test -f $ac_dir/$ac_prog; then
905 if test $ac_prog = install &&
906 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
907 # AIX install. It has an incompatible calling convention.
909 else
910 ac_cv_path_install="$ac_dir/$ac_prog -c"
911 break 2
914 done
916 esac
917 done
918 IFS="$ac_save_IFS"
921 if test "${ac_cv_path_install+set}" = set; then
922 INSTALL="$ac_cv_path_install"
923 else
924 # As a last resort, use the slow shell script. We don't cache a
925 # path for INSTALL within a source directory, because that will
926 # break other packages using the cache if that directory is
927 # removed, or if the path is relative.
928 INSTALL="$ac_install_sh"
931 echo "$ac_t""$INSTALL" 1>&6
933 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
934 # It thinks the first close brace ends the variable substitution.
935 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
937 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
939 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
941 for ac_prog in mawk gawk nawk awk
943 # Extract the first word of "$ac_prog", so it can be a program name with args.
944 set dummy $ac_prog; ac_word=$2
945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
946 echo "configure:947: checking for $ac_word" >&5
947 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
948 echo $ac_n "(cached) $ac_c" 1>&6
949 else
950 if test -n "$AWK"; then
951 ac_cv_prog_AWK="$AWK" # Let the user override the test.
952 else
953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
954 ac_dummy="$PATH"
955 for ac_dir in $ac_dummy; do
956 test -z "$ac_dir" && ac_dir=.
957 if test -f $ac_dir/$ac_word; then
958 ac_cv_prog_AWK="$ac_prog"
959 break
961 done
962 IFS="$ac_save_ifs"
965 AWK="$ac_cv_prog_AWK"
966 if test -n "$AWK"; then
967 echo "$ac_t""$AWK" 1>&6
968 else
969 echo "$ac_t""no" 1>&6
972 test -n "$AWK" && break
973 done
977 # Do some error checking and defaulting for the host and target type.
978 # The inputs are:
979 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
981 # The rules are:
982 # 1. You are not allowed to specify --host, --target, and nonopt at the
983 # same time.
984 # 2. Host defaults to nonopt.
985 # 3. If nonopt is not specified, then host defaults to the current host,
986 # as determined by config.guess.
987 # 4. Target and build default to nonopt.
988 # 5. If nonopt is not specified, then target and build default to host.
990 # The aliases save the names the user supplied, while $host etc.
991 # will get canonicalized.
992 case $host---$target---$nonopt in
993 NONE---*---* | *---NONE---* | *---*---NONE) ;;
994 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
995 esac
998 # Make sure we can run config.sub.
999 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1000 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003 echo $ac_n "checking host system type""... $ac_c" 1>&6
1004 echo "configure:1005: checking host system type" >&5
1006 host_alias=$host
1007 case "$host_alias" in
1008 NONE)
1009 case $nonopt in
1010 NONE)
1011 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1012 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1013 fi ;;
1014 *) host_alias=$nonopt ;;
1015 esac ;;
1016 esac
1018 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1019 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1020 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1021 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 echo "$ac_t""$host" 1>&6
1024 echo $ac_n "checking target system type""... $ac_c" 1>&6
1025 echo "configure:1026: checking target system type" >&5
1027 target_alias=$target
1028 case "$target_alias" in
1029 NONE)
1030 case $nonopt in
1031 NONE) target_alias=$host_alias ;;
1032 *) target_alias=$nonopt ;;
1033 esac ;;
1034 esac
1036 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1037 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 echo "$ac_t""$target" 1>&6
1042 echo $ac_n "checking build system type""... $ac_c" 1>&6
1043 echo "configure:1044: checking build system type" >&5
1045 build_alias=$build
1046 case "$build_alias" in
1047 NONE)
1048 case $nonopt in
1049 NONE) build_alias=$host_alias ;;
1050 *) build_alias=$nonopt ;;
1051 esac ;;
1052 esac
1054 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1055 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$ac_t""$build" 1>&6
1060 test "$host_alias" != "$target_alias" &&
1061 test "$program_prefix$program_suffix$program_transform_name" = \
1062 NONENONEs,x,x, &&
1063 program_prefix=${target_alias}-
1067 echo $ac_n "checking config.cache system type""... $ac_c" 1>&6
1068 echo "configure:1069: checking config.cache system type" >&5
1069 if { test x"${ac_cv_host_system_type+set}" = x"set" &&
1070 test x"$ac_cv_host_system_type" != x"$host"; } ||
1071 { test x"${ac_cv_build_system_type+set}" = x"set" &&
1072 test x"$ac_cv_build_system_type" != x"$build"; } ||
1073 { test x"${ac_cv_target_system_type+set}" = x"set" &&
1074 test x"$ac_cv_target_system_type" != x"$target"; }; then
1075 echo "$ac_t""different" 1>&6
1076 { echo "configure: error: "you must remove config.cache and restart configure"" 1>&2; exit 1; }
1077 else
1078 echo "$ac_t""same" 1>&6
1080 ac_cv_host_system_type="$host"
1081 ac_cv_build_system_type="$build"
1082 ac_cv_target_system_type="$target"
1085 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1086 if test "${enable_maintainer_mode+set}" = set; then
1087 enableval="$enable_maintainer_mode"
1088 maint_mode=$enableval
1089 else
1090 maint_mode=no
1093 if test x"$maint_mode" = x"yes"; then MAINT=; else MAINT='#'; fi
1095 # Extract the first word of "autoconf", so it can be a program name with args.
1096 set dummy autoconf; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_path_AUTOCONF'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 case "$AUTOCONF" in
1104 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
1106 ?:/*)
1107 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a dos path.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_path_AUTOCONF="$ac_dir/$ac_word"
1116 break
1118 done
1119 IFS="$ac_save_ifs"
1120 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="autoconf"
1122 esac
1124 AUTOCONF="$ac_cv_path_AUTOCONF"
1125 if test -n "$AUTOCONF"; then
1126 echo "$ac_t""$AUTOCONF" 1>&6
1127 else
1128 echo "$ac_t""no" 1>&6
1132 # Extract the first word of "autoheader", so it can be a program name with args.
1133 set dummy autoheader; ac_word=$2
1134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1135 echo "configure:1136: checking for $ac_word" >&5
1136 if eval "test \"`echo '$''{'ac_cv_path_AUTOHEADER'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 case "$AUTOHEADER" in
1141 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
1143 ?:/*)
1144 ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a dos path.
1147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1148 ac_dummy="$PATH"
1149 for ac_dir in $ac_dummy; do
1150 test -z "$ac_dir" && ac_dir=.
1151 if test -f $ac_dir/$ac_word; then
1152 ac_cv_path_AUTOHEADER="$ac_dir/$ac_word"
1153 break
1155 done
1156 IFS="$ac_save_ifs"
1157 test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="autoheader"
1159 esac
1161 AUTOHEADER="$ac_cv_path_AUTOHEADER"
1162 if test -n "$AUTOHEADER"; then
1163 echo "$ac_t""$AUTOHEADER" 1>&6
1164 else
1165 echo "$ac_t""no" 1>&6
1172 # Config CPPFLAG settings for strange OS's that must be set
1173 # before other tests.
1175 case "$host_os" in
1176 # Try to work out if this is the native HPUX compiler that uses the -Ae flag.
1177 *hpux*)
1178 echo $ac_n "checking whether ${CC-cc} accepts -Ae""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${CC-cc} accepts -Ae" >&5
1180 if eval "test \"`echo '$''{'ac_cv_prog_cc_Ae'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182 else
1183 echo 'void f(){}' > conftest.c
1184 if test -z "`${CC-cc} -Ae -c conftest.c 2>&1`"; then
1185 ac_cv_prog_cc_Ae=yes
1186 else
1187 ac_cv_prog_cc_Ae=no
1189 rm -f conftest*
1193 echo "$ac_t""$ac_cv_prog_cc_Ae" 1>&6
1194 if test $ac_cv_prog_cc_Ae = yes; then
1195 CPPFLAGS="$CPPFLAGS -Ae"
1199 # AIX4.x is *so* broken. It doesn't even admit to having large
1200 # files *at all* unless the -D_LARGE_FILE or -D_LARGE_FILE_API flags are set.
1202 *aix4*)
1203 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES"
1205 esac
1207 echo $ac_n "checking for inline""... $ac_c" 1>&6
1208 echo "configure:1209: checking for inline" >&5
1209 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1211 else
1212 ac_cv_c_inline=no
1213 for ac_kw in inline __inline__ __inline; do
1214 cat > conftest.$ac_ext <<EOF
1215 #line 1216 "configure"
1216 #include "confdefs.h"
1218 int main() {
1219 } $ac_kw foo() {
1220 ; return 0; }
1222 if { (eval echo configure:1223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1223 rm -rf conftest*
1224 ac_cv_c_inline=$ac_kw; break
1225 else
1226 echo "configure: failed program was:" >&5
1227 cat conftest.$ac_ext >&5
1229 rm -f conftest*
1230 done
1234 echo "$ac_t""$ac_cv_c_inline" 1>&6
1235 case "$ac_cv_c_inline" in
1236 inline | yes) ;;
1237 no) cat >> confdefs.h <<\EOF
1238 #define inline
1241 *) cat >> confdefs.h <<EOF
1242 #define inline $ac_cv_c_inline
1245 esac
1247 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1248 echo "configure:1249: checking how to run the C preprocessor" >&5
1249 # On Suns, sometimes $CPP names a directory.
1250 if test -n "$CPP" && test -d "$CPP"; then
1251 CPP=
1253 if test -z "$CPP"; then
1254 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1255 echo $ac_n "(cached) $ac_c" 1>&6
1256 else
1257 # This must be in double quotes, not single quotes, because CPP may get
1258 # substituted into the Makefile and "${CC-cc}" will confuse make.
1259 CPP="${CC-cc} -E"
1260 # On the NeXT, cc -E runs the code through the compiler's parser,
1261 # not just through cpp.
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1265 #include <assert.h>
1266 Syntax Error
1268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1273 else
1274 echo "$ac_err" >&5
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1277 rm -rf conftest*
1278 CPP="${CC-cc} -E -traditional-cpp"
1279 cat > conftest.$ac_ext <<EOF
1280 #line 1281 "configure"
1281 #include "confdefs.h"
1282 #include <assert.h>
1283 Syntax Error
1285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1286 { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1288 if test -z "$ac_err"; then
1290 else
1291 echo "$ac_err" >&5
1292 echo "configure: failed program was:" >&5
1293 cat conftest.$ac_ext >&5
1294 rm -rf conftest*
1295 CPP="${CC-cc} -nologo -E"
1296 cat > conftest.$ac_ext <<EOF
1297 #line 1298 "configure"
1298 #include "confdefs.h"
1299 #include <assert.h>
1300 Syntax Error
1302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1303 { (eval echo configure:1304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1305 if test -z "$ac_err"; then
1307 else
1308 echo "$ac_err" >&5
1309 echo "configure: failed program was:" >&5
1310 cat conftest.$ac_ext >&5
1311 rm -rf conftest*
1312 CPP=/lib/cpp
1314 rm -f conftest*
1316 rm -f conftest*
1318 rm -f conftest*
1319 ac_cv_prog_CPP="$CPP"
1321 CPP="$ac_cv_prog_CPP"
1322 else
1323 ac_cv_prog_CPP="$CPP"
1325 echo "$ac_t""$CPP" 1>&6
1327 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1328 echo "configure:1329: checking for ANSI C header files" >&5
1329 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 #include <stdlib.h>
1336 #include <stdarg.h>
1337 #include <string.h>
1338 #include <float.h>
1340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1341 { (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1343 if test -z "$ac_err"; then
1344 rm -rf conftest*
1345 ac_cv_header_stdc=yes
1346 else
1347 echo "$ac_err" >&5
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
1351 ac_cv_header_stdc=no
1353 rm -f conftest*
1355 if test $ac_cv_header_stdc = yes; then
1356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1357 cat > conftest.$ac_ext <<EOF
1358 #line 1359 "configure"
1359 #include "confdefs.h"
1360 #include <string.h>
1362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1363 egrep "memchr" >/dev/null 2>&1; then
1365 else
1366 rm -rf conftest*
1367 ac_cv_header_stdc=no
1369 rm -f conftest*
1373 if test $ac_cv_header_stdc = yes; then
1374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1378 #include <stdlib.h>
1380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1381 egrep "free" >/dev/null 2>&1; then
1383 else
1384 rm -rf conftest*
1385 ac_cv_header_stdc=no
1387 rm -f conftest*
1391 if test $ac_cv_header_stdc = yes; then
1392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1393 if test "$cross_compiling" = yes; then
1395 else
1396 cat > conftest.$ac_ext <<EOF
1397 #line 1398 "configure"
1398 #include "confdefs.h"
1399 #include <ctype.h>
1400 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1401 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1403 int main () { int i; for (i = 0; i < 256; i++)
1404 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1405 exit (0); }
1408 if { (eval echo configure:1409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1409 then
1411 else
1412 echo "configure: failed program was:" >&5
1413 cat conftest.$ac_ext >&5
1414 rm -fr conftest*
1415 ac_cv_header_stdc=no
1417 rm -fr conftest*
1423 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1424 if test $ac_cv_header_stdc = yes; then
1425 cat >> confdefs.h <<\EOF
1426 #define STDC_HEADERS 1
1431 ac_header_dirent=no
1432 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1435 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1436 echo "configure:1437: checking for $ac_hdr that defines DIR" >&5
1437 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1438 echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440 cat > conftest.$ac_ext <<EOF
1441 #line 1442 "configure"
1442 #include "confdefs.h"
1443 #include <sys/types.h>
1444 #include <$ac_hdr>
1445 int main() {
1446 DIR *dirp = 0;
1447 ; return 0; }
1449 if { (eval echo configure:1450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450 rm -rf conftest*
1451 eval "ac_cv_header_dirent_$ac_safe=yes"
1452 else
1453 echo "configure: failed program was:" >&5
1454 cat conftest.$ac_ext >&5
1455 rm -rf conftest*
1456 eval "ac_cv_header_dirent_$ac_safe=no"
1458 rm -f conftest*
1460 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1461 echo "$ac_t""yes" 1>&6
1462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1463 cat >> confdefs.h <<EOF
1464 #define $ac_tr_hdr 1
1466 ac_header_dirent=$ac_hdr; break
1467 else
1468 echo "$ac_t""no" 1>&6
1470 done
1471 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1472 if test $ac_header_dirent = dirent.h; then
1473 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1474 echo "configure:1475: checking for opendir in -ldir" >&5
1475 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1478 else
1479 ac_save_LIBS="$LIBS"
1480 LIBS="-ldir $LIBS"
1481 cat > conftest.$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1487 char opendir();
1489 int main() {
1490 opendir()
1491 ; return 0; }
1493 if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1494 rm -rf conftest*
1495 eval "ac_cv_lib_$ac_lib_var=yes"
1496 else
1497 echo "configure: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1499 rm -rf conftest*
1500 eval "ac_cv_lib_$ac_lib_var=no"
1502 rm -f conftest*
1503 LIBS="$ac_save_LIBS"
1506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 LIBS="$LIBS -ldir"
1509 else
1510 echo "$ac_t""no" 1>&6
1513 else
1514 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1515 echo "configure:1516: checking for opendir in -lx" >&5
1516 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1518 echo $ac_n "(cached) $ac_c" 1>&6
1519 else
1520 ac_save_LIBS="$LIBS"
1521 LIBS="-lx $LIBS"
1522 cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1525 /* Override any gcc2 internal prototype to avoid an error. */
1526 /* We use char because int might match the return type of a gcc2
1527 builtin and then its argument prototype would still apply. */
1528 char opendir();
1530 int main() {
1531 opendir()
1532 ; return 0; }
1534 if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1535 rm -rf conftest*
1536 eval "ac_cv_lib_$ac_lib_var=yes"
1537 else
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 rm -rf conftest*
1541 eval "ac_cv_lib_$ac_lib_var=no"
1543 rm -f conftest*
1544 LIBS="$ac_save_LIBS"
1547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1549 LIBS="$LIBS -lx"
1550 else
1551 echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1557 echo "configure:1558: checking whether time.h and sys/time.h may both be included" >&5
1558 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1560 else
1561 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure"
1563 #include "confdefs.h"
1564 #include <sys/types.h>
1565 #include <sys/time.h>
1566 #include <time.h>
1567 int main() {
1568 struct tm *tp;
1569 ; return 0; }
1571 if { (eval echo configure:1572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1572 rm -rf conftest*
1573 ac_cv_header_time=yes
1574 else
1575 echo "configure: failed program was:" >&5
1576 cat conftest.$ac_ext >&5
1577 rm -rf conftest*
1578 ac_cv_header_time=no
1580 rm -f conftest*
1583 echo "$ac_t""$ac_cv_header_time" 1>&6
1584 if test $ac_cv_header_time = yes; then
1585 cat >> confdefs.h <<\EOF
1586 #define TIME_WITH_SYS_TIME 1
1591 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1592 echo "configure:1593: checking for sys/wait.h that is POSIX.1 compatible" >&5
1593 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1595 else
1596 cat > conftest.$ac_ext <<EOF
1597 #line 1598 "configure"
1598 #include "confdefs.h"
1599 #include <sys/types.h>
1600 #include <sys/wait.h>
1601 #ifndef WEXITSTATUS
1602 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1603 #endif
1604 #ifndef WIFEXITED
1605 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1606 #endif
1607 int main() {
1608 int s;
1609 wait (&s);
1610 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1611 ; return 0; }
1613 if { (eval echo configure:1614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1614 rm -rf conftest*
1615 ac_cv_header_sys_wait_h=yes
1616 else
1617 echo "configure: failed program was:" >&5
1618 cat conftest.$ac_ext >&5
1619 rm -rf conftest*
1620 ac_cv_header_sys_wait_h=no
1622 rm -f conftest*
1625 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1626 if test $ac_cv_header_sys_wait_h = yes; then
1627 cat >> confdefs.h <<\EOF
1628 #define HAVE_SYS_WAIT_H 1
1633 for ac_hdr in sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h
1635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1637 echo "configure:1638: checking for $ac_hdr" >&5
1638 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1640 else
1641 cat > conftest.$ac_ext <<EOF
1642 #line 1643 "configure"
1643 #include "confdefs.h"
1644 #include <$ac_hdr>
1646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1647 { (eval echo configure:1648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1649 if test -z "$ac_err"; then
1650 rm -rf conftest*
1651 eval "ac_cv_header_$ac_safe=yes"
1652 else
1653 echo "$ac_err" >&5
1654 echo "configure: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1656 rm -rf conftest*
1657 eval "ac_cv_header_$ac_safe=no"
1659 rm -f conftest*
1661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1662 echo "$ac_t""yes" 1>&6
1663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1664 cat >> confdefs.h <<EOF
1665 #define $ac_tr_hdr 1
1668 else
1669 echo "$ac_t""no" 1>&6
1671 done
1673 for ac_hdr in sys/param.h ctype.h
1675 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1676 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1677 echo "configure:1678: checking for $ac_hdr" >&5
1678 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1679 echo $ac_n "(cached) $ac_c" 1>&6
1680 else
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 #include <$ac_hdr>
1686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1687 { (eval echo configure:1688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1689 if test -z "$ac_err"; then
1690 rm -rf conftest*
1691 eval "ac_cv_header_$ac_safe=yes"
1692 else
1693 echo "$ac_err" >&5
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 eval "ac_cv_header_$ac_safe=no"
1699 rm -f conftest*
1701 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1702 echo "$ac_t""yes" 1>&6
1703 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1704 cat >> confdefs.h <<EOF
1705 #define $ac_tr_hdr 1
1708 else
1709 echo "$ac_t""no" 1>&6
1711 done
1713 for ac_hdr in unistd.h utime.h grp.h sys/id.h limits.h memory.h net/route.h net/if.h
1715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1717 echo "configure:1718: checking for $ac_hdr" >&5
1718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1720 else
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1724 #include <$ac_hdr>
1726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1727 { (eval echo configure:1728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1729 if test -z "$ac_err"; then
1730 rm -rf conftest*
1731 eval "ac_cv_header_$ac_safe=yes"
1732 else
1733 echo "$ac_err" >&5
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1736 rm -rf conftest*
1737 eval "ac_cv_header_$ac_safe=no"
1739 rm -f conftest*
1741 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1744 cat >> confdefs.h <<EOF
1745 #define $ac_tr_hdr 1
1748 else
1749 echo "$ac_t""no" 1>&6
1751 done
1753 for ac_hdr in compat.h rpc/rpc.h rpcsvc/yp_prot.h rpcsvc/ypclnt.h sys/param.h ctype.h
1755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1757 echo "configure:1758: checking for $ac_hdr" >&5
1758 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 cat > conftest.$ac_ext <<EOF
1762 #line 1763 "configure"
1763 #include "confdefs.h"
1764 #include <$ac_hdr>
1766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1767 { (eval echo configure:1768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1769 if test -z "$ac_err"; then
1770 rm -rf conftest*
1771 eval "ac_cv_header_$ac_safe=yes"
1772 else
1773 echo "$ac_err" >&5
1774 echo "configure: failed program was:" >&5
1775 cat conftest.$ac_ext >&5
1776 rm -rf conftest*
1777 eval "ac_cv_header_$ac_safe=no"
1779 rm -f conftest*
1781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1782 echo "$ac_t""yes" 1>&6
1783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1784 cat >> confdefs.h <<EOF
1785 #define $ac_tr_hdr 1
1788 else
1789 echo "$ac_t""no" 1>&6
1791 done
1793 for ac_hdr in sys/wait.h sys/resource.h sys/ioctl.h sys/mode.h sys/mman.h
1795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1797 echo "configure:1798: checking for $ac_hdr" >&5
1798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1800 else
1801 cat > conftest.$ac_ext <<EOF
1802 #line 1803 "configure"
1803 #include "confdefs.h"
1804 #include <$ac_hdr>
1806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807 { (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809 if test -z "$ac_err"; then
1810 rm -rf conftest*
1811 eval "ac_cv_header_$ac_safe=yes"
1812 else
1813 echo "$ac_err" >&5
1814 echo "configure: failed program was:" >&5
1815 cat conftest.$ac_ext >&5
1816 rm -rf conftest*
1817 eval "ac_cv_header_$ac_safe=no"
1819 rm -f conftest*
1821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1822 echo "$ac_t""yes" 1>&6
1823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1824 cat >> confdefs.h <<EOF
1825 #define $ac_tr_hdr 1
1828 else
1829 echo "$ac_t""no" 1>&6
1831 done
1833 for ac_hdr in sys/filio.h string.h strings.h stdlib.h sys/socket.h sys/un.h
1835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_hdr" >&5
1838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include <$ac_hdr>
1846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1847 { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1849 if test -z "$ac_err"; then
1850 rm -rf conftest*
1851 eval "ac_cv_header_$ac_safe=yes"
1852 else
1853 echo "$ac_err" >&5
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 rm -rf conftest*
1857 eval "ac_cv_header_$ac_safe=no"
1859 rm -f conftest*
1861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1862 echo "$ac_t""yes" 1>&6
1863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1864 cat >> confdefs.h <<EOF
1865 #define $ac_tr_hdr 1
1868 else
1869 echo "$ac_t""no" 1>&6
1871 done
1873 for ac_hdr in sys/mount.h sys/vfs.h sys/fs/s5param.h sys/filsys.h termios.h
1875 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1876 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1877 echo "configure:1878: checking for $ac_hdr" >&5
1878 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1879 echo $ac_n "(cached) $ac_c" 1>&6
1880 else
1881 cat > conftest.$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1884 #include <$ac_hdr>
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
1890 rm -rf conftest*
1891 eval "ac_cv_header_$ac_safe=yes"
1892 else
1893 echo "$ac_err" >&5
1894 echo "configure: failed program was:" >&5
1895 cat conftest.$ac_ext >&5
1896 rm -rf conftest*
1897 eval "ac_cv_header_$ac_safe=no"
1899 rm -f conftest*
1901 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1902 echo "$ac_t""yes" 1>&6
1903 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1904 cat >> confdefs.h <<EOF
1905 #define $ac_tr_hdr 1
1908 else
1909 echo "$ac_t""no" 1>&6
1911 done
1913 for ac_hdr in sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h
1915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_hdr" >&5
1918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 #include <$ac_hdr>
1926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1927 { (eval echo configure:1928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1929 if test -z "$ac_err"; then
1930 rm -rf conftest*
1931 eval "ac_cv_header_$ac_safe=yes"
1932 else
1933 echo "$ac_err" >&5
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1936 rm -rf conftest*
1937 eval "ac_cv_header_$ac_safe=no"
1939 rm -f conftest*
1941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1942 echo "$ac_t""yes" 1>&6
1943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1944 cat >> confdefs.h <<EOF
1945 #define $ac_tr_hdr 1
1948 else
1949 echo "$ac_t""no" 1>&6
1951 done
1953 for ac_hdr in shadow.h netinet/tcp.h sys/security.h security/pam_appl.h
1955 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1956 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1957 echo "configure:1958: checking for $ac_hdr" >&5
1958 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1960 else
1961 cat > conftest.$ac_ext <<EOF
1962 #line 1963 "configure"
1963 #include "confdefs.h"
1964 #include <$ac_hdr>
1966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1967 { (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1969 if test -z "$ac_err"; then
1970 rm -rf conftest*
1971 eval "ac_cv_header_$ac_safe=yes"
1972 else
1973 echo "$ac_err" >&5
1974 echo "configure: failed program was:" >&5
1975 cat conftest.$ac_ext >&5
1976 rm -rf conftest*
1977 eval "ac_cv_header_$ac_safe=no"
1979 rm -f conftest*
1981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1984 cat >> confdefs.h <<EOF
1985 #define $ac_tr_hdr 1
1988 else
1989 echo "$ac_t""no" 1>&6
1991 done
1993 for ac_hdr in stropts.h poll.h readline.h history.h readline/readline.h
1995 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1996 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_hdr" >&5
1998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2000 else
2001 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure"
2003 #include "confdefs.h"
2004 #include <$ac_hdr>
2006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2007 { (eval echo configure:2008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2009 if test -z "$ac_err"; then
2010 rm -rf conftest*
2011 eval "ac_cv_header_$ac_safe=yes"
2012 else
2013 echo "$ac_err" >&5
2014 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5
2016 rm -rf conftest*
2017 eval "ac_cv_header_$ac_safe=no"
2019 rm -f conftest*
2021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2022 echo "$ac_t""yes" 1>&6
2023 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2024 cat >> confdefs.h <<EOF
2025 #define $ac_tr_hdr 1
2028 else
2029 echo "$ac_t""no" 1>&6
2031 done
2033 for ac_hdr in readline/history.h sys/capability.h syscall.h sys/syscall.h
2035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2037 echo "configure:2038: checking for $ac_hdr" >&5
2038 if eval "test \"`echo '$''{'ac_cv_header_$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 <$ac_hdr>
2046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047 { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049 if test -z "$ac_err"; then
2050 rm -rf conftest*
2051 eval "ac_cv_header_$ac_safe=yes"
2052 else
2053 echo "$ac_err" >&5
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 rm -rf conftest*
2057 eval "ac_cv_header_$ac_safe=no"
2059 rm -f conftest*
2061 if eval "test \"`echo '$ac_cv_header_'$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
2068 else
2069 echo "$ac_t""no" 1>&6
2071 done
2073 for ac_hdr in sys/acl.h sys/cdefs.h glob.h mysql.h
2075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2077 echo "configure:2078: checking for $ac_hdr" >&5
2078 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2079 echo $ac_n "(cached) $ac_c" 1>&6
2080 else
2081 cat > conftest.$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 #include <$ac_hdr>
2086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2087 { (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2089 if test -z "$ac_err"; then
2090 rm -rf conftest*
2091 eval "ac_cv_header_$ac_safe=yes"
2092 else
2093 echo "$ac_err" >&5
2094 echo "configure: failed program was:" >&5
2095 cat conftest.$ac_ext >&5
2096 rm -rf conftest*
2097 eval "ac_cv_header_$ac_safe=no"
2099 rm -f conftest*
2101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2102 echo "$ac_t""yes" 1>&6
2103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2104 cat >> confdefs.h <<EOF
2105 #define $ac_tr_hdr 1
2108 else
2109 echo "$ac_t""no" 1>&6
2111 done
2114 echo $ac_n "checking size of int""... $ac_c" 1>&6
2115 echo "configure:2116: checking size of int" >&5
2116 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 if test "$cross_compiling" = yes; then
2120 ac_cv_sizeof_int=cross
2121 else
2122 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 #include <stdio.h>
2126 main()
2128 FILE *f=fopen("conftestval", "w");
2129 if (!f) exit(1);
2130 fprintf(f, "%d\n", sizeof(int));
2131 exit(0);
2134 if { (eval echo configure:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2135 then
2136 ac_cv_sizeof_int=`cat conftestval`
2137 else
2138 echo "configure: failed program was:" >&5
2139 cat conftest.$ac_ext >&5
2140 rm -fr conftest*
2141 ac_cv_sizeof_int=0
2143 rm -fr conftest*
2147 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2148 cat >> confdefs.h <<EOF
2149 #define SIZEOF_INT $ac_cv_sizeof_int
2153 echo $ac_n "checking size of long""... $ac_c" 1>&6
2154 echo "configure:2155: checking size of long" >&5
2155 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2157 else
2158 if test "$cross_compiling" = yes; then
2159 ac_cv_sizeof_long=cross
2160 else
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2164 #include <stdio.h>
2165 main()
2167 FILE *f=fopen("conftestval", "w");
2168 if (!f) exit(1);
2169 fprintf(f, "%d\n", sizeof(long));
2170 exit(0);
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2174 then
2175 ac_cv_sizeof_long=`cat conftestval`
2176 else
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2179 rm -fr conftest*
2180 ac_cv_sizeof_long=0
2182 rm -fr conftest*
2186 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2187 cat >> confdefs.h <<EOF
2188 #define SIZEOF_LONG $ac_cv_sizeof_long
2192 echo $ac_n "checking size of short""... $ac_c" 1>&6
2193 echo "configure:2194: checking size of short" >&5
2194 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6
2196 else
2197 if test "$cross_compiling" = yes; then
2198 ac_cv_sizeof_short=cross
2199 else
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <stdio.h>
2204 main()
2206 FILE *f=fopen("conftestval", "w");
2207 if (!f) exit(1);
2208 fprintf(f, "%d\n", sizeof(short));
2209 exit(0);
2212 if { (eval echo configure:2213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2213 then
2214 ac_cv_sizeof_short=`cat conftestval`
2215 else
2216 echo "configure: failed program was:" >&5
2217 cat conftest.$ac_ext >&5
2218 rm -fr conftest*
2219 ac_cv_sizeof_short=0
2221 rm -fr conftest*
2225 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2226 cat >> confdefs.h <<EOF
2227 #define SIZEOF_SHORT $ac_cv_sizeof_short
2232 echo $ac_n "checking for working const""... $ac_c" 1>&6
2233 echo "configure:2234: checking for working const" >&5
2234 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2241 int main() {
2243 /* Ultrix mips cc rejects this. */
2244 typedef int charset[2]; const charset x;
2245 /* SunOS 4.1.1 cc rejects this. */
2246 char const *const *ccp;
2247 char **p;
2248 /* NEC SVR4.0.2 mips cc rejects this. */
2249 struct point {int x, y;};
2250 static struct point const zero = {0,0};
2251 /* AIX XL C 1.02.0.0 rejects this.
2252 It does not let you subtract one const X* pointer from another in an arm
2253 of an if-expression whose if-part is not a constant expression */
2254 const char *g = "string";
2255 ccp = &g + (g ? g-g : 0);
2256 /* HPUX 7.0 cc rejects these. */
2257 ++ccp;
2258 p = (char**) ccp;
2259 ccp = (char const *const *) p;
2260 { /* SCO 3.2v4 cc rejects this. */
2261 char *t;
2262 char const *s = 0 ? (char *) 0 : (char const *) 0;
2264 *t++ = 0;
2266 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2267 int x[] = {25, 17};
2268 const int *foo = &x[0];
2269 ++foo;
2271 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2272 typedef const int *iptr;
2273 iptr p = 0;
2274 ++p;
2276 { /* AIX XL C 1.02.0.0 rejects this saying
2277 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2278 struct s { int j; const int *ap[3]; };
2279 struct s *b; b->j = 5;
2281 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2282 const int foo = 10;
2285 ; return 0; }
2287 if { (eval echo configure:2288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2288 rm -rf conftest*
2289 ac_cv_c_const=yes
2290 else
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 ac_cv_c_const=no
2296 rm -f conftest*
2299 echo "$ac_t""$ac_cv_c_const" 1>&6
2300 if test $ac_cv_c_const = no; then
2301 cat >> confdefs.h <<\EOF
2302 #define const
2307 echo $ac_n "checking for inline""... $ac_c" 1>&6
2308 echo "configure:2309: checking for inline" >&5
2309 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2310 echo $ac_n "(cached) $ac_c" 1>&6
2311 else
2312 ac_cv_c_inline=no
2313 for ac_kw in inline __inline__ __inline; do
2314 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure"
2316 #include "confdefs.h"
2318 int main() {
2319 } $ac_kw foo() {
2320 ; return 0; }
2322 if { (eval echo configure:2323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2323 rm -rf conftest*
2324 ac_cv_c_inline=$ac_kw; break
2325 else
2326 echo "configure: failed program was:" >&5
2327 cat conftest.$ac_ext >&5
2329 rm -f conftest*
2330 done
2334 echo "$ac_t""$ac_cv_c_inline" 1>&6
2335 case "$ac_cv_c_inline" in
2336 inline | yes) ;;
2337 no) cat >> confdefs.h <<\EOF
2338 #define inline
2341 *) cat >> confdefs.h <<EOF
2342 #define inline $ac_cv_c_inline
2345 esac
2347 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2348 echo "configure:2349: checking whether byte ordering is bigendian" >&5
2349 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2351 else
2352 ac_cv_c_bigendian=unknown
2353 # See if sys/param.h defines the BYTE_ORDER macro.
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <sys/types.h>
2358 #include <sys/param.h>
2359 int main() {
2361 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2362 bogus endian macros
2363 #endif
2364 ; return 0; }
2366 if { (eval echo configure:2367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2367 rm -rf conftest*
2368 # It does; now see whether it defined to BIG_ENDIAN or not.
2369 cat > conftest.$ac_ext <<EOF
2370 #line 2371 "configure"
2371 #include "confdefs.h"
2372 #include <sys/types.h>
2373 #include <sys/param.h>
2374 int main() {
2376 #if BYTE_ORDER != BIG_ENDIAN
2377 not big endian
2378 #endif
2379 ; return 0; }
2381 if { (eval echo configure:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 rm -rf conftest*
2383 ac_cv_c_bigendian=yes
2384 else
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2387 rm -rf conftest*
2388 ac_cv_c_bigendian=no
2390 rm -f conftest*
2391 else
2392 echo "configure: failed program was:" >&5
2393 cat conftest.$ac_ext >&5
2395 rm -f conftest*
2396 if test $ac_cv_c_bigendian = unknown; then
2397 if test "$cross_compiling" = yes; then
2398 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2399 else
2400 cat > conftest.$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 main () {
2404 /* Are we little or big endian? From Harbison&Steele. */
2405 union
2407 long l;
2408 char c[sizeof (long)];
2409 } u;
2410 u.l = 1;
2411 exit (u.c[sizeof (long) - 1] == 1);
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2415 then
2416 ac_cv_c_bigendian=no
2417 else
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2420 rm -fr conftest*
2421 ac_cv_c_bigendian=yes
2423 rm -fr conftest*
2429 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2430 if test $ac_cv_c_bigendian = yes; then
2431 cat >> confdefs.h <<\EOF
2432 #define WORDS_BIGENDIAN 1
2437 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
2438 echo "configure:2439: checking whether char is unsigned" >&5
2439 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 if test "$GCC" = yes; then
2443 # GCC predefines this symbol on systems where it applies.
2444 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure"
2446 #include "confdefs.h"
2447 #ifdef __CHAR_UNSIGNED__
2449 #endif
2452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2453 egrep "yes" >/dev/null 2>&1; then
2454 rm -rf conftest*
2455 ac_cv_c_char_unsigned=yes
2456 else
2457 rm -rf conftest*
2458 ac_cv_c_char_unsigned=no
2460 rm -f conftest*
2462 else
2463 if test "$cross_compiling" = yes; then
2464 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2465 else
2466 cat > conftest.$ac_ext <<EOF
2467 #line 2468 "configure"
2468 #include "confdefs.h"
2469 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
2470 #if !defined(__STDC__) || __STDC__ != 1
2471 #define volatile
2472 #endif
2473 main() {
2474 volatile char c = 255; exit(c < 0);
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2478 then
2479 ac_cv_c_char_unsigned=yes
2480 else
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2483 rm -fr conftest*
2484 ac_cv_c_char_unsigned=no
2486 rm -fr conftest*
2492 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
2493 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
2494 cat >> confdefs.h <<\EOF
2495 #define __CHAR_UNSIGNED__ 1
2501 # Check whether --enable-static or --disable-static was given.
2502 if test "${enable_static+set}" = set; then
2503 enableval="$enable_static"
2504 p=${PACKAGE-default}
2505 case "$enableval" in
2506 yes) enable_static=yes ;;
2507 no) enable_static=no ;;
2509 enable_static=no
2510 # Look at the argument we got. We use all the common list separators.
2511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2512 for pkg in $enableval; do
2513 if test "X$pkg" = "X$p"; then
2514 enable_static=yes
2516 done
2517 IFS="$ac_save_ifs"
2519 esac
2520 else
2521 enable_static=no
2524 # Check whether --enable-shared or --disable-shared was given.
2525 if test "${enable_shared+set}" = set; then
2526 enableval="$enable_shared"
2527 p=${PACKAGE-default}
2528 case "$enableval" in
2529 yes) enable_shared=yes ;;
2530 no) enable_shared=no ;;
2532 enable_shared=no
2533 # Look at the argument we got. We use all the common list separators.
2534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2535 for pkg in $enableval; do
2536 if test "X$pkg" = "X$p"; then
2537 enable_shared=yes
2539 done
2540 IFS="$ac_save_ifs"
2542 esac
2543 else
2544 enable_shared=yes
2547 # Check whether --enable-fast-install or --disable-fast-install was given.
2548 if test "${enable_fast_install+set}" = set; then
2549 enableval="$enable_fast_install"
2550 p=${PACKAGE-default}
2551 case "$enableval" in
2552 yes) enable_fast_install=yes ;;
2553 no) enable_fast_install=no ;;
2555 enable_fast_install=no
2556 # Look at the argument we got. We use all the common list separators.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2558 for pkg in $enableval; do
2559 if test "X$pkg" = "X$p"; then
2560 enable_fast_install=yes
2562 done
2563 IFS="$ac_save_ifs"
2565 esac
2566 else
2567 enable_fast_install=yes
2570 # Extract the first word of "ranlib", so it can be a program name with args.
2571 set dummy ranlib; ac_word=$2
2572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_word" >&5
2574 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2576 else
2577 if test -n "$RANLIB"; then
2578 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2579 else
2580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2581 ac_dummy="$PATH"
2582 for ac_dir in $ac_dummy; do
2583 test -z "$ac_dir" && ac_dir=.
2584 if test -f $ac_dir/$ac_word; then
2585 ac_cv_prog_RANLIB="ranlib"
2586 break
2588 done
2589 IFS="$ac_save_ifs"
2590 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2593 RANLIB="$ac_cv_prog_RANLIB"
2594 if test -n "$RANLIB"; then
2595 echo "$ac_t""$RANLIB" 1>&6
2596 else
2597 echo "$ac_t""no" 1>&6
2600 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2601 if test "${with_gnu_ld+set}" = set; then
2602 withval="$with_gnu_ld"
2603 test "$withval" = no || with_gnu_ld=yes
2604 else
2605 with_gnu_ld=no
2608 ac_prog=ld
2609 if test "$ac_cv_prog_gcc" = yes; then
2610 # Check if gcc -print-prog-name=ld gives a path.
2611 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2612 echo "configure:2613: checking for ld used by GCC" >&5
2613 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2614 case "$ac_prog" in
2615 # Accept absolute paths.
2616 [\\/]* | [A-Za-z]:[\\/]*)
2617 re_direlt='/[^/][^/]*/\.\./'
2618 # Canonicalize the path of ld
2619 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2620 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2621 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2622 done
2623 test -z "$LD" && LD="$ac_prog"
2626 # If it fails, then pretend we aren't using GCC.
2627 ac_prog=ld
2630 # If it is relative, then search for the first ld in PATH.
2631 with_gnu_ld=unknown
2633 esac
2634 elif test "$with_gnu_ld" = yes; then
2635 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2636 echo "configure:2637: checking for GNU ld" >&5
2637 else
2638 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2639 echo "configure:2640: checking for non-GNU ld" >&5
2641 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2643 else
2644 if test -z "$LD"; then
2645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2646 for ac_dir in $PATH; do
2647 test -z "$ac_dir" && ac_dir=.
2648 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2649 ac_cv_path_LD="$ac_dir/$ac_prog"
2650 # Check to see if the program is GNU ld. I'd rather use --version,
2651 # but apparently some GNU ld's only accept -v.
2652 # Break only if it was the GNU/non-GNU ld that we prefer.
2653 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2654 test "$with_gnu_ld" != no && break
2655 else
2656 test "$with_gnu_ld" != yes && break
2659 done
2660 IFS="$ac_save_ifs"
2661 else
2662 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2666 LD="$ac_cv_path_LD"
2667 if test -n "$LD"; then
2668 echo "$ac_t""$LD" 1>&6
2669 else
2670 echo "$ac_t""no" 1>&6
2672 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2673 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2674 echo "configure:2675: checking if the linker ($LD) is GNU ld" >&5
2675 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2677 else
2678 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2679 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2680 ac_cv_prog_gnu_ld=yes
2681 else
2682 ac_cv_prog_gnu_ld=no
2686 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2689 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2690 echo "configure:2691: checking for BSD-compatible nm" >&5
2691 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
2692 echo $ac_n "(cached) $ac_c" 1>&6
2693 else
2694 if test -n "$NM"; then
2695 # Let the user override the test.
2696 ac_cv_path_NM="$NM"
2697 else
2698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2699 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2700 test -z "$ac_dir" && ac_dir=.
2701 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2702 # Check to see if the nm accepts a BSD-compat flag.
2703 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2704 # nm: unknown option "B" ignored
2705 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2706 ac_cv_path_NM="$ac_dir/nm -B"
2707 break
2708 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2709 ac_cv_path_NM="$ac_dir/nm -p"
2710 break
2711 else
2712 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2713 continue # so that we can try to find one that supports BSD flags
2716 done
2717 IFS="$ac_save_ifs"
2718 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2722 NM="$ac_cv_path_NM"
2723 echo "$ac_t""$NM" 1>&6
2725 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2726 echo "configure:2727: checking whether ln -s works" >&5
2727 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2729 else
2730 rm -f conftestdata
2731 if ln -s X conftestdata 2>/dev/null
2732 then
2733 rm -f conftestdata
2734 ac_cv_prog_LN_S="ln -s"
2735 else
2736 ac_cv_prog_LN_S=ln
2739 LN_S="$ac_cv_prog_LN_S"
2740 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2741 echo "$ac_t""yes" 1>&6
2742 else
2743 echo "$ac_t""no" 1>&6
2747 case "$target" in
2748 NONE) lt_target="$host" ;;
2749 *) lt_target="$target" ;;
2750 esac
2752 # Check for any special flags to pass to ltconfig.
2753 libtool_flags="--cache-file=$cache_file"
2754 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2755 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2756 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2757 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2758 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2761 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2762 if test "${enable_libtool_lock+set}" = set; then
2763 enableval="$enable_libtool_lock"
2767 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2768 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2770 # Some flags need to be propagated to the compiler or linker for good
2771 # libtool support.
2772 case "$lt_target" in
2773 *-*-irix6*)
2774 # Find out which ABI we are using.
2775 echo '#line 2776 "configure"' > conftest.$ac_ext
2776 if { (eval echo configure:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2777 case "`/usr/bin/file conftest.o`" in
2778 *32-bit*)
2779 LD="${LD-ld} -32"
2781 *N32*)
2782 LD="${LD-ld} -n32"
2784 *64-bit*)
2785 LD="${LD-ld} -64"
2787 esac
2789 rm -rf conftest*
2792 *-*-sco3.2v5*)
2793 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2794 SAVE_CFLAGS="$CFLAGS"
2795 CFLAGS="$CFLAGS -belf"
2796 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2797 echo "configure:2798: checking whether the C compiler needs -belf" >&5
2798 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2799 echo $ac_n "(cached) $ac_c" 1>&6
2800 else
2801 cat > conftest.$ac_ext <<EOF
2802 #line 2803 "configure"
2803 #include "confdefs.h"
2805 int main() {
2807 ; return 0; }
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2810 rm -rf conftest*
2811 lt_cv_cc_needs_belf=yes
2812 else
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2815 rm -rf conftest*
2816 lt_cv_cc_needs_belf=no
2818 rm -f conftest*
2821 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2822 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2823 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2824 CFLAGS="$SAVE_CFLAGS"
2829 esac
2832 # Save cache, so that ltconfig can load it
2833 cat > confcache <<\EOF
2834 # This file is a shell script that caches the results of configure
2835 # tests run on this system so they can be shared between configure
2836 # scripts and configure runs. It is not useful on other systems.
2837 # If it contains results you don't want to keep, you may remove or edit it.
2839 # By default, configure uses ./config.cache as the cache file,
2840 # creating it if it does not exist already. You can give configure
2841 # the --cache-file=FILE option to use a different cache file; that is
2842 # what configure does when it calls configure scripts in
2843 # subdirectories, so they share the cache.
2844 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2845 # config.status only pays attention to the cache file if you give it the
2846 # --recheck option to rerun configure.
2849 # The following way of writing the cache mishandles newlines in values,
2850 # but we know of no workaround that is simple, portable, and efficient.
2851 # So, don't put newlines in cache variables' values.
2852 # Ultrix sh set writes to stderr and can't be redirected directly,
2853 # and sets the high bit in the cache file unless we assign to the vars.
2854 (set) 2>&1 |
2855 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2856 *ac_space=\ *)
2857 # `set' does not quote correctly, so add quotes (double-quote substitution
2858 # turns \\\\ into \\, and sed turns \\ into \).
2859 sed -n \
2860 -e "s/'/'\\\\''/g" \
2861 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2864 # `set' quotes correctly as required by POSIX, so do not add quotes.
2865 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2867 esac >> confcache
2868 if cmp -s $cache_file confcache; then
2870 else
2871 if test -w $cache_file; then
2872 echo "updating cache $cache_file"
2873 cat confcache > $cache_file
2874 else
2875 echo "not updating unwritable cache $cache_file"
2878 rm -f confcache
2881 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2882 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2883 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2884 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
2885 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
2886 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2887 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
2888 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2890 # Reload cache, that may have been modified by ltconfig
2891 if test -r "$cache_file"; then
2892 echo "loading cache $cache_file"
2893 . $cache_file
2894 else
2895 echo "creating cache $cache_file"
2896 > $cache_file
2900 # This can be used to rebuild libtool when needed
2901 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2903 # Always use our own libtool.
2904 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2906 # Redirect the config.log output again, so that the ltconfig log is not
2907 # clobbered by the next message.
2908 exec 5>>./config.log
2912 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2913 echo "configure:2914: checking return type of signal handlers" >&5
2914 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2916 else
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 #include <sys/types.h>
2921 #include <signal.h>
2922 #ifdef signal
2923 #undef signal
2924 #endif
2925 #ifdef __cplusplus
2926 extern "C" void (*signal (int, void (*)(int)))(int);
2927 #else
2928 void (*signal ()) ();
2929 #endif
2931 int main() {
2932 int i;
2933 ; return 0; }
2935 if { (eval echo configure:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2936 rm -rf conftest*
2937 ac_cv_type_signal=void
2938 else
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2941 rm -rf conftest*
2942 ac_cv_type_signal=int
2944 rm -f conftest*
2947 echo "$ac_t""$ac_cv_type_signal" 1>&6
2948 cat >> confdefs.h <<EOF
2949 #define RETSIGTYPE $ac_cv_type_signal
2953 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2954 echo "configure:2955: checking for uid_t in sys/types.h" >&5
2955 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2957 else
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <sys/types.h>
2963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2964 egrep "uid_t" >/dev/null 2>&1; then
2965 rm -rf conftest*
2966 ac_cv_type_uid_t=yes
2967 else
2968 rm -rf conftest*
2969 ac_cv_type_uid_t=no
2971 rm -f conftest*
2975 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2976 if test $ac_cv_type_uid_t = no; then
2977 cat >> confdefs.h <<\EOF
2978 #define uid_t int
2981 cat >> confdefs.h <<\EOF
2982 #define gid_t int
2987 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2988 echo "configure:2989: checking for mode_t" >&5
2989 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2991 else
2992 cat > conftest.$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2995 #include <sys/types.h>
2996 #if STDC_HEADERS
2997 #include <stdlib.h>
2998 #include <stddef.h>
2999 #endif
3001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3002 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3003 rm -rf conftest*
3004 ac_cv_type_mode_t=yes
3005 else
3006 rm -rf conftest*
3007 ac_cv_type_mode_t=no
3009 rm -f conftest*
3012 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3013 if test $ac_cv_type_mode_t = no; then
3014 cat >> confdefs.h <<\EOF
3015 #define mode_t int
3020 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3021 echo "configure:3022: checking for off_t" >&5
3022 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3028 #include <sys/types.h>
3029 #if STDC_HEADERS
3030 #include <stdlib.h>
3031 #include <stddef.h>
3032 #endif
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3036 rm -rf conftest*
3037 ac_cv_type_off_t=yes
3038 else
3039 rm -rf conftest*
3040 ac_cv_type_off_t=no
3042 rm -f conftest*
3045 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3046 if test $ac_cv_type_off_t = no; then
3047 cat >> confdefs.h <<\EOF
3048 #define off_t long
3053 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3054 echo "configure:3055: checking for size_t" >&5
3055 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 cat > conftest.$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3061 #include <sys/types.h>
3062 #if STDC_HEADERS
3063 #include <stdlib.h>
3064 #include <stddef.h>
3065 #endif
3067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3069 rm -rf conftest*
3070 ac_cv_type_size_t=yes
3071 else
3072 rm -rf conftest*
3073 ac_cv_type_size_t=no
3075 rm -f conftest*
3078 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3079 if test $ac_cv_type_size_t = no; then
3080 cat >> confdefs.h <<\EOF
3081 #define size_t unsigned
3086 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3087 echo "configure:3088: checking for pid_t" >&5
3088 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3090 else
3091 cat > conftest.$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <sys/types.h>
3095 #if STDC_HEADERS
3096 #include <stdlib.h>
3097 #include <stddef.h>
3098 #endif
3100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3102 rm -rf conftest*
3103 ac_cv_type_pid_t=yes
3104 else
3105 rm -rf conftest*
3106 ac_cv_type_pid_t=no
3108 rm -f conftest*
3111 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3112 if test $ac_cv_type_pid_t = no; then
3113 cat >> confdefs.h <<\EOF
3114 #define pid_t int
3119 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3120 echo "configure:3121: checking for st_rdev in struct stat" >&5
3121 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3122 echo $ac_n "(cached) $ac_c" 1>&6
3123 else
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 #include <sys/types.h>
3128 #include <sys/stat.h>
3129 int main() {
3130 struct stat s; s.st_rdev;
3131 ; return 0; }
3133 if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3134 rm -rf conftest*
3135 ac_cv_struct_st_rdev=yes
3136 else
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3139 rm -rf conftest*
3140 ac_cv_struct_st_rdev=no
3142 rm -f conftest*
3145 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3146 if test $ac_cv_struct_st_rdev = yes; then
3147 cat >> confdefs.h <<\EOF
3148 #define HAVE_ST_RDEV 1
3153 echo $ac_n "checking for d_off in dirent""... $ac_c" 1>&6
3154 echo "configure:3155: checking for d_off in dirent" >&5
3155 if eval "test \"`echo '$''{'ac_cv_dirent_d_off'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3162 #include <unistd.h>
3163 #include <sys/types.h>
3164 #include <dirent.h>
3165 int main() {
3166 struct dirent d; d.d_off;
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 rm -rf conftest*
3171 ac_cv_dirent_d_off=yes
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -rf conftest*
3176 ac_cv_dirent_d_off=no
3178 rm -f conftest*
3181 echo "$ac_t""$ac_cv_dirent_d_off" 1>&6
3182 if test $ac_cv_dirent_d_off = yes; then
3183 cat >> confdefs.h <<\EOF
3184 #define HAVE_DIRENT_D_OFF 1
3189 echo $ac_n "checking for ino_t""... $ac_c" 1>&6
3190 echo "configure:3191: checking for ino_t" >&5
3191 if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3193 else
3194 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <sys/types.h>
3198 #if STDC_HEADERS
3199 #include <stdlib.h>
3200 #include <stddef.h>
3201 #endif
3203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3205 rm -rf conftest*
3206 ac_cv_type_ino_t=yes
3207 else
3208 rm -rf conftest*
3209 ac_cv_type_ino_t=no
3211 rm -f conftest*
3214 echo "$ac_t""$ac_cv_type_ino_t" 1>&6
3215 if test $ac_cv_type_ino_t = no; then
3216 cat >> confdefs.h <<\EOF
3217 #define ino_t unsigned
3222 echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3223 echo "configure:3224: checking for loff_t" >&5
3224 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3226 else
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3230 #include <sys/types.h>
3231 #if STDC_HEADERS
3232 #include <stdlib.h>
3233 #include <stddef.h>
3234 #endif
3236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3237 egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3238 rm -rf conftest*
3239 ac_cv_type_loff_t=yes
3240 else
3241 rm -rf conftest*
3242 ac_cv_type_loff_t=no
3244 rm -f conftest*
3247 echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3248 if test $ac_cv_type_loff_t = no; then
3249 cat >> confdefs.h <<\EOF
3250 #define loff_t off_t
3255 echo $ac_n "checking for offset_t""... $ac_c" 1>&6
3256 echo "configure:3257: checking for offset_t" >&5
3257 if eval "test \"`echo '$''{'ac_cv_type_offset_t'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3259 else
3260 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure"
3262 #include "confdefs.h"
3263 #include <sys/types.h>
3264 #if STDC_HEADERS
3265 #include <stdlib.h>
3266 #include <stddef.h>
3267 #endif
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 egrep "(^|[^a-zA-Z_0-9])offset_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3271 rm -rf conftest*
3272 ac_cv_type_offset_t=yes
3273 else
3274 rm -rf conftest*
3275 ac_cv_type_offset_t=no
3277 rm -f conftest*
3280 echo "$ac_t""$ac_cv_type_offset_t" 1>&6
3281 if test $ac_cv_type_offset_t = no; then
3282 cat >> confdefs.h <<\EOF
3283 #define offset_t loff_t
3288 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3289 echo "configure:3290: checking for ssize_t" >&5
3290 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6
3292 else
3293 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3297 #if STDC_HEADERS
3298 #include <stdlib.h>
3299 #include <stddef.h>
3300 #endif
3302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3303 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3304 rm -rf conftest*
3305 ac_cv_type_ssize_t=yes
3306 else
3307 rm -rf conftest*
3308 ac_cv_type_ssize_t=no
3310 rm -f conftest*
3313 echo "$ac_t""$ac_cv_type_ssize_t" 1>&6
3314 if test $ac_cv_type_ssize_t = no; then
3315 cat >> confdefs.h <<\EOF
3316 #define ssize_t int
3322 echo $ac_n "checking for errno in errno.h""... $ac_c" 1>&6
3323 echo "configure:3324: checking for errno in errno.h" >&5
3324 if eval "test \"`echo '$''{'samba_cv_errno'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3326 else
3328 cat > conftest.$ac_ext <<EOF
3329 #line 3330 "configure"
3330 #include "confdefs.h"
3331 #include <errno.h>
3332 int main() {
3333 int i = errno
3334 ; return 0; }
3336 if { (eval echo configure:3337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3337 rm -rf conftest*
3338 samba_cv_errno=yes
3339 else
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3342 rm -rf conftest*
3343 samba_cv_have_errno_decl=no
3345 rm -f conftest*
3348 echo "$ac_t""$samba_cv_errno" 1>&6
3349 if test x"$samba_cv_errno" = x"yes"; then
3350 cat >> confdefs.h <<\EOF
3351 #define HAVE_ERRNO_DECL 1
3356 # stupid glibc has the functions but no declaration. grrrr.
3357 echo $ac_n "checking for setresuid declaration""... $ac_c" 1>&6
3358 echo "configure:3359: checking for setresuid declaration" >&5
3359 if eval "test \"`echo '$''{'samba_cv_have_setresuid_decl'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361 else
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <unistd.h>
3367 int main() {
3368 int i = (int)setresuid
3369 ; return 0; }
3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3372 rm -rf conftest*
3373 samba_cv_have_setresuid_decl=yes
3374 else
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 rm -rf conftest*
3378 samba_cv_have_setresuid_decl=no
3380 rm -f conftest*
3383 echo "$ac_t""$samba_cv_have_setresuid_decl" 1>&6
3384 if test x"$samba_cv_have_setresuid_decl" = x"yes"; then
3385 cat >> confdefs.h <<\EOF
3386 #define HAVE_SETRESUID_DECL 1
3391 # stupid glibc has the functions but no declaration. grrrr.
3392 echo $ac_n "checking for crypt declaration""... $ac_c" 1>&6
3393 echo "configure:3394: checking for crypt declaration" >&5
3394 if eval "test \"`echo '$''{'samba_cv_have_crypt_decl'+set}'`\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3396 else
3398 cat > conftest.$ac_ext <<EOF
3399 #line 3400 "configure"
3400 #include "confdefs.h"
3401 #include <unistd.h>
3402 int main() {
3403 int i = (int)crypt
3404 ; return 0; }
3406 if { (eval echo configure:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3407 rm -rf conftest*
3408 samba_cv_have_crypt_decl=yes
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 samba_cv_have_crypt_decl=no
3415 rm -f conftest*
3418 echo "$ac_t""$samba_cv_have_crypt_decl" 1>&6
3419 if test x"$samba_cv_have_crypt_decl" = x"yes"; then
3420 cat >> confdefs.h <<\EOF
3421 #define HAVE_CRYPT_DECL 1
3426 # and glibc has setresuid under linux but the function does
3427 # nothing until kernel 2.1.44! very dumb.
3428 echo $ac_n "checking for real setresuid""... $ac_c" 1>&6
3429 echo "configure:3430: checking for real setresuid" >&5
3430 if eval "test \"`echo '$''{'samba_cv_have_setresuid'+set}'`\" = set"; then
3431 echo $ac_n "(cached) $ac_c" 1>&6
3432 else
3434 if test "$cross_compiling" = yes; then
3435 samba_cv_have_setresuid=cross
3436 else
3437 cat > conftest.$ac_ext <<EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3440 #include <errno.h>
3441 main() { setresuid(1,1,1); setresuid(2,2,2); exit(errno==EPERM?0:1);}
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3444 then
3445 samba_cv_have_setresuid=yes
3446 else
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3449 rm -fr conftest*
3450 samba_cv_have_setresuid=no
3452 rm -fr conftest*
3457 echo "$ac_t""$samba_cv_have_setresuid" 1>&6
3458 if test x"$samba_cv_have_setresuid" = x"yes"; then
3459 cat >> confdefs.h <<\EOF
3460 #define HAVE_SETRESUID 1
3465 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3466 echo "configure:3467: checking for 8-bit clean memcmp" >&5
3467 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3469 else
3470 if test "$cross_compiling" = yes; then
3471 ac_cv_func_memcmp_clean=no
3472 else
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3477 main()
3479 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3480 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3484 if { (eval echo configure:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3485 then
3486 ac_cv_func_memcmp_clean=yes
3487 else
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3490 rm -fr conftest*
3491 ac_cv_func_memcmp_clean=no
3493 rm -fr conftest*
3498 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3499 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3502 ###############################################
3503 # test for where we get crypt() from
3504 for ac_func in crypt
3506 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3507 echo "configure:3508: checking for $ac_func" >&5
3508 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3509 echo $ac_n "(cached) $ac_c" 1>&6
3510 else
3511 cat > conftest.$ac_ext <<EOF
3512 #line 3513 "configure"
3513 #include "confdefs.h"
3514 /* System header to define __stub macros and hopefully few prototypes,
3515 which can conflict with char $ac_func(); below. */
3516 #include <assert.h>
3517 /* Override any gcc2 internal prototype to avoid an error. */
3518 /* We use char because int might match the return type of a gcc2
3519 builtin and then its argument prototype would still apply. */
3520 char $ac_func();
3522 int main() {
3524 /* The GNU C library defines this for functions which it implements
3525 to always fail with ENOSYS. Some functions are actually named
3526 something starting with __ and the normal name is an alias. */
3527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3528 choke me
3529 #else
3530 $ac_func();
3531 #endif
3533 ; return 0; }
3535 if { (eval echo configure:3536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536 rm -rf conftest*
3537 eval "ac_cv_func_$ac_func=yes"
3538 else
3539 echo "configure: failed program was:" >&5
3540 cat conftest.$ac_ext >&5
3541 rm -rf conftest*
3542 eval "ac_cv_func_$ac_func=no"
3544 rm -f conftest*
3547 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3550 cat >> confdefs.h <<EOF
3551 #define $ac_tr_func 1
3554 else
3555 echo "$ac_t""no" 1>&6
3557 done
3559 if test x"$ac_cv_func_crypt" = x"no"; then
3560 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3561 echo "configure:3562: checking for crypt in -lcrypt" >&5
3562 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3563 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3565 else
3566 ac_save_LIBS="$LIBS"
3567 LIBS="-lcrypt $LIBS"
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* Override any gcc2 internal prototype to avoid an error. */
3572 /* We use char because int might match the return type of a gcc2
3573 builtin and then its argument prototype would still apply. */
3574 char crypt();
3576 int main() {
3577 crypt()
3578 ; return 0; }
3580 if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581 rm -rf conftest*
3582 eval "ac_cv_lib_$ac_lib_var=yes"
3583 else
3584 echo "configure: failed program was:" >&5
3585 cat conftest.$ac_ext >&5
3586 rm -rf conftest*
3587 eval "ac_cv_lib_$ac_lib_var=no"
3589 rm -f conftest*
3590 LIBS="$ac_save_LIBS"
3593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 LIBS="$LIBS -lcrypt";
3596 cat >> confdefs.h <<\EOF
3597 #define HAVE_CRYPT 1
3600 else
3601 echo "$ac_t""no" 1>&6
3607 ###############################################
3608 # test for where we get pam_authenticate() from
3609 # might need libdl for this to work
3610 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
3611 echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
3612 echo "configure:3613: checking for main in -ldl" >&5
3613 ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
3614 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 ac_save_LIBS="$LIBS"
3618 LIBS="-ldl $LIBS"
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3623 int main() {
3624 main()
3625 ; return 0; }
3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3628 rm -rf conftest*
3629 eval "ac_cv_lib_$ac_lib_var=yes"
3630 else
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 eval "ac_cv_lib_$ac_lib_var=no"
3636 rm -f conftest*
3637 LIBS="$ac_save_LIBS"
3640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3641 echo "$ac_t""yes" 1>&6
3642 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3644 cat >> confdefs.h <<EOF
3645 #define $ac_tr_lib 1
3648 LIBS="-ldl $LIBS"
3650 else
3651 echo "$ac_t""no" 1>&6
3655 for ac_func in pam_authenticate
3657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3658 echo "configure:3659: checking for $ac_func" >&5
3659 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3661 else
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* System header to define __stub macros and hopefully few prototypes,
3666 which can conflict with char $ac_func(); below. */
3667 #include <assert.h>
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3671 char $ac_func();
3673 int main() {
3675 /* The GNU C library defines this for functions which it implements
3676 to always fail with ENOSYS. Some functions are actually named
3677 something starting with __ and the normal name is an alias. */
3678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3679 choke me
3680 #else
3681 $ac_func();
3682 #endif
3684 ; return 0; }
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3687 rm -rf conftest*
3688 eval "ac_cv_func_$ac_func=yes"
3689 else
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3692 rm -rf conftest*
3693 eval "ac_cv_func_$ac_func=no"
3695 rm -f conftest*
3698 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3701 cat >> confdefs.h <<EOF
3702 #define $ac_tr_func 1
3705 else
3706 echo "$ac_t""no" 1>&6
3708 done
3710 if test x"$ac_cv_func_pam_authenticate" = x"no"; then
3711 echo $ac_n "checking for pam_authenticate in -lpam""... $ac_c" 1>&6
3712 echo "configure:3713: checking for pam_authenticate in -lpam" >&5
3713 ac_lib_var=`echo pam'_'pam_authenticate | 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="-lpam $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 pam_authenticate();
3727 int main() {
3728 pam_authenticate()
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 -lpam"
3747 cat >> confdefs.h <<\EOF
3748 #define HAVE_PAM_AUTHENTICATE 1
3751 else
3752 echo "$ac_t""no" 1>&6
3757 ###############################################
3758 # readline requires some curses routines
3759 if test "$ac_cv_header_readline_h" = "yes" ||
3760 test "$ac_cv_header_readline_readline_h" = "yes"; then
3761 for ac_func in tputs
3763 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3764 echo "configure:3765: checking for $ac_func" >&5
3765 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3766 echo $ac_n "(cached) $ac_c" 1>&6
3767 else
3768 cat > conftest.$ac_ext <<EOF
3769 #line 3770 "configure"
3770 #include "confdefs.h"
3771 /* System header to define __stub macros and hopefully few prototypes,
3772 which can conflict with char $ac_func(); below. */
3773 #include <assert.h>
3774 /* Override any gcc2 internal prototype to avoid an error. */
3775 /* We use char because int might match the return type of a gcc2
3776 builtin and then its argument prototype would still apply. */
3777 char $ac_func();
3779 int main() {
3781 /* The GNU C library defines this for functions which it implements
3782 to always fail with ENOSYS. Some functions are actually named
3783 something starting with __ and the normal name is an alias. */
3784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3785 choke me
3786 #else
3787 $ac_func();
3788 #endif
3790 ; return 0; }
3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3793 rm -rf conftest*
3794 eval "ac_cv_func_$ac_func=yes"
3795 else
3796 echo "configure: failed program was:" >&5
3797 cat conftest.$ac_ext >&5
3798 rm -rf conftest*
3799 eval "ac_cv_func_$ac_func=no"
3801 rm -f conftest*
3804 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3807 cat >> confdefs.h <<EOF
3808 #define $ac_tr_func 1
3811 else
3812 echo "$ac_t""no" 1>&6
3814 done
3816 echo $ac_n "checking for tputs in -lcurses""... $ac_c" 1>&6
3817 echo "configure:3818: checking for tputs in -lcurses" >&5
3818 ac_lib_var=`echo curses'_'tputs | sed 'y%./+-%__p_%'`
3819 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3820 echo $ac_n "(cached) $ac_c" 1>&6
3821 else
3822 ac_save_LIBS="$LIBS"
3823 LIBS="-lcurses $LIBS"
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 /* Override any gcc2 internal prototype to avoid an error. */
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3830 char tputs();
3832 int main() {
3833 tputs()
3834 ; return 0; }
3836 if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3837 rm -rf conftest*
3838 eval "ac_cv_lib_$ac_lib_var=yes"
3839 else
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3842 rm -rf conftest*
3843 eval "ac_cv_lib_$ac_lib_var=no"
3845 rm -f conftest*
3846 LIBS="$ac_save_LIBS"
3849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3850 echo "$ac_t""yes" 1>&6
3851 LIBS="$LIBS -lcurses"
3852 else
3853 echo "$ac_t""no" 1>&6
3856 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
3857 echo "configure:3858: checking for readline in -lreadline" >&5
3858 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3861 else
3862 ac_save_LIBS="$LIBS"
3863 LIBS="-lreadline $LIBS"
3864 cat > conftest.$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3870 char readline();
3872 int main() {
3873 readline()
3874 ; return 0; }
3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3877 rm -rf conftest*
3878 eval "ac_cv_lib_$ac_lib_var=yes"
3879 else
3880 echo "configure: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 rm -rf conftest*
3883 eval "ac_cv_lib_$ac_lib_var=no"
3885 rm -f conftest*
3886 LIBS="$ac_save_LIBS"
3889 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3890 echo "$ac_t""yes" 1>&6
3891 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3892 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3893 cat >> confdefs.h <<EOF
3894 #define $ac_tr_lib 1
3897 LIBS="-lreadline $LIBS"
3899 else
3900 echo "$ac_t""no" 1>&6
3903 echo $ac_n "checking for filename_completion_function proto""... $ac_c" 1>&6
3904 echo "configure:3905: checking for filename_completion_function proto" >&5
3905 if eval "test \"`echo '$''{'samba_cv_have_fcf_proto'+set}'`\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3907 else
3909 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure"
3911 #include "confdefs.h"
3912 #include <stdio.h>
3913 #ifdef HAVE_READLINE_H
3914 #include <readline.h>
3915 #else
3916 #include <readline/readline.h>
3917 #endif
3918 int main() {
3919 filename_completion_function
3920 ; return 0; }
3922 if { (eval echo configure:3923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3923 rm -rf conftest*
3924 samba_cv_have_fcf_proto=yes
3925 else
3926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -rf conftest*
3929 samba_cv_have_fcf_proto=no
3931 rm -f conftest*
3934 echo "$ac_t""$samba_cv_have_fcf_proto" 1>&6
3935 if test x"$samba_cv_have_fcf_proto" = x"yes"; then
3936 cat >> confdefs.h <<\EOF
3937 #define HAVE_READLINE_FCF_PROTO 1
3943 # The following test taken from the cvs sources
3944 # If we can't find connect, try looking in -lsocket, -lnsl, and -linet.
3945 # The Irix 5 libc.so has connect and gethostbyname, but Irix 5 also has
3946 # libsocket.so which has a bad implementation of gethostbyname (it
3947 # only looks in /etc/hosts), so we only look for -lsocket if we need
3948 # it.
3949 for ac_func in connect
3951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3952 echo "configure:3953: checking for $ac_func" >&5
3953 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3955 else
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure"
3958 #include "confdefs.h"
3959 /* System header to define __stub macros and hopefully few prototypes,
3960 which can conflict with char $ac_func(); below. */
3961 #include <assert.h>
3962 /* Override any gcc2 internal prototype to avoid an error. */
3963 /* We use char because int might match the return type of a gcc2
3964 builtin and then its argument prototype would still apply. */
3965 char $ac_func();
3967 int main() {
3969 /* The GNU C library defines this for functions which it implements
3970 to always fail with ENOSYS. Some functions are actually named
3971 something starting with __ and the normal name is an alias. */
3972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3973 choke me
3974 #else
3975 $ac_func();
3976 #endif
3978 ; return 0; }
3980 if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 rm -rf conftest*
3982 eval "ac_cv_func_$ac_func=yes"
3983 else
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 rm -rf conftest*
3987 eval "ac_cv_func_$ac_func=no"
3989 rm -f conftest*
3992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3993 echo "$ac_t""yes" 1>&6
3994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3995 cat >> confdefs.h <<EOF
3996 #define $ac_tr_func 1
3999 else
4000 echo "$ac_t""no" 1>&6
4002 done
4004 if test x"$ac_cv_func_connect" = x"no"; then
4005 case "$LIBS" in
4006 *-lnsl*) ;;
4007 *) echo $ac_n "checking for printf in -lnsl_s""... $ac_c" 1>&6
4008 echo "configure:4009: checking for printf in -lnsl_s" >&5
4009 ac_lib_var=`echo nsl_s'_'printf | sed 'y%./+-%__p_%'`
4010 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4012 else
4013 ac_save_LIBS="$LIBS"
4014 LIBS="-lnsl_s $LIBS"
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4021 char printf();
4023 int main() {
4024 printf()
4025 ; return 0; }
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 rm -rf conftest*
4029 eval "ac_cv_lib_$ac_lib_var=yes"
4030 else
4031 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5
4033 rm -rf conftest*
4034 eval "ac_cv_lib_$ac_lib_var=no"
4036 rm -f conftest*
4037 LIBS="$ac_save_LIBS"
4040 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4041 echo "$ac_t""yes" 1>&6
4042 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4043 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4044 cat >> confdefs.h <<EOF
4045 #define $ac_tr_lib 1
4048 LIBS="-lnsl_s $LIBS"
4050 else
4051 echo "$ac_t""no" 1>&6
4054 esac
4055 case "$LIBS" in
4056 *-lnsl*) ;;
4057 *) echo $ac_n "checking for printf in -lnsl""... $ac_c" 1>&6
4058 echo "configure:4059: checking for printf in -lnsl" >&5
4059 ac_lib_var=`echo nsl'_'printf | sed 'y%./+-%__p_%'`
4060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4061 echo $ac_n "(cached) $ac_c" 1>&6
4062 else
4063 ac_save_LIBS="$LIBS"
4064 LIBS="-lnsl $LIBS"
4065 cat > conftest.$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 /* Override any gcc2 internal prototype to avoid an error. */
4069 /* We use char because int might match the return type of a gcc2
4070 builtin and then its argument prototype would still apply. */
4071 char printf();
4073 int main() {
4074 printf()
4075 ; return 0; }
4077 if { (eval echo configure:4078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4078 rm -rf conftest*
4079 eval "ac_cv_lib_$ac_lib_var=yes"
4080 else
4081 echo "configure: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 rm -rf conftest*
4084 eval "ac_cv_lib_$ac_lib_var=no"
4086 rm -f conftest*
4087 LIBS="$ac_save_LIBS"
4090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4091 echo "$ac_t""yes" 1>&6
4092 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4094 cat >> confdefs.h <<EOF
4095 #define $ac_tr_lib 1
4098 LIBS="-lnsl $LIBS"
4100 else
4101 echo "$ac_t""no" 1>&6
4104 esac
4105 case "$LIBS" in
4106 *-lsocket*) ;;
4107 *) echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4108 echo "configure:4109: checking for connect in -lsocket" >&5
4109 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4110 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4111 echo $ac_n "(cached) $ac_c" 1>&6
4112 else
4113 ac_save_LIBS="$LIBS"
4114 LIBS="-lsocket $LIBS"
4115 cat > conftest.$ac_ext <<EOF
4116 #line 4117 "configure"
4117 #include "confdefs.h"
4118 /* Override any gcc2 internal prototype to avoid an error. */
4119 /* We use char because int might match the return type of a gcc2
4120 builtin and then its argument prototype would still apply. */
4121 char connect();
4123 int main() {
4124 connect()
4125 ; return 0; }
4127 if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4128 rm -rf conftest*
4129 eval "ac_cv_lib_$ac_lib_var=yes"
4130 else
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 rm -rf conftest*
4134 eval "ac_cv_lib_$ac_lib_var=no"
4136 rm -f conftest*
4137 LIBS="$ac_save_LIBS"
4140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4141 echo "$ac_t""yes" 1>&6
4142 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4144 cat >> confdefs.h <<EOF
4145 #define $ac_tr_lib 1
4148 LIBS="-lsocket $LIBS"
4150 else
4151 echo "$ac_t""no" 1>&6
4154 esac
4155 case "$LIBS" in
4156 *-linet*) ;;
4157 *) echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
4158 echo "configure:4159: checking for connect in -linet" >&5
4159 ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
4160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4162 else
4163 ac_save_LIBS="$LIBS"
4164 LIBS="-linet $LIBS"
4165 cat > conftest.$ac_ext <<EOF
4166 #line 4167 "configure"
4167 #include "confdefs.h"
4168 /* Override any gcc2 internal prototype to avoid an error. */
4169 /* We use char because int might match the return type of a gcc2
4170 builtin and then its argument prototype would still apply. */
4171 char connect();
4173 int main() {
4174 connect()
4175 ; return 0; }
4177 if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4178 rm -rf conftest*
4179 eval "ac_cv_lib_$ac_lib_var=yes"
4180 else
4181 echo "configure: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4183 rm -rf conftest*
4184 eval "ac_cv_lib_$ac_lib_var=no"
4186 rm -f conftest*
4187 LIBS="$ac_save_LIBS"
4190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4191 echo "$ac_t""yes" 1>&6
4192 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4193 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4194 cat >> confdefs.h <<EOF
4195 #define $ac_tr_lib 1
4198 LIBS="-linet $LIBS"
4200 else
4201 echo "$ac_t""no" 1>&6
4204 esac
4205 if test x"$ac_cv_lib_socket_connect" = x"yes" ||
4206 test x"$ac_cv_lib_inet_connect" = x"yes"; then
4207 # ac_cv_func_connect=yes
4208 # don't! it would cause AC_CHECK_FUNC to succeed next time configure is run
4209 cat >> confdefs.h <<\EOF
4210 #define HAVE_CONNECT 1
4217 for ac_func in waitpid getcwd strdup strtoul strerror chown chmod chroot
4219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4220 echo "configure:4221: checking for $ac_func" >&5
4221 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4223 else
4224 cat > conftest.$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 /* System header to define __stub macros and hopefully few prototypes,
4228 which can conflict with char $ac_func(); below. */
4229 #include <assert.h>
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 /* We use char because int might match the return type of a gcc2
4232 builtin and then its argument prototype would still apply. */
4233 char $ac_func();
4235 int main() {
4237 /* The GNU C library defines this for functions which it implements
4238 to always fail with ENOSYS. Some functions are actually named
4239 something starting with __ and the normal name is an alias. */
4240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4241 choke me
4242 #else
4243 $ac_func();
4244 #endif
4246 ; return 0; }
4248 if { (eval echo configure:4249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 rm -rf conftest*
4250 eval "ac_cv_func_$ac_func=yes"
4251 else
4252 echo "configure: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 rm -rf conftest*
4255 eval "ac_cv_func_$ac_func=no"
4257 rm -f conftest*
4260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4263 cat >> confdefs.h <<EOF
4264 #define $ac_tr_func 1
4267 else
4268 echo "$ac_t""no" 1>&6
4270 done
4272 for ac_func in fstat strchr utime utimes getrlimit fsync execl bzero memset
4274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4275 echo "configure:4276: checking for $ac_func" >&5
4276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4278 else
4279 cat > conftest.$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 /* System header to define __stub macros and hopefully few prototypes,
4283 which can conflict with char $ac_func(); below. */
4284 #include <assert.h>
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4288 char $ac_func();
4290 int main() {
4292 /* The GNU C library defines this for functions which it implements
4293 to always fail with ENOSYS. Some functions are actually named
4294 something starting with __ and the normal name is an alias. */
4295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4296 choke me
4297 #else
4298 $ac_func();
4299 #endif
4301 ; return 0; }
4303 if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4304 rm -rf conftest*
4305 eval "ac_cv_func_$ac_func=yes"
4306 else
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 rm -rf conftest*
4310 eval "ac_cv_func_$ac_func=no"
4312 rm -f conftest*
4315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6
4317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4318 cat >> confdefs.h <<EOF
4319 #define $ac_tr_func 1
4322 else
4323 echo "$ac_t""no" 1>&6
4325 done
4327 for ac_func in memmove vsnprintf snprintf setsid glob strpbrk pipe crypt16 getauthuid
4329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4330 echo "configure:4331: checking for $ac_func" >&5
4331 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4333 else
4334 cat > conftest.$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4337 /* System header to define __stub macros and hopefully few prototypes,
4338 which can conflict with char $ac_func(); below. */
4339 #include <assert.h>
4340 /* Override any gcc2 internal prototype to avoid an error. */
4341 /* We use char because int might match the return type of a gcc2
4342 builtin and then its argument prototype would still apply. */
4343 char $ac_func();
4345 int main() {
4347 /* The GNU C library defines this for functions which it implements
4348 to always fail with ENOSYS. Some functions are actually named
4349 something starting with __ and the normal name is an alias. */
4350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4351 choke me
4352 #else
4353 $ac_func();
4354 #endif
4356 ; return 0; }
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4359 rm -rf conftest*
4360 eval "ac_cv_func_$ac_func=yes"
4361 else
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4364 rm -rf conftest*
4365 eval "ac_cv_func_$ac_func=no"
4367 rm -f conftest*
4370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4371 echo "$ac_t""yes" 1>&6
4372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4373 cat >> confdefs.h <<EOF
4374 #define $ac_tr_func 1
4377 else
4378 echo "$ac_t""no" 1>&6
4380 done
4382 for ac_func in strftime sigprocmask sigblock sigaction innetgr setnetgrent getnetgrent endnetgrent
4384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_func" >&5
4386 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4388 else
4389 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 /* System header to define __stub macros and hopefully few prototypes,
4393 which can conflict with char $ac_func(); below. */
4394 #include <assert.h>
4395 /* Override any gcc2 internal prototype to avoid an error. */
4396 /* We use char because int might match the return type of a gcc2
4397 builtin and then its argument prototype would still apply. */
4398 char $ac_func();
4400 int main() {
4402 /* The GNU C library defines this for functions which it implements
4403 to always fail with ENOSYS. Some functions are actually named
4404 something starting with __ and the normal name is an alias. */
4405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4406 choke me
4407 #else
4408 $ac_func();
4409 #endif
4411 ; return 0; }
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 rm -rf conftest*
4415 eval "ac_cv_func_$ac_func=yes"
4416 else
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 rm -rf conftest*
4420 eval "ac_cv_func_$ac_func=no"
4422 rm -f conftest*
4425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4426 echo "$ac_t""yes" 1>&6
4427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4428 cat >> confdefs.h <<EOF
4429 #define $ac_tr_func 1
4432 else
4433 echo "$ac_t""no" 1>&6
4435 done
4437 for ac_func in initgroups select rdchk getgrnam pathconf
4439 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4440 echo "configure:4441: checking for $ac_func" >&5
4441 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4443 else
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func(); below. */
4449 #include <assert.h>
4450 /* Override any gcc2 internal prototype to avoid an error. */
4451 /* We use char because int might match the return type of a gcc2
4452 builtin and then its argument prototype would still apply. */
4453 char $ac_func();
4455 int main() {
4457 /* The GNU C library defines this for functions which it implements
4458 to always fail with ENOSYS. Some functions are actually named
4459 something starting with __ and the normal name is an alias. */
4460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4461 choke me
4462 #else
4463 $ac_func();
4464 #endif
4466 ; return 0; }
4468 if { (eval echo configure:4469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4469 rm -rf conftest*
4470 eval "ac_cv_func_$ac_func=yes"
4471 else
4472 echo "configure: failed program was:" >&5
4473 cat conftest.$ac_ext >&5
4474 rm -rf conftest*
4475 eval "ac_cv_func_$ac_func=no"
4477 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4483 cat >> confdefs.h <<EOF
4484 #define $ac_tr_func 1
4487 else
4488 echo "$ac_t""no" 1>&6
4490 done
4492 for ac_func in setuidx setgroups mktime rename ftruncate stat64 fstat64 lstat64 fopen64
4494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4495 echo "configure:4496: checking for $ac_func" >&5
4496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4498 else
4499 cat > conftest.$ac_ext <<EOF
4500 #line 4501 "configure"
4501 #include "confdefs.h"
4502 /* System header to define __stub macros and hopefully few prototypes,
4503 which can conflict with char $ac_func(); below. */
4504 #include <assert.h>
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4508 char $ac_func();
4510 int main() {
4512 /* The GNU C library defines this for functions which it implements
4513 to always fail with ENOSYS. Some functions are actually named
4514 something starting with __ and the normal name is an alias. */
4515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4516 choke me
4517 #else
4518 $ac_func();
4519 #endif
4521 ; return 0; }
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4524 rm -rf conftest*
4525 eval "ac_cv_func_$ac_func=yes"
4526 else
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4529 rm -rf conftest*
4530 eval "ac_cv_func_$ac_func=no"
4532 rm -f conftest*
4535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4538 cat >> confdefs.h <<EOF
4539 #define $ac_tr_func 1
4542 else
4543 echo "$ac_t""no" 1>&6
4545 done
4547 for ac_func in atexit grantpt dup2 lseek64 ftruncate64
4549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4550 echo "configure:4551: checking for $ac_func" >&5
4551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4553 else
4554 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4557 /* System header to define __stub macros and hopefully few prototypes,
4558 which can conflict with char $ac_func(); below. */
4559 #include <assert.h>
4560 /* Override any gcc2 internal prototype to avoid an error. */
4561 /* We use char because int might match the return type of a gcc2
4562 builtin and then its argument prototype would still apply. */
4563 char $ac_func();
4565 int main() {
4567 /* The GNU C library defines this for functions which it implements
4568 to always fail with ENOSYS. Some functions are actually named
4569 something starting with __ and the normal name is an alias. */
4570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4571 choke me
4572 #else
4573 $ac_func();
4574 #endif
4576 ; return 0; }
4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4579 rm -rf conftest*
4580 eval "ac_cv_func_$ac_func=yes"
4581 else
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 rm -rf conftest*
4585 eval "ac_cv_func_$ac_func=no"
4587 rm -f conftest*
4590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4593 cat >> confdefs.h <<EOF
4594 #define $ac_tr_func 1
4597 else
4598 echo "$ac_t""no" 1>&6
4600 done
4602 for ac_func in fseek64 ftell64 setluid yp_get_default_domain getpwanam
4604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_func" >&5
4606 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4608 else
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* System header to define __stub macros and hopefully few prototypes,
4613 which can conflict with char $ac_func(); below. */
4614 #include <assert.h>
4615 /* Override any gcc2 internal prototype to avoid an error. */
4616 /* We use char because int might match the return type of a gcc2
4617 builtin and then its argument prototype would still apply. */
4618 char $ac_func();
4620 int main() {
4622 /* The GNU C library defines this for functions which it implements
4623 to always fail with ENOSYS. Some functions are actually named
4624 something starting with __ and the normal name is an alias. */
4625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4626 choke me
4627 #else
4628 $ac_func();
4629 #endif
4631 ; return 0; }
4633 if { (eval echo configure:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4634 rm -rf conftest*
4635 eval "ac_cv_func_$ac_func=yes"
4636 else
4637 echo "configure: failed program was:" >&5
4638 cat conftest.$ac_ext >&5
4639 rm -rf conftest*
4640 eval "ac_cv_func_$ac_func=no"
4642 rm -f conftest*
4645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4648 cat >> confdefs.h <<EOF
4649 #define $ac_tr_func 1
4652 else
4653 echo "$ac_t""no" 1>&6
4655 done
4657 for ac_func in srandom random srand rand setenv mmap64
4659 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4660 echo "configure:4661: checking for $ac_func" >&5
4661 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4663 else
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 /* System header to define __stub macros and hopefully few prototypes,
4668 which can conflict with char $ac_func(); below. */
4669 #include <assert.h>
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 /* We use char because int might match the return type of a gcc2
4672 builtin and then its argument prototype would still apply. */
4673 char $ac_func();
4675 int main() {
4677 /* The GNU C library defines this for functions which it implements
4678 to always fail with ENOSYS. Some functions are actually named
4679 something starting with __ and the normal name is an alias. */
4680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4681 choke me
4682 #else
4683 $ac_func();
4684 #endif
4686 ; return 0; }
4688 if { (eval echo configure:4689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4689 rm -rf conftest*
4690 eval "ac_cv_func_$ac_func=yes"
4691 else
4692 echo "configure: failed program was:" >&5
4693 cat conftest.$ac_ext >&5
4694 rm -rf conftest*
4695 eval "ac_cv_func_$ac_func=no"
4697 rm -f conftest*
4700 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4701 echo "$ac_t""yes" 1>&6
4702 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4703 cat >> confdefs.h <<EOF
4704 #define $ac_tr_func 1
4707 else
4708 echo "$ac_t""no" 1>&6
4710 done
4712 # syscall() is needed for smbwrapper.
4713 for ac_func in syscall
4715 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4716 echo "configure:4717: checking for $ac_func" >&5
4717 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4718 echo $ac_n "(cached) $ac_c" 1>&6
4719 else
4720 cat > conftest.$ac_ext <<EOF
4721 #line 4722 "configure"
4722 #include "confdefs.h"
4723 /* System header to define __stub macros and hopefully few prototypes,
4724 which can conflict with char $ac_func(); below. */
4725 #include <assert.h>
4726 /* Override any gcc2 internal prototype to avoid an error. */
4727 /* We use char because int might match the return type of a gcc2
4728 builtin and then its argument prototype would still apply. */
4729 char $ac_func();
4731 int main() {
4733 /* The GNU C library defines this for functions which it implements
4734 to always fail with ENOSYS. Some functions are actually named
4735 something starting with __ and the normal name is an alias. */
4736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4737 choke me
4738 #else
4739 $ac_func();
4740 #endif
4742 ; return 0; }
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 rm -rf conftest*
4746 eval "ac_cv_func_$ac_func=yes"
4747 else
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4750 rm -rf conftest*
4751 eval "ac_cv_func_$ac_func=no"
4753 rm -f conftest*
4756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4759 cat >> confdefs.h <<EOF
4760 #define $ac_tr_func 1
4763 else
4764 echo "$ac_t""no" 1>&6
4766 done
4769 for ac_func in _dup _dup2 _opendir _readdir _seekdir _telldir _closedir
4771 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4772 echo "configure:4773: checking for $ac_func" >&5
4773 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4774 echo $ac_n "(cached) $ac_c" 1>&6
4775 else
4776 cat > conftest.$ac_ext <<EOF
4777 #line 4778 "configure"
4778 #include "confdefs.h"
4779 /* System header to define __stub macros and hopefully few prototypes,
4780 which can conflict with char $ac_func(); below. */
4781 #include <assert.h>
4782 /* Override any gcc2 internal prototype to avoid an error. */
4783 /* We use char because int might match the return type of a gcc2
4784 builtin and then its argument prototype would still apply. */
4785 char $ac_func();
4787 int main() {
4789 /* The GNU C library defines this for functions which it implements
4790 to always fail with ENOSYS. Some functions are actually named
4791 something starting with __ and the normal name is an alias. */
4792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4793 choke me
4794 #else
4795 $ac_func();
4796 #endif
4798 ; return 0; }
4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4801 rm -rf conftest*
4802 eval "ac_cv_func_$ac_func=yes"
4803 else
4804 echo "configure: failed program was:" >&5
4805 cat conftest.$ac_ext >&5
4806 rm -rf conftest*
4807 eval "ac_cv_func_$ac_func=no"
4809 rm -f conftest*
4812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4813 echo "$ac_t""yes" 1>&6
4814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4815 cat >> confdefs.h <<EOF
4816 #define $ac_tr_func 1
4819 else
4820 echo "$ac_t""no" 1>&6
4822 done
4824 for ac_func in __dup __dup2 __opendir __readdir __seekdir __telldir __closedir
4826 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4827 echo "configure:4828: checking for $ac_func" >&5
4828 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4829 echo $ac_n "(cached) $ac_c" 1>&6
4830 else
4831 cat > conftest.$ac_ext <<EOF
4832 #line 4833 "configure"
4833 #include "confdefs.h"
4834 /* System header to define __stub macros and hopefully few prototypes,
4835 which can conflict with char $ac_func(); below. */
4836 #include <assert.h>
4837 /* Override any gcc2 internal prototype to avoid an error. */
4838 /* We use char because int might match the return type of a gcc2
4839 builtin and then its argument prototype would still apply. */
4840 char $ac_func();
4842 int main() {
4844 /* The GNU C library defines this for functions which it implements
4845 to always fail with ENOSYS. Some functions are actually named
4846 something starting with __ and the normal name is an alias. */
4847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4848 choke me
4849 #else
4850 $ac_func();
4851 #endif
4853 ; return 0; }
4855 if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4856 rm -rf conftest*
4857 eval "ac_cv_func_$ac_func=yes"
4858 else
4859 echo "configure: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4861 rm -rf conftest*
4862 eval "ac_cv_func_$ac_func=no"
4864 rm -f conftest*
4867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4868 echo "$ac_t""yes" 1>&6
4869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4870 cat >> confdefs.h <<EOF
4871 #define $ac_tr_func 1
4874 else
4875 echo "$ac_t""no" 1>&6
4877 done
4879 for ac_func in __getcwd _getcwd
4881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_func" >&5
4883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4885 else
4886 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func(); below. */
4891 #include <assert.h>
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4895 char $ac_func();
4897 int main() {
4899 /* The GNU C library defines this for functions which it implements
4900 to always fail with ENOSYS. Some functions are actually named
4901 something starting with __ and the normal name is an alias. */
4902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4903 choke me
4904 #else
4905 $ac_func();
4906 #endif
4908 ; return 0; }
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4911 rm -rf conftest*
4912 eval "ac_cv_func_$ac_func=yes"
4913 else
4914 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5
4916 rm -rf conftest*
4917 eval "ac_cv_func_$ac_func=no"
4919 rm -f conftest*
4922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_func 1
4929 else
4930 echo "$ac_t""no" 1>&6
4932 done
4934 for ac_func in __xstat __fxstat __lxstat
4936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4937 echo "configure:4938: checking for $ac_func" >&5
4938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4940 else
4941 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure"
4943 #include "confdefs.h"
4944 /* System header to define __stub macros and hopefully few prototypes,
4945 which can conflict with char $ac_func(); below. */
4946 #include <assert.h>
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4950 char $ac_func();
4952 int main() {
4954 /* The GNU C library defines this for functions which it implements
4955 to always fail with ENOSYS. Some functions are actually named
4956 something starting with __ and the normal name is an alias. */
4957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4958 choke me
4959 #else
4960 $ac_func();
4961 #endif
4963 ; return 0; }
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966 rm -rf conftest*
4967 eval "ac_cv_func_$ac_func=yes"
4968 else
4969 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5
4971 rm -rf conftest*
4972 eval "ac_cv_func_$ac_func=no"
4974 rm -f conftest*
4977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4978 echo "$ac_t""yes" 1>&6
4979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4980 cat >> confdefs.h <<EOF
4981 #define $ac_tr_func 1
4984 else
4985 echo "$ac_t""no" 1>&6
4987 done
4989 for ac_func in _stat _lstat _fstat __stat __lstat __fstat
4991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4992 echo "configure:4993: checking for $ac_func" >&5
4993 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4995 else
4996 cat > conftest.$ac_ext <<EOF
4997 #line 4998 "configure"
4998 #include "confdefs.h"
4999 /* System header to define __stub macros and hopefully few prototypes,
5000 which can conflict with char $ac_func(); below. */
5001 #include <assert.h>
5002 /* Override any gcc2 internal prototype to avoid an error. */
5003 /* We use char because int might match the return type of a gcc2
5004 builtin and then its argument prototype would still apply. */
5005 char $ac_func();
5007 int main() {
5009 /* The GNU C library defines this for functions which it implements
5010 to always fail with ENOSYS. Some functions are actually named
5011 something starting with __ and the normal name is an alias. */
5012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5013 choke me
5014 #else
5015 $ac_func();
5016 #endif
5018 ; return 0; }
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5021 rm -rf conftest*
5022 eval "ac_cv_func_$ac_func=yes"
5023 else
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5026 rm -rf conftest*
5027 eval "ac_cv_func_$ac_func=no"
5029 rm -f conftest*
5032 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5033 echo "$ac_t""yes" 1>&6
5034 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5035 cat >> confdefs.h <<EOF
5036 #define $ac_tr_func 1
5039 else
5040 echo "$ac_t""no" 1>&6
5042 done
5044 for ac_func in _acl __acl _facl __facl _open __open _chdir __chdir
5046 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5047 echo "configure:5048: checking for $ac_func" >&5
5048 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5050 else
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5054 /* System header to define __stub macros and hopefully few prototypes,
5055 which can conflict with char $ac_func(); below. */
5056 #include <assert.h>
5057 /* Override any gcc2 internal prototype to avoid an error. */
5058 /* We use char because int might match the return type of a gcc2
5059 builtin and then its argument prototype would still apply. */
5060 char $ac_func();
5062 int main() {
5064 /* The GNU C library defines this for functions which it implements
5065 to always fail with ENOSYS. Some functions are actually named
5066 something starting with __ and the normal name is an alias. */
5067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5068 choke me
5069 #else
5070 $ac_func();
5071 #endif
5073 ; return 0; }
5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5076 rm -rf conftest*
5077 eval "ac_cv_func_$ac_func=yes"
5078 else
5079 echo "configure: failed program was:" >&5
5080 cat conftest.$ac_ext >&5
5081 rm -rf conftest*
5082 eval "ac_cv_func_$ac_func=no"
5084 rm -f conftest*
5087 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5088 echo "$ac_t""yes" 1>&6
5089 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5090 cat >> confdefs.h <<EOF
5091 #define $ac_tr_func 1
5094 else
5095 echo "$ac_t""no" 1>&6
5097 done
5099 for ac_func in _close __close _fchdir __fchdir _fcntl __fcntl
5101 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5102 echo "configure:5103: checking for $ac_func" >&5
5103 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5104 echo $ac_n "(cached) $ac_c" 1>&6
5105 else
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 /* System header to define __stub macros and hopefully few prototypes,
5110 which can conflict with char $ac_func(); below. */
5111 #include <assert.h>
5112 /* Override any gcc2 internal prototype to avoid an error. */
5113 /* We use char because int might match the return type of a gcc2
5114 builtin and then its argument prototype would still apply. */
5115 char $ac_func();
5117 int main() {
5119 /* The GNU C library defines this for functions which it implements
5120 to always fail with ENOSYS. Some functions are actually named
5121 something starting with __ and the normal name is an alias. */
5122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5123 choke me
5124 #else
5125 $ac_func();
5126 #endif
5128 ; return 0; }
5130 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5131 rm -rf conftest*
5132 eval "ac_cv_func_$ac_func=yes"
5133 else
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5136 rm -rf conftest*
5137 eval "ac_cv_func_$ac_func=no"
5139 rm -f conftest*
5142 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5143 echo "$ac_t""yes" 1>&6
5144 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5145 cat >> confdefs.h <<EOF
5146 #define $ac_tr_func 1
5149 else
5150 echo "$ac_t""no" 1>&6
5152 done
5154 for ac_func in getdents _getdents __getdents _lseek __lseek _read __read
5156 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5157 echo "configure:5158: checking for $ac_func" >&5
5158 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5159 echo $ac_n "(cached) $ac_c" 1>&6
5160 else
5161 cat > conftest.$ac_ext <<EOF
5162 #line 5163 "configure"
5163 #include "confdefs.h"
5164 /* System header to define __stub macros and hopefully few prototypes,
5165 which can conflict with char $ac_func(); below. */
5166 #include <assert.h>
5167 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5170 char $ac_func();
5172 int main() {
5174 /* The GNU C library defines this for functions which it implements
5175 to always fail with ENOSYS. Some functions are actually named
5176 something starting with __ and the normal name is an alias. */
5177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 choke me
5179 #else
5180 $ac_func();
5181 #endif
5183 ; return 0; }
5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5186 rm -rf conftest*
5187 eval "ac_cv_func_$ac_func=yes"
5188 else
5189 echo "configure: failed program was:" >&5
5190 cat conftest.$ac_ext >&5
5191 rm -rf conftest*
5192 eval "ac_cv_func_$ac_func=no"
5194 rm -f conftest*
5197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5198 echo "$ac_t""yes" 1>&6
5199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5200 cat >> confdefs.h <<EOF
5201 #define $ac_tr_func 1
5204 else
5205 echo "$ac_t""no" 1>&6
5207 done
5209 for ac_func in _write __write _fork __fork
5211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5212 echo "configure:5213: checking for $ac_func" >&5
5213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5215 else
5216 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5219 /* System header to define __stub macros and hopefully few prototypes,
5220 which can conflict with char $ac_func(); below. */
5221 #include <assert.h>
5222 /* Override any gcc2 internal prototype to avoid an error. */
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5225 char $ac_func();
5227 int main() {
5229 /* The GNU C library defines this for functions which it implements
5230 to always fail with ENOSYS. Some functions are actually named
5231 something starting with __ and the normal name is an alias. */
5232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5233 choke me
5234 #else
5235 $ac_func();
5236 #endif
5238 ; return 0; }
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 rm -rf conftest*
5242 eval "ac_cv_func_$ac_func=yes"
5243 else
5244 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5
5246 rm -rf conftest*
5247 eval "ac_cv_func_$ac_func=no"
5249 rm -f conftest*
5252 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5255 cat >> confdefs.h <<EOF
5256 #define $ac_tr_func 1
5259 else
5260 echo "$ac_t""no" 1>&6
5262 done
5264 for ac_func in _stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64
5266 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5267 echo "configure:5268: checking for $ac_func" >&5
5268 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5270 else
5271 cat > conftest.$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5274 /* System header to define __stub macros and hopefully few prototypes,
5275 which can conflict with char $ac_func(); below. */
5276 #include <assert.h>
5277 /* Override any gcc2 internal prototype to avoid an error. */
5278 /* We use char because int might match the return type of a gcc2
5279 builtin and then its argument prototype would still apply. */
5280 char $ac_func();
5282 int main() {
5284 /* The GNU C library defines this for functions which it implements
5285 to always fail with ENOSYS. Some functions are actually named
5286 something starting with __ and the normal name is an alias. */
5287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5288 choke me
5289 #else
5290 $ac_func();
5291 #endif
5293 ; return 0; }
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 rm -rf conftest*
5297 eval "ac_cv_func_$ac_func=yes"
5298 else
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 rm -rf conftest*
5302 eval "ac_cv_func_$ac_func=no"
5304 rm -f conftest*
5307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5308 echo "$ac_t""yes" 1>&6
5309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5310 cat >> confdefs.h <<EOF
5311 #define $ac_tr_func 1
5314 else
5315 echo "$ac_t""no" 1>&6
5317 done
5319 for ac_func in __sys_llseek llseek _llseek __llseek readdir64 _readdir64 __readdir64
5321 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5322 echo "configure:5323: checking for $ac_func" >&5
5323 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5325 else
5326 cat > conftest.$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5329 /* System header to define __stub macros and hopefully few prototypes,
5330 which can conflict with char $ac_func(); below. */
5331 #include <assert.h>
5332 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5335 char $ac_func();
5337 int main() {
5339 /* The GNU C library defines this for functions which it implements
5340 to always fail with ENOSYS. Some functions are actually named
5341 something starting with __ and the normal name is an alias. */
5342 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5343 choke me
5344 #else
5345 $ac_func();
5346 #endif
5348 ; return 0; }
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5351 rm -rf conftest*
5352 eval "ac_cv_func_$ac_func=yes"
5353 else
5354 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5
5356 rm -rf conftest*
5357 eval "ac_cv_func_$ac_func=no"
5359 rm -f conftest*
5362 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5363 echo "$ac_t""yes" 1>&6
5364 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5365 cat >> confdefs.h <<EOF
5366 #define $ac_tr_func 1
5369 else
5370 echo "$ac_t""no" 1>&6
5372 done
5374 for ac_func in pread _pread __pread pread64 _pread64 __pread64
5376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5377 echo "configure:5378: checking for $ac_func" >&5
5378 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5380 else
5381 cat > conftest.$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5384 /* System header to define __stub macros and hopefully few prototypes,
5385 which can conflict with char $ac_func(); below. */
5386 #include <assert.h>
5387 /* Override any gcc2 internal prototype to avoid an error. */
5388 /* We use char because int might match the return type of a gcc2
5389 builtin and then its argument prototype would still apply. */
5390 char $ac_func();
5392 int main() {
5394 /* The GNU C library defines this for functions which it implements
5395 to always fail with ENOSYS. Some functions are actually named
5396 something starting with __ and the normal name is an alias. */
5397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5398 choke me
5399 #else
5400 $ac_func();
5401 #endif
5403 ; return 0; }
5405 if { (eval echo configure:5406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5406 rm -rf conftest*
5407 eval "ac_cv_func_$ac_func=yes"
5408 else
5409 echo "configure: failed program was:" >&5
5410 cat conftest.$ac_ext >&5
5411 rm -rf conftest*
5412 eval "ac_cv_func_$ac_func=no"
5414 rm -f conftest*
5417 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5418 echo "$ac_t""yes" 1>&6
5419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5420 cat >> confdefs.h <<EOF
5421 #define $ac_tr_func 1
5424 else
5425 echo "$ac_t""no" 1>&6
5427 done
5429 for ac_func in pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64
5431 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5432 echo "configure:5433: checking for $ac_func" >&5
5433 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5434 echo $ac_n "(cached) $ac_c" 1>&6
5435 else
5436 cat > conftest.$ac_ext <<EOF
5437 #line 5438 "configure"
5438 #include "confdefs.h"
5439 /* System header to define __stub macros and hopefully few prototypes,
5440 which can conflict with char $ac_func(); below. */
5441 #include <assert.h>
5442 /* Override any gcc2 internal prototype to avoid an error. */
5443 /* We use char because int might match the return type of a gcc2
5444 builtin and then its argument prototype would still apply. */
5445 char $ac_func();
5447 int main() {
5449 /* The GNU C library defines this for functions which it implements
5450 to always fail with ENOSYS. Some functions are actually named
5451 something starting with __ and the normal name is an alias. */
5452 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5453 choke me
5454 #else
5455 $ac_func();
5456 #endif
5458 ; return 0; }
5460 if { (eval echo configure:5461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5461 rm -rf conftest*
5462 eval "ac_cv_func_$ac_func=yes"
5463 else
5464 echo "configure: failed program was:" >&5
5465 cat conftest.$ac_ext >&5
5466 rm -rf conftest*
5467 eval "ac_cv_func_$ac_func=no"
5469 rm -f conftest*
5472 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5475 cat >> confdefs.h <<EOF
5476 #define $ac_tr_func 1
5479 else
5480 echo "$ac_t""no" 1>&6
5482 done
5484 for ac_func in open64 _open64 __open64 creat64
5486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5487 echo "configure:5488: checking for $ac_func" >&5
5488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5489 echo $ac_n "(cached) $ac_c" 1>&6
5490 else
5491 cat > conftest.$ac_ext <<EOF
5492 #line 5493 "configure"
5493 #include "confdefs.h"
5494 /* System header to define __stub macros and hopefully few prototypes,
5495 which can conflict with char $ac_func(); below. */
5496 #include <assert.h>
5497 /* Override any gcc2 internal prototype to avoid an error. */
5498 /* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5500 char $ac_func();
5502 int main() {
5504 /* The GNU C library defines this for functions which it implements
5505 to always fail with ENOSYS. Some functions are actually named
5506 something starting with __ and the normal name is an alias. */
5507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5508 choke me
5509 #else
5510 $ac_func();
5511 #endif
5513 ; return 0; }
5515 if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5516 rm -rf conftest*
5517 eval "ac_cv_func_$ac_func=yes"
5518 else
5519 echo "configure: failed program was:" >&5
5520 cat conftest.$ac_ext >&5
5521 rm -rf conftest*
5522 eval "ac_cv_func_$ac_func=no"
5524 rm -f conftest*
5527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5528 echo "$ac_t""yes" 1>&6
5529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5530 cat >> confdefs.h <<EOF
5531 #define $ac_tr_func 1
5534 else
5535 echo "$ac_t""no" 1>&6
5537 done
5541 # Check for the functions putprpwnam, set_auth_parameters,
5542 # getspnam, bigcrypt and getprpwnam in -lsec and -lsecurity
5543 # Needed for OSF1 and HPUX.
5546 case "$LIBS" in
5547 *-lsecurity*) for ac_func in putprpwnam
5549 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5550 echo "configure:5551: checking for $ac_func" >&5
5551 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5552 echo $ac_n "(cached) $ac_c" 1>&6
5553 else
5554 cat > conftest.$ac_ext <<EOF
5555 #line 5556 "configure"
5556 #include "confdefs.h"
5557 /* System header to define __stub macros and hopefully few prototypes,
5558 which can conflict with char $ac_func(); below. */
5559 #include <assert.h>
5560 /* Override any gcc2 internal prototype to avoid an error. */
5561 /* We use char because int might match the return type of a gcc2
5562 builtin and then its argument prototype would still apply. */
5563 char $ac_func();
5565 int main() {
5567 /* The GNU C library defines this for functions which it implements
5568 to always fail with ENOSYS. Some functions are actually named
5569 something starting with __ and the normal name is an alias. */
5570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5571 choke me
5572 #else
5573 $ac_func();
5574 #endif
5576 ; return 0; }
5578 if { (eval echo configure:5579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5579 rm -rf conftest*
5580 eval "ac_cv_func_$ac_func=yes"
5581 else
5582 echo "configure: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5584 rm -rf conftest*
5585 eval "ac_cv_func_$ac_func=no"
5587 rm -f conftest*
5590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5591 echo "$ac_t""yes" 1>&6
5592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5593 cat >> confdefs.h <<EOF
5594 #define $ac_tr_func 1
5597 else
5598 echo "$ac_t""no" 1>&6
5600 done
5602 *) echo $ac_n "checking for putprpwnam in -lsecurity""... $ac_c" 1>&6
5603 echo "configure:5604: checking for putprpwnam in -lsecurity" >&5
5604 ac_lib_var=`echo security'_'putprpwnam | sed 'y%./+-%__p_%'`
5605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5607 else
5608 ac_save_LIBS="$LIBS"
5609 LIBS="-lsecurity $LIBS"
5610 cat > conftest.$ac_ext <<EOF
5611 #line 5612 "configure"
5612 #include "confdefs.h"
5613 /* Override any gcc2 internal prototype to avoid an error. */
5614 /* We use char because int might match the return type of a gcc2
5615 builtin and then its argument prototype would still apply. */
5616 char putprpwnam();
5618 int main() {
5619 putprpwnam()
5620 ; return 0; }
5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5623 rm -rf conftest*
5624 eval "ac_cv_lib_$ac_lib_var=yes"
5625 else
5626 echo "configure: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 rm -rf conftest*
5629 eval "ac_cv_lib_$ac_lib_var=no"
5631 rm -f conftest*
5632 LIBS="$ac_save_LIBS"
5635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5636 echo "$ac_t""yes" 1>&6
5637 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5638 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5639 cat >> confdefs.h <<EOF
5640 #define $ac_tr_lib 1
5643 LIBS="-lsecurity $LIBS"
5645 else
5646 echo "$ac_t""no" 1>&6
5649 for ac_func in putprpwnam
5651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5652 echo "configure:5653: checking for $ac_func" >&5
5653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5655 else
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 /* System header to define __stub macros and hopefully few prototypes,
5660 which can conflict with char $ac_func(); below. */
5661 #include <assert.h>
5662 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5665 char $ac_func();
5667 int main() {
5669 /* The GNU C library defines this for functions which it implements
5670 to always fail with ENOSYS. Some functions are actually named
5671 something starting with __ and the normal name is an alias. */
5672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5673 choke me
5674 #else
5675 $ac_func();
5676 #endif
5678 ; return 0; }
5680 if { (eval echo configure:5681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5681 rm -rf conftest*
5682 eval "ac_cv_func_$ac_func=yes"
5683 else
5684 echo "configure: failed program was:" >&5
5685 cat conftest.$ac_ext >&5
5686 rm -rf conftest*
5687 eval "ac_cv_func_$ac_func=no"
5689 rm -f conftest*
5692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5693 echo "$ac_t""yes" 1>&6
5694 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5695 cat >> confdefs.h <<EOF
5696 #define $ac_tr_func 1
5699 else
5700 echo "$ac_t""no" 1>&6
5702 done
5705 esac
5707 case "$LIBS" in
5708 *-lsec*) for ac_func in putprpwnam
5710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5711 echo "configure:5712: checking for $ac_func" >&5
5712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5713 echo $ac_n "(cached) $ac_c" 1>&6
5714 else
5715 cat > conftest.$ac_ext <<EOF
5716 #line 5717 "configure"
5717 #include "confdefs.h"
5718 /* System header to define __stub macros and hopefully few prototypes,
5719 which can conflict with char $ac_func(); below. */
5720 #include <assert.h>
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */
5724 char $ac_func();
5726 int main() {
5728 /* The GNU C library defines this for functions which it implements
5729 to always fail with ENOSYS. Some functions are actually named
5730 something starting with __ and the normal name is an alias. */
5731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5732 choke me
5733 #else
5734 $ac_func();
5735 #endif
5737 ; return 0; }
5739 if { (eval echo configure:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5740 rm -rf conftest*
5741 eval "ac_cv_func_$ac_func=yes"
5742 else
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5745 rm -rf conftest*
5746 eval "ac_cv_func_$ac_func=no"
5748 rm -f conftest*
5751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5752 echo "$ac_t""yes" 1>&6
5753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5754 cat >> confdefs.h <<EOF
5755 #define $ac_tr_func 1
5758 else
5759 echo "$ac_t""no" 1>&6
5761 done
5763 *) echo $ac_n "checking for putprpwnam in -lsec""... $ac_c" 1>&6
5764 echo "configure:5765: checking for putprpwnam in -lsec" >&5
5765 ac_lib_var=`echo sec'_'putprpwnam | sed 'y%./+-%__p_%'`
5766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5767 echo $ac_n "(cached) $ac_c" 1>&6
5768 else
5769 ac_save_LIBS="$LIBS"
5770 LIBS="-lsec $LIBS"
5771 cat > conftest.$ac_ext <<EOF
5772 #line 5773 "configure"
5773 #include "confdefs.h"
5774 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5777 char putprpwnam();
5779 int main() {
5780 putprpwnam()
5781 ; return 0; }
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5784 rm -rf conftest*
5785 eval "ac_cv_lib_$ac_lib_var=yes"
5786 else
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5789 rm -rf conftest*
5790 eval "ac_cv_lib_$ac_lib_var=no"
5792 rm -f conftest*
5793 LIBS="$ac_save_LIBS"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5798 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5800 cat >> confdefs.h <<EOF
5801 #define $ac_tr_lib 1
5804 LIBS="-lsec $LIBS"
5806 else
5807 echo "$ac_t""no" 1>&6
5810 for ac_func in putprpwnam
5812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5813 echo "configure:5814: checking for $ac_func" >&5
5814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5816 else
5817 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure"
5819 #include "confdefs.h"
5820 /* System header to define __stub macros and hopefully few prototypes,
5821 which can conflict with char $ac_func(); below. */
5822 #include <assert.h>
5823 /* Override any gcc2 internal prototype to avoid an error. */
5824 /* We use char because int might match the return type of a gcc2
5825 builtin and then its argument prototype would still apply. */
5826 char $ac_func();
5828 int main() {
5830 /* The GNU C library defines this for functions which it implements
5831 to always fail with ENOSYS. Some functions are actually named
5832 something starting with __ and the normal name is an alias. */
5833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5834 choke me
5835 #else
5836 $ac_func();
5837 #endif
5839 ; return 0; }
5841 if { (eval echo configure:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5842 rm -rf conftest*
5843 eval "ac_cv_func_$ac_func=yes"
5844 else
5845 echo "configure: failed program was:" >&5
5846 cat conftest.$ac_ext >&5
5847 rm -rf conftest*
5848 eval "ac_cv_func_$ac_func=no"
5850 rm -f conftest*
5853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5854 echo "$ac_t""yes" 1>&6
5855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5856 cat >> confdefs.h <<EOF
5857 #define $ac_tr_func 1
5860 else
5861 echo "$ac_t""no" 1>&6
5863 done
5866 esac
5869 case "$LIBS" in
5870 *-lsecurity*) for ac_func in set_auth_parameters
5872 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5873 echo "configure:5874: checking for $ac_func" >&5
5874 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5875 echo $ac_n "(cached) $ac_c" 1>&6
5876 else
5877 cat > conftest.$ac_ext <<EOF
5878 #line 5879 "configure"
5879 #include "confdefs.h"
5880 /* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char $ac_func(); below. */
5882 #include <assert.h>
5883 /* Override any gcc2 internal prototype to avoid an error. */
5884 /* We use char because int might match the return type of a gcc2
5885 builtin and then its argument prototype would still apply. */
5886 char $ac_func();
5888 int main() {
5890 /* The GNU C library defines this for functions which it implements
5891 to always fail with ENOSYS. Some functions are actually named
5892 something starting with __ and the normal name is an alias. */
5893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5894 choke me
5895 #else
5896 $ac_func();
5897 #endif
5899 ; return 0; }
5901 if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 rm -rf conftest*
5903 eval "ac_cv_func_$ac_func=yes"
5904 else
5905 echo "configure: failed program was:" >&5
5906 cat conftest.$ac_ext >&5
5907 rm -rf conftest*
5908 eval "ac_cv_func_$ac_func=no"
5910 rm -f conftest*
5913 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5914 echo "$ac_t""yes" 1>&6
5915 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5916 cat >> confdefs.h <<EOF
5917 #define $ac_tr_func 1
5920 else
5921 echo "$ac_t""no" 1>&6
5923 done
5925 *) echo $ac_n "checking for set_auth_parameters in -lsecurity""... $ac_c" 1>&6
5926 echo "configure:5927: checking for set_auth_parameters in -lsecurity" >&5
5927 ac_lib_var=`echo security'_'set_auth_parameters | sed 'y%./+-%__p_%'`
5928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5929 echo $ac_n "(cached) $ac_c" 1>&6
5930 else
5931 ac_save_LIBS="$LIBS"
5932 LIBS="-lsecurity $LIBS"
5933 cat > conftest.$ac_ext <<EOF
5934 #line 5935 "configure"
5935 #include "confdefs.h"
5936 /* Override any gcc2 internal prototype to avoid an error. */
5937 /* We use char because int might match the return type of a gcc2
5938 builtin and then its argument prototype would still apply. */
5939 char set_auth_parameters();
5941 int main() {
5942 set_auth_parameters()
5943 ; return 0; }
5945 if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5946 rm -rf conftest*
5947 eval "ac_cv_lib_$ac_lib_var=yes"
5948 else
5949 echo "configure: failed program was:" >&5
5950 cat conftest.$ac_ext >&5
5951 rm -rf conftest*
5952 eval "ac_cv_lib_$ac_lib_var=no"
5954 rm -f conftest*
5955 LIBS="$ac_save_LIBS"
5958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5959 echo "$ac_t""yes" 1>&6
5960 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5961 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5962 cat >> confdefs.h <<EOF
5963 #define $ac_tr_lib 1
5966 LIBS="-lsecurity $LIBS"
5968 else
5969 echo "$ac_t""no" 1>&6
5972 for ac_func in set_auth_parameters
5974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5975 echo "configure:5976: checking for $ac_func" >&5
5976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5977 echo $ac_n "(cached) $ac_c" 1>&6
5978 else
5979 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure"
5981 #include "confdefs.h"
5982 /* System header to define __stub macros and hopefully few prototypes,
5983 which can conflict with char $ac_func(); below. */
5984 #include <assert.h>
5985 /* Override any gcc2 internal prototype to avoid an error. */
5986 /* We use char because int might match the return type of a gcc2
5987 builtin and then its argument prototype would still apply. */
5988 char $ac_func();
5990 int main() {
5992 /* The GNU C library defines this for functions which it implements
5993 to always fail with ENOSYS. Some functions are actually named
5994 something starting with __ and the normal name is an alias. */
5995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5996 choke me
5997 #else
5998 $ac_func();
5999 #endif
6001 ; return 0; }
6003 if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 rm -rf conftest*
6005 eval "ac_cv_func_$ac_func=yes"
6006 else
6007 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5
6009 rm -rf conftest*
6010 eval "ac_cv_func_$ac_func=no"
6012 rm -f conftest*
6015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6016 echo "$ac_t""yes" 1>&6
6017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6018 cat >> confdefs.h <<EOF
6019 #define $ac_tr_func 1
6022 else
6023 echo "$ac_t""no" 1>&6
6025 done
6028 esac
6030 case "$LIBS" in
6031 *-lsec*) for ac_func in set_auth_parameters
6033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6034 echo "configure:6035: checking for $ac_func" >&5
6035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6037 else
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 /* System header to define __stub macros and hopefully few prototypes,
6042 which can conflict with char $ac_func(); below. */
6043 #include <assert.h>
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6047 char $ac_func();
6049 int main() {
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6055 choke me
6056 #else
6057 $ac_func();
6058 #endif
6060 ; return 0; }
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6063 rm -rf conftest*
6064 eval "ac_cv_func_$ac_func=yes"
6065 else
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6068 rm -rf conftest*
6069 eval "ac_cv_func_$ac_func=no"
6071 rm -f conftest*
6074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6077 cat >> confdefs.h <<EOF
6078 #define $ac_tr_func 1
6081 else
6082 echo "$ac_t""no" 1>&6
6084 done
6086 *) echo $ac_n "checking for set_auth_parameters in -lsec""... $ac_c" 1>&6
6087 echo "configure:6088: checking for set_auth_parameters in -lsec" >&5
6088 ac_lib_var=`echo sec'_'set_auth_parameters | sed 'y%./+-%__p_%'`
6089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6090 echo $ac_n "(cached) $ac_c" 1>&6
6091 else
6092 ac_save_LIBS="$LIBS"
6093 LIBS="-lsec $LIBS"
6094 cat > conftest.$ac_ext <<EOF
6095 #line 6096 "configure"
6096 #include "confdefs.h"
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 /* We use char because int might match the return type of a gcc2
6099 builtin and then its argument prototype would still apply. */
6100 char set_auth_parameters();
6102 int main() {
6103 set_auth_parameters()
6104 ; return 0; }
6106 if { (eval echo configure:6107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6107 rm -rf conftest*
6108 eval "ac_cv_lib_$ac_lib_var=yes"
6109 else
6110 echo "configure: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 rm -rf conftest*
6113 eval "ac_cv_lib_$ac_lib_var=no"
6115 rm -f conftest*
6116 LIBS="$ac_save_LIBS"
6119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6120 echo "$ac_t""yes" 1>&6
6121 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6123 cat >> confdefs.h <<EOF
6124 #define $ac_tr_lib 1
6127 LIBS="-lsec $LIBS"
6129 else
6130 echo "$ac_t""no" 1>&6
6133 for ac_func in set_auth_parameters
6135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6136 echo "configure:6137: checking for $ac_func" >&5
6137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6138 echo $ac_n "(cached) $ac_c" 1>&6
6139 else
6140 cat > conftest.$ac_ext <<EOF
6141 #line 6142 "configure"
6142 #include "confdefs.h"
6143 /* System header to define __stub macros and hopefully few prototypes,
6144 which can conflict with char $ac_func(); below. */
6145 #include <assert.h>
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char $ac_func();
6151 int main() {
6153 /* The GNU C library defines this for functions which it implements
6154 to always fail with ENOSYS. Some functions are actually named
6155 something starting with __ and the normal name is an alias. */
6156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6157 choke me
6158 #else
6159 $ac_func();
6160 #endif
6162 ; return 0; }
6164 if { (eval echo configure:6165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6165 rm -rf conftest*
6166 eval "ac_cv_func_$ac_func=yes"
6167 else
6168 echo "configure: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 rm -rf conftest*
6171 eval "ac_cv_func_$ac_func=no"
6173 rm -f conftest*
6176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6177 echo "$ac_t""yes" 1>&6
6178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6179 cat >> confdefs.h <<EOF
6180 #define $ac_tr_func 1
6183 else
6184 echo "$ac_t""no" 1>&6
6186 done
6189 esac
6192 case "$LIBS" in
6193 *-lsecurity*) for ac_func in getspnam
6195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6196 echo "configure:6197: checking for $ac_func" >&5
6197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6198 echo $ac_n "(cached) $ac_c" 1>&6
6199 else
6200 cat > conftest.$ac_ext <<EOF
6201 #line 6202 "configure"
6202 #include "confdefs.h"
6203 /* System header to define __stub macros and hopefully few prototypes,
6204 which can conflict with char $ac_func(); below. */
6205 #include <assert.h>
6206 /* Override any gcc2 internal prototype to avoid an error. */
6207 /* We use char because int might match the return type of a gcc2
6208 builtin and then its argument prototype would still apply. */
6209 char $ac_func();
6211 int main() {
6213 /* The GNU C library defines this for functions which it implements
6214 to always fail with ENOSYS. Some functions are actually named
6215 something starting with __ and the normal name is an alias. */
6216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6217 choke me
6218 #else
6219 $ac_func();
6220 #endif
6222 ; return 0; }
6224 if { (eval echo configure:6225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6225 rm -rf conftest*
6226 eval "ac_cv_func_$ac_func=yes"
6227 else
6228 echo "configure: failed program was:" >&5
6229 cat conftest.$ac_ext >&5
6230 rm -rf conftest*
6231 eval "ac_cv_func_$ac_func=no"
6233 rm -f conftest*
6236 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6237 echo "$ac_t""yes" 1>&6
6238 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6239 cat >> confdefs.h <<EOF
6240 #define $ac_tr_func 1
6243 else
6244 echo "$ac_t""no" 1>&6
6246 done
6248 *) echo $ac_n "checking for getspnam in -lsecurity""... $ac_c" 1>&6
6249 echo "configure:6250: checking for getspnam in -lsecurity" >&5
6250 ac_lib_var=`echo security'_'getspnam | sed 'y%./+-%__p_%'`
6251 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6252 echo $ac_n "(cached) $ac_c" 1>&6
6253 else
6254 ac_save_LIBS="$LIBS"
6255 LIBS="-lsecurity $LIBS"
6256 cat > conftest.$ac_ext <<EOF
6257 #line 6258 "configure"
6258 #include "confdefs.h"
6259 /* Override any gcc2 internal prototype to avoid an error. */
6260 /* We use char because int might match the return type of a gcc2
6261 builtin and then its argument prototype would still apply. */
6262 char getspnam();
6264 int main() {
6265 getspnam()
6266 ; return 0; }
6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6269 rm -rf conftest*
6270 eval "ac_cv_lib_$ac_lib_var=yes"
6271 else
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6274 rm -rf conftest*
6275 eval "ac_cv_lib_$ac_lib_var=no"
6277 rm -f conftest*
6278 LIBS="$ac_save_LIBS"
6281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6282 echo "$ac_t""yes" 1>&6
6283 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6284 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6285 cat >> confdefs.h <<EOF
6286 #define $ac_tr_lib 1
6289 LIBS="-lsecurity $LIBS"
6291 else
6292 echo "$ac_t""no" 1>&6
6295 for ac_func in getspnam
6297 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6298 echo "configure:6299: checking for $ac_func" >&5
6299 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6300 echo $ac_n "(cached) $ac_c" 1>&6
6301 else
6302 cat > conftest.$ac_ext <<EOF
6303 #line 6304 "configure"
6304 #include "confdefs.h"
6305 /* System header to define __stub macros and hopefully few prototypes,
6306 which can conflict with char $ac_func(); below. */
6307 #include <assert.h>
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 /* We use char because int might match the return type of a gcc2
6310 builtin and then its argument prototype would still apply. */
6311 char $ac_func();
6313 int main() {
6315 /* The GNU C library defines this for functions which it implements
6316 to always fail with ENOSYS. Some functions are actually named
6317 something starting with __ and the normal name is an alias. */
6318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6319 choke me
6320 #else
6321 $ac_func();
6322 #endif
6324 ; return 0; }
6326 if { (eval echo configure:6327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327 rm -rf conftest*
6328 eval "ac_cv_func_$ac_func=yes"
6329 else
6330 echo "configure: failed program was:" >&5
6331 cat conftest.$ac_ext >&5
6332 rm -rf conftest*
6333 eval "ac_cv_func_$ac_func=no"
6335 rm -f conftest*
6338 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6340 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6341 cat >> confdefs.h <<EOF
6342 #define $ac_tr_func 1
6345 else
6346 echo "$ac_t""no" 1>&6
6348 done
6351 esac
6353 case "$LIBS" in
6354 *-lsec*) for ac_func in getspnam
6356 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6357 echo "configure:6358: checking for $ac_func" >&5
6358 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6359 echo $ac_n "(cached) $ac_c" 1>&6
6360 else
6361 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure"
6363 #include "confdefs.h"
6364 /* System header to define __stub macros and hopefully few prototypes,
6365 which can conflict with char $ac_func(); below. */
6366 #include <assert.h>
6367 /* Override any gcc2 internal prototype to avoid an error. */
6368 /* We use char because int might match the return type of a gcc2
6369 builtin and then its argument prototype would still apply. */
6370 char $ac_func();
6372 int main() {
6374 /* The GNU C library defines this for functions which it implements
6375 to always fail with ENOSYS. Some functions are actually named
6376 something starting with __ and the normal name is an alias. */
6377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6378 choke me
6379 #else
6380 $ac_func();
6381 #endif
6383 ; return 0; }
6385 if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6386 rm -rf conftest*
6387 eval "ac_cv_func_$ac_func=yes"
6388 else
6389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
6391 rm -rf conftest*
6392 eval "ac_cv_func_$ac_func=no"
6394 rm -f conftest*
6397 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6398 echo "$ac_t""yes" 1>&6
6399 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6400 cat >> confdefs.h <<EOF
6401 #define $ac_tr_func 1
6404 else
6405 echo "$ac_t""no" 1>&6
6407 done
6409 *) echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
6410 echo "configure:6411: checking for getspnam in -lsec" >&5
6411 ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
6412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6413 echo $ac_n "(cached) $ac_c" 1>&6
6414 else
6415 ac_save_LIBS="$LIBS"
6416 LIBS="-lsec $LIBS"
6417 cat > conftest.$ac_ext <<EOF
6418 #line 6419 "configure"
6419 #include "confdefs.h"
6420 /* Override any gcc2 internal prototype to avoid an error. */
6421 /* We use char because int might match the return type of a gcc2
6422 builtin and then its argument prototype would still apply. */
6423 char getspnam();
6425 int main() {
6426 getspnam()
6427 ; return 0; }
6429 if { (eval echo configure:6430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6430 rm -rf conftest*
6431 eval "ac_cv_lib_$ac_lib_var=yes"
6432 else
6433 echo "configure: failed program was:" >&5
6434 cat conftest.$ac_ext >&5
6435 rm -rf conftest*
6436 eval "ac_cv_lib_$ac_lib_var=no"
6438 rm -f conftest*
6439 LIBS="$ac_save_LIBS"
6442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6443 echo "$ac_t""yes" 1>&6
6444 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6446 cat >> confdefs.h <<EOF
6447 #define $ac_tr_lib 1
6450 LIBS="-lsec $LIBS"
6452 else
6453 echo "$ac_t""no" 1>&6
6456 for ac_func in getspnam
6458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6459 echo "configure:6460: checking for $ac_func" >&5
6460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6461 echo $ac_n "(cached) $ac_c" 1>&6
6462 else
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 /* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char $ac_func(); below. */
6468 #include <assert.h>
6469 /* Override any gcc2 internal prototype to avoid an error. */
6470 /* We use char because int might match the return type of a gcc2
6471 builtin and then its argument prototype would still apply. */
6472 char $ac_func();
6474 int main() {
6476 /* The GNU C library defines this for functions which it implements
6477 to always fail with ENOSYS. Some functions are actually named
6478 something starting with __ and the normal name is an alias. */
6479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6480 choke me
6481 #else
6482 $ac_func();
6483 #endif
6485 ; return 0; }
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6488 rm -rf conftest*
6489 eval "ac_cv_func_$ac_func=yes"
6490 else
6491 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6493 rm -rf conftest*
6494 eval "ac_cv_func_$ac_func=no"
6496 rm -f conftest*
6499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6500 echo "$ac_t""yes" 1>&6
6501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6502 cat >> confdefs.h <<EOF
6503 #define $ac_tr_func 1
6506 else
6507 echo "$ac_t""no" 1>&6
6509 done
6512 esac
6515 case "$LIBS" in
6516 *-lsecurity*) for ac_func in bigcrypt
6518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6519 echo "configure:6520: checking for $ac_func" >&5
6520 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6521 echo $ac_n "(cached) $ac_c" 1>&6
6522 else
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* System header to define __stub macros and hopefully few prototypes,
6527 which can conflict with char $ac_func(); below. */
6528 #include <assert.h>
6529 /* Override any gcc2 internal prototype to avoid an error. */
6530 /* We use char because int might match the return type of a gcc2
6531 builtin and then its argument prototype would still apply. */
6532 char $ac_func();
6534 int main() {
6536 /* The GNU C library defines this for functions which it implements
6537 to always fail with ENOSYS. Some functions are actually named
6538 something starting with __ and the normal name is an alias. */
6539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6540 choke me
6541 #else
6542 $ac_func();
6543 #endif
6545 ; return 0; }
6547 if { (eval echo configure:6548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6548 rm -rf conftest*
6549 eval "ac_cv_func_$ac_func=yes"
6550 else
6551 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5
6553 rm -rf conftest*
6554 eval "ac_cv_func_$ac_func=no"
6556 rm -f conftest*
6559 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6560 echo "$ac_t""yes" 1>&6
6561 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6562 cat >> confdefs.h <<EOF
6563 #define $ac_tr_func 1
6566 else
6567 echo "$ac_t""no" 1>&6
6569 done
6571 *) echo $ac_n "checking for bigcrypt in -lsecurity""... $ac_c" 1>&6
6572 echo "configure:6573: checking for bigcrypt in -lsecurity" >&5
6573 ac_lib_var=`echo security'_'bigcrypt | sed 'y%./+-%__p_%'`
6574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6576 else
6577 ac_save_LIBS="$LIBS"
6578 LIBS="-lsecurity $LIBS"
6579 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure"
6581 #include "confdefs.h"
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585 char bigcrypt();
6587 int main() {
6588 bigcrypt()
6589 ; return 0; }
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6592 rm -rf conftest*
6593 eval "ac_cv_lib_$ac_lib_var=yes"
6594 else
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6597 rm -rf conftest*
6598 eval "ac_cv_lib_$ac_lib_var=no"
6600 rm -f conftest*
6601 LIBS="$ac_save_LIBS"
6604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6605 echo "$ac_t""yes" 1>&6
6606 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6607 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6608 cat >> confdefs.h <<EOF
6609 #define $ac_tr_lib 1
6612 LIBS="-lsecurity $LIBS"
6614 else
6615 echo "$ac_t""no" 1>&6
6618 for ac_func in bigcrypt
6620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6621 echo "configure:6622: checking for $ac_func" >&5
6622 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6623 echo $ac_n "(cached) $ac_c" 1>&6
6624 else
6625 cat > conftest.$ac_ext <<EOF
6626 #line 6627 "configure"
6627 #include "confdefs.h"
6628 /* System header to define __stub macros and hopefully few prototypes,
6629 which can conflict with char $ac_func(); below. */
6630 #include <assert.h>
6631 /* Override any gcc2 internal prototype to avoid an error. */
6632 /* We use char because int might match the return type of a gcc2
6633 builtin and then its argument prototype would still apply. */
6634 char $ac_func();
6636 int main() {
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6642 choke me
6643 #else
6644 $ac_func();
6645 #endif
6647 ; return 0; }
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 rm -rf conftest*
6651 eval "ac_cv_func_$ac_func=yes"
6652 else
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6655 rm -rf conftest*
6656 eval "ac_cv_func_$ac_func=no"
6658 rm -f conftest*
6661 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6664 cat >> confdefs.h <<EOF
6665 #define $ac_tr_func 1
6668 else
6669 echo "$ac_t""no" 1>&6
6671 done
6674 esac
6676 case "$LIBS" in
6677 *-lsec*) for ac_func in bigcrypt
6679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6680 echo "configure:6681: checking for $ac_func" >&5
6681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6683 else
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char $ac_func(); below. */
6689 #include <assert.h>
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6693 char $ac_func();
6695 int main() {
6697 /* The GNU C library defines this for functions which it implements
6698 to always fail with ENOSYS. Some functions are actually named
6699 something starting with __ and the normal name is an alias. */
6700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6701 choke me
6702 #else
6703 $ac_func();
6704 #endif
6706 ; return 0; }
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 rm -rf conftest*
6710 eval "ac_cv_func_$ac_func=yes"
6711 else
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 rm -rf conftest*
6715 eval "ac_cv_func_$ac_func=no"
6717 rm -f conftest*
6720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6721 echo "$ac_t""yes" 1>&6
6722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6723 cat >> confdefs.h <<EOF
6724 #define $ac_tr_func 1
6727 else
6728 echo "$ac_t""no" 1>&6
6730 done
6732 *) echo $ac_n "checking for bigcrypt in -lsec""... $ac_c" 1>&6
6733 echo "configure:6734: checking for bigcrypt in -lsec" >&5
6734 ac_lib_var=`echo sec'_'bigcrypt | sed 'y%./+-%__p_%'`
6735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6736 echo $ac_n "(cached) $ac_c" 1>&6
6737 else
6738 ac_save_LIBS="$LIBS"
6739 LIBS="-lsec $LIBS"
6740 cat > conftest.$ac_ext <<EOF
6741 #line 6742 "configure"
6742 #include "confdefs.h"
6743 /* Override any gcc2 internal prototype to avoid an error. */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6746 char bigcrypt();
6748 int main() {
6749 bigcrypt()
6750 ; return 0; }
6752 if { (eval echo configure:6753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6753 rm -rf conftest*
6754 eval "ac_cv_lib_$ac_lib_var=yes"
6755 else
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 rm -rf conftest*
6759 eval "ac_cv_lib_$ac_lib_var=no"
6761 rm -f conftest*
6762 LIBS="$ac_save_LIBS"
6765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6766 echo "$ac_t""yes" 1>&6
6767 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6769 cat >> confdefs.h <<EOF
6770 #define $ac_tr_lib 1
6773 LIBS="-lsec $LIBS"
6775 else
6776 echo "$ac_t""no" 1>&6
6779 for ac_func in bigcrypt
6781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6782 echo "configure:6783: checking for $ac_func" >&5
6783 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6785 else
6786 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure"
6788 #include "confdefs.h"
6789 /* System header to define __stub macros and hopefully few prototypes,
6790 which can conflict with char $ac_func(); below. */
6791 #include <assert.h>
6792 /* Override any gcc2 internal prototype to avoid an error. */
6793 /* We use char because int might match the return type of a gcc2
6794 builtin and then its argument prototype would still apply. */
6795 char $ac_func();
6797 int main() {
6799 /* The GNU C library defines this for functions which it implements
6800 to always fail with ENOSYS. Some functions are actually named
6801 something starting with __ and the normal name is an alias. */
6802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6803 choke me
6804 #else
6805 $ac_func();
6806 #endif
6808 ; return 0; }
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 rm -rf conftest*
6812 eval "ac_cv_func_$ac_func=yes"
6813 else
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6816 rm -rf conftest*
6817 eval "ac_cv_func_$ac_func=no"
6819 rm -f conftest*
6822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6825 cat >> confdefs.h <<EOF
6826 #define $ac_tr_func 1
6829 else
6830 echo "$ac_t""no" 1>&6
6832 done
6835 esac
6838 case "$LIBS" in
6839 *-lsecurity*) for ac_func in getprpwnam
6841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6842 echo "configure:6843: checking for $ac_func" >&5
6843 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6844 echo $ac_n "(cached) $ac_c" 1>&6
6845 else
6846 cat > conftest.$ac_ext <<EOF
6847 #line 6848 "configure"
6848 #include "confdefs.h"
6849 /* System header to define __stub macros and hopefully few prototypes,
6850 which can conflict with char $ac_func(); below. */
6851 #include <assert.h>
6852 /* Override any gcc2 internal prototype to avoid an error. */
6853 /* We use char because int might match the return type of a gcc2
6854 builtin and then its argument prototype would still apply. */
6855 char $ac_func();
6857 int main() {
6859 /* The GNU C library defines this for functions which it implements
6860 to always fail with ENOSYS. Some functions are actually named
6861 something starting with __ and the normal name is an alias. */
6862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6863 choke me
6864 #else
6865 $ac_func();
6866 #endif
6868 ; return 0; }
6870 if { (eval echo configure:6871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 rm -rf conftest*
6872 eval "ac_cv_func_$ac_func=yes"
6873 else
6874 echo "configure: failed program was:" >&5
6875 cat conftest.$ac_ext >&5
6876 rm -rf conftest*
6877 eval "ac_cv_func_$ac_func=no"
6879 rm -f conftest*
6882 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6885 cat >> confdefs.h <<EOF
6886 #define $ac_tr_func 1
6889 else
6890 echo "$ac_t""no" 1>&6
6892 done
6894 *) echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
6895 echo "configure:6896: checking for getprpwnam in -lsecurity" >&5
6896 ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
6897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6898 echo $ac_n "(cached) $ac_c" 1>&6
6899 else
6900 ac_save_LIBS="$LIBS"
6901 LIBS="-lsecurity $LIBS"
6902 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6905 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6908 char getprpwnam();
6910 int main() {
6911 getprpwnam()
6912 ; return 0; }
6914 if { (eval echo configure:6915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6915 rm -rf conftest*
6916 eval "ac_cv_lib_$ac_lib_var=yes"
6917 else
6918 echo "configure: failed program was:" >&5
6919 cat conftest.$ac_ext >&5
6920 rm -rf conftest*
6921 eval "ac_cv_lib_$ac_lib_var=no"
6923 rm -f conftest*
6924 LIBS="$ac_save_LIBS"
6927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6928 echo "$ac_t""yes" 1>&6
6929 ac_tr_lib=HAVE_LIB`echo security | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6931 cat >> confdefs.h <<EOF
6932 #define $ac_tr_lib 1
6935 LIBS="-lsecurity $LIBS"
6937 else
6938 echo "$ac_t""no" 1>&6
6941 for ac_func in getprpwnam
6943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6944 echo "configure:6945: checking for $ac_func" >&5
6945 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6946 echo $ac_n "(cached) $ac_c" 1>&6
6947 else
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* System header to define __stub macros and hopefully few prototypes,
6952 which can conflict with char $ac_func(); below. */
6953 #include <assert.h>
6954 /* Override any gcc2 internal prototype to avoid an error. */
6955 /* We use char because int might match the return type of a gcc2
6956 builtin and then its argument prototype would still apply. */
6957 char $ac_func();
6959 int main() {
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6965 choke me
6966 #else
6967 $ac_func();
6968 #endif
6970 ; return 0; }
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6973 rm -rf conftest*
6974 eval "ac_cv_func_$ac_func=yes"
6975 else
6976 echo "configure: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 rm -rf conftest*
6979 eval "ac_cv_func_$ac_func=no"
6981 rm -f conftest*
6984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6985 echo "$ac_t""yes" 1>&6
6986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6987 cat >> confdefs.h <<EOF
6988 #define $ac_tr_func 1
6991 else
6992 echo "$ac_t""no" 1>&6
6994 done
6997 esac
6999 case "$LIBS" in
7000 *-lsec*) for ac_func in getprpwnam
7002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7003 echo "configure:7004: checking for $ac_func" >&5
7004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7005 echo $ac_n "(cached) $ac_c" 1>&6
7006 else
7007 cat > conftest.$ac_ext <<EOF
7008 #line 7009 "configure"
7009 #include "confdefs.h"
7010 /* System header to define __stub macros and hopefully few prototypes,
7011 which can conflict with char $ac_func(); below. */
7012 #include <assert.h>
7013 /* Override any gcc2 internal prototype to avoid an error. */
7014 /* We use char because int might match the return type of a gcc2
7015 builtin and then its argument prototype would still apply. */
7016 char $ac_func();
7018 int main() {
7020 /* The GNU C library defines this for functions which it implements
7021 to always fail with ENOSYS. Some functions are actually named
7022 something starting with __ and the normal name is an alias. */
7023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7024 choke me
7025 #else
7026 $ac_func();
7027 #endif
7029 ; return 0; }
7031 if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7032 rm -rf conftest*
7033 eval "ac_cv_func_$ac_func=yes"
7034 else
7035 echo "configure: failed program was:" >&5
7036 cat conftest.$ac_ext >&5
7037 rm -rf conftest*
7038 eval "ac_cv_func_$ac_func=no"
7040 rm -f conftest*
7043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7044 echo "$ac_t""yes" 1>&6
7045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7046 cat >> confdefs.h <<EOF
7047 #define $ac_tr_func 1
7050 else
7051 echo "$ac_t""no" 1>&6
7053 done
7055 *) echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
7056 echo "configure:7057: checking for getprpwnam in -lsec" >&5
7057 ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
7058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7060 else
7061 ac_save_LIBS="$LIBS"
7062 LIBS="-lsec $LIBS"
7063 cat > conftest.$ac_ext <<EOF
7064 #line 7065 "configure"
7065 #include "confdefs.h"
7066 /* Override any gcc2 internal prototype to avoid an error. */
7067 /* We use char because int might match the return type of a gcc2
7068 builtin and then its argument prototype would still apply. */
7069 char getprpwnam();
7071 int main() {
7072 getprpwnam()
7073 ; return 0; }
7075 if { (eval echo configure:7076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7076 rm -rf conftest*
7077 eval "ac_cv_lib_$ac_lib_var=yes"
7078 else
7079 echo "configure: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 rm -rf conftest*
7082 eval "ac_cv_lib_$ac_lib_var=no"
7084 rm -f conftest*
7085 LIBS="$ac_save_LIBS"
7088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7089 echo "$ac_t""yes" 1>&6
7090 ac_tr_lib=HAVE_LIB`echo sec | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7091 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7092 cat >> confdefs.h <<EOF
7093 #define $ac_tr_lib 1
7096 LIBS="-lsec $LIBS"
7098 else
7099 echo "$ac_t""no" 1>&6
7102 for ac_func in getprpwnam
7104 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7105 echo "configure:7106: checking for $ac_func" >&5
7106 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7107 echo $ac_n "(cached) $ac_c" 1>&6
7108 else
7109 cat > conftest.$ac_ext <<EOF
7110 #line 7111 "configure"
7111 #include "confdefs.h"
7112 /* System header to define __stub macros and hopefully few prototypes,
7113 which can conflict with char $ac_func(); below. */
7114 #include <assert.h>
7115 /* Override any gcc2 internal prototype to avoid an error. */
7116 /* We use char because int might match the return type of a gcc2
7117 builtin and then its argument prototype would still apply. */
7118 char $ac_func();
7120 int main() {
7122 /* The GNU C library defines this for functions which it implements
7123 to always fail with ENOSYS. Some functions are actually named
7124 something starting with __ and the normal name is an alias. */
7125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7126 choke me
7127 #else
7128 $ac_func();
7129 #endif
7131 ; return 0; }
7133 if { (eval echo configure:7134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7134 rm -rf conftest*
7135 eval "ac_cv_func_$ac_func=yes"
7136 else
7137 echo "configure: failed program was:" >&5
7138 cat conftest.$ac_ext >&5
7139 rm -rf conftest*
7140 eval "ac_cv_func_$ac_func=no"
7142 rm -f conftest*
7145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7146 echo "$ac_t""yes" 1>&6
7147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7148 cat >> confdefs.h <<EOF
7149 #define $ac_tr_func 1
7152 else
7153 echo "$ac_t""no" 1>&6
7155 done
7158 esac
7161 # this bit needs to be modified for each OS that is suported by
7162 # smbwrapper. You need to specify how to created a shared library and
7163 # how to compile C code to produce PIC object files
7165 # these are the defaults, good for lots of systems
7166 HOST_OS="$host_os"
7167 LDSHFLAGS="-shared"
7169 # and these are for particular systems
7170 case "$host_os" in
7171 *linux*) cat >> confdefs.h <<\EOF
7172 #define LINUX 1
7175 *solaris*) cat >> confdefs.h <<\EOF
7176 #define SUNOS5 1
7179 LDSHFLAGS="-G"
7181 *sunos*) cat >> confdefs.h <<\EOF
7182 #define SUNOS4 1
7185 LDSHFLAGS=""
7187 *bsd*) LDSHFLAGS="-shared -Bshareable"
7189 *irix*) cat >> confdefs.h <<\EOF
7190 #define IRIX 1
7193 ATTEMPT_WRAP32_BUILD=yes
7194 ATTEMPT_LIBSMB32_BUILD=yes
7195 ATTEMPT_LIBSMBPW32_BUILD=yes
7196 ATTEMPT_LIBNMB32_BUILD=yes
7197 ATTEMPT_LIBSAMBA32_BUILD=yes
7198 ATTEMPT_LIBUBIQX32_BUILD=yes
7199 ATTEMPT_LIBMSRPC32_BUILD=yes
7201 *aix*) cat >> confdefs.h <<\EOF
7202 #define AIX 1
7205 *hpux*) cat >> confdefs.h <<\EOF
7206 #define HPUX 1
7209 *qnx*) cat >> confdefs.h <<\EOF
7210 #define QNX 1
7213 *osf*) cat >> confdefs.h <<\EOF
7214 #define OSF1 1
7217 *sco*) cat >> confdefs.h <<\EOF
7218 #define SCO 1
7221 *next2*) cat >> confdefs.h <<\EOF
7222 #define NEXT2 1
7225 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
7226 set dummy groff; ac_word=$2
7227 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7228 echo "configure:7229: checking for $ac_word" >&5
7229 if eval "test \"`echo '$''{'ac_cv_prog_ROFF'+set}'`\" = set"; then
7230 echo $ac_n "(cached) $ac_c" 1>&6
7231 else
7232 if test -n "$ROFF"; then
7233 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
7234 else
7235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7236 ac_dummy="$PATH"
7237 for ac_dir in $ac_dummy; do
7238 test -z "$ac_dir" && ac_dir=.
7239 if test -f $ac_dir/$ac_word; then
7240 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
7241 break
7243 done
7244 IFS="$ac_save_ifs"
7247 ROFF="$ac_cv_prog_ROFF"
7248 if test -n "$ROFF"; then
7249 echo "$ac_t""$ROFF" 1>&6
7250 else
7251 echo "$ac_t""no" 1>&6
7254 *sysv4.2*) echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6
7255 echo "configure:7256: checking for strcasecmp in -lresolv" >&5
7256 ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'`
7257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7258 echo $ac_n "(cached) $ac_c" 1>&6
7259 else
7260 ac_save_LIBS="$LIBS"
7261 LIBS="-lresolv $LIBS"
7262 cat > conftest.$ac_ext <<EOF
7263 #line 7264 "configure"
7264 #include "confdefs.h"
7265 /* Override any gcc2 internal prototype to avoid an error. */
7266 /* We use char because int might match the return type of a gcc2
7267 builtin and then its argument prototype would still apply. */
7268 char strcasecmp();
7270 int main() {
7271 strcasecmp()
7272 ; return 0; }
7274 if { (eval echo configure:7275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7275 rm -rf conftest*
7276 eval "ac_cv_lib_$ac_lib_var=yes"
7277 else
7278 echo "configure: failed program was:" >&5
7279 cat conftest.$ac_ext >&5
7280 rm -rf conftest*
7281 eval "ac_cv_lib_$ac_lib_var=no"
7283 rm -f conftest*
7284 LIBS="$ac_save_LIBS"
7287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7288 echo "$ac_t""yes" 1>&6
7289 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7290 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7291 cat >> confdefs.h <<EOF
7292 #define $ac_tr_lib 1
7295 LIBS="-lresolv $LIBS"
7297 else
7298 echo "$ac_t""no" 1>&6
7301 esac
7303 # try to work out how to produce pic code with this compiler
7304 PICFLAG=""
7305 echo $ac_n "checking whether ${CC-cc} accepts -fpic""... $ac_c" 1>&6
7306 echo "configure:7307: checking whether ${CC-cc} accepts -fpic" >&5
7307 if eval "test \"`echo '$''{'ac_cv_prog_cc_fpic'+set}'`\" = set"; then
7308 echo $ac_n "(cached) $ac_c" 1>&6
7309 else
7310 echo 'void f(){}' > conftest.c
7311 if test -z "`${CC-cc} -fpic -c conftest.c 2>&1`"; then
7312 ac_cv_prog_cc_fpic=yes
7313 else
7314 ac_cv_prog_cc_fpic=no
7316 rm -f conftest*
7320 echo "$ac_t""$ac_cv_prog_cc_fpic" 1>&6
7321 if test $ac_cv_prog_cc_fpic = yes; then
7322 PICFLAG="-fpic";
7324 if test x$PICFLAG = x; then
7325 echo $ac_n "checking whether ${CC-cc} accepts -Kpic""... $ac_c" 1>&6
7326 echo "configure:7327: checking whether ${CC-cc} accepts -Kpic" >&5
7327 if eval "test \"`echo '$''{'ac_cv_prog_cc_Kpic'+set}'`\" = set"; then
7328 echo $ac_n "(cached) $ac_c" 1>&6
7329 else
7330 echo 'void f(){}' > conftest.c
7331 if test -z "`${CC-cc} -Kpic -c conftest.c 2>&1`"; then
7332 ac_cv_prog_cc_Kpic=yes
7333 else
7334 ac_cv_prog_cc_Kpic=no
7336 rm -f conftest*
7340 echo "$ac_t""$ac_cv_prog_cc_Kpic" 1>&6
7341 if test $ac_cv_prog_cc_Kpic = yes; then
7342 PICFLAG="-Kpic";
7345 if test x$PICFLAG = x; then
7346 echo $ac_n "checking whether ${CC-cc} accepts -KPIC""... $ac_c" 1>&6
7347 echo "configure:7348: checking whether ${CC-cc} accepts -KPIC" >&5
7348 if eval "test \"`echo '$''{'ac_cv_prog_cc_KPIC'+set}'`\" = set"; then
7349 echo $ac_n "(cached) $ac_c" 1>&6
7350 else
7351 echo 'void f(){}' > conftest.c
7352 if test -z "`${CC-cc} -KPIC -c conftest.c 2>&1`"; then
7353 ac_cv_prog_cc_KPIC=yes
7354 else
7355 ac_cv_prog_cc_KPIC=no
7357 rm -f conftest*
7361 echo "$ac_t""$ac_cv_prog_cc_KPIC" 1>&6
7362 if test $ac_cv_prog_cc_KPIC = yes; then
7363 PICFLAG="-KPIC";
7367 ################
7369 echo $ac_n "checking for long long""... $ac_c" 1>&6
7370 echo "configure:7371: checking for long long" >&5
7371 if eval "test \"`echo '$''{'samba_cv_have_longlong'+set}'`\" = set"; then
7372 echo $ac_n "(cached) $ac_c" 1>&6
7373 else
7375 if test "$cross_compiling" = yes; then
7376 samba_cv_have_longlong=cross
7377 else
7378 cat > conftest.$ac_ext <<EOF
7379 #line 7380 "configure"
7380 #include "confdefs.h"
7381 #include <stdio.h>
7382 main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
7384 if { (eval echo configure:7385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7385 then
7386 samba_cv_have_longlong=yes
7387 else
7388 echo "configure: failed program was:" >&5
7389 cat conftest.$ac_ext >&5
7390 rm -fr conftest*
7391 samba_cv_have_longlong=no
7393 rm -fr conftest*
7398 echo "$ac_t""$samba_cv_have_longlong" 1>&6
7399 if test x"$samba_cv_have_longlong" = x"yes"; then
7400 cat >> confdefs.h <<\EOF
7401 #define HAVE_LONGLONG 1
7406 echo $ac_n "checking for 64 bit off_t""... $ac_c" 1>&6
7407 echo "configure:7408: checking for 64 bit off_t" >&5
7408 if eval "test \"`echo '$''{'samba_cv_SIZEOF_OFF_T'+set}'`\" = set"; then
7409 echo $ac_n "(cached) $ac_c" 1>&6
7410 else
7412 if test "$cross_compiling" = yes; then
7413 samba_cv_SIZEOF_OFF_T=cross
7414 else
7415 cat > conftest.$ac_ext <<EOF
7416 #line 7417 "configure"
7417 #include "confdefs.h"
7418 #include <stdio.h>
7419 #include <sys/stat.h>
7420 main() { exit((sizeof(off_t) == 8) ? 0 : 1); }
7422 if { (eval echo configure:7423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7423 then
7424 samba_cv_SIZEOF_OFF_T=yes
7425 else
7426 echo "configure: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 rm -fr conftest*
7429 samba_cv_SIZEOF_OFF_T=no
7431 rm -fr conftest*
7436 echo "$ac_t""$samba_cv_SIZEOF_OFF_T" 1>&6
7437 if test x"$samba_cv_SIZEOF_OFF_T" = x"yes"; then
7438 cat >> confdefs.h <<\EOF
7439 #define SIZEOF_OFF_T 8
7444 echo $ac_n "checking for off64_t""... $ac_c" 1>&6
7445 echo "configure:7446: checking for off64_t" >&5
7446 if eval "test \"`echo '$''{'samba_cv_HAVE_OFF64_T'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
7448 else
7450 if test "$cross_compiling" = yes; then
7451 samba_cv_HAVE_OFF64_T=cross
7452 else
7453 cat > conftest.$ac_ext <<EOF
7454 #line 7455 "configure"
7455 #include "confdefs.h"
7456 #include <stdio.h>
7457 #include <sys/stat.h>
7458 main() { struct stat64 st; off64_t s; if (sizeof(off_t) == sizeof(off64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7460 if { (eval echo configure:7461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7461 then
7462 samba_cv_HAVE_OFF64_T=yes
7463 else
7464 echo "configure: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7466 rm -fr conftest*
7467 samba_cv_HAVE_OFF64_T=no
7469 rm -fr conftest*
7474 echo "$ac_t""$samba_cv_HAVE_OFF64_T" 1>&6
7475 if test x"$samba_cv_HAVE_OFF64_T" = x"yes"; then
7476 cat >> confdefs.h <<\EOF
7477 #define HAVE_OFF64_T 1
7482 echo $ac_n "checking for 64 bit ino_t""... $ac_c" 1>&6
7483 echo "configure:7484: checking for 64 bit ino_t" >&5
7484 if eval "test \"`echo '$''{'samba_cv_SIZEOF_INO_T'+set}'`\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7486 else
7488 if test "$cross_compiling" = yes; then
7489 samba_cv_SIZEOF_INO_T=cross
7490 else
7491 cat > conftest.$ac_ext <<EOF
7492 #line 7493 "configure"
7493 #include "confdefs.h"
7494 #include <stdio.h>
7495 #include <sys/stat.h>
7496 main() { exit((sizeof(ino_t) == 8) ? 0 : 1); }
7498 if { (eval echo configure:7499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7499 then
7500 samba_cv_SIZEOF_INO_T=yes
7501 else
7502 echo "configure: failed program was:" >&5
7503 cat conftest.$ac_ext >&5
7504 rm -fr conftest*
7505 samba_cv_SIZEOF_INO_T=no
7507 rm -fr conftest*
7512 echo "$ac_t""$samba_cv_SIZEOF_INO_T" 1>&6
7513 if test x"$samba_cv_SIZEOF_INO_T" = x"yes"; then
7514 cat >> confdefs.h <<\EOF
7515 #define SIZEOF_INO_T 8
7520 echo $ac_n "checking for ino64_t""... $ac_c" 1>&6
7521 echo "configure:7522: checking for ino64_t" >&5
7522 if eval "test \"`echo '$''{'samba_cv_HAVE_INO64_T'+set}'`\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7524 else
7526 if test "$cross_compiling" = yes; then
7527 samba_cv_HAVE_INO64_T=cross
7528 else
7529 cat > conftest.$ac_ext <<EOF
7530 #line 7531 "configure"
7531 #include "confdefs.h"
7532 #include <stdio.h>
7533 #include <sys/stat.h>
7534 main() { struct stat64 st; ino64_t s; if (sizeof(ino_t) == sizeof(ino64_t)) exit(1); exit((lstat64("/dev/null", &st)==0)?0:1); }
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7537 then
7538 samba_cv_HAVE_INO64_T=yes
7539 else
7540 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5
7542 rm -fr conftest*
7543 samba_cv_HAVE_INO64_T=no
7545 rm -fr conftest*
7550 echo "$ac_t""$samba_cv_HAVE_INO64_T" 1>&6
7551 if test x"$samba_cv_HAVE_INO64_T" = x"yes"; then
7552 cat >> confdefs.h <<\EOF
7553 #define HAVE_INO64_T 1
7558 echo $ac_n "checking for union semun""... $ac_c" 1>&6
7559 echo "configure:7560: checking for union semun" >&5
7560 if eval "test \"`echo '$''{'samba_cv_HAVE_UNION_SEMUN'+set}'`\" = set"; then
7561 echo $ac_n "(cached) $ac_c" 1>&6
7562 else
7564 if test "$cross_compiling" = yes; then
7565 samba_cv_HAVE_UNION_SEMUN=cross
7566 else
7567 cat > conftest.$ac_ext <<EOF
7568 #line 7569 "configure"
7569 #include "confdefs.h"
7571 #include <sys/types.h>
7572 #include <sys/ipc.h>
7573 #include <sys/sem.h>
7574 main() { union semun ss; exit(0); }
7576 if { (eval echo configure:7577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7577 then
7578 samba_cv_HAVE_UNION_SEMUN=yes
7579 else
7580 echo "configure: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7582 rm -fr conftest*
7583 samba_cv_HAVE_UNION_SEMUN=no
7585 rm -fr conftest*
7590 echo "$ac_t""$samba_cv_HAVE_UNION_SEMUN" 1>&6
7591 if test x"$samba_cv_HAVE_UNION_SEMUN" = x"yes"; then
7592 cat >> confdefs.h <<\EOF
7593 #define HAVE_UNION_SEMUN 1
7598 echo $ac_n "checking for unsigned char""... $ac_c" 1>&6
7599 echo "configure:7600: checking for unsigned char" >&5
7600 if eval "test \"`echo '$''{'samba_cv_HAVE_UNSIGNED_CHAR'+set}'`\" = set"; then
7601 echo $ac_n "(cached) $ac_c" 1>&6
7602 else
7604 if test "$cross_compiling" = yes; then
7605 samba_cv_HAVE_UNSIGNED_CHAR=cross
7606 else
7607 cat > conftest.$ac_ext <<EOF
7608 #line 7609 "configure"
7609 #include "confdefs.h"
7610 #include <stdio.h>
7611 main() { char c; c=250; exit((c > 0)?0:1); }
7613 if { (eval echo configure:7614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7614 then
7615 samba_cv_HAVE_UNSIGNED_CHAR=yes
7616 else
7617 echo "configure: failed program was:" >&5
7618 cat conftest.$ac_ext >&5
7619 rm -fr conftest*
7620 samba_cv_HAVE_UNSIGNED_CHAR=no
7622 rm -fr conftest*
7627 echo "$ac_t""$samba_cv_HAVE_UNSIGNED_CHAR" 1>&6
7628 if test x"$samba_cv_HAVE_UNSIGNED_CHAR" = x"yes"; then
7629 cat >> confdefs.h <<\EOF
7630 #define HAVE_UNSIGNED_CHAR 1
7635 echo $ac_n "checking for sin_len in sock""... $ac_c" 1>&6
7636 echo "configure:7637: checking for sin_len in sock" >&5
7637 if eval "test \"`echo '$''{'samba_cv_HAVE_SOCK_SIN_LEN'+set}'`\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7639 else
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 #include <sys/types.h>
7645 #include <sys/socket.h>
7646 #include <netinet/in.h>
7647 int main() {
7648 struct sockaddr_in sock; sock.sin_len = sizeof(sock);
7649 ; return 0; }
7651 if { (eval echo configure:7652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7652 rm -rf conftest*
7653 samba_cv_HAVE_SOCK_SIN_LEN=yes
7654 else
7655 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5
7657 rm -rf conftest*
7658 samba_cv_HAVE_SOCK_SIN_LEN=no
7660 rm -f conftest*
7663 echo "$ac_t""$samba_cv_HAVE_SOCK_SIN_LEN" 1>&6
7664 if test x"$samba_cv_HAVE_SOCK_SIN_LEN" = x"yes"; then
7665 cat >> confdefs.h <<\EOF
7666 #define HAVE_SOCK_SIN_LEN 1
7671 echo $ac_n "checking whether seekdir returns void""... $ac_c" 1>&6
7672 echo "configure:7673: checking whether seekdir returns void" >&5
7673 if eval "test \"`echo '$''{'samba_cv_SEEKDIR_RETURNS_VOID'+set}'`\" = set"; then
7674 echo $ac_n "(cached) $ac_c" 1>&6
7675 else
7677 cat > conftest.$ac_ext <<EOF
7678 #line 7679 "configure"
7679 #include "confdefs.h"
7680 #include <sys/types.h>
7681 #include <dirent.h>
7682 void seekdir(DIR *d, long loc) { return; }
7683 int main() {
7684 return 0;
7685 ; return 0; }
7687 if { (eval echo configure:7688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7688 rm -rf conftest*
7689 samba_cv_SEEKDIR_RETURNS_VOID=yes
7690 else
7691 echo "configure: failed program was:" >&5
7692 cat conftest.$ac_ext >&5
7693 rm -rf conftest*
7694 samba_cv_SEEKDIR_RETURNS_VOID=no
7696 rm -f conftest*
7699 echo "$ac_t""$samba_cv_SEEKDIR_RETURNS_VOID" 1>&6
7700 if test x"$samba_cv_SEEKDIR_RETURNS_VOID" = x"yes"; then
7701 cat >> confdefs.h <<\EOF
7702 #define SEEKDIR_RETURNS_VOID 1
7707 echo $ac_n "checking for __FILE__ macro""... $ac_c" 1>&6
7708 echo "configure:7709: checking for __FILE__ macro" >&5
7709 if eval "test \"`echo '$''{'samba_cv_HAVE_FILE_MACRO'+set}'`\" = set"; then
7710 echo $ac_n "(cached) $ac_c" 1>&6
7711 else
7713 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 #include <stdio.h>
7717 int main() {
7718 printf("%s\n", __FILE__);
7719 ; return 0; }
7721 if { (eval echo configure:7722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7722 rm -rf conftest*
7723 samba_cv_HAVE_FILE_MACRO=yes
7724 else
7725 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 rm -rf conftest*
7728 samba_cv_HAVE_FILE_MACRO=no
7730 rm -f conftest*
7733 echo "$ac_t""$samba_cv_HAVE_FILE_MACRO" 1>&6
7734 if test x"$samba_cv_HAVE_FILE_MACRO" = x"yes"; then
7735 cat >> confdefs.h <<\EOF
7736 #define HAVE_FILE_MACRO 1
7741 echo $ac_n "checking for __FUNCTION__ macro""... $ac_c" 1>&6
7742 echo "configure:7743: checking for __FUNCTION__ macro" >&5
7743 if eval "test \"`echo '$''{'samba_cv_HAVE_FUNCTION_MACRO'+set}'`\" = set"; then
7744 echo $ac_n "(cached) $ac_c" 1>&6
7745 else
7747 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure"
7749 #include "confdefs.h"
7750 #include <stdio.h>
7751 int main() {
7752 printf("%s\n", __FUNCTION__);
7753 ; return 0; }
7755 if { (eval echo configure:7756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7756 rm -rf conftest*
7757 samba_cv_HAVE_FUNCTION_MACRO=yes
7758 else
7759 echo "configure: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 rm -rf conftest*
7762 samba_cv_HAVE_FUNCTION_MACRO=no
7764 rm -f conftest*
7767 echo "$ac_t""$samba_cv_HAVE_FUNCTION_MACRO" 1>&6
7768 if test x"$samba_cv_HAVE_FUNCTION_MACRO" = x"yes"; then
7769 cat >> confdefs.h <<\EOF
7770 #define HAVE_FUNCTION_MACRO 1
7775 echo $ac_n "checking if gettimeofday takes tz argument""... $ac_c" 1>&6
7776 echo "configure:7777: checking if gettimeofday takes tz argument" >&5
7777 if eval "test \"`echo '$''{'samba_cv_HAVE_GETTIMEOFDAY_TZ'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779 else
7781 if test "$cross_compiling" = yes; then
7782 samba_cv_HAVE_GETTIMEOFDAY_TZ=cross
7783 else
7784 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure"
7786 #include "confdefs.h"
7788 #include <sys/time.h>
7789 #include <unistd.h>
7790 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7793 then
7794 samba_cv_HAVE_GETTIMEOFDAY_TZ=yes
7795 else
7796 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5
7798 rm -fr conftest*
7799 samba_cv_HAVE_GETTIMEOFDAY_TZ=no
7801 rm -fr conftest*
7806 echo "$ac_t""$samba_cv_HAVE_GETTIMEOFDAY_TZ" 1>&6
7807 if test x"$samba_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then
7808 cat >> confdefs.h <<\EOF
7809 #define HAVE_GETTIMEOFDAY_TZ 1
7815 echo $ac_n "checking for broken readdir""... $ac_c" 1>&6
7816 echo "configure:7817: checking for broken readdir" >&5
7817 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_READDIR'+set}'`\" = set"; then
7818 echo $ac_n "(cached) $ac_c" 1>&6
7819 else
7821 if test "$cross_compiling" = yes; then
7822 samba_cv_HAVE_BROKEN_READDIR=cross
7823 else
7824 cat > conftest.$ac_ext <<EOF
7825 #line 7826 "configure"
7826 #include "confdefs.h"
7827 #include <sys/types.h>
7828 #include <dirent.h>
7829 main() { struct dirent *di; DIR *d = opendir("."); di = readdir(d);
7830 if (di && di->d_name[-2] == '.' && di->d_name[-1] == 0 &&
7831 di->d_name[0] == 0) exit(0); exit(1);}
7833 if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7834 then
7835 samba_cv_HAVE_BROKEN_READDIR=yes
7836 else
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 rm -fr conftest*
7840 samba_cv_HAVE_BROKEN_READDIR=no
7842 rm -fr conftest*
7847 echo "$ac_t""$samba_cv_HAVE_BROKEN_READDIR" 1>&6
7848 if test x"$samba_cv_HAVE_BROKEN_READDIR" = x"yes"; then
7849 cat >> confdefs.h <<\EOF
7850 #define HAVE_BROKEN_READDIR 1
7855 echo $ac_n "checking for utimbuf""... $ac_c" 1>&6
7856 echo "configure:7857: checking for utimbuf" >&5
7857 if eval "test \"`echo '$''{'samba_cv_HAVE_UTIMBUF'+set}'`\" = set"; then
7858 echo $ac_n "(cached) $ac_c" 1>&6
7859 else
7861 cat > conftest.$ac_ext <<EOF
7862 #line 7863 "configure"
7863 #include "confdefs.h"
7864 #include <sys/types.h>
7865 #include <utime.h>
7866 int main() {
7867 struct utimbuf tbuf; tbuf.actime = 0; tbuf.modtime = 1; exit(utime("foo.c",&tbuf));
7868 ; return 0; }
7870 if { (eval echo configure:7871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7871 rm -rf conftest*
7872 samba_cv_HAVE_UTIMBUF=yes
7873 else
7874 echo "configure: failed program was:" >&5
7875 cat conftest.$ac_ext >&5
7876 rm -rf conftest*
7877 samba_cv_HAVE_UTIMBUF=no
7879 rm -f conftest*
7882 echo "$ac_t""$samba_cv_HAVE_UTIMBUF" 1>&6
7883 if test x"$samba_cv_HAVE_UTIMBUF" = x"yes"; then
7884 cat >> confdefs.h <<\EOF
7885 #define HAVE_UTIMBUF 1
7890 echo $ac_n "checking for kernel oplock type definitions""... $ac_c" 1>&6
7891 echo "configure:7892: checking for kernel oplock type definitions" >&5
7892 if eval "test \"`echo '$''{'samba_cv_HAVE_KERNEL_OPLOCKS'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7894 else
7896 cat > conftest.$ac_ext <<EOF
7897 #line 7898 "configure"
7898 #include "confdefs.h"
7899 #include <sys/types.h>
7900 #include <fcntl.h>
7901 int main() {
7902 oplock_stat_t t; t.os_state = OP_REVOKE; t.os_dev = 1; t.os_ino = 1;
7903 ; return 0; }
7905 if { (eval echo configure:7906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7906 rm -rf conftest*
7907 samba_cv_HAVE_KERNEL_OPLOCKS=yes
7908 else
7909 echo "configure: failed program was:" >&5
7910 cat conftest.$ac_ext >&5
7911 rm -rf conftest*
7912 samba_cv_HAVE_KERNEL_OPLOCKS=no
7914 rm -f conftest*
7917 echo "$ac_t""$samba_cv_HAVE_KERNEL_OPLOCKS" 1>&6
7918 if test x"$samba_cv_HAVE_KERNEL_OPLOCKS" = x"yes"; then
7919 cat >> confdefs.h <<\EOF
7920 #define HAVE_KERNEL_OPLOCKS 1
7925 echo $ac_n "checking for irix specific capabilities""... $ac_c" 1>&6
7926 echo "configure:7927: checking for irix specific capabilities" >&5
7927 if eval "test \"`echo '$''{'samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES'+set}'`\" = set"; then
7928 echo $ac_n "(cached) $ac_c" 1>&6
7929 else
7931 if test "$cross_compiling" = yes; then
7932 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=cross
7933 else
7934 cat > conftest.$ac_ext <<EOF
7935 #line 7936 "configure"
7936 #include "confdefs.h"
7937 #include <sys/types.h>
7938 #include <sys/capability.h>
7939 main() {
7940 cap_t cap;
7941 if ((cap = cap_get_proc()) == NULL)
7942 exit(1);
7943 cap->cap_effective |= CAP_NETWORK_MGT;
7944 cap->cap_inheritable |= CAP_NETWORK_MGT;
7945 cap_set_proc(cap);
7946 exit(0);
7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7951 then
7952 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=yes
7953 else
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7956 rm -fr conftest*
7957 samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES=no
7959 rm -fr conftest*
7964 echo "$ac_t""$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" 1>&6
7965 if test x"$samba_cv_HAVE_IRIX_SPECIFIC_CAPABILITIES" = x"yes"; then
7966 cat >> confdefs.h <<\EOF
7967 #define HAVE_IRIX_SPECIFIC_CAPABILITIES 1
7973 # Check for int16, uint16, int32 and uint32 in rpc/types.h included from rpc/rpc.h
7974 # This is *really* broken but some systems (DEC OSF1) do this.... JRA.
7977 echo $ac_n "checking for int16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
7978 echo "configure:7979: checking for int16 typedef included by rpc/rpc.h" >&5
7979 if eval "test \"`echo '$''{'samba_cv_HAVE_INT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
7980 echo $ac_n "(cached) $ac_c" 1>&6
7981 else
7983 cat > conftest.$ac_ext <<EOF
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986 #include <sys/types.h>
7987 #if defined(HAVE_RPC_RPC_H)
7988 #include <rpc/rpc.h>
7989 #endif
7990 int main() {
7991 int16 testvar;
7992 ; return 0; }
7994 if { (eval echo configure:7995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7995 rm -rf conftest*
7996 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=yes
7997 else
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 rm -rf conftest*
8001 samba_cv_HAVE_INT16_FROM_RPC_RPC_H=no
8003 rm -f conftest*
8006 echo "$ac_t""$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" 1>&6
8007 if test x"$samba_cv_HAVE_INT16_FROM_RPC_RPC_H" = x"yes"; then
8008 cat >> confdefs.h <<\EOF
8009 #define HAVE_INT16_FROM_RPC_RPC_H 1
8014 echo $ac_n "checking for uint16 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8015 echo "configure:8016: checking for uint16 typedef included by rpc/rpc.h" >&5
8016 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT16_FROM_RPC_RPC_H'+set}'`\" = set"; then
8017 echo $ac_n "(cached) $ac_c" 1>&6
8018 else
8020 cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8023 #include <sys/types.h>
8024 #if defined(HAVE_RPC_RPC_H)
8025 #include <rpc/rpc.h>
8026 #endif
8027 int main() {
8028 uint16 testvar;
8029 ; return 0; }
8031 if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8032 rm -rf conftest*
8033 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=yes
8034 else
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8037 rm -rf conftest*
8038 samba_cv_HAVE_UINT16_FROM_RPC_RPC_H=no
8040 rm -f conftest*
8043 echo "$ac_t""$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" 1>&6
8044 if test x"$samba_cv_HAVE_UINT16_FROM_RPC_RPC_H" = x"yes"; then
8045 cat >> confdefs.h <<\EOF
8046 #define HAVE_UINT16_FROM_RPC_RPC_H 1
8051 echo $ac_n "checking for int32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8052 echo "configure:8053: checking for int32 typedef included by rpc/rpc.h" >&5
8053 if eval "test \"`echo '$''{'samba_cv_HAVE_INT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8054 echo $ac_n "(cached) $ac_c" 1>&6
8055 else
8057 cat > conftest.$ac_ext <<EOF
8058 #line 8059 "configure"
8059 #include "confdefs.h"
8060 #include <sys/types.h>
8061 #if defined(HAVE_RPC_RPC_H)
8062 #include <rpc/rpc.h>
8063 #endif
8064 int main() {
8065 int32 testvar;
8066 ; return 0; }
8068 if { (eval echo configure:8069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8069 rm -rf conftest*
8070 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=yes
8071 else
8072 echo "configure: failed program was:" >&5
8073 cat conftest.$ac_ext >&5
8074 rm -rf conftest*
8075 samba_cv_HAVE_INT32_FROM_RPC_RPC_H=no
8077 rm -f conftest*
8080 echo "$ac_t""$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" 1>&6
8081 if test x"$samba_cv_HAVE_INT32_FROM_RPC_RPC_H" = x"yes"; then
8082 cat >> confdefs.h <<\EOF
8083 #define HAVE_INT32_FROM_RPC_RPC_H 1
8088 echo $ac_n "checking for uint32 typedef included by rpc/rpc.h""... $ac_c" 1>&6
8089 echo "configure:8090: checking for uint32 typedef included by rpc/rpc.h" >&5
8090 if eval "test \"`echo '$''{'samba_cv_HAVE_UINT32_FROM_RPC_RPC_H'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8092 else
8094 cat > conftest.$ac_ext <<EOF
8095 #line 8096 "configure"
8096 #include "confdefs.h"
8097 #include <sys/types.h>
8098 #if defined(HAVE_RPC_RPC_H)
8099 #include <rpc/rpc.h>
8100 #endif
8101 int main() {
8102 uint32 testvar;
8103 ; return 0; }
8105 if { (eval echo configure:8106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8106 rm -rf conftest*
8107 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=yes
8108 else
8109 echo "configure: failed program was:" >&5
8110 cat conftest.$ac_ext >&5
8111 rm -rf conftest*
8112 samba_cv_HAVE_UINT32_FROM_RPC_RPC_H=no
8114 rm -f conftest*
8117 echo "$ac_t""$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" 1>&6
8118 if test x"$samba_cv_HAVE_UINT32_FROM_RPC_RPC_H" = x"yes"; then
8119 cat >> confdefs.h <<\EOF
8120 #define HAVE_UINT32_FROM_RPC_RPC_H 1
8125 echo $ac_n "checking for test routines""... $ac_c" 1>&6
8126 echo "configure:8127: checking for test routines" >&5
8127 if test "$cross_compiling" = yes; then
8128 echo "configure: warning: cannot run when cross-compiling" 1>&2
8129 else
8130 cat > conftest.$ac_ext <<EOF
8131 #line 8132 "configure"
8132 #include "confdefs.h"
8133 #include "${srcdir-.}/tests/trivial.c"
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8136 then
8137 echo "$ac_t""yes" 1>&6
8138 else
8139 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 rm -fr conftest*
8142 { echo "configure: error: cant find test code. Aborting config" 1>&2; exit 1; }
8144 rm -fr conftest*
8148 echo $ac_n "checking for ftruncate extend""... $ac_c" 1>&6
8149 echo "configure:8150: checking for ftruncate extend" >&5
8150 if eval "test \"`echo '$''{'samba_cv_HAVE_FTRUNCATE_EXTEND'+set}'`\" = set"; then
8151 echo $ac_n "(cached) $ac_c" 1>&6
8152 else
8154 if test "$cross_compiling" = yes; then
8155 samba_cv_HAVE_FTRUNCATE_EXTEND=cross
8156 else
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 #include "${srcdir-.}/tests/ftruncate.c"
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8163 then
8164 samba_cv_HAVE_FTRUNCATE_EXTEND=yes
8165 else
8166 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5
8168 rm -fr conftest*
8169 samba_cv_HAVE_FTRUNCATE_EXTEND=no
8171 rm -fr conftest*
8176 echo "$ac_t""$samba_cv_HAVE_FTRUNCATE_EXTEND" 1>&6
8177 if test x"$samba_cv_HAVE_FTRUNCATE_EXTEND" = x"yes"; then
8178 cat >> confdefs.h <<\EOF
8179 #define HAVE_FTRUNCATE_EXTEND 1
8184 echo $ac_n "checking for broken getgroups""... $ac_c" 1>&6
8185 echo "configure:8186: checking for broken getgroups" >&5
8186 if eval "test \"`echo '$''{'samba_cv_HAVE_BROKEN_GETGROUPS'+set}'`\" = set"; then
8187 echo $ac_n "(cached) $ac_c" 1>&6
8188 else
8190 if test "$cross_compiling" = yes; then
8191 samba_cv_HAVE_BROKEN_GETGROUPS=cross
8192 else
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8196 #include "${srcdir-.}/tests/getgroups.c"
8198 if { (eval echo configure:8199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8199 then
8200 samba_cv_HAVE_BROKEN_GETGROUPS=yes
8201 else
8202 echo "configure: failed program was:" >&5
8203 cat conftest.$ac_ext >&5
8204 rm -fr conftest*
8205 samba_cv_HAVE_BROKEN_GETGROUPS=no
8207 rm -fr conftest*
8212 echo "$ac_t""$samba_cv_HAVE_BROKEN_GETGROUPS" 1>&6
8213 if test x"$samba_cv_HAVE_BROKEN_GETGROUPS" = x"yes"; then
8214 cat >> confdefs.h <<\EOF
8215 #define HAVE_BROKEN_GETGROUPS 1
8220 echo $ac_n "checking whether getpass should be replaced""... $ac_c" 1>&6
8221 echo "configure:8222: checking whether getpass should be replaced" >&5
8222 if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then
8223 echo $ac_n "(cached) $ac_c" 1>&6
8224 else
8226 SAVE_CPPFLAGS="$CPPFLAGS"
8227 CPPFLAGS="$CPPFLAGS -I${srcdir-.}/include -I${srcdir-.}/ubiqx"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8232 #define REPLACE_GETPASS 1
8233 #define NO_CONFIG_H 1
8234 #define main dont_declare_main
8235 #include "${srcdir-.}/lib/getsmbpass.c"
8236 #undef main
8238 int main() {
8240 ; return 0; }
8242 if { (eval echo configure:8243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8243 rm -rf conftest*
8244 samba_cv_REPLACE_GETPASS=yes
8245 else
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8248 rm -rf conftest*
8249 samba_cv_REPLACE_GETPASS=no
8251 rm -f conftest*
8252 CPPFLAGS="$SAVE_CPPFLAGS"
8256 echo "$ac_t""$samba_cv_REPLACE_GETPASS" 1>&6
8257 if test x"$samba_cv_REPLACE_GETPASS" = x"yes"; then
8258 cat >> confdefs.h <<\EOF
8259 #define REPLACE_GETPASS 1
8264 echo $ac_n "checking for broken inet_ntoa""... $ac_c" 1>&6
8265 echo "configure:8266: checking for broken inet_ntoa" >&5
8266 if eval "test \"`echo '$''{'samba_cv_REPLACE_INET_NTOA'+set}'`\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8268 else
8270 if test "$cross_compiling" = yes; then
8271 samba_cv_REPLACE_INET_NTOA=cross
8272 else
8273 cat > conftest.$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8277 #include <stdio.h>
8278 #include <sys/types.h>
8279 #include <netinet/in.h>
8280 #include <arpa/inet.h>
8281 main() { struct in_addr ip; ip.s_addr = 0x12345678;
8282 if (strcmp(inet_ntoa(ip),"18.52.86.120") &&
8283 strcmp(inet_ntoa(ip),"120.86.52.18")) { exit(0); }
8284 exit(1);}
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8287 then
8288 samba_cv_REPLACE_INET_NTOA=yes
8289 else
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8292 rm -fr conftest*
8293 samba_cv_REPLACE_INET_NTOA=no
8295 rm -fr conftest*
8300 echo "$ac_t""$samba_cv_REPLACE_INET_NTOA" 1>&6
8301 if test x"$samba_cv_REPLACE_INET_NTOA" = x"yes"; then
8302 cat >> confdefs.h <<\EOF
8303 #define REPLACE_INET_NTOA 1
8308 echo $ac_n "checking for root""... $ac_c" 1>&6
8309 echo "configure:8310: checking for root" >&5
8310 if eval "test \"`echo '$''{'samba_cv_HAVE_ROOT'+set}'`\" = set"; then
8311 echo $ac_n "(cached) $ac_c" 1>&6
8312 else
8314 if test "$cross_compiling" = yes; then
8315 samba_cv_HAVE_ROOT=cross
8316 else
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 main() { exit(getuid() != 0); }
8322 if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8323 then
8324 samba_cv_HAVE_ROOT=yes
8325 else
8326 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8328 rm -fr conftest*
8329 samba_cv_HAVE_ROOT=no
8331 rm -fr conftest*
8336 echo "$ac_t""$samba_cv_HAVE_ROOT" 1>&6
8337 if test x"$samba_cv_HAVE_ROOT" = x"yes"; then
8338 cat >> confdefs.h <<\EOF
8339 #define HAVE_ROOT 1
8342 else
8343 echo "configure: warning: running as non-root will disable some tests" 1>&2
8346 netmask=no;
8347 echo $ac_n "checking for netmask ifconf""... $ac_c" 1>&6
8348 echo "configure:8349: checking for netmask ifconf" >&5
8349 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFCONF'+set}'`\" = set"; then
8350 echo $ac_n "(cached) $ac_c" 1>&6
8351 else
8353 if test "$cross_compiling" = yes; then
8354 samba_cv_HAVE_NETMASK_IFCONF=cross
8355 else
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8360 #define HAVE_NETMASK_IFCONF 1
8361 #define AUTOCONF 1
8362 #include "${srcdir-.}/lib/netmask.c"
8364 if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8365 then
8366 samba_cv_HAVE_NETMASK_IFCONF=yes
8367 else
8368 echo "configure: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 rm -fr conftest*
8371 samba_cv_HAVE_NETMASK_IFCONF=no
8373 rm -fr conftest*
8378 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFCONF" 1>&6
8379 if test x"$samba_cv_HAVE_NETMASK_IFCONF" = x"yes"; then
8380 netmask=yes;cat >> confdefs.h <<\EOF
8381 #define HAVE_NETMASK_IFCONF 1
8386 if test $netmask = no; then
8387 echo $ac_n "checking for netmask ifreq""... $ac_c" 1>&6
8388 echo "configure:8389: checking for netmask ifreq" >&5
8389 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_IFREQ'+set}'`\" = set"; then
8390 echo $ac_n "(cached) $ac_c" 1>&6
8391 else
8393 if test "$cross_compiling" = yes; then
8394 samba_cv_HAVE_NETMASK_IFREQ=cross
8395 else
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8400 #define HAVE_NETMASK_IFREQ 1
8401 #define AUTOCONF 1
8402 #include "${srcdir-.}/lib/netmask.c"
8404 if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8405 then
8406 samba_cv_HAVE_NETMASK_IFREQ=yes
8407 else
8408 echo "configure: failed program was:" >&5
8409 cat conftest.$ac_ext >&5
8410 rm -fr conftest*
8411 samba_cv_HAVE_NETMASK_IFREQ=no
8413 rm -fr conftest*
8418 echo "$ac_t""$samba_cv_HAVE_NETMASK_IFREQ" 1>&6
8419 if test x"$samba_cv_HAVE_NETMASK_IFREQ" = x"yes"; then
8420 netmask=yes;cat >> confdefs.h <<\EOF
8421 #define HAVE_NETMASK_IFREQ 1
8427 if test $netmask = no; then
8428 echo $ac_n "checking for netmask AIX""... $ac_c" 1>&6
8429 echo "configure:8430: checking for netmask AIX" >&5
8430 if eval "test \"`echo '$''{'samba_cv_HAVE_NETMASK_AIX'+set}'`\" = set"; then
8431 echo $ac_n "(cached) $ac_c" 1>&6
8432 else
8434 if test "$cross_compiling" = yes; then
8435 samba_cv_HAVE_NETMASK_AIX=cross
8436 else
8437 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure"
8439 #include "confdefs.h"
8441 #define HAVE_NETMASK_AIX 1
8442 #define AUTOCONF 1
8443 #include "${srcdir-.}/lib/netmask.c"
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8446 then
8447 samba_cv_HAVE_NETMASK_AIX=yes
8448 else
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8451 rm -fr conftest*
8452 samba_cv_HAVE_NETMASK_AIX=no
8454 rm -fr conftest*
8459 echo "$ac_t""$samba_cv_HAVE_NETMASK_AIX" 1>&6
8460 if test x"$samba_cv_HAVE_NETMASK_AIX" = x"yes"; then
8461 netmask=yes;cat >> confdefs.h <<\EOF
8462 #define HAVE_NETMASK_AIX 1
8468 echo $ac_n "checking for trapdoor seteuid""... $ac_c" 1>&6
8469 echo "configure:8470: checking for trapdoor seteuid" >&5
8470 if eval "test \"`echo '$''{'samba_cv_HAVE_TRAPDOOR_UID'+set}'`\" = set"; then
8471 echo $ac_n "(cached) $ac_c" 1>&6
8472 else
8474 if test "$cross_compiling" = yes; then
8476 else
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include "${srcdir-.}/tests/trapdoor.c"
8482 if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8483 then
8484 samba_cv_HAVE_TRAPDOOR_UID=no
8485 else
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8488 rm -fr conftest*
8489 samba_cv_HAVE_TRAPDOOR_UID=yes
8491 rm -fr conftest*
8496 echo "$ac_t""$samba_cv_HAVE_TRAPDOOR_UID" 1>&6
8497 if test x"$samba_cv_HAVE_TRAPDOOR_UID" = x"yes"; then
8498 cat >> confdefs.h <<\EOF
8499 #define HAVE_TRAPDOOR_UID 1
8504 echo $ac_n "checking for shared mmap""... $ac_c" 1>&6
8505 echo "configure:8506: checking for shared mmap" >&5
8506 if eval "test \"`echo '$''{'samba_cv_HAVE_SHARED_MMAP'+set}'`\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8508 else
8510 if test "$cross_compiling" = yes; then
8511 samba_cv_HAVE_SHARED_MMAP=cross
8512 else
8513 cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8516 #include "${srcdir-.}/tests/shared_mmap.c"
8518 if { (eval echo configure:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8519 then
8520 samba_cv_HAVE_SHARED_MMAP=yes
8521 else
8522 echo "configure: failed program was:" >&5
8523 cat conftest.$ac_ext >&5
8524 rm -fr conftest*
8525 samba_cv_HAVE_SHARED_MMAP=no
8527 rm -fr conftest*
8532 echo "$ac_t""$samba_cv_HAVE_SHARED_MMAP" 1>&6
8533 if test x"$samba_cv_HAVE_SHARED_MMAP" = x"yes"; then
8534 cat >> confdefs.h <<\EOF
8535 #define HAVE_SHARED_MMAP 1
8540 echo $ac_n "checking for fcntl locking""... $ac_c" 1>&6
8541 echo "configure:8542: checking for fcntl locking" >&5
8542 if eval "test \"`echo '$''{'samba_cv_HAVE_FCNTL_LOCK'+set}'`\" = set"; then
8543 echo $ac_n "(cached) $ac_c" 1>&6
8544 else
8546 if test "$cross_compiling" = yes; then
8547 samba_cv_HAVE_FCNTL_LOCK=cross
8548 else
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 #include "${srcdir-.}/tests/fcntl_lock.c"
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8555 then
8556 samba_cv_HAVE_FCNTL_LOCK=yes
8557 else
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8560 rm -fr conftest*
8561 samba_cv_HAVE_FCNTL_LOCK=no
8563 rm -fr conftest*
8568 echo "$ac_t""$samba_cv_HAVE_FCNTL_LOCK" 1>&6
8569 if test x"$samba_cv_HAVE_FCNTL_LOCK" = x"yes"; then
8570 cat >> confdefs.h <<\EOF
8571 #define HAVE_FCNTL_LOCK 1
8576 echo $ac_n "checking for 64 bit fcntl locking""... $ac_c" 1>&6
8577 echo "configure:8578: checking for 64 bit fcntl locking" >&5
8578 if eval "test \"`echo '$''{'samba_cv_HAVE_STRUCT_FLOCK64'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8580 else
8582 if test "$cross_compiling" = yes; then
8583 samba_cv_HAVE_STRUCT_FLOCK64=cross
8584 else
8585 cat > conftest.$ac_ext <<EOF
8586 #line 8587 "configure"
8587 #include "confdefs.h"
8589 #include <stdio.h>
8590 #include <stdlib.h>
8592 #ifdef HAVE_FCNTL_H
8593 #include <fcntl.h>
8594 #endif
8596 #ifdef HAVE_SYS_FCNTL_H
8597 #include <sys/fcntl.h>
8598 #endif
8599 main() { struct flock64 fl64;
8600 #if defined(F_SETLKW64) && defined(F_SETLK64) && defined(F_GETLK64)
8601 exit(0);
8602 #else
8603 exit(1);
8604 #endif
8607 if { (eval echo configure:8608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8608 then
8609 samba_cv_HAVE_STRUCT_FLOCK64=yes
8610 else
8611 echo "configure: failed program was:" >&5
8612 cat conftest.$ac_ext >&5
8613 rm -fr conftest*
8614 samba_cv_HAVE_STRUCT_FLOCK64=no
8616 rm -fr conftest*
8621 echo "$ac_t""$samba_cv_HAVE_STRUCT_FLOCK64" 1>&6
8622 if test x"$samba_cv_HAVE_STRUCT_FLOCK64" = x"yes"; then
8623 cat >> confdefs.h <<\EOF
8624 #define HAVE_STRUCT_FLOCK64 1
8629 echo $ac_n "checking for sysv ipc""... $ac_c" 1>&6
8630 echo "configure:8631: checking for sysv ipc" >&5
8631 if eval "test \"`echo '$''{'samba_cv_HAVE_SYSV_IPC'+set}'`\" = set"; then
8632 echo $ac_n "(cached) $ac_c" 1>&6
8633 else
8635 if test "$cross_compiling" = yes; then
8636 samba_cv_HAVE_SYSV_IPC=cross
8637 else
8638 cat > conftest.$ac_ext <<EOF
8639 #line 8640 "configure"
8640 #include "confdefs.h"
8641 #include "${srcdir-.}/tests/sysv_ipc.c"
8643 if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8644 then
8645 samba_cv_HAVE_SYSV_IPC=yes
8646 else
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8649 rm -fr conftest*
8650 samba_cv_HAVE_SYSV_IPC=no
8652 rm -fr conftest*
8657 echo "$ac_t""$samba_cv_HAVE_SYSV_IPC" 1>&6
8658 if test x"$samba_cv_HAVE_SYSV_IPC" = x"yes"; then
8659 cat >> confdefs.h <<\EOF
8660 #define HAVE_SYSV_IPC 1
8665 #################################################
8666 # decide for the default sam-password-database
8667 echo $ac_n "checking which sam password database to use""... $ac_c" 1>&6
8668 echo "configure:8669: checking which sam password database to use" >&5
8669 # Check whether --with-sam_pwdb or --without-sam_pwdb was given.
8670 if test "${with_sam_pwdb+set}" = set; then
8671 withval="$with_sam_pwdb"
8672 case "$withval" in
8673 ""|passdb)
8674 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
8675 sampwlibname="passdb"
8677 tdb)
8678 SAM_PWDB_LIB='$(SAMRTDBLIB)'
8679 sampwlibname="tdb"
8681 nt5ldap)
8682 SAM_PWDB_LIB='$(SAMRNT5LDAPLIB)'
8683 sampwlibname="nt5ldap (must also specify --with-nt5ldap)"
8686 SAM_PWDB_LIB='$(SAMRPASSLIB)'
8687 sampwlibname="passdb (unknown specified!)"
8689 esac
8690 else
8692 SAM_PWDB_LIB='$(SAMRPASSLIB) $(SMBPWLIB)'
8693 sampwlibname="passdb (default)"
8697 echo "$ac_t""$sampwlibname" 1>&6
8701 #################################################
8702 # check for libmsrpc support
8703 echo $ac_n "checking whether to use libmsrpc""... $ac_c" 1>&6
8704 echo "configure:8705: checking whether to use libmsrpc" >&5
8705 # Check whether --with-libmsrpc or --without-libmsrpc was given.
8706 if test "${with_libmsrpc+set}" = set; then
8707 withval="$with_libmsrpc"
8708 case "$withval" in
8710 echo "$ac_t""yes" 1>&6
8711 cat >> confdefs.h <<\EOF
8712 #define WITH_LIBMSRPC 1
8715 LIBMSRPC="bin/libmsrpc.so"
8717 if test x$ATTEMPT_LIBMSRPC32_BUILD = x; then
8718 LIBMSRPC32=""
8719 else
8720 LIBMSRPC32=bin/libmsrpc.32.so
8723 # Conditions under which libmsrpc should not be built.
8725 if test x$PICFLAG = x; then
8726 echo No support for PIC code - disabling libmsrpc
8727 LIBMSRPC=""
8728 LIBMSRPC32=""
8732 echo "$ac_t""no" 1>&6
8734 esac
8735 else
8736 echo "$ac_t""yes" 1>&6
8741 #################################################
8742 # check for libubiqx support
8743 echo $ac_n "checking whether to use libubiqx""... $ac_c" 1>&6
8744 echo "configure:8745: checking whether to use libubiqx" >&5
8745 # Check whether --with-libubiqx or --without-libubiqx was given.
8746 if test "${with_libubiqx+set}" = set; then
8747 withval="$with_libubiqx"
8748 case "$withval" in
8749 yes)
8750 echo "$ac_t""yes" 1>&6
8751 cat >> confdefs.h <<\EOF
8752 #define WITH_LIBUBIQX 1
8755 LIBUBIQX="bin/libubiqx.so"
8757 if test x$ATTEMPT_LIBUBIQX32_BUILD = x; then
8758 LIBUBIQX32=""
8759 else
8760 LIBUBIQX32=bin/libubiqx.32.so
8763 # Conditions under which libubiqx should not be built.
8765 if test x$PICFLAG = x; then
8766 echo No support for PIC code - disabling libubiqx
8767 LIBUBIQX=""
8768 LIBUBIQX32=""
8772 echo "$ac_t""no" 1>&6
8774 esac
8775 else
8776 echo "$ac_t""yes" 1>&6
8781 #################################################
8782 # check for libsamba support
8783 echo $ac_n "checking whether to use libsamba""... $ac_c" 1>&6
8784 echo "configure:8785: checking whether to use libsamba" >&5
8785 # Check whether --with-libsamba or --without-libsamba was given.
8786 if test "${with_libsamba+set}" = set; then
8787 withval="$with_libsamba"
8788 case "$withval" in
8789 yes)
8790 echo "$ac_t""yes" 1>&6
8791 cat >> confdefs.h <<\EOF
8792 #define WITH_LIBSAMBA 1
8795 LIBSAMBA="bin/libsamba.so"
8797 if test x$ATTEMPT_LIBSAMBA32_BUILD = x; then
8798 LIBSAMBA32=""
8799 else
8800 LIBSAMBA32=bin/libsamba.32.so
8803 # Conditions under which libsamba should not be built.
8805 if test x$PICFLAG = x; then
8806 echo No support for PIC code - disabling libsamba
8807 LIBSAMBA=""
8808 LIBSAMBA32=""
8812 echo "$ac_t""no" 1>&6
8814 esac
8815 else
8816 echo "$ac_t""yes" 1>&6
8821 #################################################
8822 # check for libnmb support
8823 echo $ac_n "checking whether to use libnmb""... $ac_c" 1>&6
8824 echo "configure:8825: checking whether to use libnmb" >&5
8825 # Check whether --with-libnmb or --without-libnmb was given.
8826 if test "${with_libnmb+set}" = set; then
8827 withval="$with_libnmb"
8828 case "$withval" in
8829 yes)
8830 echo "$ac_t""yes" 1>&6
8831 cat >> confdefs.h <<\EOF
8832 #define WITH_LIBNMB 1
8835 LIBNMB="bin/libnmb.so"
8837 if test x$ATTEMPT_LIBNMB32_BUILD = x; then
8838 LIBNMB32=""
8839 else
8840 LIBNMB32=bin/libnmb.32.so
8843 # Conditions under which libnmb should not be built.
8845 if test x$PICFLAG = x; then
8846 echo No support for PIC code - disabling libnmb
8847 LIBNMB=""
8848 LIBNMB32=""
8852 echo "$ac_t""no" 1>&6
8854 esac
8855 else
8856 echo "$ac_t""yes" 1>&6
8861 #################################################
8862 # check for libsmbpw support
8863 echo $ac_n "checking whether to use libsmbpw""... $ac_c" 1>&6
8864 echo "configure:8865: checking whether to use libsmbpw" >&5
8865 # Check whether --with-libsmbpw or --without-libsmbpw was given.
8866 if test "${with_libsmbpw+set}" = set; then
8867 withval="$with_libsmbpw"
8868 case "$withval" in
8869 yes)
8870 echo "$ac_t""yes" 1>&6
8871 cat >> confdefs.h <<\EOF
8872 #define WITH_LIBSMBPW 1
8875 LIBSMBPW="bin/libsmbpw.so"
8877 if test x$ATTEMPT_LIBSMBPW32_BUILD = x; then
8878 LIBSMBPW32=""
8879 else
8880 LIBSMBPW32=bin/libsmbpw.32.so
8883 # Conditions under which libsmbpw should not be built.
8885 if test x$PICFLAG = x; then
8886 echo No support for PIC code - disabling libsmbpw
8887 LIBSMBPW=""
8888 LIBSMBPW32=""
8892 echo "$ac_t""no" 1>&6
8894 esac
8895 else
8896 echo "$ac_t""yes" 1>&6
8902 #################################################
8903 # check for libsmb support
8904 echo $ac_n "checking whether to use libsmb""... $ac_c" 1>&6
8905 echo "configure:8906: checking whether to use libsmb" >&5
8906 # Check whether --with-libsmb or --without-libsmb was given.
8907 if test "${with_libsmb+set}" = set; then
8908 withval="$with_libsmb"
8909 case "$withval" in
8910 yes)
8911 echo "$ac_t""yes" 1>&6
8912 cat >> confdefs.h <<\EOF
8913 #define WITH_LIBSMB 1
8916 LIBSMB="bin/libsmb.so"
8918 if test x$ATTEMPT_LIBSMB32_BUILD = x; then
8919 LIBSMB32=""
8920 else
8921 LIBSMB32=bin/libsmb.32.so
8924 # Conditions under which libsmb should not be built.
8926 if test x$PICFLAG = x; then
8927 echo No support for PIC code - disabling libsmb
8928 LIBSMB=""
8929 LIBSMB32=""
8933 echo "$ac_t""no" 1>&6
8935 esac
8936 else
8937 echo "$ac_t""yes" 1>&6
8943 #################################################
8944 # check for smbwrapper support
8945 echo $ac_n "checking whether to use smbwrapper""... $ac_c" 1>&6
8946 echo "configure:8947: checking whether to use smbwrapper" >&5
8947 # Check whether --with-smbwrapper or --without-smbwrapper was given.
8948 if test "${with_smbwrapper+set}" = set; then
8949 withval="$with_smbwrapper"
8950 case "$withval" in
8951 yes)
8952 echo "$ac_t""yes" 1>&6
8953 cat >> confdefs.h <<\EOF
8954 #define WITH_SMBWRAPPER 1
8957 WRAP="bin/smbsh bin/smbwrapper.so"
8959 if test x$ATTEMPT_WRAP32_BUILD = x; then
8960 WRAP32=""
8961 else
8962 WRAP32=bin/smbwrapper.32.so
8965 # Conditions under which smbwrapper should not be built.
8967 if test x$PICFLAG = x; then
8968 echo No support for PIC code - disabling smbwrapper and smbsh
8969 WRAP=""
8970 WRAP32=""
8971 elif test x$ac_cv_func_syscall = xno; then
8972 echo "$ac_t""No syscall() -- disabling smbwrapper and smbsh" 1>&6
8973 WRAP=""
8974 WRAP32=""
8978 echo "$ac_t""no" 1>&6
8980 esac
8981 else
8982 echo "$ac_t""no" 1>&6
8987 #################################################
8988 # check for the AFS filesystem
8989 echo $ac_n "checking whether to use AFS""... $ac_c" 1>&6
8990 echo "configure:8991: checking whether to use AFS" >&5
8991 # Check whether --with-afs or --without-afs was given.
8992 if test "${with_afs+set}" = set; then
8993 withval="$with_afs"
8994 case "$withval" in
8995 yes)
8996 echo "$ac_t""yes" 1>&6
8997 cat >> confdefs.h <<\EOF
8998 #define WITH_AFS 1
9003 echo "$ac_t""no" 1>&6
9005 esac
9006 else
9007 echo "$ac_t""no" 1>&6
9013 #################################################
9014 # check for the DFS auth system
9015 echo $ac_n "checking whether to use DFS auth""... $ac_c" 1>&6
9016 echo "configure:9017: checking whether to use DFS auth" >&5
9017 # Check whether --with-dfs or --without-dfs was given.
9018 if test "${with_dfs+set}" = set; then
9019 withval="$with_dfs"
9020 case "$withval" in
9021 yes)
9022 echo "$ac_t""yes" 1>&6
9023 cat >> confdefs.h <<\EOF
9024 #define WITH_DFS 1
9029 echo "$ac_t""no" 1>&6
9031 esac
9032 else
9033 echo "$ac_t""no" 1>&6
9038 #################################################
9039 # check for Kerberos IV auth system
9040 echo $ac_n "checking whether to use Kerberos IV""... $ac_c" 1>&6
9041 echo "configure:9042: checking whether to use Kerberos IV" >&5
9042 # Check whether --with-krb4 or --without-krb4 was given.
9043 if test "${with_krb4+set}" = set; then
9044 withval="$with_krb4"
9045 echo "$ac_t""yes" 1>&6
9046 cat >> confdefs.h <<\EOF
9047 #define KRB4_AUTH 1
9050 echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6
9051 echo "configure:9052: checking for dn_expand in -lresolv" >&5
9052 ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'`
9053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9055 else
9056 ac_save_LIBS="$LIBS"
9057 LIBS="-lresolv $LIBS"
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9061 /* Override any gcc2 internal prototype to avoid an error. */
9062 /* We use char because int might match the return type of a gcc2
9063 builtin and then its argument prototype would still apply. */
9064 char dn_expand();
9066 int main() {
9067 dn_expand()
9068 ; return 0; }
9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9071 rm -rf conftest*
9072 eval "ac_cv_lib_$ac_lib_var=yes"
9073 else
9074 echo "configure: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 rm -rf conftest*
9077 eval "ac_cv_lib_$ac_lib_var=no"
9079 rm -f conftest*
9080 LIBS="$ac_save_LIBS"
9083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9084 echo "$ac_t""yes" 1>&6
9085 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9087 cat >> confdefs.h <<EOF
9088 #define $ac_tr_lib 1
9091 LIBS="-lresolv $LIBS"
9093 else
9094 echo "$ac_t""no" 1>&6
9097 LIBS="$LIBS -lkrb -ldes"
9098 CFLAGS="$CFLAGS -I$withval/include"
9099 LDFLAGS="$LDFLAGS -L$withval/lib"
9100 else
9101 echo "$ac_t""no" 1>&6
9106 #################################################
9107 # check for automount support
9108 echo $ac_n "checking whether to use AUTOMOUNT""... $ac_c" 1>&6
9109 echo "configure:9110: checking whether to use AUTOMOUNT" >&5
9110 # Check whether --with-automount or --without-automount was given.
9111 if test "${with_automount+set}" = set; then
9112 withval="$with_automount"
9113 case "$withval" in
9114 yes)
9115 echo "$ac_t""yes" 1>&6
9116 cat >> confdefs.h <<\EOF
9117 #define WITH_AUTOMOUNT 1
9122 echo "$ac_t""no" 1>&6
9124 esac
9125 else
9126 echo "$ac_t""no" 1>&6
9131 #################################################
9132 # check for smbmount support
9133 echo $ac_n "checking whether to use SMBMOUNT""... $ac_c" 1>&6
9134 echo "configure:9135: checking whether to use SMBMOUNT" >&5
9135 # Check whether --with-smbmount or --without-smbmount was given.
9136 if test "${with_smbmount+set}" = set; then
9137 withval="$with_smbmount"
9138 case "$withval" in
9139 yes)
9140 echo "$ac_t""yes" 1>&6
9141 cat >> confdefs.h <<\EOF
9142 #define WITH_SMBMOUNT 1
9145 MPROGS="bin/smbmount bin/smbmnt bin/smbumount"
9148 echo "$ac_t""no" 1>&6
9149 MPROGS=
9151 esac
9152 else
9153 echo "$ac_t""no" 1>&6
9154 MPROGS=
9159 #################################################
9160 # check for a LDAP password database
9161 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9162 echo "configure:9163: checking whether to use LDAP password database" >&5
9163 # Check whether --with-ldap or --without-ldap was given.
9164 if test "${with_ldap+set}" = set; then
9165 withval="$with_ldap"
9166 case "$withval" in
9167 yes)
9168 echo "$ac_t""yes" 1>&6
9169 cat >> confdefs.h <<\EOF
9170 #define WITH_LDAP 1
9173 LIBS="$LIBS -lldap -llber"
9176 echo "$ac_t""no" 1>&6
9178 esac
9179 else
9180 echo "$ac_t""no" 1>&6
9185 #################################################
9186 # check for a LDAP password database
9187 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9188 echo "configure:9189: checking whether to use LDAP password database" >&5
9189 # Check whether --with-nt5ldap or --without-nt5ldap was given.
9190 if test "${with_nt5ldap+set}" = set; then
9191 withval="$with_nt5ldap"
9192 case "$withval" in
9193 yes)
9194 echo "$ac_t""yes" 1>&6
9195 cat >> confdefs.h <<\EOF
9196 #define WITH_NT5LDAP 1
9199 LIBS="$LIBS -lldap -llber"
9202 echo "$ac_t""no" 1>&6
9204 esac
9205 else
9206 echo "$ac_t""no" 1>&6
9211 #################################################
9212 # check for a LDAP password database
9213 echo $ac_n "checking whether to use LDAP password database""... $ac_c" 1>&6
9214 echo "configure:9215: checking whether to use LDAP password database" >&5
9215 # Check whether --with-nt5ldap or --without-nt5ldap was given.
9216 if test "${with_nt5ldap+set}" = set; then
9217 withval="$with_nt5ldap"
9218 case "$withval" in
9219 yes)
9220 echo "$ac_t""yes" 1>&6
9221 cat >> confdefs.h <<\EOF
9222 #define WITH_NT5LDAP 1
9225 LIBS="$LIBS -lldap -llber"
9228 echo "$ac_t""no" 1>&6
9230 esac
9231 else
9232 echo "$ac_t""no" 1>&6
9237 #################################################
9238 # check for a NISPLUS password database
9239 echo $ac_n "checking whether to use NISPLUS password database""... $ac_c" 1>&6
9240 echo "configure:9241: checking whether to use NISPLUS password database" >&5
9241 # Check whether --with-nisplus or --without-nisplus was given.
9242 if test "${with_nisplus+set}" = set; then
9243 withval="$with_nisplus"
9244 case "$withval" in
9245 yes)
9246 echo "$ac_t""yes" 1>&6
9247 cat >> confdefs.h <<\EOF
9248 #define WITH_NISPLUS 1
9253 echo "$ac_t""no" 1>&6
9255 esac
9256 else
9257 echo "$ac_t""no" 1>&6
9262 #################################################
9263 # check for a NISPLUS_HOME support
9264 echo $ac_n "checking whether to use NISPLUS_HOME""... $ac_c" 1>&6
9265 echo "configure:9266: checking whether to use NISPLUS_HOME" >&5
9266 # Check whether --with-nisplus-home or --without-nisplus-home was given.
9267 if test "${with_nisplus_home+set}" = set; then
9268 withval="$with_nisplus_home"
9269 case "$withval" in
9270 yes)
9271 echo "$ac_t""yes" 1>&6
9272 cat >> confdefs.h <<\EOF
9273 #define WITH_NISPLUS_HOME 1
9278 echo "$ac_t""no" 1>&6
9280 esac
9281 else
9282 echo "$ac_t""no" 1>&6
9287 #################################################
9288 # check for the secure socket layer
9289 echo $ac_n "checking whether to use SSL""... $ac_c" 1>&6
9290 echo "configure:9291: checking whether to use SSL" >&5
9291 # Check whether --with-ssl or --without-ssl was given.
9292 if test "${with_ssl+set}" = set; then
9293 withval="$with_ssl"
9294 case "$withval" in
9295 yes)
9296 echo "$ac_t""yes" 1>&6
9297 cat >> confdefs.h <<\EOF
9298 #define WITH_SSL 1
9303 echo "$ac_t""no" 1>&6
9305 esac
9306 else
9307 echo "$ac_t""no" 1>&6
9312 #################################################
9313 # check for experimental mmap support
9314 echo $ac_n "checking whether to use MMAP""... $ac_c" 1>&6
9315 echo "configure:9316: checking whether to use MMAP" >&5
9316 # Check whether --with-mmap or --without-mmap was given.
9317 if test "${with_mmap+set}" = set; then
9318 withval="$with_mmap"
9319 case "$withval" in
9320 yes)
9321 echo "$ac_t""yes" 1>&6
9322 cat >> confdefs.h <<\EOF
9323 #define WITH_MMAP 1
9328 echo "$ac_t""no" 1>&6
9330 esac
9331 else
9332 echo "$ac_t""no" 1>&6
9337 #################################################
9338 # check for syslog logging
9339 echo $ac_n "checking whether to use syslog logging""... $ac_c" 1>&6
9340 echo "configure:9341: checking whether to use syslog logging" >&5
9341 # Check whether --with-syslog or --without-syslog was given.
9342 if test "${with_syslog+set}" = set; then
9343 withval="$with_syslog"
9344 case "$withval" in
9345 yes)
9346 echo "$ac_t""yes" 1>&6
9347 cat >> confdefs.h <<\EOF
9348 #define WITH_SYSLOG 1
9353 echo "$ac_t""no" 1>&6
9355 esac
9356 else
9357 echo "$ac_t""no" 1>&6
9362 #################################################
9363 # check for a shared memory profiling support
9364 echo $ac_n "checking whether to use profiling""... $ac_c" 1>&6
9365 echo "configure:9366: checking whether to use profiling" >&5
9366 # Check whether --with-profile or --without-profile was given.
9367 if test "${with_profile+set}" = set; then
9368 withval="$with_profile"
9369 case "$withval" in
9370 yes)
9371 echo "$ac_t""yes" 1>&6
9372 cat >> confdefs.h <<\EOF
9373 #define WITH_PROFILE 1
9378 echo "$ac_t""no" 1>&6
9380 esac
9381 else
9382 echo "$ac_t""no" 1>&6
9388 #################################################
9389 # check for experimental netatalk resource fork support
9390 echo $ac_n "checking whether to support netatalk""... $ac_c" 1>&6
9391 echo "configure:9392: checking whether to support netatalk" >&5
9392 # Check whether --with-netatalk or --without-netatalk was given.
9393 if test "${with_netatalk+set}" = set; then
9394 withval="$with_netatalk"
9395 case "$withval" in
9396 yes)
9397 echo "$ac_t""yes" 1>&6
9398 cat >> confdefs.h <<\EOF
9399 #define WITH_NETATALK 1
9404 echo "$ac_t""no" 1>&6
9406 esac
9407 else
9408 echo "$ac_t""no" 1>&6
9413 #################################################
9414 # check for experimental disk-quotas support
9415 QUOTAOBJS=noquotas.o
9417 echo $ac_n "checking whether to support disk-quotas""... $ac_c" 1>&6
9418 echo "configure:9419: checking whether to support disk-quotas" >&5
9419 # Check whether --with-quotas or --without-quotas was given.
9420 if test "${with_quotas+set}" = set; then
9421 withval="$with_quotas"
9422 case "$withval" in
9423 yes)
9424 echo "$ac_t""yes" 1>&6
9425 QUOTAOBJS=quotas.o
9428 echo "$ac_t""no" 1>&6
9430 esac
9431 else
9432 echo "$ac_t""no" 1>&6
9438 #################################################
9439 # these tests are taken from the GNU fileutils package
9440 echo "checking how to get filesystem space usage" 1>&6
9441 echo "configure:9442: checking how to get filesystem space usage" >&5
9442 space=no
9444 # Test for statvfs64.
9445 if test $space = no; then
9446 # SVR4
9447 echo $ac_n "checking statvfs64 function (SVR4)""... $ac_c" 1>&6
9448 echo "configure:9449: checking statvfs64 function (SVR4)" >&5
9449 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs64'+set}'`\" = set"; then
9450 echo $ac_n "(cached) $ac_c" 1>&6
9451 else
9452 if test "$cross_compiling" = yes; then
9453 fu_cv_sys_stat_statvfs64=cross
9454 else
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9459 #include <sys/types.h>
9460 #include <sys/statvfs.h>
9461 main ()
9463 struct statvfs64 fsd;
9464 exit (statfs64 (".", &fsd));
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9468 then
9469 fu_cv_sys_stat_statvfs64=yes
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -fr conftest*
9474 fu_cv_sys_stat_statvfs64=no
9476 rm -fr conftest*
9481 echo "$ac_t""$fu_cv_sys_stat_statvfs64" 1>&6
9482 if test $fu_cv_sys_stat_statvfs64 = yes; then
9483 space=yes
9484 cat >> confdefs.h <<\EOF
9485 #define STAT_STATVFS64 1
9491 # Perform only the link test since it seems there are no variants of the
9492 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9493 # because that got a false positive on SCO OSR5. Adding the declaration
9494 # of a `struct statvfs' causes this test to fail (as it should) on such
9495 # systems. That system is reported to work fine with STAT_STATFS4 which
9496 # is what it gets when this test fails.
9497 if test $space = no; then
9498 # SVR4
9499 echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
9500 echo "configure:9501: checking statvfs function (SVR4)" >&5
9501 if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
9502 echo $ac_n "(cached) $ac_c" 1>&6
9503 else
9504 cat > conftest.$ac_ext <<EOF
9505 #line 9506 "configure"
9506 #include "confdefs.h"
9507 #include <sys/types.h>
9508 #include <sys/statvfs.h>
9509 int main() {
9510 struct statvfs fsd; statvfs (0, &fsd);
9511 ; return 0; }
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9514 rm -rf conftest*
9515 fu_cv_sys_stat_statvfs=yes
9516 else
9517 echo "configure: failed program was:" >&5
9518 cat conftest.$ac_ext >&5
9519 rm -rf conftest*
9520 fu_cv_sys_stat_statvfs=no
9522 rm -f conftest*
9525 echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
9526 if test $fu_cv_sys_stat_statvfs = yes; then
9527 space=yes
9528 cat >> confdefs.h <<\EOF
9529 #define STAT_STATVFS 1
9535 if test $space = no; then
9536 # DEC Alpha running OSF/1
9537 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
9538 echo "configure:9539: checking for 3-argument statfs function (DEC OSF/1)" >&5
9539 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9541 else
9542 if test "$cross_compiling" = yes; then
9543 fu_cv_sys_stat_statfs3_osf1=no
9544 else
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9549 #include <sys/param.h>
9550 #include <sys/types.h>
9551 #include <sys/mount.h>
9552 main ()
9554 struct statfs fsd;
9555 fsd.f_fsize = 0;
9556 exit (statfs (".", &fsd, sizeof (struct statfs)));
9559 if { (eval echo configure:9560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9560 then
9561 fu_cv_sys_stat_statfs3_osf1=yes
9562 else
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 rm -fr conftest*
9566 fu_cv_sys_stat_statfs3_osf1=no
9568 rm -fr conftest*
9573 echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
9574 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9575 space=yes
9576 cat >> confdefs.h <<\EOF
9577 #define STAT_STATFS3_OSF1 1
9583 if test $space = no; then
9584 # AIX
9585 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
9586 echo "configure:9587: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9587 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
9588 echo $ac_n "(cached) $ac_c" 1>&6
9589 else
9590 if test "$cross_compiling" = yes; then
9591 fu_cv_sys_stat_statfs2_bsize=no
9592 else
9593 cat > conftest.$ac_ext <<EOF
9594 #line 9595 "configure"
9595 #include "confdefs.h"
9597 #ifdef HAVE_SYS_PARAM_H
9598 #include <sys/param.h>
9599 #endif
9600 #ifdef HAVE_SYS_MOUNT_H
9601 #include <sys/mount.h>
9602 #endif
9603 #ifdef HAVE_SYS_VFS_H
9604 #include <sys/vfs.h>
9605 #endif
9606 main ()
9608 struct statfs fsd;
9609 fsd.f_bsize = 0;
9610 exit (statfs (".", &fsd));
9613 if { (eval echo configure:9614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9614 then
9615 fu_cv_sys_stat_statfs2_bsize=yes
9616 else
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9619 rm -fr conftest*
9620 fu_cv_sys_stat_statfs2_bsize=no
9622 rm -fr conftest*
9627 echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
9628 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9629 space=yes
9630 cat >> confdefs.h <<\EOF
9631 #define STAT_STATFS2_BSIZE 1
9637 if test $space = no; then
9638 # SVR3
9639 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
9640 echo "configure:9641: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9641 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
9642 echo $ac_n "(cached) $ac_c" 1>&6
9643 else
9644 if test "$cross_compiling" = yes; then
9645 fu_cv_sys_stat_statfs4=no
9646 else
9647 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 #include <sys/types.h>
9651 #include <sys/statfs.h>
9652 main ()
9654 struct statfs fsd;
9655 exit (statfs (".", &fsd, sizeof fsd, 0));
9658 if { (eval echo configure:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9659 then
9660 fu_cv_sys_stat_statfs4=yes
9661 else
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9664 rm -fr conftest*
9665 fu_cv_sys_stat_statfs4=no
9667 rm -fr conftest*
9672 echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
9673 if test $fu_cv_sys_stat_statfs4 = yes; then
9674 space=yes
9675 cat >> confdefs.h <<\EOF
9676 #define STAT_STATFS4 1
9682 if test $space = no; then
9683 # 4.4BSD and NetBSD
9684 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
9685 echo "configure:9686: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9686 if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9688 else
9689 if test "$cross_compiling" = yes; then
9690 fu_cv_sys_stat_statfs2_fsize=no
9691 else
9692 cat > conftest.$ac_ext <<EOF
9693 #line 9694 "configure"
9694 #include "confdefs.h"
9695 #include <sys/types.h>
9696 #ifdef HAVE_SYS_PARAM_H
9697 #include <sys/param.h>
9698 #endif
9699 #ifdef HAVE_SYS_MOUNT_H
9700 #include <sys/mount.h>
9701 #endif
9702 main ()
9704 struct statfs fsd;
9705 fsd.f_fsize = 0;
9706 exit (statfs (".", &fsd));
9709 if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9710 then
9711 fu_cv_sys_stat_statfs2_fsize=yes
9712 else
9713 echo "configure: failed program was:" >&5
9714 cat conftest.$ac_ext >&5
9715 rm -fr conftest*
9716 fu_cv_sys_stat_statfs2_fsize=no
9718 rm -fr conftest*
9723 echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
9724 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9725 space=yes
9726 cat >> confdefs.h <<\EOF
9727 #define STAT_STATFS2_FSIZE 1
9733 if test $space = no; then
9734 # Ultrix
9735 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
9736 echo "configure:9737: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9737 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
9738 echo $ac_n "(cached) $ac_c" 1>&6
9739 else
9740 if test "$cross_compiling" = yes; then
9741 fu_cv_sys_stat_fs_data=no
9742 else
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 #include <sys/types.h>
9747 #ifdef HAVE_SYS_PARAM_H
9748 #include <sys/param.h>
9749 #endif
9750 #ifdef HAVE_SYS_MOUNT_H
9751 #include <sys/mount.h>
9752 #endif
9753 #ifdef HAVE_SYS_FS_TYPES_H
9754 #include <sys/fs_types.h>
9755 #endif
9756 main ()
9758 struct fs_data fsd;
9759 /* Ultrix's statfs returns 1 for success,
9760 0 for not mounted, -1 for failure. */
9761 exit (statfs (".", &fsd) != 1);
9764 if { (eval echo configure:9765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9765 then
9766 fu_cv_sys_stat_fs_data=yes
9767 else
9768 echo "configure: failed program was:" >&5
9769 cat conftest.$ac_ext >&5
9770 rm -fr conftest*
9771 fu_cv_sys_stat_fs_data=no
9773 rm -fr conftest*
9778 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
9779 if test $fu_cv_sys_stat_fs_data = yes; then
9780 space=yes
9781 cat >> confdefs.h <<\EOF
9782 #define STAT_STATFS2_FS_DATA 1
9788 echo "checking configure summary"
9789 if test "$cross_compiling" = yes; then
9791 else
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 #include "${srcdir-.}/tests/summary.c"
9797 if { (eval echo configure:9798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9798 then
9799 echo "configure OK";
9800 else
9801 echo "configure: failed program was:" >&5
9802 cat conftest.$ac_ext >&5
9803 rm -fr conftest*
9804 { echo "configure: error: summary failure. Aborting config" 1>&2; exit 1; }
9806 rm -fr conftest*
9810 builddir=`pwd`
9813 trap '' 1 2 15
9814 cat > confcache <<\EOF
9815 # This file is a shell script that caches the results of configure
9816 # tests run on this system so they can be shared between configure
9817 # scripts and configure runs. It is not useful on other systems.
9818 # If it contains results you don't want to keep, you may remove or edit it.
9820 # By default, configure uses ./config.cache as the cache file,
9821 # creating it if it does not exist already. You can give configure
9822 # the --cache-file=FILE option to use a different cache file; that is
9823 # what configure does when it calls configure scripts in
9824 # subdirectories, so they share the cache.
9825 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9826 # config.status only pays attention to the cache file if you give it the
9827 # --recheck option to rerun configure.
9830 # The following way of writing the cache mishandles newlines in values,
9831 # but we know of no workaround that is simple, portable, and efficient.
9832 # So, don't put newlines in cache variables' values.
9833 # Ultrix sh set writes to stderr and can't be redirected directly,
9834 # and sets the high bit in the cache file unless we assign to the vars.
9835 (set) 2>&1 |
9836 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9837 *ac_space=\ *)
9838 # `set' does not quote correctly, so add quotes (double-quote substitution
9839 # turns \\\\ into \\, and sed turns \\ into \).
9840 sed -n \
9841 -e "s/'/'\\\\''/g" \
9842 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9845 # `set' quotes correctly as required by POSIX, so do not add quotes.
9846 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9848 esac >> confcache
9849 if cmp -s $cache_file confcache; then
9851 else
9852 if test -w $cache_file; then
9853 echo "updating cache $cache_file"
9854 cat confcache > $cache_file
9855 else
9856 echo "not updating unwritable cache $cache_file"
9859 rm -f confcache
9861 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
9863 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9864 # Let make expand exec_prefix.
9865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9867 # Any assignment to VPATH causes Sun make to only execute
9868 # the first set of double-colon rules, so remove it if not needed.
9869 # If there is a colon in the path, we need to keep it.
9870 if test "x$srcdir" = x.; then
9871 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
9874 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
9876 DEFS=-DHAVE_CONFIG_H
9878 # Without the "./", some shells look in PATH for config.status.
9879 : ${CONFIG_STATUS=./config.status}
9881 echo creating $CONFIG_STATUS
9882 rm -f $CONFIG_STATUS
9883 cat > $CONFIG_STATUS <<EOF
9884 #! /bin/sh
9885 # Generated automatically by configure.
9886 # Run this file to recreate the current configuration.
9887 # This directory was configured as follows,
9888 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9890 # $0 $ac_configure_args
9892 # Compiler output produced by configure, useful for debugging
9893 # configure, is in ./config.log if it exists.
9895 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
9896 for ac_option
9898 case "\$ac_option" in
9899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9900 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
9901 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
9902 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
9903 echo "$CONFIG_STATUS generated by autoconf version 2.13"
9904 exit 0 ;;
9905 -help | --help | --hel | --he | --h)
9906 echo "\$ac_cs_usage"; exit 0 ;;
9907 *) echo "\$ac_cs_usage"; exit 1 ;;
9908 esac
9909 done
9911 ac_given_srcdir=$srcdir
9912 ac_given_INSTALL="$INSTALL"
9914 trap 'rm -fr `echo "include/stamp-h Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
9916 cat >> $CONFIG_STATUS <<EOF
9918 # Protect against being on the right side of a sed subst in config.status.
9919 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
9920 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
9921 $ac_vpsub
9922 $extrasub
9923 s%@SHELL@%$SHELL%g
9924 s%@CFLAGS@%$CFLAGS%g
9925 s%@CPPFLAGS@%$CPPFLAGS%g
9926 s%@CXXFLAGS@%$CXXFLAGS%g
9927 s%@FFLAGS@%$FFLAGS%g
9928 s%@DEFS@%$DEFS%g
9929 s%@LDFLAGS@%$LDFLAGS%g
9930 s%@LIBS@%$LIBS%g
9931 s%@exec_prefix@%$exec_prefix%g
9932 s%@prefix@%$prefix%g
9933 s%@program_transform_name@%$program_transform_name%g
9934 s%@bindir@%$bindir%g
9935 s%@sbindir@%$sbindir%g
9936 s%@libexecdir@%$libexecdir%g
9937 s%@datadir@%$datadir%g
9938 s%@sysconfdir@%$sysconfdir%g
9939 s%@sharedstatedir@%$sharedstatedir%g
9940 s%@localstatedir@%$localstatedir%g
9941 s%@libdir@%$libdir%g
9942 s%@includedir@%$includedir%g
9943 s%@oldincludedir@%$oldincludedir%g
9944 s%@infodir@%$infodir%g
9945 s%@mandir@%$mandir%g
9946 s%@MPROGS@%$MPROGS%g
9947 s%@LDSHFLAGS@%$LDSHFLAGS%g
9948 s%@HOST_OS@%$HOST_OS%g
9949 s%@LIBMSRPC@%$LIBMSRPC%g
9950 s%@LIBMSRPC32@%$LIBMSRPC32%g
9951 s%@LIBNMB@%$LIBNMB%g
9952 s%@LIBNMB32@%$LIBNMB32%g
9953 s%@LIBSMB@%$LIBSMB%g
9954 s%@LIBSMBPW@%$LIBSMBPW%g
9955 s%@LIBSMB32@%$LIBSMB32%g
9956 s%@LIBSMBPW32@%$LIBSMBPW32%g
9957 s%@LIBUBIQX@%$LIBUBIQX%g
9958 s%@LIBUBIQX32@%$LIBUBIQX32%g
9959 s%@LIBSAMBA@%$LIBSAMBA%g
9960 s%@LIBSAMBA32@%$LIBSAMBA32%g
9961 s%@WRAP@%$WRAP%g
9962 s%@WRAP32@%$WRAP32%g
9963 s%@PICFLAG@%$PICFLAG%g
9964 s%@CC@%$CC%g
9965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
9966 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
9967 s%@INSTALL_DATA@%$INSTALL_DATA%g
9968 s%@AWK@%$AWK%g
9969 s%@host@%$host%g
9970 s%@host_alias@%$host_alias%g
9971 s%@host_cpu@%$host_cpu%g
9972 s%@host_vendor@%$host_vendor%g
9973 s%@host_os@%$host_os%g
9974 s%@target@%$target%g
9975 s%@target_alias@%$target_alias%g
9976 s%@target_cpu@%$target_cpu%g
9977 s%@target_vendor@%$target_vendor%g
9978 s%@target_os@%$target_os%g
9979 s%@build@%$build%g
9980 s%@build_alias@%$build_alias%g
9981 s%@build_cpu@%$build_cpu%g
9982 s%@build_vendor@%$build_vendor%g
9983 s%@build_os@%$build_os%g
9984 s%@MAINT@%$MAINT%g
9985 s%@AUTOCONF@%$AUTOCONF%g
9986 s%@AUTOHEADER@%$AUTOHEADER%g
9987 s%@CPP@%$CPP%g
9988 s%@RANLIB@%$RANLIB%g
9989 s%@LN_S@%$LN_S%g
9990 s%@LIBTOOL@%$LIBTOOL%g
9991 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
9992 s%@LIBOBJS@%$LIBOBJS%g
9993 s%@ROFF@%$ROFF%g
9994 s%@SAM_PWDB_LIB@%$SAM_PWDB_LIB%g
9995 s%@QUOTAOBJS@%$QUOTAOBJS%g
9996 s%@builddir@%$builddir%g
9998 CEOF
10001 cat >> $CONFIG_STATUS <<\EOF
10003 # Split the substitutions into bite-sized pieces for seds with
10004 # small command number limits, like on Digital OSF/1 and HP-UX.
10005 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
10006 ac_file=1 # Number of current file.
10007 ac_beg=1 # First line for current file.
10008 ac_end=$ac_max_sed_cmds # Line after last line for current file.
10009 ac_more_lines=:
10010 ac_sed_cmds=""
10011 while $ac_more_lines; do
10012 if test $ac_beg -gt 1; then
10013 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
10014 else
10015 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
10017 if test ! -s conftest.s$ac_file; then
10018 ac_more_lines=false
10019 rm -f conftest.s$ac_file
10020 else
10021 if test -z "$ac_sed_cmds"; then
10022 ac_sed_cmds="sed -f conftest.s$ac_file"
10023 else
10024 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10026 ac_file=`expr $ac_file + 1`
10027 ac_beg=$ac_end
10028 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10030 done
10031 if test -z "$ac_sed_cmds"; then
10032 ac_sed_cmds=cat
10036 cat >> $CONFIG_STATUS <<EOF
10038 CONFIG_FILES=\${CONFIG_FILES-"include/stamp-h Makefile"}
10040 cat >> $CONFIG_STATUS <<\EOF
10041 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10042 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10043 case "$ac_file" in
10044 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10045 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10046 *) ac_file_in="${ac_file}.in" ;;
10047 esac
10049 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
10051 # Remove last slash and all that follows it. Not all systems have dirname.
10052 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10053 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10054 # The file is in a subdirectory.
10055 test ! -d "$ac_dir" && mkdir "$ac_dir"
10056 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10057 # A "../" for each directory in $ac_dir_suffix.
10058 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10059 else
10060 ac_dir_suffix= ac_dots=
10063 case "$ac_given_srcdir" in
10064 .) srcdir=.
10065 if test -z "$ac_dots"; then top_srcdir=.
10066 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
10067 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10068 *) # Relative path.
10069 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
10070 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10071 esac
10073 case "$ac_given_INSTALL" in
10074 [/$]*) INSTALL="$ac_given_INSTALL" ;;
10075 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10076 esac
10078 echo creating "$ac_file"
10079 rm -f "$ac_file"
10080 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
10081 case "$ac_file" in
10082 *Makefile*) ac_comsub="1i\\
10083 # $configure_input" ;;
10084 *) ac_comsub= ;;
10085 esac
10087 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10088 sed -e "$ac_comsub
10089 s%@configure_input@%$configure_input%g
10090 s%@srcdir@%$srcdir%g
10091 s%@top_srcdir@%$top_srcdir%g
10092 s%@INSTALL@%$INSTALL%g
10093 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
10094 fi; done
10095 rm -f conftest.s*
10097 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10098 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10100 # ac_d sets the value in "#define NAME VALUE" lines.
10101 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10102 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
10103 ac_dC='\3'
10104 ac_dD='%g'
10105 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
10106 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10107 ac_uB='\([ ]\)%\1#\2define\3'
10108 ac_uC=' '
10109 ac_uD='\4%g'
10110 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10111 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10112 ac_eB='$%\1#\2define\3'
10113 ac_eC=' '
10114 ac_eD='%g'
10116 if test "${CONFIG_HEADERS+set}" != set; then
10118 cat >> $CONFIG_STATUS <<EOF
10119 CONFIG_HEADERS="include/config.h"
10121 cat >> $CONFIG_STATUS <<\EOF
10123 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10124 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10125 case "$ac_file" in
10126 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
10127 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10128 *) ac_file_in="${ac_file}.in" ;;
10129 esac
10131 echo creating $ac_file
10133 rm -f conftest.frag conftest.in conftest.out
10134 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
10135 cat $ac_file_inputs > conftest.in
10139 # Transform confdefs.h into a sed script conftest.vals that substitutes
10140 # the proper values into config.h.in to produce config.h. And first:
10141 # Protect against being on the right side of a sed subst in config.status.
10142 # Protect against being in an unquoted here document in config.status.
10143 rm -f conftest.vals
10144 cat > conftest.hdr <<\EOF
10145 s/[\\&%]/\\&/g
10146 s%[\\$`]%\\&%g
10147 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
10148 s%ac_d%ac_u%gp
10149 s%ac_u%ac_e%gp
10151 sed -n -f conftest.hdr confdefs.h > conftest.vals
10152 rm -f conftest.hdr
10154 # This sed command replaces #undef with comments. This is necessary, for
10155 # example, in the case of _POSIX_SOURCE, which is predefined and required
10156 # on some systems where configure will not decide to define it.
10157 cat >> conftest.vals <<\EOF
10158 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10161 # Break up conftest.vals because some shells have a limit on
10162 # the size of here documents, and old seds have small limits too.
10164 rm -f conftest.tail
10165 while :
10167 ac_lines=`grep -c . conftest.vals`
10168 # grep -c gives empty output for an empty file on some AIX systems.
10169 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
10170 # Write a limited-size here document to conftest.frag.
10171 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
10172 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10173 echo 'CEOF
10174 sed -f conftest.frag conftest.in > conftest.out
10175 rm -f conftest.in
10176 mv conftest.out conftest.in
10177 ' >> $CONFIG_STATUS
10178 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
10179 rm -f conftest.vals
10180 mv conftest.tail conftest.vals
10181 done
10182 rm -f conftest.vals
10184 cat >> $CONFIG_STATUS <<\EOF
10185 rm -f conftest.frag conftest.h
10186 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
10187 cat conftest.in >> conftest.h
10188 rm -f conftest.in
10189 if cmp -s $ac_file conftest.h 2>/dev/null; then
10190 echo "$ac_file is unchanged"
10191 rm -f conftest.h
10192 else
10193 # Remove last slash and all that follows it. Not all systems have dirname.
10194 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10195 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10196 # The file is in a subdirectory.
10197 test ! -d "$ac_dir" && mkdir "$ac_dir"
10199 rm -f $ac_file
10200 mv conftest.h $ac_file
10202 fi; done
10205 cat >> $CONFIG_STATUS <<EOF
10208 cat >> $CONFIG_STATUS <<\EOF
10210 exit 0
10212 chmod +x $CONFIG_STATUS
10213 rm -fr confdefs* $ac_clean_files
10214 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1