fix issue with password changes done via NTLMSSP
[Samba.git] / examples / VFS / configure
blobe70d69f02d7c0d15c3fe3094c1e372c0fbb0446a
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_help="$ac_help
15 --with-included-popt use bundled popt library, not from system"
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
58 ac_prev=
59 for ac_option
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
65 ac_prev=
66 continue
69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
74 # Accept the important Cygnus configure options, so we can diagnose typos.
76 case "$ac_option" in
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 ac_prev=bindir ;;
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
83 -build | --build | --buil | --bui | --bu)
84 ac_prev=build ;;
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 build="$ac_optarg" ;;
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 ac_prev=cache_file ;;
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 ac_prev=datadir ;;
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 | --da=*)
99 datadir="$ac_optarg" ;;
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 case "$ac_option" in
118 *=*) ;;
119 *) ac_optarg=yes ;;
120 esac
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
134 with_gas=yes ;;
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
139 cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
173 cat << EOF
174 Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
189 exit 0 ;;
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 ac_prev=srcdir ;;
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
329 -target | --target | --targe | --targ | --tar | --ta | --t)
330 ac_prev=target ;;
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 verbose=yes ;;
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
341 -with-* | --with-*)
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
348 case "$ac_option" in
349 *=*) ;;
350 *) ac_optarg=yes ;;
351 esac
352 eval "with_${ac_package}='$ac_optarg'" ;;
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
363 --x)
364 # Obsolete; use --with-x.
365 with_x=yes ;;
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391 nonopt="$ac_option"
394 esac
395 done
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412 exec 6>/dev/null
413 else
414 exec 6>&1
416 exec 5>./config.log
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
428 case "$ac_arg" in
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436 esac
437 done
439 # NLS nuisances.
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
462 ac_prog=$0
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 srcdir=$ac_confdir
466 if test ! -r $srcdir/$ac_unique_file; then
467 srcdir=..
469 else
470 ac_srcdir_defaulted=no
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 else
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 else
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
492 . "$ac_site_file"
494 done
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499 else
500 echo "creating cache $cache_file"
501 > $cache_file
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
521 else
522 ac_n= ac_c='\c' ac_t=
527 uname=`uname`
529 # Extract the first word of "gcc", so it can be a program name with args.
530 set dummy gcc; ac_word=$2
531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532 echo "configure:533: checking for $ac_word" >&5
533 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
534 echo $ac_n "(cached) $ac_c" 1>&6
535 else
536 if test -n "$CC"; then
537 ac_cv_prog_CC="$CC" # Let the user override the test.
538 else
539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
540 ac_dummy="$PATH"
541 for ac_dir in $ac_dummy; do
542 test -z "$ac_dir" && ac_dir=.
543 if test -f $ac_dir/$ac_word; then
544 ac_cv_prog_CC="gcc"
545 break
547 done
548 IFS="$ac_save_ifs"
551 CC="$ac_cv_prog_CC"
552 if test -n "$CC"; then
553 echo "$ac_t""$CC" 1>&6
554 else
555 echo "$ac_t""no" 1>&6
558 if test -z "$CC"; then
559 # Extract the first word of "cc", so it can be a program name with args.
560 set dummy cc; ac_word=$2
561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562 echo "configure:563: checking for $ac_word" >&5
563 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
565 else
566 if test -n "$CC"; then
567 ac_cv_prog_CC="$CC" # Let the user override the test.
568 else
569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
570 ac_prog_rejected=no
571 ac_dummy="$PATH"
572 for ac_dir in $ac_dummy; do
573 test -z "$ac_dir" && ac_dir=.
574 if test -f $ac_dir/$ac_word; then
575 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
576 ac_prog_rejected=yes
577 continue
579 ac_cv_prog_CC="cc"
580 break
582 done
583 IFS="$ac_save_ifs"
584 if test $ac_prog_rejected = yes; then
585 # We found a bogon in the path, so make sure we never use it.
586 set dummy $ac_cv_prog_CC
587 shift
588 if test $# -gt 0; then
589 # We chose a different compiler from the bogus one.
590 # However, it has the same basename, so the bogon will be chosen
591 # first if we set CC to just the basename; use the full file name.
592 shift
593 set dummy "$ac_dir/$ac_word" "$@"
594 shift
595 ac_cv_prog_CC="$@"
600 CC="$ac_cv_prog_CC"
601 if test -n "$CC"; then
602 echo "$ac_t""$CC" 1>&6
603 else
604 echo "$ac_t""no" 1>&6
607 if test -z "$CC"; then
608 case "`uname -s`" in
609 *win32* | *WIN32*)
610 # Extract the first word of "cl", so it can be a program name with args.
611 set dummy cl; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
616 else
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
619 else
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
621 ac_dummy="$PATH"
622 for ac_dir in $ac_dummy; do
623 test -z "$ac_dir" && ac_dir=.
624 if test -f $ac_dir/$ac_word; then
625 ac_cv_prog_CC="cl"
626 break
628 done
629 IFS="$ac_save_ifs"
632 CC="$ac_cv_prog_CC"
633 if test -n "$CC"; then
634 echo "$ac_t""$CC" 1>&6
635 else
636 echo "$ac_t""no" 1>&6
639 esac
641 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
644 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
645 echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647 ac_ext=c
648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649 ac_cpp='$CPP $CPPFLAGS'
650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652 cross_compiling=$ac_cv_prog_cc_cross
654 cat > conftest.$ac_ext << EOF
656 #line 657 "configure"
657 #include "confdefs.h"
659 main(){return(0);}
661 if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
662 ac_cv_prog_cc_works=yes
663 # If we can't run a trivial program, we are probably using a cross compiler.
664 if (./conftest; exit) 2>/dev/null; then
665 ac_cv_prog_cc_cross=no
666 else
667 ac_cv_prog_cc_cross=yes
669 else
670 echo "configure: failed program was:" >&5
671 cat conftest.$ac_ext >&5
672 ac_cv_prog_cc_works=no
674 rm -fr conftest*
675 ac_ext=c
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp='$CPP $CPPFLAGS'
678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling=$ac_cv_prog_cc_cross
682 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
683 if test $ac_cv_prog_cc_works = no; then
684 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
688 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
689 cross_compiling=$ac_cv_prog_cc_cross
691 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
692 echo "configure:693: checking whether we are using GNU C" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
695 else
696 cat > conftest.c <<EOF
697 #ifdef __GNUC__
698 yes;
699 #endif
701 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
702 ac_cv_prog_gcc=yes
703 else
704 ac_cv_prog_gcc=no
708 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710 if test $ac_cv_prog_gcc = yes; then
711 GCC=yes
712 else
713 GCC=
716 ac_test_CFLAGS="${CFLAGS+set}"
717 ac_save_CFLAGS="$CFLAGS"
718 CFLAGS=
719 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
720 echo "configure:721: checking whether ${CC-cc} accepts -g" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
723 else
724 echo 'void f(){}' > conftest.c
725 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
726 ac_cv_prog_cc_g=yes
727 else
728 ac_cv_prog_cc_g=no
730 rm -f conftest*
734 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
735 if test "$ac_test_CFLAGS" = set; then
736 CFLAGS="$ac_save_CFLAGS"
737 elif test $ac_cv_prog_cc_g = yes; then
738 if test "$GCC" = yes; then
739 CFLAGS="-g -O2"
740 else
741 CFLAGS="-g"
743 else
744 if test "$GCC" = yes; then
745 CFLAGS="-O2"
746 else
747 CFLAGS=
752 # Extract the first word of "libtool", so it can be a program name with args.
753 set dummy libtool; ac_word=$2
754 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
755 echo "configure:756: checking for $ac_word" >&5
756 if eval "test \"`echo '$''{'ac_cv_path_LIBTOOL'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
758 else
759 case "$LIBTOOL" in
761 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
763 ?:/*)
764 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a dos path.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
768 ac_dummy="$PATH"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
772 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
773 break
775 done
776 IFS="$ac_save_ifs"
778 esac
780 LIBTOOL="$ac_cv_path_LIBTOOL"
781 if test -n "$LIBTOOL"; then
782 echo "$ac_t""$LIBTOOL" 1>&6
783 else
784 echo "$ac_t""no" 1>&6
787 if test "$LIBTOOL" = ""; then
788 echo
789 echo 'FATAL ERROR: libtool does not seem to be installed.'
790 echo $pkg_name cannot be built without a working libtool installation.
791 exit 1
795 # Config CFLAGS settings
797 CFLAGS="-Wall"
799 case "$uname" in
800 AIX)
801 if test "${GCC}" = "yes"; then
802 CFLAGS="$CFLAGS -I/usr/include -D_LINUX_SOURCE_COMPAT"
803 else
804 CFLAGS="-D_LINUX_SOURCE_COMPAT"
807 SunOS)
808 if test "${GCC}" = "yes"; then
809 CFLAGS="$CFLAGS"
810 else
811 CFLAGS=""
814 # Linux)
815 # CFLAGS="-Wall"
816 # ;;
817 esac
820 # Config LDLAGS settings
822 LDFLAGS="-shared"
824 case "$uname" in
825 AIX)
826 LDFLAGS="-Wl,-G,-bexpall,-bnoentry"
828 SunOS)
829 LDFLAGS="-G"
831 # Linux)
832 # echo "Linux found"
833 # LDFLAGS="-shared"
834 # ;;
835 esac
837 #################################################
838 # Check to see if we should use the included popt
840 # Check whether --with-included-popt or --without-included-popt was given.
841 if test "${with_included_popt+set}" = set; then
842 withval="$with_included_popt"
844 case "$withval" in
845 yes)
846 INCLUDED_POPT=yes
849 INCLUDED_POPT=no
851 esac
854 if test x"$INCLUDED_POPT" != x"yes"; then
855 echo $ac_n "checking for poptGetContext in -lpopt""... $ac_c" 1>&6
856 echo "configure:857: checking for poptGetContext in -lpopt" >&5
857 ac_lib_var=`echo popt'_'poptGetContext | sed 'y%./+-%__p_%'`
858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
860 else
861 ac_save_LIBS="$LIBS"
862 LIBS="-lpopt $LIBS"
863 cat > conftest.$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
866 /* Override any gcc2 internal prototype to avoid an error. */
867 /* We use char because int might match the return type of a gcc2
868 builtin and then its argument prototype would still apply. */
869 char poptGetContext();
871 int main() {
872 poptGetContext()
873 ; return 0; }
875 if { (eval echo configure:876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
876 rm -rf conftest*
877 eval "ac_cv_lib_$ac_lib_var=yes"
878 else
879 echo "configure: failed program was:" >&5
880 cat conftest.$ac_ext >&5
881 rm -rf conftest*
882 eval "ac_cv_lib_$ac_lib_var=no"
884 rm -f conftest*
885 LIBS="$ac_save_LIBS"
888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
889 echo "$ac_t""yes" 1>&6
890 INCLUDED_POPT=no
891 else
892 echo "$ac_t""no" 1>&6
893 INCLUDED_POPT=yes
898 echo $ac_n "checking whether to use included popt""... $ac_c" 1>&6
899 echo "configure:900: checking whether to use included popt" >&5
900 if test x"$INCLUDED_POPT" = x"yes"; then
901 echo "$ac_t""$srcdir/popt" 1>&6
902 CFLAGS="$CFLAGS -I../../source/popt"
903 else
904 echo "$ac_t""no" 1>&6
907 CFLAGS="$CFLAGS -I../../source -I../../source/include -I../../source/ubiqx -I../../source/smbwrapper"
909 trap '' 1 2 15
910 cat > confcache <<\EOF
911 # This file is a shell script that caches the results of configure
912 # tests run on this system so they can be shared between configure
913 # scripts and configure runs. It is not useful on other systems.
914 # If it contains results you don't want to keep, you may remove or edit it.
916 # By default, configure uses ./config.cache as the cache file,
917 # creating it if it does not exist already. You can give configure
918 # the --cache-file=FILE option to use a different cache file; that is
919 # what configure does when it calls configure scripts in
920 # subdirectories, so they share the cache.
921 # Giving --cache-file=/dev/null disables caching, for debugging configure.
922 # config.status only pays attention to the cache file if you give it the
923 # --recheck option to rerun configure.
926 # The following way of writing the cache mishandles newlines in values,
927 # but we know of no workaround that is simple, portable, and efficient.
928 # So, don't put newlines in cache variables' values.
929 # Ultrix sh set writes to stderr and can't be redirected directly,
930 # and sets the high bit in the cache file unless we assign to the vars.
931 (set) 2>&1 |
932 case `(ac_space=' '; set | grep ac_space) 2>&1` in
933 *ac_space=\ *)
934 # `set' does not quote correctly, so add quotes (double-quote substitution
935 # turns \\\\ into \\, and sed turns \\ into \).
936 sed -n \
937 -e "s/'/'\\\\''/g" \
938 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
941 # `set' quotes correctly as required by POSIX, so do not add quotes.
942 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
944 esac >> confcache
945 if cmp -s $cache_file confcache; then
947 else
948 if test -w $cache_file; then
949 echo "updating cache $cache_file"
950 cat confcache > $cache_file
951 else
952 echo "not updating unwritable cache $cache_file"
955 rm -f confcache
957 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
960 # Let make expand exec_prefix.
961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
963 # Any assignment to VPATH causes Sun make to only execute
964 # the first set of double-colon rules, so remove it if not needed.
965 # If there is a colon in the path, we need to keep it.
966 if test "x$srcdir" = x.; then
967 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
970 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
972 # Transform confdefs.h into DEFS.
973 # Protect against shell expansion while executing Makefile rules.
974 # Protect against Makefile macro expansion.
975 cat > conftest.defs <<\EOF
976 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
977 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
978 s%\[%\\&%g
979 s%\]%\\&%g
980 s%\$%$$%g
982 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
983 rm -f conftest.defs
986 # Without the "./", some shells look in PATH for config.status.
987 : ${CONFIG_STATUS=./config.status}
989 echo creating $CONFIG_STATUS
990 rm -f $CONFIG_STATUS
991 cat > $CONFIG_STATUS <<EOF
992 #! /bin/sh
993 # Generated automatically by configure.
994 # Run this file to recreate the current configuration.
995 # This directory was configured as follows,
996 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
998 # $0 $ac_configure_args
1000 # Compiler output produced by configure, useful for debugging
1001 # configure, is in ./config.log if it exists.
1003 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1004 for ac_option
1006 case "\$ac_option" in
1007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1008 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1009 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1010 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1011 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1012 exit 0 ;;
1013 -help | --help | --hel | --he | --h)
1014 echo "\$ac_cs_usage"; exit 0 ;;
1015 *) echo "\$ac_cs_usage"; exit 1 ;;
1016 esac
1017 done
1019 ac_given_srcdir=$srcdir
1021 trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1023 cat >> $CONFIG_STATUS <<EOF
1025 # Protect against being on the right side of a sed subst in config.status.
1026 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1027 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1028 $ac_vpsub
1029 $extrasub
1030 s%@SHELL@%$SHELL%g
1031 s%@CFLAGS@%$CFLAGS%g
1032 s%@CPPFLAGS@%$CPPFLAGS%g
1033 s%@CXXFLAGS@%$CXXFLAGS%g
1034 s%@FFLAGS@%$FFLAGS%g
1035 s%@DEFS@%$DEFS%g
1036 s%@LDFLAGS@%$LDFLAGS%g
1037 s%@LIBS@%$LIBS%g
1038 s%@exec_prefix@%$exec_prefix%g
1039 s%@prefix@%$prefix%g
1040 s%@program_transform_name@%$program_transform_name%g
1041 s%@bindir@%$bindir%g
1042 s%@sbindir@%$sbindir%g
1043 s%@libexecdir@%$libexecdir%g
1044 s%@datadir@%$datadir%g
1045 s%@sysconfdir@%$sysconfdir%g
1046 s%@sharedstatedir@%$sharedstatedir%g
1047 s%@localstatedir@%$localstatedir%g
1048 s%@libdir@%$libdir%g
1049 s%@includedir@%$includedir%g
1050 s%@oldincludedir@%$oldincludedir%g
1051 s%@infodir@%$infodir%g
1052 s%@mandir@%$mandir%g
1053 s%@CC@%$CC%g
1054 s%@LIBTOOL@%$LIBTOOL%g
1056 CEOF
1059 cat >> $CONFIG_STATUS <<\EOF
1061 # Split the substitutions into bite-sized pieces for seds with
1062 # small command number limits, like on Digital OSF/1 and HP-UX.
1063 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1064 ac_file=1 # Number of current file.
1065 ac_beg=1 # First line for current file.
1066 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1067 ac_more_lines=:
1068 ac_sed_cmds=""
1069 while $ac_more_lines; do
1070 if test $ac_beg -gt 1; then
1071 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1072 else
1073 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1075 if test ! -s conftest.s$ac_file; then
1076 ac_more_lines=false
1077 rm -f conftest.s$ac_file
1078 else
1079 if test -z "$ac_sed_cmds"; then
1080 ac_sed_cmds="sed -f conftest.s$ac_file"
1081 else
1082 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1084 ac_file=`expr $ac_file + 1`
1085 ac_beg=$ac_end
1086 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1088 done
1089 if test -z "$ac_sed_cmds"; then
1090 ac_sed_cmds=cat
1094 cat >> $CONFIG_STATUS <<EOF
1096 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1098 cat >> $CONFIG_STATUS <<\EOF
1099 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1101 case "$ac_file" in
1102 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1103 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1104 *) ac_file_in="${ac_file}.in" ;;
1105 esac
1107 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1109 # Remove last slash and all that follows it. Not all systems have dirname.
1110 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1111 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1112 # The file is in a subdirectory.
1113 test ! -d "$ac_dir" && mkdir "$ac_dir"
1114 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1117 else
1118 ac_dir_suffix= ac_dots=
1121 case "$ac_given_srcdir" in
1122 .) srcdir=.
1123 if test -z "$ac_dots"; then top_srcdir=.
1124 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1125 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1126 *) # Relative path.
1127 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1128 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1129 esac
1132 echo creating "$ac_file"
1133 rm -f "$ac_file"
1134 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1135 case "$ac_file" in
1136 *Makefile*) ac_comsub="1i\\
1137 # $configure_input" ;;
1138 *) ac_comsub= ;;
1139 esac
1141 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1142 sed -e "$ac_comsub
1143 s%@configure_input@%$configure_input%g
1144 s%@srcdir@%$srcdir%g
1145 s%@top_srcdir@%$top_srcdir%g
1146 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1147 fi; done
1148 rm -f conftest.s*
1151 cat >> $CONFIG_STATUS <<EOF
1154 cat >> $CONFIG_STATUS <<\EOF
1156 exit 0
1158 chmod +x $CONFIG_STATUS
1159 rm -fr confdefs* $ac_clean_files
1160 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1