Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="libauthSamba.h"
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ALLOCA CPP EGREP LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318 # If the previous option needs an argument, assign it.
319 if test -n "$ac_prev"; then
320 eval "$ac_prev=\$ac_option"
321 ac_prev=
322 continue
323 fi
324
325 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327 # Accept the important Cygnus configure options, so we can diagnose typos.
328
329 case $ac_option in
330
331 -bindir | --bindir | --bindi | --bind | --bin | --bi)
332 ac_prev=bindir ;;
333 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334 bindir=$ac_optarg ;;
335
336 -build | --build | --buil | --bui | --bu)
337 ac_prev=build_alias ;;
338 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339 build_alias=$ac_optarg ;;
340
341 -cache-file | --cache-file | --cache-fil | --cache-fi \
342 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343 ac_prev=cache_file ;;
344 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346 cache_file=$ac_optarg ;;
347
348 --config-cache | -C)
349 cache_file=config.cache ;;
350
351 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352 ac_prev=datadir ;;
353 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354 | --da=*)
355 datadir=$ac_optarg ;;
356
357 -disable-* | --disable-*)
358 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359 # Reject names that are not valid shell variable names.
360 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362 { (exit 1); exit 1; }; }
363 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364 eval "enable_$ac_feature=no" ;;
365
366 -enable-* | --enable-*)
367 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368 # Reject names that are not valid shell variable names.
369 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371 { (exit 1); exit 1; }; }
372 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373 case $ac_option in
374 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375 *) ac_optarg=yes ;;
376 esac
377 eval "enable_$ac_feature='$ac_optarg'" ;;
378
379 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381 | --exec | --exe | --ex)
382 ac_prev=exec_prefix ;;
383 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385 | --exec=* | --exe=* | --ex=*)
386 exec_prefix=$ac_optarg ;;
387
388 -gas | --gas | --ga | --g)
389 # Obsolete; use --with-gas.
390 with_gas=yes ;;
391
392 -help | --help | --hel | --he | -h)
393 ac_init_help=long ;;
394 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395 ac_init_help=recursive ;;
396 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397 ac_init_help=short ;;
398
399 -host | --host | --hos | --ho)
400 ac_prev=host_alias ;;
401 -host=* | --host=* | --hos=* | --ho=*)
402 host_alias=$ac_optarg ;;
403
404 -includedir | --includedir | --includedi | --included | --include \
405 | --includ | --inclu | --incl | --inc)
406 ac_prev=includedir ;;
407 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408 | --includ=* | --inclu=* | --incl=* | --inc=*)
409 includedir=$ac_optarg ;;
410
411 -infodir | --infodir | --infodi | --infod | --info | --inf)
412 ac_prev=infodir ;;
413 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414 infodir=$ac_optarg ;;
415
416 -libdir | --libdir | --libdi | --libd)
417 ac_prev=libdir ;;
418 -libdir=* | --libdir=* | --libdi=* | --libd=*)
419 libdir=$ac_optarg ;;
420
421 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422 | --libexe | --libex | --libe)
423 ac_prev=libexecdir ;;
424 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425 | --libexe=* | --libex=* | --libe=*)
426 libexecdir=$ac_optarg ;;
427
428 -localstatedir | --localstatedir | --localstatedi | --localstated \
429 | --localstate | --localstat | --localsta | --localst \
430 | --locals | --local | --loca | --loc | --lo)
431 ac_prev=localstatedir ;;
432 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435 localstatedir=$ac_optarg ;;
436
437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438 ac_prev=mandir ;;
439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440 mandir=$ac_optarg ;;
441
442 -nfp | --nfp | --nf)
443 # Obsolete; use --without-fp.
444 with_fp=no ;;
445
446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447 | --no-cr | --no-c | -n)
448 no_create=yes ;;
449
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452 no_recursion=yes ;;
453
454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456 | --oldin | --oldi | --old | --ol | --o)
457 ac_prev=oldincludedir ;;
458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461 oldincludedir=$ac_optarg ;;
462
463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464 ac_prev=prefix ;;
465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466 prefix=$ac_optarg ;;
467
468 -program-prefix | --program-prefix | --program-prefi | --program-pref \
469 | --program-pre | --program-pr | --program-p)
470 ac_prev=program_prefix ;;
471 -program-prefix=* | --program-prefix=* | --program-prefi=* \
472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473 program_prefix=$ac_optarg ;;
474
475 -program-suffix | --program-suffix | --program-suffi | --program-suff \
476 | --program-suf | --program-su | --program-s)
477 ac_prev=program_suffix ;;
478 -program-suffix=* | --program-suffix=* | --program-suffi=* \
479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480 program_suffix=$ac_optarg ;;
481
482 -program-transform-name | --program-transform-name \
483 | --program-transform-nam | --program-transform-na \
484 | --program-transform-n | --program-transform- \
485 | --program-transform | --program-transfor \
486 | --program-transfo | --program-transf \
487 | --program-trans | --program-tran \
488 | --progr-tra | --program-tr | --program-t)
489 ac_prev=program_transform_name ;;
490 -program-transform-name=* | --program-transform-name=* \
491 | --program-transform-nam=* | --program-transform-na=* \
492 | --program-transform-n=* | --program-transform-=* \
493 | --program-transform=* | --program-transfor=* \
494 | --program-transfo=* | --program-transf=* \
495 | --program-trans=* | --program-tran=* \
496 | --progr-tra=* | --program-tr=* | --program-t=*)
497 program_transform_name=$ac_optarg ;;
498
499 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500 | -silent | --silent | --silen | --sile | --sil)
501 silent=yes ;;
502
503 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504 ac_prev=sbindir ;;
505 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506 | --sbi=* | --sb=*)
507 sbindir=$ac_optarg ;;
508
509 -sharedstatedir | --sharedstatedir | --sharedstatedi \
510 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511 | --sharedst | --shareds | --shared | --share | --shar \
512 | --sha | --sh)
513 ac_prev=sharedstatedir ;;
514 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517 | --sha=* | --sh=*)
518 sharedstatedir=$ac_optarg ;;
519
520 -site | --site | --sit)
521 ac_prev=site ;;
522 -site=* | --site=* | --sit=*)
523 site=$ac_optarg ;;
524
525 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526 ac_prev=srcdir ;;
527 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528 srcdir=$ac_optarg ;;
529
530 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531 | --syscon | --sysco | --sysc | --sys | --sy)
532 ac_prev=sysconfdir ;;
533 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535 sysconfdir=$ac_optarg ;;
536
537 -target | --target | --targe | --targ | --tar | --ta | --t)
538 ac_prev=target_alias ;;
539 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540 target_alias=$ac_optarg ;;
541
542 -v | -verbose | --verbose | --verbos | --verbo | --verb)
543 verbose=yes ;;
544
545 -version | --version | --versio | --versi | --vers | -V)
546 ac_init_version=: ;;
547
548 -with-* | --with-*)
549 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid package name: $ac_package" >&2
553 { (exit 1); exit 1; }; }
554 ac_package=`echo $ac_package| sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "with_$ac_package='$ac_optarg'" ;;
560
561 -without-* | --without-*)
562 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid package name: $ac_package" >&2
566 { (exit 1); exit 1; }; }
567 ac_package=`echo $ac_package | sed 's/-/_/g'`
568 eval "with_$ac_package=no" ;;
569
570 --x)
571 # Obsolete; use --with-x.
572 with_x=yes ;;
573
574 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575 | --x-incl | --x-inc | --x-in | --x-i)
576 ac_prev=x_includes ;;
577 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579 x_includes=$ac_optarg ;;
580
581 -x-libraries | --x-libraries | --x-librarie | --x-librari \
582 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583 ac_prev=x_libraries ;;
584 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586 x_libraries=$ac_optarg ;;
587
588 -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590 { (exit 1); exit 1; }; }
591 ;;
592
593 *=*)
594 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595 # Reject names that are not valid shell variable names.
596 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598 { (exit 1); exit 1; }; }
599 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600 eval "$ac_envvar='$ac_optarg'"
601 export $ac_envvar ;;
602
603 *)
604 # FIXME: should be removed in autoconf 3.0.
605 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609 ;;
610
611 esac
612 done
613
614 if test -n "$ac_prev"; then
615 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616 { echo "$as_me: error: missing argument to $ac_option" >&2
617 { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623 eval ac_val=$`echo $ac_var`
624 case $ac_val in
625 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627 { (exit 1); exit 1; }; };;
628 esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633 localstatedir libdir includedir oldincludedir infodir mandir
634 do
635 eval ac_val=$`echo $ac_var`
636 case $ac_val in
637 [\\/$]* | ?:[\\/]* ) ;;
638 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639 { (exit 1); exit 1; }; };;
640 esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652 if test "x$build_alias" = x; then
653 cross_compiling=maybe
654 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655 If a cross compiler is detected then cross compile mode will be used." >&2
656 elif test "x$build_alias" != "x$host_alias"; then
657 cross_compiling=yes
658 fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669 ac_srcdir_defaulted=yes
670 # Try the directory containing this script, then its parent.
671 ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673 X"$0" : 'X\(//\)[^/]' \| \
674 X"$0" : 'X\(//\)$' \| \
675 X"$0" : 'X\(/\)' \| \
676 . : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680 /^X\(\/\/\)$/{ s//\1/; q; }
681 /^X\(\/\).*/{ s//\1/; q; }
682 s/.*/./; q'`
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
686 fi
687 else
688 ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696 { (exit 1); exit 1; }; }
697 fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701 { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715 ac_env_CC_set=${CC+set}
716 ac_env_CC_value=$CC
717 ac_cv_env_CC_set=${CC+set}
718 ac_cv_env_CC_value=$CC
719 ac_env_CFLAGS_set=${CFLAGS+set}
720 ac_env_CFLAGS_value=$CFLAGS
721 ac_cv_env_CFLAGS_set=${CFLAGS+set}
722 ac_cv_env_CFLAGS_value=$CFLAGS
723 ac_env_LDFLAGS_set=${LDFLAGS+set}
724 ac_env_LDFLAGS_value=$LDFLAGS
725 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_cv_env_LDFLAGS_value=$LDFLAGS
727 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
728 ac_env_CPPFLAGS_value=$CPPFLAGS
729 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
731 ac_env_CPP_set=${CPP+set}
732 ac_env_CPP_value=$CPP
733 ac_cv_env_CPP_set=${CPP+set}
734 ac_cv_env_CPP_value=$CPP
735
736 #
737 # Report the --help message.
738 #
739 if test "$ac_init_help" = "long"; then
740 # Omit some internal or obsolete options to make the list less imposing.
741 # This message is too long to be a string in the A/UX 3.1 sh.
742 cat <<_ACEOF
743 \`configure' configures this package to adapt to many kinds of systems.
744
745 Usage: $0 [OPTION]... [VAR=VALUE]...
746
747 To assign environment variables (e.g., CC, CFLAGS...), specify them as
748 VAR=VALUE. See below for descriptions of some of the useful variables.
749
750 Defaults for the options are specified in brackets.
751
752 Configuration:
753 -h, --help display this help and exit
754 --help=short display options specific to this package
755 --help=recursive display the short help of all the included packages
756 -V, --version display version information and exit
757 -q, --quiet, --silent do not print \`checking...' messages
758 --cache-file=FILE cache test results in FILE [disabled]
759 -C, --config-cache alias for \`--cache-file=config.cache'
760 -n, --no-create do not create output files
761 --srcdir=DIR find the sources in DIR [configure dir or \`..']
762
763 _ACEOF
764
765 cat <<_ACEOF
766 Installation directories:
767 --prefix=PREFIX install architecture-independent files in PREFIX
768 [$ac_default_prefix]
769 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
770 [PREFIX]
771
772 By default, \`make install' will install all the files in
773 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
774 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
775 for instance \`--prefix=\$HOME'.
776
777 For better control, use the options below.
778
779 Fine tuning of the installation directories:
780 --bindir=DIR user executables [EPREFIX/bin]
781 --sbindir=DIR system admin executables [EPREFIX/sbin]
782 --libexecdir=DIR program executables [EPREFIX/libexec]
783 --datadir=DIR read-only architecture-independent data [PREFIX/share]
784 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
785 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
786 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
787 --libdir=DIR object code libraries [EPREFIX/lib]
788 --includedir=DIR C header files [PREFIX/include]
789 --oldincludedir=DIR C header files for non-gcc [/usr/include]
790 --infodir=DIR info documentation [PREFIX/info]
791 --mandir=DIR man documentation [PREFIX/man]
792 _ACEOF
793
794 cat <<\_ACEOF
795 _ACEOF
796 fi
797
798 if test -n "$ac_init_help"; then
799
800 cat <<\_ACEOF
801
802 Optional Packages:
803 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
804 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
805 --with-samba-prefix=ARG
806 Use specified curses libraries instead of
807 those automatically found by configure.
808
809 Some influential environment variables:
810 CC C compiler command
811 CFLAGS C compiler flags
812 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
813 nonstandard directory <lib dir>
814 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
815 headers in a nonstandard directory <include dir>
816 CPP C preprocessor
817
818 Use these variables to override the choices made by `configure' or to help
819 it to find libraries and programs with nonstandard names/locations.
820
821 _ACEOF
822 fi
823
824 if test "$ac_init_help" = "recursive"; then
825 # If there are subdirs, report their specific --help.
826 ac_popdir=`pwd`
827 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
828 test -d $ac_dir || continue
829 ac_builddir=.
830
831 if test "$ac_dir" != .; then
832 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
833 # A "../" for each directory in $ac_dir_suffix.
834 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
835 else
836 ac_dir_suffix= ac_top_builddir=
837 fi
838
839 case $srcdir in
840 .) # No --srcdir option. We are building in place.
841 ac_srcdir=.
842 if test -z "$ac_top_builddir"; then
843 ac_top_srcdir=.
844 else
845 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
846 fi ;;
847 [\\/]* | ?:[\\/]* ) # Absolute path.
848 ac_srcdir=$srcdir$ac_dir_suffix;
849 ac_top_srcdir=$srcdir ;;
850 *) # Relative path.
851 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
852 ac_top_srcdir=$ac_top_builddir$srcdir ;;
853 esac
854 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
855 # absolute.
856 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
857 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
858 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
859 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
860
861 cd $ac_dir
862 # Check for guested configure; otherwise get Cygnus style configure.
863 if test -f $ac_srcdir/configure.gnu; then
864 echo
865 $SHELL $ac_srcdir/configure.gnu --help=recursive
866 elif test -f $ac_srcdir/configure; then
867 echo
868 $SHELL $ac_srcdir/configure --help=recursive
869 elif test -f $ac_srcdir/configure.ac ||
870 test -f $ac_srcdir/configure.in; then
871 echo
872 $ac_configure --help
873 else
874 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
875 fi
876 cd $ac_popdir
877 done
878 fi
879
880 test -n "$ac_init_help" && exit 0
881 if $ac_init_version; then
882 cat <<\_ACEOF
883
884 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
885 Free Software Foundation, Inc.
886 This configure script is free software; the Free Software Foundation
887 gives unlimited permission to copy, distribute and modify it.
888 _ACEOF
889 exit 0
890 fi
891 exec 5>config.log
892 cat >&5 <<_ACEOF
893 This file contains any messages produced by compilers while
894 running configure, to aid debugging if configure makes a mistake.
895
896 It was created by $as_me, which was
897 generated by GNU Autoconf 2.57. Invocation command line was
898
899 $ $0 $@
900
901 _ACEOF
902 {
903 cat <<_ASUNAME
904 ## --------- ##
905 ## Platform. ##
906 ## --------- ##
907
908 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
909 uname -m = `(uname -m) 2>/dev/null || echo unknown`
910 uname -r = `(uname -r) 2>/dev/null || echo unknown`
911 uname -s = `(uname -s) 2>/dev/null || echo unknown`
912 uname -v = `(uname -v) 2>/dev/null || echo unknown`
913
914 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
915 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
916
917 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
918 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
919 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
920 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
921 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
922 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
923 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
924
925 _ASUNAME
926
927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
928 for as_dir in $PATH
929 do
930 IFS=$as_save_IFS
931 test -z "$as_dir" && as_dir=.
932 echo "PATH: $as_dir"
933 done
934
935 } >&5
936
937 cat >&5 <<_ACEOF
938
939
940 ## ----------- ##
941 ## Core tests. ##
942 ## ----------- ##
943
944 _ACEOF
945
946
947 # Keep a trace of the command line.
948 # Strip out --no-create and --no-recursion so they do not pile up.
949 # Strip out --silent because we don't want to record it for future runs.
950 # Also quote any args containing shell meta-characters.
951 # Make two passes to allow for proper duplicate-argument suppression.
952 ac_configure_args=
953 ac_configure_args0=
954 ac_configure_args1=
955 ac_sep=
956 ac_must_keep_next=false
957 for ac_pass in 1 2
958 do
959 for ac_arg
960 do
961 case $ac_arg in
962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
964 | -silent | --silent | --silen | --sile | --sil)
965 continue ;;
966 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
967 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
968 esac
969 case $ac_pass in
970 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
971 2)
972 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
973 if test $ac_must_keep_next = true; then
974 ac_must_keep_next=false # Got value, back to normal.
975 else
976 case $ac_arg in
977 *=* | --config-cache | -C | -disable-* | --disable-* \
978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
980 | -with-* | --with-* | -without-* | --without-* | --x)
981 case "$ac_configure_args0 " in
982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
983 esac
984 ;;
985 -* ) ac_must_keep_next=true ;;
986 esac
987 fi
988 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
989 # Get rid of the leading space.
990 ac_sep=" "
991 ;;
992 esac
993 done
994 done
995 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
996 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
997
998 # When interrupted or exit'd, cleanup temporary files, and complete
999 # config.log. We remove comments because anyway the quotes in there
1000 # would cause problems or look ugly.
1001 # WARNING: Be sure not to use single quotes in there, as some shells,
1002 # such as our DU 5.0 friend, will then `close' the trap.
1003 trap 'exit_status=$?
1004 # Save into config.log some information that might help in debugging.
1005 {
1006 echo
1007
1008 cat <<\_ASBOX
1009 ## ---------------- ##
1010 ## Cache variables. ##
1011 ## ---------------- ##
1012 _ASBOX
1013 echo
1014 # The following way of writing the cache mishandles newlines in values,
1015 {
1016 (set) 2>&1 |
1017 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1018 *ac_space=\ *)
1019 sed -n \
1020 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1022 ;;
1023 *)
1024 sed -n \
1025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1026 ;;
1027 esac;
1028 }
1029 echo
1030
1031 cat <<\_ASBOX
1032 ## ----------------- ##
1033 ## Output variables. ##
1034 ## ----------------- ##
1035 _ASBOX
1036 echo
1037 for ac_var in $ac_subst_vars
1038 do
1039 eval ac_val=$`echo $ac_var`
1040 echo "$ac_var='"'"'$ac_val'"'"'"
1041 done | sort
1042 echo
1043
1044 if test -n "$ac_subst_files"; then
1045 cat <<\_ASBOX
1046 ## ------------- ##
1047 ## Output files. ##
1048 ## ------------- ##
1049 _ASBOX
1050 echo
1051 for ac_var in $ac_subst_files
1052 do
1053 eval ac_val=$`echo $ac_var`
1054 echo "$ac_var='"'"'$ac_val'"'"'"
1055 done | sort
1056 echo
1057 fi
1058
1059 if test -s confdefs.h; then
1060 cat <<\_ASBOX
1061 ## ----------- ##
1062 ## confdefs.h. ##
1063 ## ----------- ##
1064 _ASBOX
1065 echo
1066 sed "/^$/d" confdefs.h | sort
1067 echo
1068 fi
1069 test "$ac_signal" != 0 &&
1070 echo "$as_me: caught signal $ac_signal"
1071 echo "$as_me: exit $exit_status"
1072 } >&5
1073 rm -f core core.* *.core &&
1074 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1075 exit $exit_status
1076 ' 0
1077 for ac_signal in 1 2 13 15; do
1078 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1079 done
1080 ac_signal=0
1081
1082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1083 rm -rf conftest* confdefs.h
1084 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1085 echo >confdefs.h
1086
1087 # Predefined preprocessor variables.
1088
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_NAME "$PACKAGE_NAME"
1091 _ACEOF
1092
1093
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1096 _ACEOF
1097
1098
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1101 _ACEOF
1102
1103
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_STRING "$PACKAGE_STRING"
1106 _ACEOF
1107
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1111 _ACEOF
1112
1113
1114 # Let the site file select an alternate cache file if it wants to.
1115 # Prefer explicitly selected file to automatically selected ones.
1116 if test -z "$CONFIG_SITE"; then
1117 if test "x$prefix" != xNONE; then
1118 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1119 else
1120 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1121 fi
1122 fi
1123 for ac_site_file in $CONFIG_SITE; do
1124 if test -r "$ac_site_file"; then
1125 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1126 echo "$as_me: loading site script $ac_site_file" >&6;}
1127 sed 's/^/| /' "$ac_site_file" >&5
1128 . "$ac_site_file"
1129 fi
1130 done
1131
1132 if test -r "$cache_file"; then
1133 # Some versions of bash will fail to source /dev/null (special
1134 # files actually), so we avoid doing that.
1135 if test -f "$cache_file"; then
1136 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1137 echo "$as_me: loading cache $cache_file" >&6;}
1138 case $cache_file in
1139 [\\/]* | ?:[\\/]* ) . $cache_file;;
1140 *) . ./$cache_file;;
1141 esac
1142 fi
1143 else
1144 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1145 echo "$as_me: creating cache $cache_file" >&6;}
1146 >$cache_file
1147 fi
1148
1149 # Check that the precious variables saved in the cache have kept the same
1150 # value.
1151 ac_cache_corrupted=false
1152 for ac_var in `(set) 2>&1 |
1153 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1154 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1155 eval ac_new_set=\$ac_env_${ac_var}_set
1156 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1157 eval ac_new_val="\$ac_env_${ac_var}_value"
1158 case $ac_old_set,$ac_new_set in
1159 set,)
1160 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1161 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1162 ac_cache_corrupted=: ;;
1163 ,set)
1164 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1165 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1166 ac_cache_corrupted=: ;;
1167 ,);;
1168 *)
1169 if test "x$ac_old_val" != "x$ac_new_val"; then
1170 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1171 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1172 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1173 echo "$as_me: former value: $ac_old_val" >&2;}
1174 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1175 echo "$as_me: current value: $ac_new_val" >&2;}
1176 ac_cache_corrupted=:
1177 fi;;
1178 esac
1179 # Pass precious variables to config.status.
1180 if test "$ac_new_set" = set; then
1181 case $ac_new_val in
1182 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1183 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1184 *) ac_arg=$ac_var=$ac_new_val ;;
1185 esac
1186 case " $ac_configure_args " in
1187 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1188 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1189 esac
1190 fi
1191 done
1192 if $ac_cache_corrupted; then
1193 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1194 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1195 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1196 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1197 { (exit 1); exit 1; }; }
1198 fi
1199
1200 ac_ext=c
1201 ac_cpp='$CPP $CPPFLAGS'
1202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225 ac_config_headers="$ac_config_headers config.h"
1226
1227
1228 ac_ext=c
1229 ac_cpp='$CPP $CPPFLAGS'
1230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1233 if test -n "$ac_tool_prefix"; then
1234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1235 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1236 echo "$as_me:$LINENO: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_prog_CC+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1240 else
1241 if test -n "$CC"; then
1242 ac_cv_prog_CC="$CC" # Let the user override the test.
1243 else
1244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1245 for as_dir in $PATH
1246 do
1247 IFS=$as_save_IFS
1248 test -z "$as_dir" && as_dir=.
1249 for ac_exec_ext in '' $ac_executable_extensions; do
1250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1251 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1253 break 2
1254 fi
1255 done
1256 done
1257
1258 fi
1259 fi
1260 CC=$ac_cv_prog_CC
1261 if test -n "$CC"; then
1262 echo "$as_me:$LINENO: result: $CC" >&5
1263 echo "${ECHO_T}$CC" >&6
1264 else
1265 echo "$as_me:$LINENO: result: no" >&5
1266 echo "${ECHO_T}no" >&6
1267 fi
1268
1269 fi
1270 if test -z "$ac_cv_prog_CC"; then
1271 ac_ct_CC=$CC
1272 # Extract the first word of "gcc", so it can be a program name with args.
1273 set dummy gcc; ac_word=$2
1274 echo "$as_me:$LINENO: checking for $ac_word" >&5
1275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1276 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1277 echo $ECHO_N "(cached) $ECHO_C" >&6
1278 else
1279 if test -n "$ac_ct_CC"; then
1280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1281 else
1282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1283 for as_dir in $PATH
1284 do
1285 IFS=$as_save_IFS
1286 test -z "$as_dir" && as_dir=.
1287 for ac_exec_ext in '' $ac_executable_extensions; do
1288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1289 ac_cv_prog_ac_ct_CC="gcc"
1290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1291 break 2
1292 fi
1293 done
1294 done
1295
1296 fi
1297 fi
1298 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1299 if test -n "$ac_ct_CC"; then
1300 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1301 echo "${ECHO_T}$ac_ct_CC" >&6
1302 else
1303 echo "$as_me:$LINENO: result: no" >&5
1304 echo "${ECHO_T}no" >&6
1305 fi
1306
1307 CC=$ac_ct_CC
1308 else
1309 CC="$ac_cv_prog_CC"
1310 fi
1311
1312 if test -z "$CC"; then
1313 if test -n "$ac_tool_prefix"; then
1314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1315 set dummy ${ac_tool_prefix}cc; ac_word=$2
1316 echo "$as_me:$LINENO: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_prog_CC+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 if test -n "$CC"; then
1322 ac_cv_prog_CC="$CC" # Let the user override the test.
1323 else
1324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325 for as_dir in $PATH
1326 do
1327 IFS=$as_save_IFS
1328 test -z "$as_dir" && as_dir=.
1329 for ac_exec_ext in '' $ac_executable_extensions; do
1330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1331 ac_cv_prog_CC="${ac_tool_prefix}cc"
1332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1333 break 2
1334 fi
1335 done
1336 done
1337
1338 fi
1339 fi
1340 CC=$ac_cv_prog_CC
1341 if test -n "$CC"; then
1342 echo "$as_me:$LINENO: result: $CC" >&5
1343 echo "${ECHO_T}$CC" >&6
1344 else
1345 echo "$as_me:$LINENO: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1347 fi
1348
1349 fi
1350 if test -z "$ac_cv_prog_CC"; then
1351 ac_ct_CC=$CC
1352 # Extract the first word of "cc", so it can be a program name with args.
1353 set dummy cc; ac_word=$2
1354 echo "$as_me:$LINENO: checking for $ac_word" >&5
1355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359 if test -n "$ac_ct_CC"; then
1360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361 else
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1364 do
1365 IFS=$as_save_IFS
1366 test -z "$as_dir" && as_dir=.
1367 for ac_exec_ext in '' $ac_executable_extensions; do
1368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1369 ac_cv_prog_ac_ct_CC="cc"
1370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1371 break 2
1372 fi
1373 done
1374 done
1375
1376 fi
1377 fi
1378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379 if test -n "$ac_ct_CC"; then
1380 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1381 echo "${ECHO_T}$ac_ct_CC" >&6
1382 else
1383 echo "$as_me:$LINENO: result: no" >&5
1384 echo "${ECHO_T}no" >&6
1385 fi
1386
1387 CC=$ac_ct_CC
1388 else
1389 CC="$ac_cv_prog_CC"
1390 fi
1391
1392 fi
1393 if test -z "$CC"; then
1394 # Extract the first word of "cc", so it can be a program name with args.
1395 set dummy cc; ac_word=$2
1396 echo "$as_me:$LINENO: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1403 else
1404 ac_prog_rejected=no
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1413 ac_prog_rejected=yes
1414 continue
1415 fi
1416 ac_cv_prog_CC="cc"
1417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1418 break 2
1419 fi
1420 done
1421 done
1422
1423 if test $ac_prog_rejected = yes; then
1424 # We found a bogon in the path, so make sure we never use it.
1425 set dummy $ac_cv_prog_CC
1426 shift
1427 if test $# != 0; then
1428 # We chose a different compiler from the bogus one.
1429 # However, it has the same basename, so the bogon will be chosen
1430 # first if we set CC to just the basename; use the full file name.
1431 shift
1432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1433 fi
1434 fi
1435 fi
1436 fi
1437 CC=$ac_cv_prog_CC
1438 if test -n "$CC"; then
1439 echo "$as_me:$LINENO: result: $CC" >&5
1440 echo "${ECHO_T}$CC" >&6
1441 else
1442 echo "$as_me:$LINENO: result: no" >&5
1443 echo "${ECHO_T}no" >&6
1444 fi
1445
1446 fi
1447 if test -z "$CC"; then
1448 if test -n "$ac_tool_prefix"; then
1449 for ac_prog in cl
1450 do
1451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1453 echo "$as_me:$LINENO: checking for $ac_word" >&5
1454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1455 if test "${ac_cv_prog_CC+set}" = set; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458 if test -n "$CC"; then
1459 ac_cv_prog_CC="$CC" # Let the user override the test.
1460 else
1461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462 for as_dir in $PATH
1463 do
1464 IFS=$as_save_IFS
1465 test -z "$as_dir" && as_dir=.
1466 for ac_exec_ext in '' $ac_executable_extensions; do
1467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1468 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470 break 2
1471 fi
1472 done
1473 done
1474
1475 fi
1476 fi
1477 CC=$ac_cv_prog_CC
1478 if test -n "$CC"; then
1479 echo "$as_me:$LINENO: result: $CC" >&5
1480 echo "${ECHO_T}$CC" >&6
1481 else
1482 echo "$as_me:$LINENO: result: no" >&5
1483 echo "${ECHO_T}no" >&6
1484 fi
1485
1486 test -n "$CC" && break
1487 done
1488 fi
1489 if test -z "$CC"; then
1490 ac_ct_CC=$CC
1491 for ac_prog in cl
1492 do
1493 # Extract the first word of "$ac_prog", so it can be a program name with args.
1494 set dummy $ac_prog; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="$ac_prog"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514 done
1515 done
1516
1517 fi
1518 fi
1519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520 if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522 echo "${ECHO_T}$ac_ct_CC" >&6
1523 else
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528 test -n "$ac_ct_CC" && break
1529 done
1530
1531 CC=$ac_ct_CC
1532 fi
1533
1534 fi
1535
1536
1537 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1538 See \`config.log' for more details." >&5
1539 echo "$as_me: error: no acceptable C compiler found in \$PATH
1540 See \`config.log' for more details." >&2;}
1541 { (exit 1); exit 1; }; }
1542
1543 # Provide some information about the compiler.
1544 echo "$as_me:$LINENO:" \
1545 "checking for C compiler version" >&5
1546 ac_compiler=`set X $ac_compile; echo $2`
1547 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1548 (eval $ac_compiler --version </dev/null >&5) 2>&5
1549 ac_status=$?
1550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1551 (exit $ac_status); }
1552 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1553 (eval $ac_compiler -v </dev/null >&5) 2>&5
1554 ac_status=$?
1555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1556 (exit $ac_status); }
1557 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1558 (eval $ac_compiler -V </dev/null >&5) 2>&5
1559 ac_status=$?
1560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1561 (exit $ac_status); }
1562
1563 cat >conftest.$ac_ext <<_ACEOF
1564 #line $LINENO "configure"
1565 /* confdefs.h. */
1566 _ACEOF
1567 cat confdefs.h >>conftest.$ac_ext
1568 cat >>conftest.$ac_ext <<_ACEOF
1569 /* end confdefs.h. */
1570
1571 int
1572 main ()
1573 {
1574
1575 ;
1576 return 0;
1577 }
1578 _ACEOF
1579 ac_clean_files_save=$ac_clean_files
1580 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1581 # Try to create an executable without -o first, disregard a.out.
1582 # It will help us diagnose broken compilers, and finding out an intuition
1583 # of exeext.
1584 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1585 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1586 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1587 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1588 (eval $ac_link_default) 2>&5
1589 ac_status=$?
1590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1591 (exit $ac_status); }; then
1592 # Find the output, starting from the most likely. This scheme is
1593 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1594 # resort.
1595
1596 # Be careful to initialize this variable, since it used to be cached.
1597 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1598 ac_cv_exeext=
1599 # b.out is created by i960 compilers.
1600 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1601 do
1602 test -f "$ac_file" || continue
1603 case $ac_file in
1604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1605 ;;
1606 conftest.$ac_ext )
1607 # This is the source file.
1608 ;;
1609 [ab].out )
1610 # We found the default executable, but exeext='' is most
1611 # certainly right.
1612 break;;
1613 *.* )
1614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1615 # FIXME: I believe we export ac_cv_exeext for Libtool,
1616 # but it would be cool to find out if it's true. Does anybody
1617 # maintain Libtool? --akim.
1618 export ac_cv_exeext
1619 break;;
1620 * )
1621 break;;
1622 esac
1623 done
1624 else
1625 echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1627
1628 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1629 See \`config.log' for more details." >&5
1630 echo "$as_me: error: C compiler cannot create executables
1631 See \`config.log' for more details." >&2;}
1632 { (exit 77); exit 77; }; }
1633 fi
1634
1635 ac_exeext=$ac_cv_exeext
1636 echo "$as_me:$LINENO: result: $ac_file" >&5
1637 echo "${ECHO_T}$ac_file" >&6
1638
1639 # Check the compiler produces executables we can run. If not, either
1640 # the compiler is broken, or we cross compile.
1641 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1642 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1643 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1644 # If not cross compiling, check that we can run a simple program.
1645 if test "$cross_compiling" != yes; then
1646 if { ac_try='./$ac_file'
1647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1648 (eval $ac_try) 2>&5
1649 ac_status=$?
1650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1651 (exit $ac_status); }; }; then
1652 cross_compiling=no
1653 else
1654 if test "$cross_compiling" = maybe; then
1655 cross_compiling=yes
1656 else
1657 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1658 If you meant to cross compile, use \`--host'.
1659 See \`config.log' for more details." >&5
1660 echo "$as_me: error: cannot run C compiled programs.
1661 If you meant to cross compile, use \`--host'.
1662 See \`config.log' for more details." >&2;}
1663 { (exit 1); exit 1; }; }
1664 fi
1665 fi
1666 fi
1667 echo "$as_me:$LINENO: result: yes" >&5
1668 echo "${ECHO_T}yes" >&6
1669
1670 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1671 ac_clean_files=$ac_clean_files_save
1672 # Check the compiler produces executables we can run. If not, either
1673 # the compiler is broken, or we cross compile.
1674 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1675 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1676 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1677 echo "${ECHO_T}$cross_compiling" >&6
1678
1679 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1680 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1682 (eval $ac_link) 2>&5
1683 ac_status=$?
1684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685 (exit $ac_status); }; then
1686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1688 # work properly (i.e., refer to `conftest.exe'), while it won't with
1689 # `rm'.
1690 for ac_file in conftest.exe conftest conftest.*; do
1691 test -f "$ac_file" || continue
1692 case $ac_file in
1693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1694 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1695 export ac_cv_exeext
1696 break;;
1697 * ) break;;
1698 esac
1699 done
1700 else
1701 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1702 See \`config.log' for more details." >&5
1703 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1704 See \`config.log' for more details." >&2;}
1705 { (exit 1); exit 1; }; }
1706 fi
1707
1708 rm -f conftest$ac_cv_exeext
1709 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1710 echo "${ECHO_T}$ac_cv_exeext" >&6
1711
1712 rm -f conftest.$ac_ext
1713 EXEEXT=$ac_cv_exeext
1714 ac_exeext=$EXEEXT
1715 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1716 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1717 if test "${ac_cv_objext+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line $LINENO "configure"
1722 /* confdefs.h. */
1723 _ACEOF
1724 cat confdefs.h >>conftest.$ac_ext
1725 cat >>conftest.$ac_ext <<_ACEOF
1726 /* end confdefs.h. */
1727
1728 int
1729 main ()
1730 {
1731
1732 ;
1733 return 0;
1734 }
1735 _ACEOF
1736 rm -f conftest.o conftest.obj
1737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1738 (eval $ac_compile) 2>&5
1739 ac_status=$?
1740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1741 (exit $ac_status); }; then
1742 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1745 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1746 break;;
1747 esac
1748 done
1749 else
1750 echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1754 See \`config.log' for more details." >&5
1755 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1756 See \`config.log' for more details." >&2;}
1757 { (exit 1); exit 1; }; }
1758 fi
1759
1760 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1761 fi
1762 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1763 echo "${ECHO_T}$ac_cv_objext" >&6
1764 OBJEXT=$ac_cv_objext
1765 ac_objext=$OBJEXT
1766 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1767 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1768 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771 cat >conftest.$ac_ext <<_ACEOF
1772 #line $LINENO "configure"
1773 /* confdefs.h. */
1774 _ACEOF
1775 cat confdefs.h >>conftest.$ac_ext
1776 cat >>conftest.$ac_ext <<_ACEOF
1777 /* end confdefs.h. */
1778
1779 int
1780 main ()
1781 {
1782 #ifndef __GNUC__
1783 choke me
1784 #endif
1785
1786 ;
1787 return 0;
1788 }
1789 _ACEOF
1790 rm -f conftest.$ac_objext
1791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1792 (eval $ac_compile) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); } &&
1796 { ac_try='test -s conftest.$ac_objext'
1797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1798 (eval $ac_try) 2>&5
1799 ac_status=$?
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }; }; then
1802 ac_compiler_gnu=yes
1803 else
1804 echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_compiler_gnu=no
1808 fi
1809 rm -f conftest.$ac_objext conftest.$ac_ext
1810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1811
1812 fi
1813 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1814 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1815 GCC=`test $ac_compiler_gnu = yes && echo yes`
1816 ac_test_CFLAGS=${CFLAGS+set}
1817 ac_save_CFLAGS=$CFLAGS
1818 CFLAGS="-g"
1819 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1821 if test "${ac_cv_prog_cc_g+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 cat >conftest.$ac_ext <<_ACEOF
1825 #line $LINENO "configure"
1826 /* confdefs.h. */
1827 _ACEOF
1828 cat confdefs.h >>conftest.$ac_ext
1829 cat >>conftest.$ac_ext <<_ACEOF
1830 /* end confdefs.h. */
1831
1832 int
1833 main ()
1834 {
1835
1836 ;
1837 return 0;
1838 }
1839 _ACEOF
1840 rm -f conftest.$ac_objext
1841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1842 (eval $ac_compile) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); } &&
1846 { ac_try='test -s conftest.$ac_objext'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 ac_cv_prog_cc_g=yes
1853 else
1854 echo "$as_me: failed program was:" >&5
1855 sed 's/^/| /' conftest.$ac_ext >&5
1856
1857 ac_cv_prog_cc_g=no
1858 fi
1859 rm -f conftest.$ac_objext conftest.$ac_ext
1860 fi
1861 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1862 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1863 if test "$ac_test_CFLAGS" = set; then
1864 CFLAGS=$ac_save_CFLAGS
1865 elif test $ac_cv_prog_cc_g = yes; then
1866 if test "$GCC" = yes; then
1867 CFLAGS="-g -O2"
1868 else
1869 CFLAGS="-g"
1870 fi
1871 else
1872 if test "$GCC" = yes; then
1873 CFLAGS="-O2"
1874 else
1875 CFLAGS=
1876 fi
1877 fi
1878 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1879 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1880 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 ac_cv_prog_cc_stdc=no
1884 ac_save_CC=$CC
1885 cat >conftest.$ac_ext <<_ACEOF
1886 #line $LINENO "configure"
1887 /* confdefs.h. */
1888 _ACEOF
1889 cat confdefs.h >>conftest.$ac_ext
1890 cat >>conftest.$ac_ext <<_ACEOF
1891 /* end confdefs.h. */
1892 #include <stdarg.h>
1893 #include <stdio.h>
1894 #include <sys/types.h>
1895 #include <sys/stat.h>
1896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1897 struct buf { int x; };
1898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1899 static char *e (p, i)
1900 char **p;
1901 int i;
1902 {
1903 return p[i];
1904 }
1905 static char *f (char * (*g) (char **, int), char **p, ...)
1906 {
1907 char *s;
1908 va_list v;
1909 va_start (v,p);
1910 s = g (p, va_arg (v,int));
1911 va_end (v);
1912 return s;
1913 }
1914 int test (int i, double x);
1915 struct s1 {int (*f) (int a);};
1916 struct s2 {int (*f) (double a);};
1917 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1918 int argc;
1919 char **argv;
1920 int
1921 main ()
1922 {
1923 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 # Don't try gcc -ansi; that turns off useful extensions and
1929 # breaks some systems' header files.
1930 # AIX -qlanglvl=ansi
1931 # Ultrix and OSF/1 -std1
1932 # HP-UX 10.20 and later -Ae
1933 # HP-UX older versions -Aa -D_HPUX_SOURCE
1934 # SVR4 -Xc -D__EXTENSIONS__
1935 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1936 do
1937 CC="$ac_save_CC $ac_arg"
1938 rm -f conftest.$ac_objext
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_cv_prog_cc_stdc=$ac_arg
1951 break
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 fi
1957 rm -f conftest.$ac_objext
1958 done
1959 rm -f conftest.$ac_ext conftest.$ac_objext
1960 CC=$ac_save_CC
1961
1962 fi
1963
1964 case "x$ac_cv_prog_cc_stdc" in
1965 x|xno)
1966 echo "$as_me:$LINENO: result: none needed" >&5
1967 echo "${ECHO_T}none needed" >&6 ;;
1968 *)
1969 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1970 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1971 CC="$CC $ac_cv_prog_cc_stdc" ;;
1972 esac
1973
1974 # Some people use a C++ compiler to compile C. Since we use `exit',
1975 # in C++ we need to declare it. In case someone uses the same compiler
1976 # for both compiling C and C++ we need to have the C++ compiler decide
1977 # the declaration of exit, since it's the most demanding environment.
1978 cat >conftest.$ac_ext <<_ACEOF
1979 #ifndef __cplusplus
1980 choke me
1981 #endif
1982 _ACEOF
1983 rm -f conftest.$ac_objext
1984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1985 (eval $ac_compile) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); } &&
1989 { ac_try='test -s conftest.$ac_objext'
1990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1991 (eval $ac_try) 2>&5
1992 ac_status=$?
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }; }; then
1995 for ac_declaration in \
1996 ''\
1997 '#include <stdlib.h>' \
1998 'extern "C" void std::exit (int) throw (); using std::exit;' \
1999 'extern "C" void std::exit (int); using std::exit;' \
2000 'extern "C" void exit (int) throw ();' \
2001 'extern "C" void exit (int);' \
2002 'void exit (int);'
2003 do
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2006 /* confdefs.h. */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2011 #include <stdlib.h>
2012 $ac_declaration
2013 int
2014 main ()
2015 {
2016 exit (42);
2017 ;
2018 return 0;
2019 }
2020 _ACEOF
2021 rm -f conftest.$ac_objext
2022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); } &&
2027 { ac_try='test -s conftest.$ac_objext'
2028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2029 (eval $ac_try) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; }; then
2033 :
2034 else
2035 echo "$as_me: failed program was:" >&5
2036 sed 's/^/| /' conftest.$ac_ext >&5
2037
2038 continue
2039 fi
2040 rm -f conftest.$ac_objext conftest.$ac_ext
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #line $LINENO "configure"
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2048 $ac_declaration
2049 int
2050 main ()
2051 {
2052 exit (42);
2053 ;
2054 return 0;
2055 }
2056 _ACEOF
2057 rm -f conftest.$ac_objext
2058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2059 (eval $ac_compile) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 break
2070 else
2071 echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074 fi
2075 rm -f conftest.$ac_objext conftest.$ac_ext
2076 done
2077 rm -f conftest*
2078 if test -n "$ac_declaration"; then
2079 echo '#ifdef __cplusplus' >>confdefs.h
2080 echo $ac_declaration >>confdefs.h
2081 echo '#endif' >>confdefs.h
2082 fi
2083
2084 else
2085 echo "$as_me: failed program was:" >&5
2086 sed 's/^/| /' conftest.$ac_ext >&5
2087
2088 fi
2089 rm -f conftest.$ac_objext conftest.$ac_ext
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095
2096
2097 ac_ext=c
2098 ac_cpp='$CPP $CPPFLAGS'
2099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2102 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2103 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2104 # On Suns, sometimes $CPP names a directory.
2105 if test -n "$CPP" && test -d "$CPP"; then
2106 CPP=
2107 fi
2108 if test -z "$CPP"; then
2109 if test "${ac_cv_prog_CPP+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 # Double quotes because CPP needs to be expanded
2113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2114 do
2115 ac_preproc_ok=false
2116 for ac_c_preproc_warn_flag in '' yes
2117 do
2118 # Use a header file that comes with gcc, so configuring glibc
2119 # with a fresh cross-compiler works.
2120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121 # <limits.h> exists even on freestanding compilers.
2122 # On the NeXT, cc -E runs the code through the compiler's parser,
2123 # not just through cpp. "Syntax error" is here to catch this case.
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2126 /* confdefs.h. */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2131 #ifdef __STDC__
2132 # include <limits.h>
2133 #else
2134 # include <assert.h>
2135 #endif
2136 Syntax error
2137 _ACEOF
2138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2140 ac_status=$?
2141 grep -v '^ *+' conftest.er1 >conftest.err
2142 rm -f conftest.er1
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } >/dev/null; then
2146 if test -s conftest.err; then
2147 ac_cpp_err=$ac_c_preproc_warn_flag
2148 else
2149 ac_cpp_err=
2150 fi
2151 else
2152 ac_cpp_err=yes
2153 fi
2154 if test -z "$ac_cpp_err"; then
2155 :
2156 else
2157 echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 # Broken: fails on valid input.
2161 continue
2162 fi
2163 rm -f conftest.err conftest.$ac_ext
2164
2165 # OK, works on sane cases. Now check whether non-existent headers
2166 # can be detected and how.
2167 cat >conftest.$ac_ext <<_ACEOF
2168 #line $LINENO "configure"
2169 /* confdefs.h. */
2170 _ACEOF
2171 cat confdefs.h >>conftest.$ac_ext
2172 cat >>conftest.$ac_ext <<_ACEOF
2173 /* end confdefs.h. */
2174 #include <ac_nonexistent.h>
2175 _ACEOF
2176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2178 ac_status=$?
2179 grep -v '^ *+' conftest.er1 >conftest.err
2180 rm -f conftest.er1
2181 cat conftest.err >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } >/dev/null; then
2184 if test -s conftest.err; then
2185 ac_cpp_err=$ac_c_preproc_warn_flag
2186 else
2187 ac_cpp_err=
2188 fi
2189 else
2190 ac_cpp_err=yes
2191 fi
2192 if test -z "$ac_cpp_err"; then
2193 # Broken: success on invalid input.
2194 continue
2195 else
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199 # Passes both tests.
2200 ac_preproc_ok=:
2201 break
2202 fi
2203 rm -f conftest.err conftest.$ac_ext
2204
2205 done
2206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2207 rm -f conftest.err conftest.$ac_ext
2208 if $ac_preproc_ok; then
2209 break
2210 fi
2211
2212 done
2213 ac_cv_prog_CPP=$CPP
2214
2215 fi
2216 CPP=$ac_cv_prog_CPP
2217 else
2218 ac_cv_prog_CPP=$CPP
2219 fi
2220 echo "$as_me:$LINENO: result: $CPP" >&5
2221 echo "${ECHO_T}$CPP" >&6
2222 ac_preproc_ok=false
2223 for ac_c_preproc_warn_flag in '' yes
2224 do
2225 # Use a header file that comes with gcc, so configuring glibc
2226 # with a fresh cross-compiler works.
2227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2228 # <limits.h> exists even on freestanding compilers.
2229 # On the NeXT, cc -E runs the code through the compiler's parser,
2230 # not just through cpp. "Syntax error" is here to catch this case.
2231 cat >conftest.$ac_ext <<_ACEOF
2232 #line $LINENO "configure"
2233 /* confdefs.h. */
2234 _ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2238 #ifdef __STDC__
2239 # include <limits.h>
2240 #else
2241 # include <assert.h>
2242 #endif
2243 Syntax error
2244 _ACEOF
2245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2247 ac_status=$?
2248 grep -v '^ *+' conftest.er1 >conftest.err
2249 rm -f conftest.er1
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } >/dev/null; then
2253 if test -s conftest.err; then
2254 ac_cpp_err=$ac_c_preproc_warn_flag
2255 else
2256 ac_cpp_err=
2257 fi
2258 else
2259 ac_cpp_err=yes
2260 fi
2261 if test -z "$ac_cpp_err"; then
2262 :
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 # Broken: fails on valid input.
2268 continue
2269 fi
2270 rm -f conftest.err conftest.$ac_ext
2271
2272 # OK, works on sane cases. Now check whether non-existent headers
2273 # can be detected and how.
2274 cat >conftest.$ac_ext <<_ACEOF
2275 #line $LINENO "configure"
2276 /* confdefs.h. */
2277 _ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2281 #include <ac_nonexistent.h>
2282 _ACEOF
2283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2285 ac_status=$?
2286 grep -v '^ *+' conftest.er1 >conftest.err
2287 rm -f conftest.er1
2288 cat conftest.err >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } >/dev/null; then
2291 if test -s conftest.err; then
2292 ac_cpp_err=$ac_c_preproc_warn_flag
2293 else
2294 ac_cpp_err=
2295 fi
2296 else
2297 ac_cpp_err=yes
2298 fi
2299 if test -z "$ac_cpp_err"; then
2300 # Broken: success on invalid input.
2301 continue
2302 else
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 # Passes both tests.
2307 ac_preproc_ok=:
2308 break
2309 fi
2310 rm -f conftest.err conftest.$ac_ext
2311
2312 done
2313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2314 rm -f conftest.err conftest.$ac_ext
2315 if $ac_preproc_ok; then
2316 :
2317 else
2318 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2319 See \`config.log' for more details." >&5
2320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2321 See \`config.log' for more details." >&2;}
2322 { (exit 1); exit 1; }; }
2323 fi
2324
2325 ac_ext=c
2326 ac_cpp='$CPP $CPPFLAGS'
2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331
2332 echo "$as_me:$LINENO: checking for egrep" >&5
2333 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2334 if test "${ac_cv_prog_egrep+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2338 then ac_cv_prog_egrep='grep -E'
2339 else ac_cv_prog_egrep='egrep'
2340 fi
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2343 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2344 EGREP=$ac_cv_prog_egrep
2345
2346
2347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2348 # for constant arguments. Useless!
2349 echo "$as_me:$LINENO: checking for working alloca.h" >&5
2350 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
2351 if test "${ac_cv_working_alloca_h+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 cat >conftest.$ac_ext <<_ACEOF
2355 #line $LINENO "configure"
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2361 #include <alloca.h>
2362 int
2363 main ()
2364 {
2365 char *p = (char *) alloca (2 * sizeof (int));
2366 ;
2367 return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext conftest$ac_exeext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2372 (eval $ac_link) 2>&5
2373 ac_status=$?
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } &&
2376 { ac_try='test -s conftest$ac_exeext'
2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 (eval $ac_try) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); }; }; then
2382 ac_cv_working_alloca_h=yes
2383 else
2384 echo "$as_me: failed program was:" >&5
2385 sed 's/^/| /' conftest.$ac_ext >&5
2386
2387 ac_cv_working_alloca_h=no
2388 fi
2389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2390 fi
2391 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2392 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
2393 if test $ac_cv_working_alloca_h = yes; then
2394
2395 cat >>confdefs.h <<\_ACEOF
2396 #define HAVE_ALLOCA_H 1
2397 _ACEOF
2398
2399 fi
2400
2401 echo "$as_me:$LINENO: checking for alloca" >&5
2402 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
2403 if test "${ac_cv_func_alloca_works+set}" = set; then
2404 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406 cat >conftest.$ac_ext <<_ACEOF
2407 #line $LINENO "configure"
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2413 #ifdef __GNUC__
2414 # define alloca __builtin_alloca
2415 #else
2416 # ifdef _MSC_VER
2417 # include <malloc.h>
2418 # define alloca _alloca
2419 # else
2420 # if HAVE_ALLOCA_H
2421 # include <alloca.h>
2422 # else
2423 # ifdef _AIX
2424 #pragma alloca
2425 # else
2426 # ifndef alloca /* predefined by HP cc +Olibcalls */
2427 char *alloca ();
2428 # endif
2429 # endif
2430 # endif
2431 # endif
2432 #endif
2433
2434 int
2435 main ()
2436 {
2437 char *p = (char *) alloca (1);
2438 ;
2439 return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext conftest$ac_exeext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2444 (eval $ac_link) 2>&5
2445 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); } &&
2448 { ac_try='test -s conftest$ac_exeext'
2449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450 (eval $ac_try) 2>&5
2451 ac_status=$?
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); }; }; then
2454 ac_cv_func_alloca_works=yes
2455 else
2456 echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_cv_func_alloca_works=no
2460 fi
2461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2462 fi
2463 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2464 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
2465
2466 if test $ac_cv_func_alloca_works = yes; then
2467
2468 cat >>confdefs.h <<\_ACEOF
2469 #define HAVE_ALLOCA 1
2470 _ACEOF
2471
2472 else
2473 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2474 # that cause trouble. Some versions do not even contain alloca or
2475 # contain a buggy version. If you still want to use their alloca,
2476 # use ar to extract alloca.o from them instead of compiling alloca.c.
2477
2478 ALLOCA=alloca.$ac_objext
2479
2480 cat >>confdefs.h <<\_ACEOF
2481 #define C_ALLOCA 1
2482 _ACEOF
2483
2484
2485 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2486 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
2487 if test "${ac_cv_os_cray+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490 cat >conftest.$ac_ext <<_ACEOF
2491 #line $LINENO "configure"
2492 /* confdefs.h. */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2497 #if defined(CRAY) && ! defined(CRAY2)
2498 webecray
2499 #else
2500 wenotbecray
2501 #endif
2502
2503 _ACEOF
2504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2505 $EGREP "webecray" >/dev/null 2>&1; then
2506 ac_cv_os_cray=yes
2507 else
2508 ac_cv_os_cray=no
2509 fi
2510 rm -f conftest*
2511
2512 fi
2513 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2514 echo "${ECHO_T}$ac_cv_os_cray" >&6
2515 if test $ac_cv_os_cray = yes; then
2516 for ac_func in _getb67 GETB67 getb67; do
2517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2518 echo "$as_me:$LINENO: checking for $ac_func" >&5
2519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2520 if eval "test \"\${$as_ac_var+set}\" = set"; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 cat >conftest.$ac_ext <<_ACEOF
2524 #line $LINENO "configure"
2525 /* confdefs.h. */
2526 _ACEOF
2527 cat confdefs.h >>conftest.$ac_ext
2528 cat >>conftest.$ac_ext <<_ACEOF
2529 /* end confdefs.h. */
2530 /* System header to define __stub macros and hopefully few prototypes,
2531 which can conflict with char $ac_func (); below.
2532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2533 <limits.h> exists even on freestanding compilers. */
2534 #ifdef __STDC__
2535 # include <limits.h>
2536 #else
2537 # include <assert.h>
2538 #endif
2539 /* Override any gcc2 internal prototype to avoid an error. */
2540 #ifdef __cplusplus
2541 extern "C"
2542 {
2543 #endif
2544 /* We use char because int might match the return type of a gcc2
2545 builtin and then its argument prototype would still apply. */
2546 char $ac_func ();
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2551 choke me
2552 #else
2553 char (*f) () = $ac_func;
2554 #endif
2555 #ifdef __cplusplus
2556 }
2557 #endif
2558
2559 int
2560 main ()
2561 {
2562 return f != $ac_func;
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext conftest$ac_exeext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2569 (eval $ac_link) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -s conftest$ac_exeext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575 (eval $ac_try) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 eval "$as_ac_var=yes"
2580 else
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 eval "$as_ac_var=no"
2585 fi
2586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2587 fi
2588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
2589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2590 if test `eval echo '${'$as_ac_var'}'` = yes; then
2591
2592 cat >>confdefs.h <<_ACEOF
2593 #define CRAY_STACKSEG_END $ac_func
2594 _ACEOF
2595
2596 break
2597 fi
2598
2599 done
2600 fi
2601
2602 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2603 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
2604 if test "${ac_cv_c_stack_direction+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607 if test "$cross_compiling" = yes; then
2608 ac_cv_c_stack_direction=0
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2617 int
2618 find_stack_direction ()
2619 {
2620 static char *addr = 0;
2621 auto char dummy;
2622 if (addr == 0)
2623 {
2624 addr = &dummy;
2625 return find_stack_direction ();
2626 }
2627 else
2628 return (&dummy > addr) ? 1 : -1;
2629 }
2630
2631 int
2632 main ()
2633 {
2634 exit (find_stack_direction () < 0);
2635 }
2636 _ACEOF
2637 rm -f conftest$ac_exeext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644 (eval $ac_try) 2>&5
2645 ac_status=$?
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }; }; then
2648 ac_cv_c_stack_direction=1
2649 else
2650 echo "$as_me: program exited with status $ac_status" >&5
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 ( exit $ac_status )
2655 ac_cv_c_stack_direction=-1
2656 fi
2657 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2658 fi
2659 fi
2660 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2661 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
2662
2663 cat >>confdefs.h <<_ACEOF
2664 #define STACK_DIRECTION $ac_cv_c_stack_direction
2665 _ACEOF
2666
2667
2668 fi
2669
2670
2671 # Force use of a samba directory
2672
2673 # Check whether --with-samba-prefix or --without-samba-prefix was given.
2674 if test "${with_samba_prefix+set}" = set; then
2675 withval="$with_samba_prefix"
2676
2677 CFLAGS="$CFLAGS -I$withval/include"
2678 LDFLAGS="$LDFLAGS -L$withval/lib -lsmbclient"
2679
2680 else
2681 with_samba=no
2682
2683 fi;
2684
2685
2686 echo "$as_me:$LINENO: checking for smbc_mkdir in -lsmbclient" >&5
2687 echo $ECHO_N "checking for smbc_mkdir in -lsmbclient... $ECHO_C" >&6
2688 if test "${ac_cv_lib_smbclient_smbc_mkdir+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691 ac_check_lib_save_LIBS=$LIBS
2692 LIBS="-lsmbclient $LIBS"
2693 cat >conftest.$ac_ext <<_ACEOF
2694 #line $LINENO "configure"
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h. */
2700
2701 /* Override any gcc2 internal prototype to avoid an error. */
2702 #ifdef __cplusplus
2703 extern "C"
2704 #endif
2705 /* We use char because int might match the return type of a gcc2
2706 builtin and then its argument prototype would still apply. */
2707 char smbc_mkdir ();
2708 int
2709 main ()
2710 {
2711 smbc_mkdir ();
2712 ;
2713 return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext conftest$ac_exeext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2718 (eval $ac_link) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_lib_smbclient_smbc_mkdir=yes
2729 else
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_cv_lib_smbclient_smbc_mkdir=no
2734 fi
2735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2736 LIBS=$ac_check_lib_save_LIBS
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_lib_smbclient_smbc_mkdir" >&5
2739 echo "${ECHO_T}$ac_cv_lib_smbclient_smbc_mkdir" >&6
2740 if test $ac_cv_lib_smbclient_smbc_mkdir = yes; then
2741 cat >>confdefs.h <<_ACEOF
2742 #define HAVE_LIBSMBCLIENT 1
2743 _ACEOF
2744
2745 LIBS="-lsmbclient $LIBS"
2746
2747 else
2748 { { echo "$as_me:$LINENO: error: I can't find your libsmbclient.so or symbol smbc_mkdir.
2749 Check config.log for details." >&5
2750 echo "$as_me: error: I can't find your libsmbclient.so or symbol smbc_mkdir.
2751 Check config.log for details." >&2;}
2752 { (exit 1); exit 1; }; }
2753 fi
2754
2755
2756 echo "$as_me:$LINENO: checking for smbc_open in -lsmbclient" >&5
2757 echo $ECHO_N "checking for smbc_open in -lsmbclient... $ECHO_C" >&6
2758 if test "${ac_cv_lib_smbclient_smbc_open+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 ac_check_lib_save_LIBS=$LIBS
2762 LIBS="-lsmbclient $LIBS"
2763 cat >conftest.$ac_ext <<_ACEOF
2764 #line $LINENO "configure"
2765 /* confdefs.h. */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2770
2771 /* Override any gcc2 internal prototype to avoid an error. */
2772 #ifdef __cplusplus
2773 extern "C"
2774 #endif
2775 /* We use char because int might match the return type of a gcc2
2776 builtin and then its argument prototype would still apply. */
2777 char smbc_open ();
2778 int
2779 main ()
2780 {
2781 smbc_open ();
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext conftest$ac_exeext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788 (eval $ac_link) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -s conftest$ac_exeext'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794 (eval $ac_try) 2>&5
2795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 ac_cv_lib_smbclient_smbc_open=yes
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 ac_cv_lib_smbclient_smbc_open=no
2804 fi
2805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2806 LIBS=$ac_check_lib_save_LIBS
2807 fi
2808 echo "$as_me:$LINENO: result: $ac_cv_lib_smbclient_smbc_open" >&5
2809 echo "${ECHO_T}$ac_cv_lib_smbclient_smbc_open" >&6
2810 if test $ac_cv_lib_smbclient_smbc_open = yes; then
2811 cat >>confdefs.h <<_ACEOF
2812 #define HAVE_LIBSMBCLIENT 1
2813 _ACEOF
2814
2815 LIBS="-lsmbclient $LIBS"
2816
2817 else
2818 { { echo "$as_me:$LINENO: error: I can't find your libsmbclient.so or symbol smbc_open.
2819 Check config.log for details." >&5
2820 echo "$as_me: error: I can't find your libsmbclient.so or symbol smbc_open.
2821 Check config.log for details." >&2;}
2822 { (exit 1); exit 1; }; }
2823 fi
2824
2825
2826 echo "$as_me:$LINENO: checking for smbc_fstat in -lsmbclient" >&5
2827 echo $ECHO_N "checking for smbc_fstat in -lsmbclient... $ECHO_C" >&6
2828 if test "${ac_cv_lib_smbclient_smbc_fstat+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lsmbclient $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840
2841 /* Override any gcc2 internal prototype to avoid an error. */
2842 #ifdef __cplusplus
2843 extern "C"
2844 #endif
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2847 char smbc_fstat ();
2848 int
2849 main ()
2850 {
2851 smbc_fstat ();
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.$ac_objext conftest$ac_exeext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858 (eval $ac_link) 2>&5
2859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest$ac_exeext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_cv_lib_smbclient_smbc_fstat=yes
2869 else
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873 ac_cv_lib_smbclient_smbc_fstat=no
2874 fi
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS=$ac_check_lib_save_LIBS
2877 fi
2878 echo "$as_me:$LINENO: result: $ac_cv_lib_smbclient_smbc_fstat" >&5
2879 echo "${ECHO_T}$ac_cv_lib_smbclient_smbc_fstat" >&6
2880 if test $ac_cv_lib_smbclient_smbc_fstat = yes; then
2881 cat >>confdefs.h <<_ACEOF
2882 #define HAVE_LIBSMBCLIENT 1
2883 _ACEOF
2884
2885 LIBS="-lsmbclient $LIBS"
2886
2887 else
2888 { { echo "$as_me:$LINENO: error: I can't find your libsmbclient.so or symbol smbc_fstat.
2889 Check config.log for details." >&5
2890 echo "$as_me: error: I can't find your libsmbclient.so or symbol smbc_fstat.
2891 Check config.log for details." >&2;}
2892 { (exit 1); exit 1; }; }
2893 fi
2894
2895
2896
2897 echo "$as_me:$LINENO: checking for smbc_init_context in -lsmbclient" >&5
2898 echo $ECHO_N "checking for smbc_init_context in -lsmbclient... $ECHO_C" >&6
2899 if test "${ac_cv_lib_smbclient_smbc_init_context+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902 ac_check_lib_save_LIBS=$LIBS
2903 LIBS="-lsmbclient $LIBS"
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #line $LINENO "configure"
2906 /* confdefs.h. */
2907 _ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2911
2912 /* Override any gcc2 internal prototype to avoid an error. */
2913 #ifdef __cplusplus
2914 extern "C"
2915 #endif
2916 /* We use char because int might match the return type of a gcc2
2917 builtin and then its argument prototype would still apply. */
2918 char smbc_init_context ();
2919 int
2920 main ()
2921 {
2922 smbc_init_context ();
2923 ;
2924 return 0;
2925 }
2926 _ACEOF
2927 rm -f conftest.$ac_objext conftest$ac_exeext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -s conftest$ac_exeext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 ac_cv_lib_smbclient_smbc_init_context=yes
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 ac_cv_lib_smbclient_smbc_init_context=no
2945 fi
2946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2947 LIBS=$ac_check_lib_save_LIBS
2948 fi
2949 echo "$as_me:$LINENO: result: $ac_cv_lib_smbclient_smbc_init_context" >&5
2950 echo "${ECHO_T}$ac_cv_lib_smbclient_smbc_init_context" >&6
2951 if test $ac_cv_lib_smbclient_smbc_init_context = yes; then
2952 cat >>confdefs.h <<_ACEOF
2953 #define HAVE_LIBSMBCLIENT 1
2954 _ACEOF
2955
2956 LIBS="-lsmbclient $LIBS"
2957
2958 else
2959 { { echo "$as_me:$LINENO: error: Your libsmbclient.so is too old. Please update to samba 3." >&5
2960 echo "$as_me: error: Your libsmbclient.so is too old. Please update to samba 3." >&2;}
2961 { (exit 1); exit 1; }; }
2962 fi
2963
2964
2965 cat >conftest.$ac_ext <<_ACEOF
2966 #line $LINENO "configure"
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <libsmbclient.h>
2973 int
2974 main ()
2975 {
2976 SMBCCTX *c; c->flags=0;
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 rm -f conftest.$ac_objext
2982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2983 (eval $ac_compile) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2993 smbctxFlags_ok=yes
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 smbctxFlags_ok=no
2999 fi
3000 rm -f conftest.$ac_objext conftest.$ac_ext
3001 if test "$smbctxFlags_ok" = yes; then
3002
3003 cat >>confdefs.h <<\_ACEOF
3004 #define HAVE_SMBCTXX_FLAG
3005 _ACEOF
3006
3007 echo "$as_me:$LINENO: result: Good you have SMBCTXX->flags " >&5
3008 echo "${ECHO_T}Good you have SMBCTXX->flags " >&6
3009 CFLAGS="$CFLAGS -DHAVE_SMBCTXX_FLAG"
3010 else
3011 echo "$as_me:$LINENO: result: You don't define SMBCTXX->flags. Samba older than 3.0.11. Filesys::SmbClient::set_flag will not work" >&5
3012 echo "${ECHO_T}You don't define SMBCTXX->flags. Samba older than 3.0.11. Filesys::SmbClient::set_flag will not work" >&6
3013 fi
3014
3015 cat >conftest.$ac_ext <<_ACEOF
3016 #line $LINENO "configure"
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <libsmbclient.h>
3023 int
3024 main ()
3025 {
3026 SMBCCTX *c; c->close_fn(c,0);
3027 ;
3028 return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033 (eval $ac_compile) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039 (eval $ac_try) 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 smbctxclosefn=yes
3044 else
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048 smbctxclosefn=no
3049 fi
3050 rm -f conftest.$ac_objext conftest.$ac_ext
3051 if test "$smbctxclosefn" = yes; then
3052
3053 cat >>confdefs.h <<\_ACEOF
3054 #define HAVE_CLOSEFN
3055 _ACEOF
3056
3057 echo "$as_me:$LINENO: result: You use SMBCTXX->close_fn (release >= 3.0.20). " >&5
3058 echo "${ECHO_T}You use SMBCTXX->close_fn (release >= 3.0.20). " >&6
3059 CFLAGS="$CFLAGS -DHAVE_CLOSEFN"
3060 else
3061 echo "$as_me:$LINENO: result: You use SMBCTXX->close (release < 3.0.20). " >&5
3062 echo "${ECHO_T}You use SMBCTXX->close (release < 3.0.20). " >&6
3063 fi
3064
3065 cat >confcache <<\_ACEOF
3066 # This file is a shell script that caches the results of configure
3067 # tests run on this system so they can be shared between configure
3068 # scripts and configure runs, see configure's option --config-cache.
3069 # It is not useful on other systems. If it contains results you don't
3070 # want to keep, you may remove or edit it.
3071 #
3072 # config.status only pays attention to the cache file if you give it
3073 # the --recheck option to rerun configure.
3074 #
3075 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3076 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3077 # following values.
3078
3079 _ACEOF
3080
3081 # The following way of writing the cache mishandles newlines in values,
3082 # but we know of no workaround that is simple, portable, and efficient.
3083 # So, don't put newlines in cache variables' values.
3084 # Ultrix sh set writes to stderr and can't be redirected directly,
3085 # and sets the high bit in the cache file unless we assign to the vars.
3086 {
3087 (set) 2>&1 |
3088 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3089 *ac_space=\ *)
3090 # `set' does not quote correctly, so add quotes (double-quote
3091 # substitution turns \\\\ into \\, and sed turns \\ into \).
3092 sed -n \
3093 "s/'/'\\\\''/g;
3094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3095 ;;
3096 *)
3097 # `set' quotes correctly as required by POSIX, so do not add quotes.
3098 sed -n \
3099 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3100 ;;
3101 esac;
3102 } |
3103 sed '
3104 t clear
3105 : clear
3106 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3107 t end
3108 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3109 : end' >>confcache
3110 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3111 if test -w $cache_file; then
3112 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3113 cat confcache >$cache_file
3114 else
3115 echo "not updating unwritable cache $cache_file"
3116 fi
3117 fi
3118 rm -f confcache
3119
3120 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3121 # Let make expand exec_prefix.
3122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3123
3124 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3125 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3126 # trailing colons and then remove the whole line if VPATH becomes empty
3127 # (actually we leave an empty line to preserve line numbers).
3128 if test "x$srcdir" = x.; then
3129 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3130 s/:*\$(srcdir):*/:/;
3131 s/:*\${srcdir}:*/:/;
3132 s/:*@srcdir@:*/:/;
3133 s/^\([^=]*=[ ]*\):*/\1/;
3134 s/:*$//;
3135 s/^[^=]*=[ ]*$//;
3136 }'
3137 fi
3138
3139 DEFS=-DHAVE_CONFIG_H
3140
3141 ac_libobjs=
3142 ac_ltlibobjs=
3143 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3144 # 1. Remove the extension, and $U if already installed.
3145 ac_i=`echo "$ac_i" |
3146 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3147 # 2. Add them.
3148 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3149 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3150 done
3151 LIBOBJS=$ac_libobjs
3152
3153 LTLIBOBJS=$ac_ltlibobjs
3154
3155
3156
3157 : ${CONFIG_STATUS=./config.status}
3158 ac_clean_files_save=$ac_clean_files
3159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3160 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3161 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3162 cat >$CONFIG_STATUS <<_ACEOF
3163 #! $SHELL
3164 # Generated by $as_me.
3165 # Run this file to recreate the current configuration.
3166 # Compiler output produced by configure, useful for debugging
3167 # configure, is in config.log if it exists.
3168
3169 debug=false
3170 ac_cs_recheck=false
3171 ac_cs_silent=false
3172 SHELL=\${CONFIG_SHELL-$SHELL}
3173 _ACEOF
3174
3175 cat >>$CONFIG_STATUS <<\_ACEOF
3176 ## --------------------- ##
3177 ## M4sh Initialization. ##
3178 ## --------------------- ##
3179
3180 # Be Bourne compatible
3181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3182 emulate sh
3183 NULLCMD=:
3184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3185 # is contrary to our usage. Disable this feature.
3186 alias -g '${1+"$@"}'='"$@"'
3187 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3188 set -o posix
3189 fi
3190
3191 # Support unset when possible.
3192 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3193 as_unset=unset
3194 else
3195 as_unset=false
3196 fi
3197
3198
3199 # Work around bugs in pre-3.0 UWIN ksh.
3200 $as_unset ENV MAIL MAILPATH
3201 PS1='$ '
3202 PS2='> '
3203 PS4='+ '
3204
3205 # NLS nuisances.
3206 for as_var in \
3207 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3208 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3209 LC_TELEPHONE LC_TIME
3210 do
3211 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
3212 eval $as_var=C; export $as_var
3213 else
3214 $as_unset $as_var
3215 fi
3216 done
3217
3218 # Required to use basename.
3219 if expr a : '\(a\)' >/dev/null 2>&1; then
3220 as_expr=expr
3221 else
3222 as_expr=false
3223 fi
3224
3225 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3226 as_basename=basename
3227 else
3228 as_basename=false
3229 fi
3230
3231
3232 # Name of the executable.
3233 as_me=`$as_basename "$0" ||
3234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3235 X"$0" : 'X\(//\)$' \| \
3236 X"$0" : 'X\(/\)$' \| \
3237 . : '\(.\)' 2>/dev/null ||
3238 echo X/"$0" |
3239 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3240 /^X\/\(\/\/\)$/{ s//\1/; q; }
3241 /^X\/\(\/\).*/{ s//\1/; q; }
3242 s/.*/./; q'`
3243
3244
3245 # PATH needs CR, and LINENO needs CR and PATH.
3246 # Avoid depending upon Character Ranges.
3247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3250 as_cr_digits='0123456789'
3251 as_cr_alnum=$as_cr_Letters$as_cr_digits
3252
3253 # The user is always right.
3254 if test "${PATH_SEPARATOR+set}" != set; then
3255 echo "#! /bin/sh" >conf$$.sh
3256 echo "exit 0" >>conf$$.sh
3257 chmod +x conf$$.sh
3258 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3259 PATH_SEPARATOR=';'
3260 else
3261 PATH_SEPARATOR=:
3262 fi
3263 rm -f conf$$.sh
3264 fi
3265
3266
3267 as_lineno_1=$LINENO
3268 as_lineno_2=$LINENO
3269 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3270 test "x$as_lineno_1" != "x$as_lineno_2" &&
3271 test "x$as_lineno_3" = "x$as_lineno_2" || {
3272 # Find who we are. Look in the path if we contain no path at all
3273 # relative or not.
3274 case $0 in
3275 *[\\/]* ) as_myself=$0 ;;
3276 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3282 done
3283
3284 ;;
3285 esac
3286 # We did not find ourselves, most probably we were run as `sh COMMAND'
3287 # in which case we are not to be found in the path.
3288 if test "x$as_myself" = x; then
3289 as_myself=$0
3290 fi
3291 if test ! -f "$as_myself"; then
3292 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3293 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3294 { (exit 1); exit 1; }; }
3295 fi
3296 case $CONFIG_SHELL in
3297 '')
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3300 do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for as_base in sh bash ksh sh5; do
3304 case $as_dir in
3305 /*)
3306 if ("$as_dir/$as_base" -c '
3307 as_lineno_1=$LINENO
3308 as_lineno_2=$LINENO
3309 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3310 test "x$as_lineno_1" != "x$as_lineno_2" &&
3311 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3312 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3313 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3314 CONFIG_SHELL=$as_dir/$as_base
3315 export CONFIG_SHELL
3316 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3317 fi;;
3318 esac
3319 done
3320 done
3321 ;;
3322 esac
3323
3324 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3325 # uniformly replaced by the line number. The first 'sed' inserts a
3326 # line-number line before each line; the second 'sed' does the real
3327 # work. The second script uses 'N' to pair each line-number line
3328 # with the numbered line, and appends trailing '-' during
3329 # substitution so that $LINENO is not a special case at line end.
3330 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3331 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3332 sed '=' <$as_myself |
3333 sed '
3334 N
3335 s,$,-,
3336 : loop
3337 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3338 t loop
3339 s,-$,,
3340 s,^['$as_cr_digits']*\n,,
3341 ' >$as_me.lineno &&
3342 chmod +x $as_me.lineno ||
3343 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3344 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3345 { (exit 1); exit 1; }; }
3346
3347 # Don't try to exec as it changes $[0], causing all sort of problems
3348 # (the dirname of $[0] is not the place where we might find the
3349 # original and so on. Autoconf is especially sensible to this).
3350 . ./$as_me.lineno
3351 # Exit status is that of the last command.
3352 exit
3353 }
3354
3355
3356 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3357 *c*,-n*) ECHO_N= ECHO_C='
3358 ' ECHO_T=' ' ;;
3359 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3360 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3361 esac
3362
3363 if expr a : '\(a\)' >/dev/null 2>&1; then
3364 as_expr=expr
3365 else
3366 as_expr=false
3367 fi
3368
3369 rm -f conf$$ conf$$.exe conf$$.file
3370 echo >conf$$.file
3371 if ln -s conf$$.file conf$$ 2>/dev/null; then
3372 # We could just check for DJGPP; but this test a) works b) is more generic
3373 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3374 if test -f conf$$.exe; then
3375 # Don't use ln at all; we don't have any links
3376 as_ln_s='cp -p'
3377 else
3378 as_ln_s='ln -s'
3379 fi
3380 elif ln conf$$.file conf$$ 2>/dev/null; then
3381 as_ln_s=ln
3382 else
3383 as_ln_s='cp -p'
3384 fi
3385 rm -f conf$$ conf$$.exe conf$$.file
3386
3387 if mkdir -p . 2>/dev/null; then
3388 as_mkdir_p=:
3389 else
3390 as_mkdir_p=false
3391 fi
3392
3393 as_executable_p="test -f"
3394
3395 # Sed expression to map a string onto a valid CPP name.
3396 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3397
3398 # Sed expression to map a string onto a valid variable name.
3399 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3400
3401
3402 # IFS
3403 # We need space, tab and new line, in precisely that order.
3404 as_nl='
3405 '
3406 IFS=" $as_nl"
3407
3408 # CDPATH.
3409 $as_unset CDPATH
3410
3411 exec 6>&1
3412
3413 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3414 # report actual input values of CONFIG_FILES etc. instead of their
3415 # values after options handling. Logging --version etc. is OK.
3416 exec 5>>config.log
3417 {
3418 echo
3419 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3420 ## Running $as_me. ##
3421 _ASBOX
3422 } >&5
3423 cat >&5 <<_CSEOF
3424
3425 This file was extended by $as_me, which was
3426 generated by GNU Autoconf 2.57. Invocation command line was
3427
3428 CONFIG_FILES = $CONFIG_FILES
3429 CONFIG_HEADERS = $CONFIG_HEADERS
3430 CONFIG_LINKS = $CONFIG_LINKS
3431 CONFIG_COMMANDS = $CONFIG_COMMANDS
3432 $ $0 $@
3433
3434 _CSEOF
3435 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3436 echo >&5
3437 _ACEOF
3438
3439 # Files that config.status was made for.
3440 if test -n "$ac_config_files"; then
3441 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3442 fi
3443
3444 if test -n "$ac_config_headers"; then
3445 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3446 fi
3447
3448 if test -n "$ac_config_links"; then
3449 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3450 fi
3451
3452 if test -n "$ac_config_commands"; then
3453 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3454 fi
3455
3456 cat >>$CONFIG_STATUS <<\_ACEOF
3457
3458 ac_cs_usage="\
3459 \`$as_me' instantiates files from templates according to the
3460 current configuration.
3461
3462 Usage: $0 [OPTIONS] [FILE]...
3463
3464 -h, --help print this help, then exit
3465 -V, --version print version number, then exit
3466 -q, --quiet do not print progress messages
3467 -d, --debug don't remove temporary files
3468 --recheck update $as_me by reconfiguring in the same conditions
3469 --header=FILE[:TEMPLATE]
3470 instantiate the configuration header FILE
3471
3472 Configuration headers:
3473 $config_headers
3474
3475 Report bugs to <[email protected]>."
3476 _ACEOF
3477
3478 cat >>$CONFIG_STATUS <<_ACEOF
3479 ac_cs_version="\\
3480 config.status
3481 configured by $0, generated by GNU Autoconf 2.57,
3482 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3483
3484 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3485 Free Software Foundation, Inc.
3486 This config.status script is free software; the Free Software Foundation
3487 gives unlimited permission to copy, distribute and modify it."
3488 srcdir=$srcdir
3489 _ACEOF
3490
3491 cat >>$CONFIG_STATUS <<\_ACEOF
3492 # If no file are specified by the user, then we need to provide default
3493 # value. By we need to know if files were specified by the user.
3494 ac_need_defaults=:
3495 while test $# != 0
3496 do
3497 case $1 in
3498 --*=*)
3499 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3500 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3501 ac_shift=:
3502 ;;
3503 -*)
3504 ac_option=$1
3505 ac_optarg=$2
3506 ac_shift=shift
3507 ;;
3508 *) # This is not an option, so the user has probably given explicit
3509 # arguments.
3510 ac_option=$1
3511 ac_need_defaults=false;;
3512 esac
3513
3514 case $ac_option in
3515 # Handling of the options.
3516 _ACEOF
3517 cat >>$CONFIG_STATUS <<\_ACEOF
3518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3519 ac_cs_recheck=: ;;
3520 --version | --vers* | -V )
3521 echo "$ac_cs_version"; exit 0 ;;
3522 --he | --h)
3523 # Conflict between --help and --header
3524 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3525 Try \`$0 --help' for more information." >&5
3526 echo "$as_me: error: ambiguous option: $1
3527 Try \`$0 --help' for more information." >&2;}
3528 { (exit 1); exit 1; }; };;
3529 --help | --hel | -h )
3530 echo "$ac_cs_usage"; exit 0 ;;
3531 --debug | --d* | -d )
3532 debug=: ;;
3533 --file | --fil | --fi | --f )
3534 $ac_shift
3535 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3536 ac_need_defaults=false;;
3537 --header | --heade | --head | --hea )
3538 $ac_shift
3539 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3540 ac_need_defaults=false;;
3541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3542 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3543 ac_cs_silent=: ;;
3544
3545 # This is an error.
3546 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3547 Try \`$0 --help' for more information." >&5
3548 echo "$as_me: error: unrecognized option: $1
3549 Try \`$0 --help' for more information." >&2;}
3550 { (exit 1); exit 1; }; } ;;
3551
3552 *) ac_config_targets="$ac_config_targets $1" ;;
3553
3554 esac
3555 shift
3556 done
3557
3558 ac_configure_extra_args=
3559
3560 if $ac_cs_silent; then
3561 exec 6>/dev/null
3562 ac_configure_extra_args="$ac_configure_extra_args --silent"
3563 fi
3564
3565 _ACEOF
3566 cat >>$CONFIG_STATUS <<_ACEOF
3567 if \$ac_cs_recheck; then
3568 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3569 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3570 fi
3571
3572 _ACEOF
3573
3574
3575
3576
3577
3578 cat >>$CONFIG_STATUS <<\_ACEOF
3579 for ac_config_target in $ac_config_targets
3580 do
3581 case "$ac_config_target" in
3582 # Handling of arguments.
3583 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3584 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3585 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3586 { (exit 1); exit 1; }; };;
3587 esac
3588 done
3589
3590 # If the user did not use the arguments to specify the items to instantiate,
3591 # then the envvar interface is used. Set only those that are not.
3592 # We use the long form for the default assignment because of an extremely
3593 # bizarre bug on SunOS 4.1.3.
3594 if $ac_need_defaults; then
3595 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3596 fi
3597
3598 # Have a temporary directory for convenience. Make it in the build tree
3599 # simply because there is no reason to put it here, and in addition,
3600 # creating and moving files from /tmp can sometimes cause problems.
3601 # Create a temporary directory, and hook for its removal unless debugging.
3602 $debug ||
3603 {
3604 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3605 trap '{ (exit 1); exit 1; }' 1 2 13 15
3606 }
3607
3608 # Create a (secure) tmp directory for tmp files.
3609
3610 {
3611 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3612 test -n "$tmp" && test -d "$tmp"
3613 } ||
3614 {
3615 tmp=./confstat$$-$RANDOM
3616 (umask 077 && mkdir $tmp)
3617 } ||
3618 {
3619 echo "$me: cannot create a temporary directory in ." >&2
3620 { (exit 1); exit 1; }
3621 }
3622
3623 _ACEOF
3624
3625 cat >>$CONFIG_STATUS <<\_ACEOF
3626
3627 #
3628 # CONFIG_HEADER section.
3629 #
3630
3631 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3632 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3633 #
3634 # ac_d sets the value in "#define NAME VALUE" lines.
3635 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3636 ac_dB='[ ].*$,\1#\2'
3637 ac_dC=' '
3638 ac_dD=',;t'
3639 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3640 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3641 ac_uB='$,\1#\2define\3'
3642 ac_uC=' '
3643 ac_uD=',;t'
3644
3645 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3646 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3647 case $ac_file in
3648 - | *:- | *:-:* ) # input from stdin
3649 cat >$tmp/stdin
3650 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3651 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3652 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3653 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3654 * ) ac_file_in=$ac_file.in ;;
3655 esac
3656
3657 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3658 echo "$as_me: creating $ac_file" >&6;}
3659
3660 # First look for the input files in the build tree, otherwise in the
3661 # src tree.
3662 ac_file_inputs=`IFS=:
3663 for f in $ac_file_in; do
3664 case $f in
3665 -) echo $tmp/stdin ;;
3666 [\\/$]*)
3667 # Absolute (can't be DOS-style, as IFS=:)
3668 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3669 echo "$as_me: error: cannot find input file: $f" >&2;}
3670 { (exit 1); exit 1; }; }
3671 echo $f;;
3672 *) # Relative
3673 if test -f "$f"; then
3674 # Build tree
3675 echo $f
3676 elif test -f "$srcdir/$f"; then
3677 # Source tree
3678 echo $srcdir/$f
3679 else
3680 # /dev/null tree
3681 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3682 echo "$as_me: error: cannot find input file: $f" >&2;}
3683 { (exit 1); exit 1; }; }
3684 fi;;
3685 esac
3686 done` || { (exit 1); exit 1; }
3687 # Remove the trailing spaces.
3688 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3689
3690 _ACEOF
3691
3692 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3693 # `conftest.undefs', that substitutes the proper values into
3694 # config.h.in to produce config.h. The first handles `#define'
3695 # templates, and the second `#undef' templates.
3696 # And first: Protect against being on the right side of a sed subst in
3697 # config.status. Protect against being in an unquoted here document
3698 # in config.status.
3699 rm -f conftest.defines conftest.undefs
3700 # Using a here document instead of a string reduces the quoting nightmare.
3701 # Putting comments in sed scripts is not portable.
3702 #
3703 # `end' is used to avoid that the second main sed command (meant for
3704 # 0-ary CPP macros) applies to n-ary macro definitions.
3705 # See the Autoconf documentation for `clear'.
3706 cat >confdef2sed.sed <<\_ACEOF
3707 s/[\\&,]/\\&/g
3708 s,[\\$`],\\&,g
3709 t clear
3710 : clear
3711 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3712 t end
3713 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3714 : end
3715 _ACEOF
3716 # If some macros were called several times there might be several times
3717 # the same #defines, which is useless. Nevertheless, we may not want to
3718 # sort them, since we want the *last* AC-DEFINE to be honored.
3719 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3720 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3721 rm -f confdef2sed.sed
3722
3723 # This sed command replaces #undef with comments. This is necessary, for
3724 # example, in the case of _POSIX_SOURCE, which is predefined and required
3725 # on some systems where configure will not decide to define it.
3726 cat >>conftest.undefs <<\_ACEOF
3727 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3728 _ACEOF
3729
3730 # Break up conftest.defines because some shells have a limit on the size
3731 # of here documents, and old seds have small limits too (100 cmds).
3732 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3733 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3734 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3735 echo ' :' >>$CONFIG_STATUS
3736 rm -f conftest.tail
3737 while grep . conftest.defines >/dev/null
3738 do
3739 # Write a limited-size here document to $tmp/defines.sed.
3740 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3741 # Speed up: don't consider the non `#define' lines.
3742 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3743 # Work around the forget-to-reset-the-flag bug.
3744 echo 't clr' >>$CONFIG_STATUS
3745 echo ': clr' >>$CONFIG_STATUS
3746 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3747 echo 'CEOF
3748 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3749 rm -f $tmp/in
3750 mv $tmp/out $tmp/in
3751 ' >>$CONFIG_STATUS
3752 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3753 rm -f conftest.defines
3754 mv conftest.tail conftest.defines
3755 done
3756 rm -f conftest.defines
3757 echo ' fi # grep' >>$CONFIG_STATUS
3758 echo >>$CONFIG_STATUS
3759
3760 # Break up conftest.undefs because some shells have a limit on the size
3761 # of here documents, and old seds have small limits too (100 cmds).
3762 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3763 rm -f conftest.tail
3764 while grep . conftest.undefs >/dev/null
3765 do
3766 # Write a limited-size here document to $tmp/undefs.sed.
3767 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3768 # Speed up: don't consider the non `#undef'
3769 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3770 # Work around the forget-to-reset-the-flag bug.
3771 echo 't clr' >>$CONFIG_STATUS
3772 echo ': clr' >>$CONFIG_STATUS
3773 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3774 echo 'CEOF
3775 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3776 rm -f $tmp/in
3777 mv $tmp/out $tmp/in
3778 ' >>$CONFIG_STATUS
3779 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3780 rm -f conftest.undefs
3781 mv conftest.tail conftest.undefs
3782 done
3783 rm -f conftest.undefs
3784
3785 cat >>$CONFIG_STATUS <<\_ACEOF
3786 # Let's still pretend it is `configure' which instantiates (i.e., don't
3787 # use $as_me), people would be surprised to read:
3788 # /* config.h. Generated by config.status. */
3789 if test x"$ac_file" = x-; then
3790 echo "/* Generated by configure. */" >$tmp/config.h
3791 else
3792 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
3793 fi
3794 cat $tmp/in >>$tmp/config.h
3795 rm -f $tmp/in
3796 if test x"$ac_file" != x-; then
3797 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3798 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3799 echo "$as_me: $ac_file is unchanged" >&6;}
3800 else
3801 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3803 X"$ac_file" : 'X\(//\)[^/]' \| \
3804 X"$ac_file" : 'X\(//\)$' \| \
3805 X"$ac_file" : 'X\(/\)' \| \
3806 . : '\(.\)' 2>/dev/null ||
3807 echo X"$ac_file" |
3808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3810 /^X\(\/\/\)$/{ s//\1/; q; }
3811 /^X\(\/\).*/{ s//\1/; q; }
3812 s/.*/./; q'`
3813 { if $as_mkdir_p; then
3814 mkdir -p "$ac_dir"
3815 else
3816 as_dir="$ac_dir"
3817 as_dirs=
3818 while test ! -d "$as_dir"; do
3819 as_dirs="$as_dir $as_dirs"
3820 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3822 X"$as_dir" : 'X\(//\)[^/]' \| \
3823 X"$as_dir" : 'X\(//\)$' \| \
3824 X"$as_dir" : 'X\(/\)' \| \
3825 . : '\(.\)' 2>/dev/null ||
3826 echo X"$as_dir" |
3827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3829 /^X\(\/\/\)$/{ s//\1/; q; }
3830 /^X\(\/\).*/{ s//\1/; q; }
3831 s/.*/./; q'`
3832 done
3833 test ! -n "$as_dirs" || mkdir $as_dirs
3834 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3835 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3836 { (exit 1); exit 1; }; }; }
3837
3838 rm -f $ac_file
3839 mv $tmp/config.h $ac_file
3840 fi
3841 else
3842 cat $tmp/config.h
3843 rm -f $tmp/config.h
3844 fi
3845 done
3846 _ACEOF
3847
3848 cat >>$CONFIG_STATUS <<\_ACEOF
3849
3850 { (exit 0); exit 0; }
3851 _ACEOF
3852 chmod +x $CONFIG_STATUS
3853 ac_clean_files=$ac_clean_files_save
3854
3855
3856 # configure is writing to config.log, and then calls config.status.
3857 # config.status does its own redirection, appending to config.log.
3858 # Unfortunately, on DOS this fails, as config.log is still kept open
3859 # by configure, so config.status won't be able to write to it; its
3860 # output is simply discarded. So we exec the FD to /dev/null,
3861 # effectively closing config.log, so it can be properly (re)opened and
3862 # appended to by config.status. When coming back to configure, we
3863 # need to make the FD available again.
3864 if test "$no_create" != yes; then
3865 ac_cs_success=:
3866 ac_config_status_args=
3867 test "$silent" = yes &&
3868 ac_config_status_args="$ac_config_status_args --quiet"
3869 exec 5>/dev/null
3870 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3871 exec 5>>config.log
3872 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3873 # would make configure fail if this is the last instruction.
3874 $ac_cs_success || { (exit 1); exit 1; }
3875 fi
3876