Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PERL CPP EGREP LIBOBJS xml2cfg LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --disable-dependency-tracking speeds up one-time build
849 --enable-dependency-tracking do not reject slow dependency extractors
850
851 Optional Packages:
852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
854 --with-libxml2=dir Base directory where libxml2 is installed
855 --with-cfg=file location of the config file
856 --with-dtd=file location of the config dtd
857
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
865 CPP C preprocessor
866
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
869
870 _ACEOF
871 fi
872
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
878 ac_builddir=.
879
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885 ac_dir_suffix= ac_top_builddir=
886 fi
887
888 case $srcdir in
889 .) # No --srcdir option. We are building in place.
890 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
903
904 # Do not use `cd foo && pwd` to compute absolute paths, because
905 # the directories may not exist.
906 case `pwd` in
907 .) ac_abs_builddir="$ac_dir";;
908 *)
909 case "$ac_dir" in
910 .) ac_abs_builddir=`pwd`;;
911 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
912 *) ac_abs_builddir=`pwd`/"$ac_dir";;
913 esac;;
914 esac
915 case $ac_abs_builddir in
916 .) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *)
918 case ${ac_top_builddir}. in
919 .) ac_abs_top_builddir=$ac_abs_builddir;;
920 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
921 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
922 esac;;
923 esac
924 case $ac_abs_builddir in
925 .) ac_abs_srcdir=$ac_srcdir;;
926 *)
927 case $ac_srcdir in
928 .) ac_abs_srcdir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
930 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *)
936 case $ac_top_srcdir in
937 .) ac_abs_top_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
939 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 esac;;
941 esac
942
943 cd $ac_dir
944 # Check for guested configure; otherwise get Cygnus style configure.
945 if test -f $ac_srcdir/configure.gnu; then
946 echo
947 $SHELL $ac_srcdir/configure.gnu --help=recursive
948 elif test -f $ac_srcdir/configure; then
949 echo
950 $SHELL $ac_srcdir/configure --help=recursive
951 elif test -f $ac_srcdir/configure.ac ||
952 test -f $ac_srcdir/configure.in; then
953 echo
954 $ac_configure --help
955 else
956 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
957 fi
958 cd $ac_popdir
959 done
960 fi
961
962 test -n "$ac_init_help" && exit 0
963 if $ac_init_version; then
964 cat <<\_ACEOF
965
966 Copyright (C) 2003 Free Software Foundation, Inc.
967 This configure script is free software; the Free Software Foundation
968 gives unlimited permission to copy, distribute and modify it.
969 _ACEOF
970 exit 0
971 fi
972 exec 5>config.log
973 cat >&5 <<_ACEOF
974 This file contains any messages produced by compilers while
975 running configure, to aid debugging if configure makes a mistake.
976
977 It was created by $as_me, which was
978 generated by GNU Autoconf 2.59. Invocation command line was
979
980 $ $0 $@
981
982 _ACEOF
983 {
984 cat <<_ASUNAME
985 ## --------- ##
986 ## Platform. ##
987 ## --------- ##
988
989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
994
995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
997
998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1001 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1005
1006 _ASUNAME
1007
1008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1009 for as_dir in $PATH
1010 do
1011 IFS=$as_save_IFS
1012 test -z "$as_dir" && as_dir=.
1013 echo "PATH: $as_dir"
1014 done
1015
1016 } >&5
1017
1018 cat >&5 <<_ACEOF
1019
1020
1021 ## ----------- ##
1022 ## Core tests. ##
1023 ## ----------- ##
1024
1025 _ACEOF
1026
1027
1028 # Keep a trace of the command line.
1029 # Strip out --no-create and --no-recursion so they do not pile up.
1030 # Strip out --silent because we don't want to record it for future runs.
1031 # Also quote any args containing shell meta-characters.
1032 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_configure_args=
1034 ac_configure_args0=
1035 ac_configure_args1=
1036 ac_sep=
1037 ac_must_keep_next=false
1038 for ac_pass in 1 2
1039 do
1040 for ac_arg
1041 do
1042 case $ac_arg in
1043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045 | -silent | --silent | --silen | --sile | --sil)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case $ac_pass in
1051 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 2)
1053 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1054 if test $ac_must_keep_next = true; then
1055 ac_must_keep_next=false # Got value, back to normal.
1056 else
1057 case $ac_arg in
1058 *=* | --config-cache | -C | -disable-* | --disable-* \
1059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1061 | -with-* | --with-* | -without-* | --without-* | --x)
1062 case "$ac_configure_args0 " in
1063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064 esac
1065 ;;
1066 -* ) ac_must_keep_next=true ;;
1067 esac
1068 fi
1069 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1070 # Get rid of the leading space.
1071 ac_sep=" "
1072 ;;
1073 esac
1074 done
1075 done
1076 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1077 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078
1079 # When interrupted or exit'd, cleanup temporary files, and complete
1080 # config.log. We remove comments because anyway the quotes in there
1081 # would cause problems or look ugly.
1082 # WARNING: Be sure not to use single quotes in there, as some shells,
1083 # such as our DU 5.0 friend, will then `close' the trap.
1084 trap 'exit_status=$?
1085 # Save into config.log some information that might help in debugging.
1086 {
1087 echo
1088
1089 cat <<\_ASBOX
1090 ## ---------------- ##
1091 ## Cache variables. ##
1092 ## ---------------- ##
1093 _ASBOX
1094 echo
1095 # The following way of writing the cache mishandles newlines in values,
1096 {
1097 (set) 2>&1 |
1098 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099 *ac_space=\ *)
1100 sed -n \
1101 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1103 ;;
1104 *)
1105 sed -n \
1106 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1107 ;;
1108 esac;
1109 }
1110 echo
1111
1112 cat <<\_ASBOX
1113 ## ----------------- ##
1114 ## Output variables. ##
1115 ## ----------------- ##
1116 _ASBOX
1117 echo
1118 for ac_var in $ac_subst_vars
1119 do
1120 eval ac_val=$`echo $ac_var`
1121 echo "$ac_var='"'"'$ac_val'"'"'"
1122 done | sort
1123 echo
1124
1125 if test -n "$ac_subst_files"; then
1126 cat <<\_ASBOX
1127 ## ------------- ##
1128 ## Output files. ##
1129 ## ------------- ##
1130 _ASBOX
1131 echo
1132 for ac_var in $ac_subst_files
1133 do
1134 eval ac_val=$`echo $ac_var`
1135 echo "$ac_var='"'"'$ac_val'"'"'"
1136 done | sort
1137 echo
1138 fi
1139
1140 if test -s confdefs.h; then
1141 cat <<\_ASBOX
1142 ## ----------- ##
1143 ## confdefs.h. ##
1144 ## ----------- ##
1145 _ASBOX
1146 echo
1147 sed "/^$/d" confdefs.h | sort
1148 echo
1149 fi
1150 test "$ac_signal" != 0 &&
1151 echo "$as_me: caught signal $ac_signal"
1152 echo "$as_me: exit $exit_status"
1153 } >&5
1154 rm -f core *.core &&
1155 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156 exit $exit_status
1157 ' 0
1158 for ac_signal in 1 2 13 15; do
1159 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1160 done
1161 ac_signal=0
1162
1163 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1164 rm -rf conftest* confdefs.h
1165 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166 echo >confdefs.h
1167
1168 # Predefined preprocessor variables.
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_NAME "$PACKAGE_NAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_STRING "$PACKAGE_STRING"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1192 _ACEOF
1193
1194
1195 # Let the site file select an alternate cache file if it wants to.
1196 # Prefer explicitly selected file to automatically selected ones.
1197 if test -z "$CONFIG_SITE"; then
1198 if test "x$prefix" != xNONE; then
1199 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 else
1201 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202 fi
1203 fi
1204 for ac_site_file in $CONFIG_SITE; do
1205 if test -r "$ac_site_file"; then
1206 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1207 echo "$as_me: loading site script $ac_site_file" >&6;}
1208 sed 's/^/| /' "$ac_site_file" >&5
1209 . "$ac_site_file"
1210 fi
1211 done
1212
1213 if test -r "$cache_file"; then
1214 # Some versions of bash will fail to source /dev/null (special
1215 # files actually), so we avoid doing that.
1216 if test -f "$cache_file"; then
1217 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1218 echo "$as_me: loading cache $cache_file" >&6;}
1219 case $cache_file in
1220 [\\/]* | ?:[\\/]* ) . $cache_file;;
1221 *) . ./$cache_file;;
1222 esac
1223 fi
1224 else
1225 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1226 echo "$as_me: creating cache $cache_file" >&6;}
1227 >$cache_file
1228 fi
1229
1230 # Check that the precious variables saved in the cache have kept the same
1231 # value.
1232 ac_cache_corrupted=false
1233 for ac_var in `(set) 2>&1 |
1234 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1235 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1236 eval ac_new_set=\$ac_env_${ac_var}_set
1237 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1238 eval ac_new_val="\$ac_env_${ac_var}_value"
1239 case $ac_old_set,$ac_new_set in
1240 set,)
1241 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1244 ,set)
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1248 ,);;
1249 *)
1250 if test "x$ac_old_val" != "x$ac_new_val"; then
1251 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1252 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1253 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1254 echo "$as_me: former value: $ac_old_val" >&2;}
1255 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1256 echo "$as_me: current value: $ac_new_val" >&2;}
1257 ac_cache_corrupted=:
1258 fi;;
1259 esac
1260 # Pass precious variables to config.status.
1261 if test "$ac_new_set" = set; then
1262 case $ac_new_val in
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1265 *) ac_arg=$ac_var=$ac_new_val ;;
1266 esac
1267 case " $ac_configure_args " in
1268 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1269 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1270 esac
1271 fi
1272 done
1273 if $ac_cache_corrupted; then
1274 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1275 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1276 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1277 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1278 { (exit 1); exit 1; }; }
1279 fi
1280
1281 ac_ext=c
1282 ac_cpp='$CPP $CPPFLAGS'
1283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305 am__api_version="1.9"
1306 ac_aux_dir=
1307 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1308 if test -f $ac_dir/install-sh; then
1309 ac_aux_dir=$ac_dir
1310 ac_install_sh="$ac_aux_dir/install-sh -c"
1311 break
1312 elif test -f $ac_dir/install.sh; then
1313 ac_aux_dir=$ac_dir
1314 ac_install_sh="$ac_aux_dir/install.sh -c"
1315 break
1316 elif test -f $ac_dir/shtool; then
1317 ac_aux_dir=$ac_dir
1318 ac_install_sh="$ac_aux_dir/shtool install -c"
1319 break
1320 fi
1321 done
1322 if test -z "$ac_aux_dir"; then
1323 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1324 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1325 { (exit 1); exit 1; }; }
1326 fi
1327 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1328 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1329 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1330
1331 # Find a good install program. We prefer a C program (faster),
1332 # so one script is as good as another. But avoid the broken or
1333 # incompatible versions:
1334 # SysV /etc/install, /usr/sbin/install
1335 # SunOS /usr/etc/install
1336 # IRIX /sbin/install
1337 # AIX /bin/install
1338 # AmigaOS /C/install, which installs bootblocks on floppy discs
1339 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1340 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1341 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1342 # OS/2's system install, which has a completely different semantic
1343 # ./install, which can be erroneously created by make from ./install.sh.
1344 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1345 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1346 if test -z "$INSTALL"; then
1347 if test "${ac_cv_path_install+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 else
1350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351 for as_dir in $PATH
1352 do
1353 IFS=$as_save_IFS
1354 test -z "$as_dir" && as_dir=.
1355 # Account for people who put trailing slashes in PATH elements.
1356 case $as_dir/ in
1357 ./ | .// | /cC/* | \
1358 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1359 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1360 /usr/ucb/* ) ;;
1361 *)
1362 # OSF1 and SCO ODT 3.0 have their own names for install.
1363 # Don't use installbsd from OSF since it installs stuff as root
1364 # by default.
1365 for ac_prog in ginstall scoinst install; do
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1368 if test $ac_prog = install &&
1369 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1370 # AIX install. It has an incompatible calling convention.
1371 :
1372 elif test $ac_prog = install &&
1373 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1374 # program-specific install script used by HP pwplus--don't use.
1375 :
1376 else
1377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1378 break 3
1379 fi
1380 fi
1381 done
1382 done
1383 ;;
1384 esac
1385 done
1386
1387
1388 fi
1389 if test "${ac_cv_path_install+set}" = set; then
1390 INSTALL=$ac_cv_path_install
1391 else
1392 # As a last resort, use the slow shell script. We don't cache a
1393 # path for INSTALL within a source directory, because that will
1394 # break other packages using the cache if that directory is
1395 # removed, or if the path is relative.
1396 INSTALL=$ac_install_sh
1397 fi
1398 fi
1399 echo "$as_me:$LINENO: result: $INSTALL" >&5
1400 echo "${ECHO_T}$INSTALL" >&6
1401
1402 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1403 # It thinks the first close brace ends the variable substitution.
1404 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1405
1406 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1407
1408 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1409
1410 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1411 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1412 # Just in case
1413 sleep 1
1414 echo timestamp > conftest.file
1415 # Do `set' in a subshell so we don't clobber the current shell's
1416 # arguments. Must try -L first in case configure is actually a
1417 # symlink; some systems play weird games with the mod time of symlinks
1418 # (eg FreeBSD returns the mod time of the symlink's containing
1419 # directory).
1420 if (
1421 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1422 if test "$*" = "X"; then
1423 # -L didn't work.
1424 set X `ls -t $srcdir/configure conftest.file`
1425 fi
1426 rm -f conftest.file
1427 if test "$*" != "X $srcdir/configure conftest.file" \
1428 && test "$*" != "X conftest.file $srcdir/configure"; then
1429
1430 # If neither matched, then we have a broken ls. This can happen
1431 # if, for instance, CONFIG_SHELL is bash and it inherits a
1432 # broken ls alias from the environment. This has actually
1433 # happened. Such a system could not be considered "sane".
1434 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1435 alias in your environment" >&5
1436 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1437 alias in your environment" >&2;}
1438 { (exit 1); exit 1; }; }
1439 fi
1440
1441 test "$2" = conftest.file
1442 )
1443 then
1444 # Ok.
1445 :
1446 else
1447 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1448 Check your system clock" >&5
1449 echo "$as_me: error: newly created file is older than distributed files!
1450 Check your system clock" >&2;}
1451 { (exit 1); exit 1; }; }
1452 fi
1453 echo "$as_me:$LINENO: result: yes" >&5
1454 echo "${ECHO_T}yes" >&6
1455 test "$program_prefix" != NONE &&
1456 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1457 # Use a double $ so make ignores it.
1458 test "$program_suffix" != NONE &&
1459 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1460 # Double any \ or $. echo might interpret backslashes.
1461 # By default was `s,x,x', remove it if useless.
1462 cat <<\_ACEOF >conftest.sed
1463 s/[\\$]/&&/g;s/;s,x,x,$//
1464 _ACEOF
1465 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1466 rm conftest.sed
1467
1468 # expand $ac_aux_dir to an absolute path
1469 am_aux_dir=`cd $ac_aux_dir && pwd`
1470
1471 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1472 # Use eval to expand $SHELL
1473 if eval "$MISSING --run true"; then
1474 am_missing_run="$MISSING --run "
1475 else
1476 am_missing_run=
1477 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1478 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1479 fi
1480
1481 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1482 # We used to keeping the `.' as first argument, in order to
1483 # allow $(mkdir_p) to be used without argument. As in
1484 # $(mkdir_p) $(somedir)
1485 # where $(somedir) is conditionally defined. However this is wrong
1486 # for two reasons:
1487 # 1. if the package is installed by a user who cannot write `.'
1488 # make install will fail,
1489 # 2. the above comment should most certainly read
1490 # $(mkdir_p) $(DESTDIR)$(somedir)
1491 # so it does not work when $(somedir) is undefined and
1492 # $(DESTDIR) is not.
1493 # To support the latter case, we have to write
1494 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1495 # so the `.' trick is pointless.
1496 mkdir_p='mkdir -p --'
1497 else
1498 # On NextStep and OpenStep, the `mkdir' command does not
1499 # recognize any option. It will interpret all options as
1500 # directories to create, and then abort because `.' already
1501 # exists.
1502 for d in ./-p ./--version;
1503 do
1504 test -d $d && rmdir $d
1505 done
1506 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1507 if test -f "$ac_aux_dir/mkinstalldirs"; then
1508 mkdir_p='$(mkinstalldirs)'
1509 else
1510 mkdir_p='$(install_sh) -d'
1511 fi
1512 fi
1513
1514 for ac_prog in gawk mawk nawk awk
1515 do
1516 # Extract the first word of "$ac_prog", so it can be a program name with args.
1517 set dummy $ac_prog; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_AWK+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$AWK"; then
1524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_AWK="$ac_prog"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 AWK=$ac_cv_prog_AWK
1543 if test -n "$AWK"; then
1544 echo "$as_me:$LINENO: result: $AWK" >&5
1545 echo "${ECHO_T}$AWK" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 test -n "$AWK" && break
1552 done
1553
1554 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1555 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1556 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1557 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 cat >conftest.make <<\_ACEOF
1561 all:
1562 @echo 'ac_maketemp="$(MAKE)"'
1563 _ACEOF
1564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1565 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1566 if test -n "$ac_maketemp"; then
1567 eval ac_cv_prog_make_${ac_make}_set=yes
1568 else
1569 eval ac_cv_prog_make_${ac_make}_set=no
1570 fi
1571 rm -f conftest.make
1572 fi
1573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1574 echo "$as_me:$LINENO: result: yes" >&5
1575 echo "${ECHO_T}yes" >&6
1576 SET_MAKE=
1577 else
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 SET_MAKE="MAKE=${MAKE-make}"
1581 fi
1582
1583 rm -rf .tst 2>/dev/null
1584 mkdir .tst 2>/dev/null
1585 if test -d .tst; then
1586 am__leading_dot=.
1587 else
1588 am__leading_dot=_
1589 fi
1590 rmdir .tst 2>/dev/null
1591
1592 # test to see if srcdir already configured
1593 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1594 test -f $srcdir/config.status; then
1595 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1596 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1597 { (exit 1); exit 1; }; }
1598 fi
1599
1600 # test whether we have cygpath
1601 if test -z "$CYGPATH_W"; then
1602 if (cygpath --version) >/dev/null 2>/dev/null; then
1603 CYGPATH_W='cygpath -w'
1604 else
1605 CYGPATH_W=echo
1606 fi
1607 fi
1608
1609
1610 # Define the identity of the package.
1611 PACKAGE=btscanner
1612 VERSION=2.0
1613
1614
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE "$PACKAGE"
1617 _ACEOF
1618
1619
1620 cat >>confdefs.h <<_ACEOF
1621 #define VERSION "$VERSION"
1622 _ACEOF
1623
1624 # Some tools Automake needs.
1625
1626 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1627
1628
1629 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1630
1631
1632 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1633
1634
1635 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1636
1637
1638 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1639
1640 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1641
1642 # Installed binaries are usually stripped using `strip' when the user
1643 # run `make install-strip'. However `strip' might not be the right
1644 # tool to use in cross-compilation environments, therefore Automake
1645 # will honor the `STRIP' environment variable to overrule this program.
1646 if test "$cross_compiling" != no; then
1647 if test -n "$ac_tool_prefix"; then
1648 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1649 set dummy ${ac_tool_prefix}strip; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_STRIP+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$STRIP"; then
1656 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 STRIP=$ac_cv_prog_STRIP
1675 if test -n "$STRIP"; then
1676 echo "$as_me:$LINENO: result: $STRIP" >&5
1677 echo "${ECHO_T}$STRIP" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 fi
1684 if test -z "$ac_cv_prog_STRIP"; then
1685 ac_ct_STRIP=$STRIP
1686 # Extract the first word of "strip", so it can be a program name with args.
1687 set dummy strip; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693 if test -n "$ac_ct_STRIP"; then
1694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1695 else
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699 IFS=$as_save_IFS
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 ac_cv_prog_ac_ct_STRIP="strip"
1704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1705 break 2
1706 fi
1707 done
1708 done
1709
1710 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1711 fi
1712 fi
1713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1714 if test -n "$ac_ct_STRIP"; then
1715 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1716 echo "${ECHO_T}$ac_ct_STRIP" >&6
1717 else
1718 echo "$as_me:$LINENO: result: no" >&5
1719 echo "${ECHO_T}no" >&6
1720 fi
1721
1722 STRIP=$ac_ct_STRIP
1723 else
1724 STRIP="$ac_cv_prog_STRIP"
1725 fi
1726
1727 fi
1728 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1729
1730 # We need awk for the "check" target. The system "awk" is bad on
1731 # some platforms.
1732 # Always define AMTAR for backward compatibility.
1733
1734 AMTAR=${AMTAR-"${am_missing_run}tar"}
1735
1736 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1737
1738
1739
1740
1741
1742 ac_config_headers="$ac_config_headers config.h"
1743
1744
1745 # Checks for programs.
1746 ac_ext=c
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1751 if test -n "$ac_tool_prefix"; then
1752 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1753 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1754 echo "$as_me:$LINENO: checking for $ac_word" >&5
1755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756 if test "${ac_cv_prog_CC+set}" = set; then
1757 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 else
1759 if test -n "$CC"; then
1760 ac_cv_prog_CC="$CC" # Let the user override the test.
1761 else
1762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 for as_dir in $PATH
1764 do
1765 IFS=$as_save_IFS
1766 test -z "$as_dir" && as_dir=.
1767 for ac_exec_ext in '' $ac_executable_extensions; do
1768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 break 2
1772 fi
1773 done
1774 done
1775
1776 fi
1777 fi
1778 CC=$ac_cv_prog_CC
1779 if test -n "$CC"; then
1780 echo "$as_me:$LINENO: result: $CC" >&5
1781 echo "${ECHO_T}$CC" >&6
1782 else
1783 echo "$as_me:$LINENO: result: no" >&5
1784 echo "${ECHO_T}no" >&6
1785 fi
1786
1787 fi
1788 if test -z "$ac_cv_prog_CC"; then
1789 ac_ct_CC=$CC
1790 # Extract the first word of "gcc", so it can be a program name with args.
1791 set dummy gcc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 if test -n "$ac_ct_CC"; then
1798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_ac_ct_CC="gcc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 break 2
1810 fi
1811 done
1812 done
1813
1814 fi
1815 fi
1816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1817 if test -n "$ac_ct_CC"; then
1818 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1819 echo "${ECHO_T}$ac_ct_CC" >&6
1820 else
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 CC=$ac_ct_CC
1826 else
1827 CC="$ac_cv_prog_CC"
1828 fi
1829
1830 if test -z "$CC"; then
1831 if test -n "$ac_tool_prefix"; then
1832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1833 set dummy ${ac_tool_prefix}cc; ac_word=$2
1834 echo "$as_me:$LINENO: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 else
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 else
1842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 for as_dir in $PATH
1844 do
1845 IFS=$as_save_IFS
1846 test -z "$as_dir" && as_dir=.
1847 for ac_exec_ext in '' $ac_executable_extensions; do
1848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849 ac_cv_prog_CC="${ac_tool_prefix}cc"
1850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1851 break 2
1852 fi
1853 done
1854 done
1855
1856 fi
1857 fi
1858 CC=$ac_cv_prog_CC
1859 if test -n "$CC"; then
1860 echo "$as_me:$LINENO: result: $CC" >&5
1861 echo "${ECHO_T}$CC" >&6
1862 else
1863 echo "$as_me:$LINENO: result: no" >&5
1864 echo "${ECHO_T}no" >&6
1865 fi
1866
1867 fi
1868 if test -z "$ac_cv_prog_CC"; then
1869 ac_ct_CC=$CC
1870 # Extract the first word of "cc", so it can be a program name with args.
1871 set dummy cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883 IFS=$as_save_IFS
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC="cc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889 break 2
1890 fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1900 else
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905 CC=$ac_ct_CC
1906 else
1907 CC="$ac_cv_prog_CC"
1908 fi
1909
1910 fi
1911 if test -z "$CC"; then
1912 # Extract the first word of "cc", so it can be a program name with args.
1913 set dummy cc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 ac_prog_rejected=no
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1931 ac_prog_rejected=yes
1932 continue
1933 fi
1934 ac_cv_prog_CC="cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 break 2
1937 fi
1938 done
1939 done
1940
1941 if test $ac_prog_rejected = yes; then
1942 # We found a bogon in the path, so make sure we never use it.
1943 set dummy $ac_cv_prog_CC
1944 shift
1945 if test $# != 0; then
1946 # We chose a different compiler from the bogus one.
1947 # However, it has the same basename, so the bogon will be chosen
1948 # first if we set CC to just the basename; use the full file name.
1949 shift
1950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1951 fi
1952 fi
1953 fi
1954 fi
1955 CC=$ac_cv_prog_CC
1956 if test -n "$CC"; then
1957 echo "$as_me:$LINENO: result: $CC" >&5
1958 echo "${ECHO_T}$CC" >&6
1959 else
1960 echo "$as_me:$LINENO: result: no" >&5
1961 echo "${ECHO_T}no" >&6
1962 fi
1963
1964 fi
1965 if test -z "$CC"; then
1966 if test -n "$ac_tool_prefix"; then
1967 for ac_prog in cl
1968 do
1969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1981 do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 break 2
1989 fi
1990 done
1991 done
1992
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 test -n "$CC" && break
2005 done
2006 fi
2007 if test -z "$CC"; then
2008 ac_ct_CC=$CC
2009 for ac_prog in cl
2010 do
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2028 ac_cv_prog_ac_ct_CC="$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032 done
2033 done
2034
2035 fi
2036 fi
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6
2041 else
2042 echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6
2044 fi
2045
2046 test -n "$ac_ct_CC" && break
2047 done
2048
2049 CC=$ac_ct_CC
2050 fi
2051
2052 fi
2053
2054
2055 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: no acceptable C compiler found in \$PATH
2058 See \`config.log' for more details." >&2;}
2059 { (exit 1); exit 1; }; }
2060
2061 # Provide some information about the compiler.
2062 echo "$as_me:$LINENO:" \
2063 "checking for C compiler version" >&5
2064 ac_compiler=`set X $ac_compile; echo $2`
2065 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2066 (eval $ac_compiler --version </dev/null >&5) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }
2070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2071 (eval $ac_compiler -v </dev/null >&5) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }
2075 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2076 (eval $ac_compiler -V </dev/null >&5) 2>&5
2077 ac_status=$?
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); }
2080
2081 cat >conftest.$ac_ext <<_ACEOF
2082 /* confdefs.h. */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2087
2088 int
2089 main ()
2090 {
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 ac_clean_files_save=$ac_clean_files
2097 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2098 # Try to create an executable without -o first, disregard a.out.
2099 # It will help us diagnose broken compilers, and finding out an intuition
2100 # of exeext.
2101 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2102 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2103 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105 (eval $ac_link_default) 2>&5
2106 ac_status=$?
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; then
2109 # Find the output, starting from the most likely. This scheme is
2110 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111 # resort.
2112
2113 # Be careful to initialize this variable, since it used to be cached.
2114 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2115 ac_cv_exeext=
2116 # b.out is created by i960 compilers.
2117 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2118 do
2119 test -f "$ac_file" || continue
2120 case $ac_file in
2121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2122 ;;
2123 conftest.$ac_ext )
2124 # This is the source file.
2125 ;;
2126 [ab].out )
2127 # We found the default executable, but exeext='' is most
2128 # certainly right.
2129 break;;
2130 *.* )
2131 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 # FIXME: I believe we export ac_cv_exeext for Libtool,
2133 # but it would be cool to find out if it's true. Does anybody
2134 # maintain Libtool? --akim.
2135 export ac_cv_exeext
2136 break;;
2137 * )
2138 break;;
2139 esac
2140 done
2141 else
2142 echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2144
2145 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: C compiler cannot create executables
2148 See \`config.log' for more details." >&2;}
2149 { (exit 77); exit 77; }; }
2150 fi
2151
2152 ac_exeext=$ac_cv_exeext
2153 echo "$as_me:$LINENO: result: $ac_file" >&5
2154 echo "${ECHO_T}$ac_file" >&6
2155
2156 # Check the compiler produces executables we can run. If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2161 # If not cross compiling, check that we can run a simple program.
2162 if test "$cross_compiling" != yes; then
2163 if { ac_try='./$ac_file'
2164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165 (eval $ac_try) 2>&5
2166 ac_status=$?
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); }; }; then
2169 cross_compiling=no
2170 else
2171 if test "$cross_compiling" = maybe; then
2172 cross_compiling=yes
2173 else
2174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2175 If you meant to cross compile, use \`--host'.
2176 See \`config.log' for more details." >&5
2177 echo "$as_me: error: cannot run C compiled programs.
2178 If you meant to cross compile, use \`--host'.
2179 See \`config.log' for more details." >&2;}
2180 { (exit 1); exit 1; }; }
2181 fi
2182 fi
2183 fi
2184 echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6
2186
2187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2188 ac_clean_files=$ac_clean_files_save
2189 # Check the compiler produces executables we can run. If not, either
2190 # the compiler is broken, or we cross compile.
2191 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194 echo "${ECHO_T}$cross_compiling" >&6
2195
2196 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199 (eval $ac_link) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; then
2203 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2204 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2205 # work properly (i.e., refer to `conftest.exe'), while it won't with
2206 # `rm'.
2207 for ac_file in conftest.exe conftest conftest.*; do
2208 test -f "$ac_file" || continue
2209 case $ac_file in
2210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2211 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 export ac_cv_exeext
2213 break;;
2214 * ) break;;
2215 esac
2216 done
2217 else
2218 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2219 See \`config.log' for more details." >&5
2220 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2221 See \`config.log' for more details." >&2;}
2222 { (exit 1); exit 1; }; }
2223 fi
2224
2225 rm -f conftest$ac_cv_exeext
2226 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2227 echo "${ECHO_T}$ac_cv_exeext" >&6
2228
2229 rm -f conftest.$ac_ext
2230 EXEEXT=$ac_cv_exeext
2231 ac_exeext=$EXEEXT
2232 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2233 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2234 if test "${ac_cv_objext+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 cat >conftest.$ac_ext <<_ACEOF
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243
2244 int
2245 main ()
2246 {
2247
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.o conftest.obj
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; then
2258 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2259 case $ac_file in
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2261 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2262 break;;
2263 esac
2264 done
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2270 See \`config.log' for more details." >&5
2271 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2272 See \`config.log' for more details." >&2;}
2273 { (exit 1); exit 1; }; }
2274 fi
2275
2276 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2277 fi
2278 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2279 echo "${ECHO_T}$ac_cv_objext" >&6
2280 OBJEXT=$ac_cv_objext
2281 ac_objext=$OBJEXT
2282 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2283 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2284 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 cat >conftest.$ac_ext <<_ACEOF
2288 /* confdefs.h. */
2289 _ACEOF
2290 cat confdefs.h >>conftest.$ac_ext
2291 cat >>conftest.$ac_ext <<_ACEOF
2292 /* end confdefs.h. */
2293
2294 int
2295 main ()
2296 {
2297 #ifndef __GNUC__
2298 choke me
2299 #endif
2300
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag"
2315 || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 (eval $ac_try) 2>&5
2318 ac_status=$?
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 ac_compiler_gnu=yes
2328 else
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 ac_compiler_gnu=no
2333 fi
2334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2336
2337 fi
2338 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2339 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2340 GCC=`test $ac_compiler_gnu = yes && echo yes`
2341 ac_test_CFLAGS=${CFLAGS+set}
2342 ac_save_CFLAGS=$CFLAGS
2343 CFLAGS="-g"
2344 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2345 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2346 if test "${ac_cv_prog_cc_g+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 cat >conftest.$ac_ext <<_ACEOF
2350 /* confdefs.h. */
2351 _ACEOF
2352 cat confdefs.h >>conftest.$ac_ext
2353 cat >>conftest.$ac_ext <<_ACEOF
2354 /* end confdefs.h. */
2355
2356 int
2357 main ()
2358 {
2359
2360 ;
2361 return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 ac_cv_prog_cc_g=yes
2387 else
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 ac_cv_prog_cc_g=no
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2397 if test "$ac_test_CFLAGS" = set; then
2398 CFLAGS=$ac_save_CFLAGS
2399 elif test $ac_cv_prog_cc_g = yes; then
2400 if test "$GCC" = yes; then
2401 CFLAGS="-g -O2"
2402 else
2403 CFLAGS="-g"
2404 fi
2405 else
2406 if test "$GCC" = yes; then
2407 CFLAGS="-O2"
2408 else
2409 CFLAGS=
2410 fi
2411 fi
2412 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2413 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2414 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 ac_cv_prog_cc_stdc=no
2418 ac_save_CC=$CC
2419 cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2425 #include <stdarg.h>
2426 #include <stdio.h>
2427 #include <sys/types.h>
2428 #include <sys/stat.h>
2429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2430 struct buf { int x; };
2431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2432 static char *e (p, i)
2433 char **p;
2434 int i;
2435 {
2436 return p[i];
2437 }
2438 static char *f (char * (*g) (char **, int), char **p, ...)
2439 {
2440 char *s;
2441 va_list v;
2442 va_start (v,p);
2443 s = g (p, va_arg (v,int));
2444 va_end (v);
2445 return s;
2446 }
2447
2448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2449 function prototypes and stuff, but not '\xHH' hex character constants.
2450 These don't provoke an error unfortunately, instead are silently treated
2451 as 'x'. The following induces an error, until -std1 is added to get
2452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2453 array size at least. It's necessary to write '\x00'==0 to get something
2454 that's true only with -std1. */
2455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2456
2457 int test (int i, double x);
2458 struct s1 {int (*f) (int a);};
2459 struct s2 {int (*f) (double a);};
2460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2461 int argc;
2462 char **argv;
2463 int
2464 main ()
2465 {
2466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2467 ;
2468 return 0;
2469 }
2470 _ACEOF
2471 # Don't try gcc -ansi; that turns off useful extensions and
2472 # breaks some systems' header files.
2473 # AIX -qlanglvl=ansi
2474 # Ultrix and OSF/1 -std1
2475 # HP-UX 10.20 and later -Ae
2476 # HP-UX older versions -Aa -D_HPUX_SOURCE
2477 # SVR4 -Xc -D__EXTENSIONS__
2478 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2479 do
2480 CC="$ac_save_CC $ac_arg"
2481 rm -f conftest.$ac_objext
2482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483 (eval $ac_compile) 2>conftest.er1
2484 ac_status=$?
2485 grep -v '^ *+' conftest.er1 >conftest.err
2486 rm -f conftest.er1
2487 cat conftest.err >&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); } &&
2490 { ac_try='test -z "$ac_c_werror_flag"
2491 || test ! -s conftest.err'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493 (eval $ac_try) 2>&5
2494 ac_status=$?
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 ac_cv_prog_cc_stdc=$ac_arg
2504 break
2505 else
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2508
2509 fi
2510 rm -f conftest.err conftest.$ac_objext
2511 done
2512 rm -f conftest.$ac_ext conftest.$ac_objext
2513 CC=$ac_save_CC
2514
2515 fi
2516
2517 case "x$ac_cv_prog_cc_stdc" in
2518 x|xno)
2519 echo "$as_me:$LINENO: result: none needed" >&5
2520 echo "${ECHO_T}none needed" >&6 ;;
2521 *)
2522 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2523 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2524 CC="$CC $ac_cv_prog_cc_stdc" ;;
2525 esac
2526
2527 # Some people use a C++ compiler to compile C. Since we use `exit',
2528 # in C++ we need to declare it. In case someone uses the same compiler
2529 # for both compiling C and C++ we need to have the C++ compiler decide
2530 # the declaration of exit, since it's the most demanding environment.
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #ifndef __cplusplus
2533 choke me
2534 #endif
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538 (eval $ac_compile) 2>conftest.er1
2539 ac_status=$?
2540 grep -v '^ *+' conftest.er1 >conftest.err
2541 rm -f conftest.er1
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -z "$ac_c_werror_flag"
2546 || test ! -s conftest.err'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548 (eval $ac_try) 2>&5
2549 ac_status=$?
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 (eval $ac_try) 2>&5
2555 ac_status=$?
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; }; then
2558 for ac_declaration in \
2559 '' \
2560 'extern "C" void std::exit (int) throw (); using std::exit;' \
2561 'extern "C" void std::exit (int); using std::exit;' \
2562 'extern "C" void exit (int) throw ();' \
2563 'extern "C" void exit (int);' \
2564 'void exit (int);'
2565 do
2566 cat >conftest.$ac_ext <<_ACEOF
2567 /* confdefs.h. */
2568 _ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2572 $ac_declaration
2573 #include <stdlib.h>
2574 int
2575 main ()
2576 {
2577 exit (42);
2578 ;
2579 return 0;
2580 }
2581 _ACEOF
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2585 ac_status=$?
2586 grep -v '^ *+' conftest.er1 >conftest.err
2587 rm -f conftest.er1
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600 (eval $ac_try) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 :
2605 else
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2608
2609 continue
2610 fi
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } &&
2636 { ac_try='test -z "$ac_c_werror_flag"
2637 || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 break
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 fi
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 done
2657 rm -f conftest*
2658 if test -n "$ac_declaration"; then
2659 echo '#ifdef __cplusplus' >>confdefs.h
2660 echo $ac_declaration >>confdefs.h
2661 echo '#endif' >>confdefs.h
2662 fi
2663
2664 else
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 fi
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675 DEPDIR="${am__leading_dot}deps"
2676
2677 ac_config_commands="$ac_config_commands depfiles"
2678
2679
2680 am_make=${MAKE-make}
2681 cat > confinc << 'END'
2682 am__doit:
2683 @echo done
2684 .PHONY: am__doit
2685 END
2686 # If we don't find an include directive, just comment out the code.
2687 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2688 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2689 am__include="#"
2690 am__quote=
2691 _am_result=none
2692 # First try GNU make style include.
2693 echo "include confinc" > confmf
2694 # We grep out `Entering directory' and `Leaving directory'
2695 # messages which can occur if `w' ends up in MAKEFLAGS.
2696 # In particular we don't look at `^make:' because GNU make might
2697 # be invoked under some other name (usually "gmake"), in which
2698 # case it prints its new name instead of `make'.
2699 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2700 am__include=include
2701 am__quote=
2702 _am_result=GNU
2703 fi
2704 # Now try BSD make style include.
2705 if test "$am__include" = "#"; then
2706 echo '.include "confinc"' > confmf
2707 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2708 am__include=.include
2709 am__quote="\""
2710 _am_result=BSD
2711 fi
2712 fi
2713
2714
2715 echo "$as_me:$LINENO: result: $_am_result" >&5
2716 echo "${ECHO_T}$_am_result" >&6
2717 rm -f confinc confmf
2718
2719 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2720 if test "${enable_dependency_tracking+set}" = set; then
2721 enableval="$enable_dependency_tracking"
2722
2723 fi;
2724 if test "x$enable_dependency_tracking" != xno; then
2725 am_depcomp="$ac_aux_dir/depcomp"
2726 AMDEPBACKSLASH='\'
2727 fi
2728
2729
2730 if test "x$enable_dependency_tracking" != xno; then
2731 AMDEP_TRUE=
2732 AMDEP_FALSE='#'
2733 else
2734 AMDEP_TRUE='#'
2735 AMDEP_FALSE=
2736 fi
2737
2738
2739
2740
2741 depcc="$CC" am_compiler_list=
2742
2743 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2744 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2745 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2749 # We make a subdir and do the tests there. Otherwise we can end up
2750 # making bogus files that we don't know about and never remove. For
2751 # instance it was reported that on HP-UX the gcc test will end up
2752 # making a dummy file named `D' -- because `-MD' means `put the output
2753 # in D'.
2754 mkdir conftest.dir
2755 # Copy depcomp to subdir because otherwise we won't find it if we're
2756 # using a relative directory.
2757 cp "$am_depcomp" conftest.dir
2758 cd conftest.dir
2759 # We will build objects and dependencies in a subdirectory because
2760 # it helps to detect inapplicable dependency modes. For instance
2761 # both Tru64's cc and ICC support -MD to output dependencies as a
2762 # side effect of compilation, but ICC will put the dependencies in
2763 # the current directory while Tru64 will put them in the object
2764 # directory.
2765 mkdir sub
2766
2767 am_cv_CC_dependencies_compiler_type=none
2768 if test "$am_compiler_list" = ""; then
2769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2770 fi
2771 for depmode in $am_compiler_list; do
2772 # Setup a source with many dependencies, because some compilers
2773 # like to wrap large dependency lists on column 80 (with \), and
2774 # we should not choose a depcomp mode which is confused by this.
2775 #
2776 # We need to recreate these files for each test, as the compiler may
2777 # overwrite some of them when testing with obscure command lines.
2778 # This happens at least with the AIX C compiler.
2779 : > sub/conftest.c
2780 for i in 1 2 3 4 5 6; do
2781 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2782 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2783 # Solaris 8's {/usr,}/bin/sh.
2784 touch sub/conftst$i.h
2785 done
2786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2787
2788 case $depmode in
2789 nosideeffect)
2790 # after this tag, mechanisms are not by side-effect, so they'll
2791 # only be used when explicitly requested
2792 if test "x$enable_dependency_tracking" = xyes; then
2793 continue
2794 else
2795 break
2796 fi
2797 ;;
2798 none) break ;;
2799 esac
2800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2801 # mode. It turns out that the SunPro C++ compiler does not properly
2802 # handle `-M -o', and we need to detect this.
2803 if depmode=$depmode \
2804 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2806 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2807 >/dev/null 2>conftest.err &&
2808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2809 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2810 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2811 # icc doesn't choke on unknown options, it will just issue warnings
2812 # or remarks (even with -Werror). So we grep stderr for any message
2813 # that says an option was ignored or not supported.
2814 # When given -MP, icc 7.0 and 7.1 complain thusly:
2815 # icc: Command line warning: ignoring option '-M'; no argument required
2816 # The diagnosis changed in icc 8.0:
2817 # icc: Command line remark: option '-MP' not supported
2818 if (grep 'ignoring option' conftest.err ||
2819 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2820 am_cv_CC_dependencies_compiler_type=$depmode
2821 break
2822 fi
2823 fi
2824 done
2825
2826 cd ..
2827 rm -rf conftest.dir
2828 else
2829 am_cv_CC_dependencies_compiler_type=none
2830 fi
2831
2832 fi
2833 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2834 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2835 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2836
2837
2838
2839 if
2840 test "x$enable_dependency_tracking" != xno \
2841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2842 am__fastdepCC_TRUE=
2843 am__fastdepCC_FALSE='#'
2844 else
2845 am__fastdepCC_TRUE='#'
2846 am__fastdepCC_FALSE=
2847 fi
2848
2849
2850 for ac_prog in perl perl5.004 perl5.003 perl5.002 perl5.001 perl5
2851 do
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2856 if test "${ac_cv_path_PERL+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 case $PERL in
2860 [\\/]* | ?:[\\/]*)
2861 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
2862 ;;
2863 *)
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2866 do
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2874 fi
2875 done
2876 done
2877
2878 ;;
2879 esac
2880 fi
2881 PERL=$ac_cv_path_PERL
2882
2883 if test -n "$PERL"; then
2884 echo "$as_me:$LINENO: result: $PERL" >&5
2885 echo "${ECHO_T}$PERL" >&6
2886 else
2887 echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2889 fi
2890
2891 test -n "$PERL" && break
2892 done
2893
2894
2895 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2896 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2897 if test "${ac_cv_search_strerror+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900 ac_func_search_save_LIBS=$LIBS
2901 ac_cv_search_strerror=no
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h. */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2908
2909 /* Override any gcc2 internal prototype to avoid an error. */
2910 #ifdef __cplusplus
2911 extern "C"
2912 #endif
2913 /* We use char because int might match the return type of a gcc2
2914 builtin and then its argument prototype would still apply. */
2915 char strerror ();
2916 int
2917 main ()
2918 {
2919 strerror ();
2920 ;
2921 return 0;
2922 }
2923 _ACEOF
2924 rm -f conftest.$ac_objext conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>conftest.er1
2927 ac_status=$?
2928 grep -v '^ *+' conftest.er1 >conftest.err
2929 rm -f conftest.er1
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag"
2934 || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest$ac_exeext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 (eval $ac_try) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_cv_search_strerror="none required"
2947 else
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 fi
2952 rm -f conftest.err conftest.$ac_objext \
2953 conftest$ac_exeext conftest.$ac_ext
2954 if test "$ac_cv_search_strerror" = no; then
2955 for ac_lib in cposix; do
2956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2957 cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963
2964 /* Override any gcc2 internal prototype to avoid an error. */
2965 #ifdef __cplusplus
2966 extern "C"
2967 #endif
2968 /* We use char because int might match the return type of a gcc2
2969 builtin and then its argument prototype would still apply. */
2970 char strerror ();
2971 int
2972 main ()
2973 {
2974 strerror ();
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 rm -f conftest.$ac_objext conftest$ac_exeext
2980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2981 (eval $ac_link) 2>conftest.er1
2982 ac_status=$?
2983 grep -v '^ *+' conftest.er1 >conftest.err
2984 rm -f conftest.er1
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } &&
2988 { ac_try='test -z "$ac_c_werror_flag"
2989 || test ! -s conftest.err'
2990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 (eval $ac_try) 2>&5
2992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest$ac_exeext'
2996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 (eval $ac_try) 2>&5
2998 ac_status=$?
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3001 ac_cv_search_strerror="-l$ac_lib"
3002 break
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007 fi
3008 rm -f conftest.err conftest.$ac_objext \
3009 conftest$ac_exeext conftest.$ac_ext
3010 done
3011 fi
3012 LIBS=$ac_func_search_save_LIBS
3013 fi
3014 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3015 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3016 if test "$ac_cv_search_strerror" != no; then
3017 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3018
3019 fi
3020
3021
3022 # Checks for libraries.
3023
3024 echo "$as_me:$LINENO: checking for main in -lncurses" >&5
3025 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6
3026 if test "${ac_cv_lib_ncurses_main+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029 ac_check_lib_save_LIBS=$LIBS
3030 LIBS="-lncurses $LIBS"
3031 cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h. */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h. */
3037
3038
3039 int
3040 main ()
3041 {
3042 main ();
3043 ;
3044 return 0;
3045 }
3046 _ACEOF
3047 rm -f conftest.$ac_objext conftest$ac_exeext
3048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049 (eval $ac_link) 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_c_werror_flag"
3057 || test ! -s conftest.err'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 (eval $ac_try) 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest$ac_exeext'
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 (eval $ac_try) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3069 ac_cv_lib_ncurses_main=yes
3070 else
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 ac_cv_lib_ncurses_main=no
3075 fi
3076 rm -f conftest.err conftest.$ac_objext \
3077 conftest$ac_exeext conftest.$ac_ext
3078 LIBS=$ac_check_lib_save_LIBS
3079 fi
3080 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
3081 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6
3082 if test $ac_cv_lib_ncurses_main = yes; then
3083 cat >>confdefs.h <<_ACEOF
3084 #define HAVE_LIBNCURSES 1
3085 _ACEOF
3086
3087 LIBS="-lncurses $LIBS"
3088
3089 else
3090 { { echo "$as_me:$LINENO: error: ncurses not found" >&5
3091 echo "$as_me: error: ncurses not found" >&2;}
3092 { (exit 1); exit 1; }; }
3093 fi
3094 ac_cv_lib_ncurses=ac_cv_lib_ncurses_main
3095
3096
3097 echo "$as_me:$LINENO: checking for main in -lmenu" >&5
3098 echo $ECHO_N "checking for main in -lmenu... $ECHO_C" >&6
3099 if test "${ac_cv_lib_menu_main+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 ac_check_lib_save_LIBS=$LIBS
3103 LIBS="-lmenu $LIBS"
3104 cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110
3111
3112 int
3113 main ()
3114 {
3115 main ();
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext conftest$ac_exeext
3121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3122 (eval $ac_link) 2>conftest.er1
3123 ac_status=$?
3124 grep -v '^ *+' conftest.er1 >conftest.err
3125 rm -f conftest.er1
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_c_werror_flag"
3130 || test ! -s conftest.err'
3131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132 (eval $ac_try) 2>&5
3133 ac_status=$?
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest$ac_exeext'
3137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138 (eval $ac_try) 2>&5
3139 ac_status=$?
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; }; then
3142 ac_cv_lib_menu_main=yes
3143 else
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 ac_cv_lib_menu_main=no
3148 fi
3149 rm -f conftest.err conftest.$ac_objext \
3150 conftest$ac_exeext conftest.$ac_ext
3151 LIBS=$ac_check_lib_save_LIBS
3152 fi
3153 echo "$as_me:$LINENO: result: $ac_cv_lib_menu_main" >&5
3154 echo "${ECHO_T}$ac_cv_lib_menu_main" >&6
3155 if test $ac_cv_lib_menu_main = yes; then
3156 cat >>confdefs.h <<_ACEOF
3157 #define HAVE_LIBMENU 1
3158 _ACEOF
3159
3160 LIBS="-lmenu $LIBS"
3161
3162 else
3163 { { echo "$as_me:$LINENO: error: ncurses menu library not found" >&5
3164 echo "$as_me: error: ncurses menu library not found" >&2;}
3165 { (exit 1); exit 1; }; }
3166 fi
3167 ac_cv_lib_menu=ac_cv_lib_menu_main
3168
3169
3170 echo "$as_me:$LINENO: checking for main in -lform" >&5
3171 echo $ECHO_N "checking for main in -lform... $ECHO_C" >&6
3172 if test "${ac_cv_lib_form_main+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175 ac_check_lib_save_LIBS=$LIBS
3176 LIBS="-lform $LIBS"
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183
3184
3185 int
3186 main ()
3187 {
3188 main ();
3189 ;
3190 return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext conftest$ac_exeext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195 (eval $ac_link) 2>conftest.er1
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } &&
3202 { ac_try='test -z "$ac_c_werror_flag"
3203 || test ! -s conftest.err'
3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 (eval $ac_try) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest$ac_exeext'
3210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 (eval $ac_try) 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; }; then
3215 ac_cv_lib_form_main=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 ac_cv_lib_form_main=no
3221 fi
3222 rm -f conftest.err conftest.$ac_objext \
3223 conftest$ac_exeext conftest.$ac_ext
3224 LIBS=$ac_check_lib_save_LIBS
3225 fi
3226 echo "$as_me:$LINENO: result: $ac_cv_lib_form_main" >&5
3227 echo "${ECHO_T}$ac_cv_lib_form_main" >&6
3228 if test $ac_cv_lib_form_main = yes; then
3229 cat >>confdefs.h <<_ACEOF
3230 #define HAVE_LIBFORM 1
3231 _ACEOF
3232
3233 LIBS="-lform $LIBS"
3234
3235 else
3236 { { echo "$as_me:$LINENO: error: ncurses form library not found" >&5
3237 echo "$as_me: error: ncurses form library not found" >&2;}
3238 { (exit 1); exit 1; }; }
3239 fi
3240 ac_cv_lib_form=ac_cv_lib_form_main
3241
3242
3243 echo "$as_me:$LINENO: checking for main in -lbluetooth" >&5
3244 echo $ECHO_N "checking for main in -lbluetooth... $ECHO_C" >&6
3245 if test "${ac_cv_lib_bluetooth_main+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 ac_check_lib_save_LIBS=$LIBS
3249 LIBS="-lbluetooth $LIBS"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256
3257
3258 int
3259 main ()
3260 {
3261 main ();
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.$ac_objext conftest$ac_exeext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3268 (eval $ac_link) 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } &&
3275 { ac_try='test -z "$ac_c_werror_flag"
3276 || test ! -s conftest.err'
3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 (eval $ac_try) 2>&5
3279 ac_status=$?
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); }; } &&
3282 { ac_try='test -s conftest$ac_exeext'
3283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 (eval $ac_try) 2>&5
3285 ac_status=$?
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3288 ac_cv_lib_bluetooth_main=yes
3289 else
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3292
3293 ac_cv_lib_bluetooth_main=no
3294 fi
3295 rm -f conftest.err conftest.$ac_objext \
3296 conftest$ac_exeext conftest.$ac_ext
3297 LIBS=$ac_check_lib_save_LIBS
3298 fi
3299 echo "$as_me:$LINENO: result: $ac_cv_lib_bluetooth_main" >&5
3300 echo "${ECHO_T}$ac_cv_lib_bluetooth_main" >&6
3301 if test $ac_cv_lib_bluetooth_main = yes; then
3302 cat >>confdefs.h <<_ACEOF
3303 #define HAVE_LIBBLUETOOTH 1
3304 _ACEOF
3305
3306 LIBS="-lbluetooth $LIBS"
3307
3308 else
3309 { { echo "$as_me:$LINENO: error: Bluetooth not found" >&5
3310 echo "$as_me: error: Bluetooth not found" >&2;}
3311 { (exit 1); exit 1; }; }
3312 fi
3313 ac_cv_lib_bluetooth=ac_cv_lib_bluetooth_main
3314
3315
3316 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
3317 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
3318 if test "${ac_cv_lib_pthread_main+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 ac_check_lib_save_LIBS=$LIBS
3322 LIBS="-lpthread $LIBS"
3323 cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h. */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3329
3330
3331 int
3332 main ()
3333 {
3334 main ();
3335 ;
3336 return 0;
3337 }
3338 _ACEOF
3339 rm -f conftest.$ac_objext conftest$ac_exeext
3340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3341 (eval $ac_link) 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -z "$ac_c_werror_flag"
3349 || test ! -s conftest.err'
3350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 (eval $ac_try) 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; } &&
3355 { ac_try='test -s conftest$ac_exeext'
3356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357 (eval $ac_try) 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
3361 ac_cv_lib_pthread_main=yes
3362 else
3363 echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366 ac_cv_lib_pthread_main=no
3367 fi
3368 rm -f conftest.err conftest.$ac_objext \
3369 conftest$ac_exeext conftest.$ac_ext
3370 LIBS=$ac_check_lib_save_LIBS
3371 fi
3372 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
3373 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
3374 if test $ac_cv_lib_pthread_main = yes; then
3375 cat >>confdefs.h <<_ACEOF
3376 #define HAVE_LIBPTHREAD 1
3377 _ACEOF
3378
3379 LIBS="-lpthread $LIBS"
3380
3381 else
3382 { { echo "$as_me:$LINENO: error: pthreads not found" >&5
3383 echo "$as_me: error: pthreads not found" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386 ac_cv_lib_pthread=ac_cv_lib_pthread_main
3387
3388
3389 # Checks for header files.
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3399 CPP=
3400 fi
3401 if test -z "$CPP"; then
3402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407 do
3408 ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3410 do
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error" is here to catch this case.
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #ifdef __STDC__
3424 # include <limits.h>
3425 #else
3426 # include <assert.h>
3427 #endif
3428 Syntax error
3429 _ACEOF
3430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3441 else
3442 ac_cpp_err=
3443 fi
3444 else
3445 ac_cpp_err=yes
3446 fi
3447 if test -z "$ac_cpp_err"; then
3448 :
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 # Broken: fails on valid input.
3454 continue
3455 fi
3456 rm -f conftest.err conftest.$ac_ext
3457
3458 # OK, works on sane cases. Now check whether non-existent headers
3459 # can be detected and how.
3460 cat >conftest.$ac_ext <<_ACEOF
3461 /* confdefs.h. */
3462 _ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3466 #include <ac_nonexistent.h>
3467 _ACEOF
3468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } >/dev/null; then
3476 if test -s conftest.err; then
3477 ac_cpp_err=$ac_c_preproc_warn_flag
3478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3479 else
3480 ac_cpp_err=
3481 fi
3482 else
3483 ac_cpp_err=yes
3484 fi
3485 if test -z "$ac_cpp_err"; then
3486 # Broken: success on invalid input.
3487 continue
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 # Passes both tests.
3493 ac_preproc_ok=:
3494 break
3495 fi
3496 rm -f conftest.err conftest.$ac_ext
3497
3498 done
3499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3500 rm -f conftest.err conftest.$ac_ext
3501 if $ac_preproc_ok; then
3502 break
3503 fi
3504
3505 done
3506 ac_cv_prog_CPP=$CPP
3507
3508 fi
3509 CPP=$ac_cv_prog_CPP
3510 else
3511 ac_cv_prog_CPP=$CPP
3512 fi
3513 echo "$as_me:$LINENO: result: $CPP" >&5
3514 echo "${ECHO_T}$CPP" >&6
3515 ac_preproc_ok=false
3516 for ac_c_preproc_warn_flag in '' yes
3517 do
3518 # Use a header file that comes with gcc, so configuring glibc
3519 # with a fresh cross-compiler works.
3520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3521 # <limits.h> exists even on freestanding compilers.
3522 # On the NeXT, cc -E runs the code through the compiler's parser,
3523 # not just through cpp. "Syntax error" is here to catch this case.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #ifdef __STDC__
3531 # include <limits.h>
3532 #else
3533 # include <assert.h>
3534 #endif
3535 Syntax error
3536 _ACEOF
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3547 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3548 else
3549 ac_cpp_err=
3550 fi
3551 else
3552 ac_cpp_err=yes
3553 fi
3554 if test -z "$ac_cpp_err"; then
3555 :
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560 # Broken: fails on valid input.
3561 continue
3562 fi
3563 rm -f conftest.err conftest.$ac_ext
3564
3565 # OK, works on sane cases. Now check whether non-existent headers
3566 # can be detected and how.
3567 cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h. */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h. */
3573 #include <ac_nonexistent.h>
3574 _ACEOF
3575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } >/dev/null; then
3583 if test -s conftest.err; then
3584 ac_cpp_err=$ac_c_preproc_warn_flag
3585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 else
3587 ac_cpp_err=
3588 fi
3589 else
3590 ac_cpp_err=yes
3591 fi
3592 if test -z "$ac_cpp_err"; then
3593 # Broken: success on invalid input.
3594 continue
3595 else
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 # Passes both tests.
3600 ac_preproc_ok=:
3601 break
3602 fi
3603 rm -f conftest.err conftest.$ac_ext
3604
3605 done
3606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3607 rm -f conftest.err conftest.$ac_ext
3608 if $ac_preproc_ok; then
3609 :
3610 else
3611 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3612 See \`config.log' for more details." >&5
3613 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3614 See \`config.log' for more details." >&2;}
3615 { (exit 1); exit 1; }; }
3616 fi
3617
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623
3624
3625 echo "$as_me:$LINENO: checking for egrep" >&5
3626 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3627 if test "${ac_cv_prog_egrep+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3631 then ac_cv_prog_egrep='grep -E'
3632 else ac_cv_prog_egrep='egrep'
3633 fi
3634 fi
3635 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3636 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3637 EGREP=$ac_cv_prog_egrep
3638
3639
3640 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3641 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3642 if test "${ac_cv_header_stdc+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3651 #include <stdlib.h>
3652 #include <stdarg.h>
3653 #include <string.h>
3654 #include <float.h>
3655
3656 int
3657 main ()
3658 {
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666 (eval $ac_compile) 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } &&
3673 { ac_try='test -z "$ac_c_werror_flag"
3674 || test ! -s conftest.err'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 (eval $ac_try) 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 ac_cv_header_stdc=yes
3687 else
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 ac_cv_header_stdc=no
3692 fi
3693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3694
3695 if test $ac_cv_header_stdc = yes; then
3696 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3697 cat >conftest.$ac_ext <<_ACEOF
3698 /* confdefs.h. */
3699 _ACEOF
3700 cat confdefs.h >>conftest.$ac_ext
3701 cat >>conftest.$ac_ext <<_ACEOF
3702 /* end confdefs.h. */
3703 #include <string.h>
3704
3705 _ACEOF
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev/null 2>&1; then
3708 :
3709 else
3710 ac_cv_header_stdc=no
3711 fi
3712 rm -f conftest*
3713
3714 fi
3715
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <stdlib.h>
3725
3726 _ACEOF
3727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3728 $EGREP "free" >/dev/null 2>&1; then
3729 :
3730 else
3731 ac_cv_header_stdc=no
3732 fi
3733 rm -f conftest*
3734
3735 fi
3736
3737 if test $ac_cv_header_stdc = yes; then
3738 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3739 if test "$cross_compiling" = yes; then
3740 :
3741 else
3742 cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h. */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3748 #include <ctype.h>
3749 #if ((' ' & 0x0FF) == 0x020)
3750 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3751 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3752 #else
3753 # define ISLOWER(c) \
3754 (('a' <= (c) && (c) <= 'i') \
3755 || ('j' <= (c) && (c) <= 'r') \
3756 || ('s' <= (c) && (c) <= 'z'))
3757 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3758 #endif
3759
3760 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3761 int
3762 main ()
3763 {
3764 int i;
3765 for (i = 0; i < 256; i++)
3766 if (XOR (islower (i), ISLOWER (i))
3767 || toupper (i) != TOUPPER (i))
3768 exit(2);
3769 exit (0);
3770 }
3771 _ACEOF
3772 rm -f conftest$ac_exeext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774 (eval $ac_link) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 :
3784 else
3785 echo "$as_me: program exited with status $ac_status" >&5
3786 echo "$as_me: failed program was:" >&5
3787 sed 's/^/| /' conftest.$ac_ext >&5
3788
3789 ( exit $ac_status )
3790 ac_cv_header_stdc=no
3791 fi
3792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3793 fi
3794 fi
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3797 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3798 if test $ac_cv_header_stdc = yes; then
3799
3800 cat >>confdefs.h <<\_ACEOF
3801 #define STDC_HEADERS 1
3802 _ACEOF
3803
3804 fi
3805
3806 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3817 inttypes.h stdint.h unistd.h
3818 do
3819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3820 echo "$as_me:$LINENO: checking for $ac_header" >&5
3821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 cat >conftest.$ac_ext <<_ACEOF
3826 /* confdefs.h. */
3827 _ACEOF
3828 cat confdefs.h >>conftest.$ac_ext
3829 cat >>conftest.$ac_ext <<_ACEOF
3830 /* end confdefs.h. */
3831 $ac_includes_default
3832
3833 #include <$ac_header>
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 eval "$as_ac_Header=yes"
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 eval "$as_ac_Header=no"
3863 fi
3864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865 fi
3866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3869 cat >>confdefs.h <<_ACEOF
3870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3871 _ACEOF
3872
3873 fi
3874
3875 done
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887 for ac_header in netinet/in.h stdlib.h string.h sys/ioctl.h \
3888 sys/socket.h unistd.h fcntl.h stdarg.h syslog.h
3889 do
3890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3892 echo "$as_me:$LINENO: checking for $ac_header" >&5
3893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3896 fi
3897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3899 else
3900 # Is the header compilable?
3901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 $ac_includes_default
3910 #include <$ac_header>
3911 _ACEOF
3912 rm -f conftest.$ac_objext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3914 (eval $ac_compile) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } &&
3921 { ac_try='test -z "$ac_c_werror_flag"
3922 || test ! -s conftest.err'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; } &&
3928 { ac_try='test -s conftest.$ac_objext'
3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930 (eval $ac_try) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); }; }; then
3934 ac_header_compiler=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 ac_header_compiler=no
3940 fi
3941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3943 echo "${ECHO_T}$ac_header_compiler" >&6
3944
3945 # Is the header present?
3946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3948 cat >conftest.$ac_ext <<_ACEOF
3949 /* confdefs.h. */
3950 _ACEOF
3951 cat confdefs.h >>conftest.$ac_ext
3952 cat >>conftest.$ac_ext <<_ACEOF
3953 /* end confdefs.h. */
3954 #include <$ac_header>
3955 _ACEOF
3956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
3966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3967 else
3968 ac_cpp_err=
3969 fi
3970 else
3971 ac_cpp_err=yes
3972 fi
3973 if test -z "$ac_cpp_err"; then
3974 ac_header_preproc=yes
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 ac_header_preproc=no
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3983 echo "${ECHO_T}$ac_header_preproc" >&6
3984
3985 # So? What about this header?
3986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3987 yes:no: )
3988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3992 ac_header_preproc=yes
3993 ;;
3994 no:yes:* )
3995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4007 (
4008 cat <<\_ASBOX
4009 ## ------------------------------------------ ##
4010 ## Report this to the AC_PACKAGE_NAME lists. ##
4011 ## ------------------------------------------ ##
4012 _ASBOX
4013 ) |
4014 sed "s/^/$as_me: WARNING: /" >&2
4015 ;;
4016 esac
4017 echo "$as_me:$LINENO: checking for $ac_header" >&5
4018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 eval "$as_ac_Header=\$ac_header_preproc"
4023 fi
4024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4026
4027 fi
4028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4029 cat >>confdefs.h <<_ACEOF
4030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4031 _ACEOF
4032
4033 fi
4034
4035 done
4036
4037
4038 for ac_header in bluetooth/bluetooth.h
4039 do
4040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4042 echo "$as_me:$LINENO: checking for $ac_header" >&5
4043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 fi
4047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4049 else
4050 # Is the header compilable?
4051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4053 cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 $ac_includes_default
4060 #include <$ac_header>
4061 _ACEOF
4062 rm -f conftest.$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_c_werror_flag"
4072 || test ! -s conftest.err'
4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074 (eval $ac_try) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; } &&
4078 { ac_try='test -s conftest.$ac_objext'
4079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 (eval $ac_try) 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); }; }; then
4084 ac_header_compiler=yes
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 ac_header_compiler=no
4090 fi
4091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4093 echo "${ECHO_T}$ac_header_compiler" >&6
4094
4095 # Is the header present?
4096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4098 cat >conftest.$ac_ext <<_ACEOF
4099 /* confdefs.h. */
4100 _ACEOF
4101 cat confdefs.h >>conftest.$ac_ext
4102 cat >>conftest.$ac_ext <<_ACEOF
4103 /* end confdefs.h. */
4104 #include <$ac_header>
4105 _ACEOF
4106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4108 ac_status=$?
4109 grep -v '^ *+' conftest.er1 >conftest.err
4110 rm -f conftest.er1
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } >/dev/null; then
4114 if test -s conftest.err; then
4115 ac_cpp_err=$ac_c_preproc_warn_flag
4116 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4117 else
4118 ac_cpp_err=
4119 fi
4120 else
4121 ac_cpp_err=yes
4122 fi
4123 if test -z "$ac_cpp_err"; then
4124 ac_header_preproc=yes
4125 else
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_header_preproc=no
4130 fi
4131 rm -f conftest.err conftest.$ac_ext
4132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4133 echo "${ECHO_T}$ac_header_preproc" >&6
4134
4135 # So? What about this header?
4136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4137 yes:no: )
4138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4142 ac_header_preproc=yes
4143 ;;
4144 no:yes:* )
4145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4157 (
4158 cat <<\_ASBOX
4159 ## ------------------------------------------ ##
4160 ## Report this to the AC_PACKAGE_NAME lists. ##
4161 ## ------------------------------------------ ##
4162 _ASBOX
4163 ) |
4164 sed "s/^/$as_me: WARNING: /" >&2
4165 ;;
4166 esac
4167 echo "$as_me:$LINENO: checking for $ac_header" >&5
4168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172 eval "$as_ac_Header=\$ac_header_preproc"
4173 fi
4174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4176
4177 fi
4178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4179 cat >>confdefs.h <<_ACEOF
4180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4181 _ACEOF
4182
4183 else
4184 { { echo "$as_me:$LINENO: error: Bluetooth headers MIA" >&5
4185 echo "$as_me: error: Bluetooth headers MIA" >&2;}
4186 { (exit 1); exit 1; }; }
4187 fi
4188
4189 done
4190
4191
4192 for ac_header in bluetooth/sdp.h
4193 do
4194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4196 echo "$as_me:$LINENO: checking for $ac_header" >&5
4197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 fi
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4203 else
4204 # Is the header compilable?
4205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 $ac_includes_default
4214 #include <$ac_header>
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag"
4226 || test ! -s conftest.err'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234 (eval $ac_try) 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; }; then
4238 ac_header_compiler=yes
4239 else
4240 echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 ac_header_compiler=no
4244 fi
4245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4247 echo "${ECHO_T}$ac_header_compiler" >&6
4248
4249 # Is the header present?
4250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h. */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4258 #include <$ac_header>
4259 _ACEOF
4260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } >/dev/null; then
4268 if test -s conftest.err; then
4269 ac_cpp_err=$ac_c_preproc_warn_flag
4270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4271 else
4272 ac_cpp_err=
4273 fi
4274 else
4275 ac_cpp_err=yes
4276 fi
4277 if test -z "$ac_cpp_err"; then
4278 ac_header_preproc=yes
4279 else
4280 echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 ac_header_preproc=no
4284 fi
4285 rm -f conftest.err conftest.$ac_ext
4286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4287 echo "${ECHO_T}$ac_header_preproc" >&6
4288
4289 # So? What about this header?
4290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4291 yes:no: )
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4296 ac_header_preproc=yes
4297 ;;
4298 no:yes:* )
4299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4311 (
4312 cat <<\_ASBOX
4313 ## ------------------------------------------ ##
4314 ## Report this to the AC_PACKAGE_NAME lists. ##
4315 ## ------------------------------------------ ##
4316 _ASBOX
4317 ) |
4318 sed "s/^/$as_me: WARNING: /" >&2
4319 ;;
4320 esac
4321 echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326 eval "$as_ac_Header=\$ac_header_preproc"
4327 fi
4328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4330
4331 fi
4332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4333 cat >>confdefs.h <<_ACEOF
4334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335 _ACEOF
4336
4337 else
4338 { { echo "$as_me:$LINENO: error: SDP headers MIA" >&5
4339 echo "$as_me: error: SDP headers MIA" >&2;}
4340 { (exit 1); exit 1; }; }
4341 fi
4342
4343 done
4344
4345
4346 # Checks for typedefs, structures, and compiler characteristics.
4347 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4348 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4349 if test "${ac_cv_c_const+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h. */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4358
4359 int
4360 main ()
4361 {
4362 /* FIXME: Include the comments suggested by Paul. */
4363 #ifndef __cplusplus
4364 /* Ultrix mips cc rejects this. */
4365 typedef int charset[2];
4366 const charset x;
4367 /* SunOS 4.1.1 cc rejects this. */
4368 char const *const *ccp;
4369 char **p;
4370 /* NEC SVR4.0.2 mips cc rejects this. */
4371 struct point {int x, y;};
4372 static struct point const zero = {0,0};
4373 /* AIX XL C 1.02.0.0 rejects this.
4374 It does not let you subtract one const X* pointer from another in
4375 an arm of an if-expression whose if-part is not a constant
4376 expression */
4377 const char *g = "string";
4378 ccp = &g + (g ? g-g : 0);
4379 /* HPUX 7.0 cc rejects these. */
4380 ++ccp;
4381 p = (char**) ccp;
4382 ccp = (char const *const *) p;
4383 { /* SCO 3.2v4 cc rejects this. */
4384 char *t;
4385 char const *s = 0 ? (char *) 0 : (char const *) 0;
4386
4387 *t++ = 0;
4388 }
4389 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4390 int x[] = {25, 17};
4391 const int *foo = &x[0];
4392 ++foo;
4393 }
4394 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4395 typedef const int *iptr;
4396 iptr p = 0;
4397 ++p;
4398 }
4399 { /* AIX XL C 1.02.0.0 rejects this saying
4400 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4401 struct s { int j; const int *ap[3]; };
4402 struct s *b; b->j = 5;
4403 }
4404 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4405 const int foo = 10;
4406 }
4407 #endif
4408
4409 ;
4410 return 0;
4411 }
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415 (eval $ac_compile) 2>conftest.er1
4416 ac_status=$?
4417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -z "$ac_c_werror_flag"
4423 || test ! -s conftest.err'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425 (eval $ac_try) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; } &&
4429 { ac_try='test -s conftest.$ac_objext'
4430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431 (eval $ac_try) 2>&5
4432 ac_status=$?
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_c_const=yes
4436 else
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 ac_cv_c_const=no
4441 fi
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4445 echo "${ECHO_T}$ac_cv_c_const" >&6
4446 if test $ac_cv_c_const = no; then
4447
4448 cat >>confdefs.h <<\_ACEOF
4449 #define const
4450 _ACEOF
4451
4452 fi
4453
4454 echo "$as_me:$LINENO: checking for size_t" >&5
4455 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4456 if test "${ac_cv_type_size_t+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459 cat >conftest.$ac_ext <<_ACEOF
4460 /* confdefs.h. */
4461 _ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 $ac_includes_default
4466 int
4467 main ()
4468 {
4469 if ((size_t *) 0)
4470 return 0;
4471 if (sizeof (size_t))
4472 return 0;
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 rm -f conftest.$ac_objext
4478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4479 (eval $ac_compile) 2>conftest.er1
4480 ac_status=$?
4481 grep -v '^ *+' conftest.er1 >conftest.err
4482 rm -f conftest.er1
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag"
4487 || test ! -s conftest.err'
4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 (eval $ac_try) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; } &&
4493 { ac_try='test -s conftest.$ac_objext'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 (eval $ac_try) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; }; then
4499 ac_cv_type_size_t=yes
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504 ac_cv_type_size_t=no
4505 fi
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507 fi
4508 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4509 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4510 if test $ac_cv_type_size_t = yes; then
4511 :
4512 else
4513
4514 cat >>confdefs.h <<_ACEOF
4515 #define size_t unsigned
4516 _ACEOF
4517
4518 fi
4519
4520
4521 # Checks for library functions.
4522 if test $ac_cv_c_compiler_gnu = yes; then
4523 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4524 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4525 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 ac_pattern="Autoconf.*'x'"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 /* confdefs.h. */
4531 _ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4535 #include <sgtty.h>
4536 Autoconf TIOCGETP
4537 _ACEOF
4538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4540 ac_cv_prog_gcc_traditional=yes
4541 else
4542 ac_cv_prog_gcc_traditional=no
4543 fi
4544 rm -f conftest*
4545
4546
4547 if test $ac_cv_prog_gcc_traditional = no; then
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554 #include <termio.h>
4555 Autoconf TCGETA
4556 _ACEOF
4557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4558 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4559 ac_cv_prog_gcc_traditional=yes
4560 fi
4561 rm -f conftest*
4562
4563 fi
4564 fi
4565 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4566 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4567 if test $ac_cv_prog_gcc_traditional = yes; then
4568 CC="$CC -traditional"
4569 fi
4570 fi
4571
4572
4573 for ac_header in stdlib.h
4574 do
4575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4577 echo "$as_me:$LINENO: checking for $ac_header" >&5
4578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 fi
4582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4584 else
4585 # Is the header compilable?
4586 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594 $ac_includes_default
4595 #include <$ac_header>
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599 (eval $ac_compile) 2>conftest.er1
4600 ac_status=$?
4601 grep -v '^ *+' conftest.er1 >conftest.err
4602 rm -f conftest.er1
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -z "$ac_c_werror_flag"
4607 || test ! -s conftest.err'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615 (eval $ac_try) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_header_compiler=yes
4620 else
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4623
4624 ac_header_compiler=no
4625 fi
4626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4628 echo "${ECHO_T}$ac_header_compiler" >&6
4629
4630 # Is the header present?
4631 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4632 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4633 cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h. */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h. */
4639 #include <$ac_header>
4640 _ACEOF
4641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } >/dev/null; then
4649 if test -s conftest.err; then
4650 ac_cpp_err=$ac_c_preproc_warn_flag
4651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4652 else
4653 ac_cpp_err=
4654 fi
4655 else
4656 ac_cpp_err=yes
4657 fi
4658 if test -z "$ac_cpp_err"; then
4659 ac_header_preproc=yes
4660 else
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_header_preproc=no
4665 fi
4666 rm -f conftest.err conftest.$ac_ext
4667 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4668 echo "${ECHO_T}$ac_header_preproc" >&6
4669
4670 # So? What about this header?
4671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4672 yes:no: )
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4677 ac_header_preproc=yes
4678 ;;
4679 no:yes:* )
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4692 (
4693 cat <<\_ASBOX
4694 ## ------------------------------------------ ##
4695 ## Report this to the AC_PACKAGE_NAME lists. ##
4696 ## ------------------------------------------ ##
4697 _ASBOX
4698 ) |
4699 sed "s/^/$as_me: WARNING: /" >&2
4700 ;;
4701 esac
4702 echo "$as_me:$LINENO: checking for $ac_header" >&5
4703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 eval "$as_ac_Header=\$ac_header_preproc"
4708 fi
4709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4711
4712 fi
4713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4714 cat >>confdefs.h <<_ACEOF
4715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4716 _ACEOF
4717
4718 fi
4719
4720 done
4721
4722 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
4723 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
4724 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4726 else
4727 if test "$cross_compiling" = yes; then
4728 ac_cv_func_malloc_0_nonnull=no
4729 else
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 #if STDC_HEADERS || HAVE_STDLIB_H
4737 # include <stdlib.h>
4738 #else
4739 char *malloc ();
4740 #endif
4741
4742 int
4743 main ()
4744 {
4745 exit (malloc (0) ? 0 : 1);
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest$ac_exeext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4752 (eval $ac_link) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_cv_func_malloc_0_nonnull=yes
4762 else
4763 echo "$as_me: program exited with status $ac_status" >&5
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ( exit $ac_status )
4768 ac_cv_func_malloc_0_nonnull=no
4769 fi
4770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4771 fi
4772 fi
4773 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
4774 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
4775 if test $ac_cv_func_malloc_0_nonnull = yes; then
4776
4777 cat >>confdefs.h <<\_ACEOF
4778 #define HAVE_MALLOC 1
4779 _ACEOF
4780
4781 else
4782 cat >>confdefs.h <<\_ACEOF
4783 #define HAVE_MALLOC 0
4784 _ACEOF
4785
4786 case $LIBOBJS in
4787 "malloc.$ac_objext" | \
4788 *" malloc.$ac_objext" | \
4789 "malloc.$ac_objext "* | \
4790 *" malloc.$ac_objext "* ) ;;
4791 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
4792 esac
4793
4794
4795 cat >>confdefs.h <<\_ACEOF
4796 #define malloc rpl_malloc
4797 _ACEOF
4798
4799 fi
4800
4801
4802
4803 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4804 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4805 if test "${ac_cv_type_signal+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <sys/types.h>
4815 #include <signal.h>
4816 #ifdef signal
4817 # undef signal
4818 #endif
4819 #ifdef __cplusplus
4820 extern "C" void (*signal (int, void (*)(int)))(int);
4821 #else
4822 void (*signal ()) ();
4823 #endif
4824
4825 int
4826 main ()
4827 {
4828 int i;
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_type_signal=void
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_cv_type_signal=int
4861 fi
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4865 echo "${ECHO_T}$ac_cv_type_signal" >&6
4866
4867 cat >>confdefs.h <<_ACEOF
4868 #define RETSIGTYPE $ac_cv_type_signal
4869 _ACEOF
4870
4871
4872
4873
4874 for ac_func in memset strerror
4875 do
4876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4877 echo "$as_me:$LINENO: checking for $ac_func" >&5
4878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4879 if eval "test \"\${$as_ac_var+set}\" = set"; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882 cat >conftest.$ac_ext <<_ACEOF
4883 /* confdefs.h. */
4884 _ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4890 #define $ac_func innocuous_$ac_func
4891
4892 /* System header to define __stub macros and hopefully few prototypes,
4893 which can conflict with char $ac_func (); below.
4894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 <limits.h> exists even on freestanding compilers. */
4896
4897 #ifdef __STDC__
4898 # include <limits.h>
4899 #else
4900 # include <assert.h>
4901 #endif
4902
4903 #undef $ac_func
4904
4905 /* Override any gcc2 internal prototype to avoid an error. */
4906 #ifdef __cplusplus
4907 extern "C"
4908 {
4909 #endif
4910 /* We use char because int might match the return type of a gcc2
4911 builtin and then its argument prototype would still apply. */
4912 char $ac_func ();
4913 /* The GNU C library defines this for functions which it implements
4914 to always fail with ENOSYS. Some functions are actually named
4915 something starting with __ and the normal name is an alias. */
4916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4917 choke me
4918 #else
4919 char (*f) () = $ac_func;
4920 #endif
4921 #ifdef __cplusplus
4922 }
4923 #endif
4924
4925 int
4926 main ()
4927 {
4928 return f != $ac_func;
4929 ;
4930 return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 eval "$as_ac_var=yes"
4956 else
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 eval "$as_ac_var=no"
4961 fi
4962 rm -f conftest.err conftest.$ac_objext \
4963 conftest$ac_exeext conftest.$ac_ext
4964 fi
4965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4967 if test `eval echo '${'$as_ac_var'}'` = yes; then
4968 cat >>confdefs.h <<_ACEOF
4969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4970 _ACEOF
4971
4972 fi
4973 done
4974
4975
4976 # set the optimisation/debug levels in CFLAGS
4977 #CFLAGS="-g -ggdb"
4978
4979 # config for libxml2 check
4980
4981 # Check whether --with-xml2cfgpath or --without-xml2cfgpath was given.
4982 if test "${with_xml2cfgpath+set}" = set; then
4983 withval="$with_xml2cfgpath"
4984 xml2cfgpath="${withval}/bin"
4985 fi;
4986 # check for libxml2
4987 if test -z "$xml2cfgpath"
4988 then
4989 # Extract the first word of "xml2-config", so it can be a program name with args.
4990 set dummy xml2-config; ac_word=$2
4991 echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993 if test "${ac_cv_path_xml2cfg+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 case $xml2cfg in
4997 [\\/]* | ?:[\\/]*)
4998 ac_cv_path_xml2cfg="$xml2cfg" # Let the user override the test with a path.
4999 ;;
5000 *)
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_path_xml2cfg="$as_dir/$ac_word$ac_exec_ext"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014
5015 test -z "$ac_cv_path_xml2cfg" && ac_cv_path_xml2cfg=""no""
5016 ;;
5017 esac
5018 fi
5019 xml2cfg=$ac_cv_path_xml2cfg
5020
5021 if test -n "$xml2cfg"; then
5022 echo "$as_me:$LINENO: result: $xml2cfg" >&5
5023 echo "${ECHO_T}$xml2cfg" >&6
5024 else
5025 echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6
5027 fi
5028
5029 else
5030 # Extract the first word of "xml2-config", so it can be a program name with args.
5031 set dummy xml2-config; ac_word=$2
5032 echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034 if test "${ac_cv_path_xml2cfg+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 case $xml2cfg in
5038 [\\/]* | ?:[\\/]*)
5039 ac_cv_path_xml2cfg="$xml2cfg" # Let the user override the test with a path.
5040 ;;
5041 *)
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $xml2cfgpath
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_xml2cfg="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053 done
5054 done
5055
5056 test -z "$ac_cv_path_xml2cfg" && ac_cv_path_xml2cfg=""no""
5057 ;;
5058 esac
5059 fi
5060 xml2cfg=$ac_cv_path_xml2cfg
5061
5062 if test -n "$xml2cfg"; then
5063 echo "$as_me:$LINENO: result: $xml2cfg" >&5
5064 echo "${ECHO_T}$xml2cfg" >&6
5065 else
5066 echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6
5068 fi
5069
5070 fi
5071 if test "$xml2cfg" = "no"
5072 then
5073 { { echo "$as_me:$LINENO: error: libxml2 not found or installed" >&5
5074 echo "$as_me: error: libxml2 not found or installed" >&2;}
5075 { (exit 1); exit 1; }; }
5076 else
5077 CFLAGS="$CFLAGS `$xml2cfg --cflags`"
5078 CPPFLAGS="$CPPFLAGS `$xml2cfg --cflags`"
5079 LDFLAGS="$LDFLAGS `$xml2cfg --libs`"
5080 fi
5081 # check for libxml2 heads/libs
5082
5083
5084 for ac_header in libxml/parser.h libxml/tree.h
5085 do
5086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088 echo "$as_me:$LINENO: checking for $ac_header" >&5
5089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 fi
5093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5095 else
5096 # Is the header compilable?
5097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5105 $ac_includes_default
5106 #include <$ac_header>
5107 _ACEOF
5108 rm -f conftest.$ac_objext
5109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5110 (eval $ac_compile) 2>conftest.er1
5111 ac_status=$?
5112 grep -v '^ *+' conftest.er1 >conftest.err
5113 rm -f conftest.er1
5114 cat conftest.err >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -z "$ac_c_werror_flag"
5118 || test ! -s conftest.err'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; } &&
5124 { ac_try='test -s conftest.$ac_objext'
5125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 (eval $ac_try) 2>&5
5127 ac_status=$?
5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5130 ac_header_compiler=yes
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_header_compiler=no
5136 fi
5137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5139 echo "${ECHO_T}$ac_header_compiler" >&6
5140
5141 # Is the header present?
5142 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5144 cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h. */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #include <$ac_header>
5151 _ACEOF
5152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null; then
5160 if test -s conftest.err; then
5161 ac_cpp_err=$ac_c_preproc_warn_flag
5162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5163 else
5164 ac_cpp_err=
5165 fi
5166 else
5167 ac_cpp_err=yes
5168 fi
5169 if test -z "$ac_cpp_err"; then
5170 ac_header_preproc=yes
5171 else
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 ac_header_preproc=no
5176 fi
5177 rm -f conftest.err conftest.$ac_ext
5178 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5179 echo "${ECHO_T}$ac_header_preproc" >&6
5180
5181 # So? What about this header?
5182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5183 yes:no: )
5184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5188 ac_header_preproc=yes
5189 ;;
5190 no:yes:* )
5191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5203 (
5204 cat <<\_ASBOX
5205 ## ------------------------------------------ ##
5206 ## Report this to the AC_PACKAGE_NAME lists. ##
5207 ## ------------------------------------------ ##
5208 _ASBOX
5209 ) |
5210 sed "s/^/$as_me: WARNING: /" >&2
5211 ;;
5212 esac
5213 echo "$as_me:$LINENO: checking for $ac_header" >&5
5214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218 eval "$as_ac_Header=\$ac_header_preproc"
5219 fi
5220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5222
5223 fi
5224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5225 cat >>confdefs.h <<_ACEOF
5226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5227 _ACEOF
5228
5229 else
5230 { { echo "$as_me:$LINENO: error: libxml2 headers MIA" >&5
5231 echo "$as_me: error: libxml2 headers MIA" >&2;}
5232 { (exit 1); exit 1; }; }
5233 fi
5234
5235 done
5236
5237
5238 echo "$as_me:$LINENO: checking for main in -lxml2" >&5
5239 echo $ECHO_N "checking for main in -lxml2... $ECHO_C" >&6
5240 if test "${ac_cv_lib_xml2_main+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 ac_check_lib_save_LIBS=$LIBS
5244 LIBS="-lxml2 $LIBS"
5245 cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h. */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h. */
5251
5252
5253 int
5254 main ()
5255 {
5256 main ();
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext conftest$ac_exeext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5263 (eval $ac_link) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_cv_lib_xml2_main=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 ac_cv_lib_xml2_main=no
5289 fi
5290 rm -f conftest.err conftest.$ac_objext \
5291 conftest$ac_exeext conftest.$ac_ext
5292 LIBS=$ac_check_lib_save_LIBS
5293 fi
5294 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_main" >&5
5295 echo "${ECHO_T}$ac_cv_lib_xml2_main" >&6
5296 if test $ac_cv_lib_xml2_main = yes; then
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_LIBXML2 1
5299 _ACEOF
5300
5301 LIBS="-lxml2 $LIBS"
5302
5303 else
5304 { { echo "$as_me:$LINENO: error: libxml2 not found" >&5
5305 echo "$as_me: error: libxml2 not found" >&2;}
5306 { (exit 1); exit 1; }; }
5307 fi
5308 ac_cv_lib_xml2=ac_cv_lib_xml2_main
5309
5310
5311 # CFLAGS
5312 CFLAGS="$CFLAGS -Wall -pthread -Wshadow -Wbad-function-cast \
5313 -Wformat -Wimplicit-function-dec -Wparentheses -Wsign-compare \
5314 -Wstrict-prototypes -Wtrigraphs -Wundef -Wuninitialized \
5315 -W -Wunused -Wformat-security -Wmissing-braces -Wbad-function-cast \
5316 -Wcast-qual -falign-functions -falign-labels -falign-loops\
5317 -pedantic -fstrict-aliasing -D_GNU_SOURCE -std=c99"
5318 # -fstack-check -fbounds-check"
5319
5320 # cfg
5321 echo "$as_me:$LINENO: checking the location of the config file" >&5
5322 echo $ECHO_N "checking the location of the config file... $ECHO_C" >&6
5323
5324 # Check whether --with-cfgfile or --without-cfgfile was given.
5325 if test "${with_cfgfile+set}" = set; then
5326 withval="$with_cfgfile"
5327 cfgfile="${withval}"
5328 else
5329 cfgfile="$sysconfdir/btscanner.xml"
5330 fi;
5331 echo "$as_me:$LINENO: result: $cfgfile" >&5
5332 echo "${ECHO_T}$cfgfile" >&6
5333 # cfg DTD
5334 echo "$as_me:$LINENO: checking the location of the config DTD" >&5
5335 echo $ECHO_N "checking the location of the config DTD... $ECHO_C" >&6
5336
5337 # Check whether --with-cfgdtd or --without-cfgdtd was given.
5338 if test "${with_cfgdtd+set}" = set; then
5339 withval="$with_cfgdtd"
5340 cfgdtd="${withval}"
5341 else
5342 cfgdtd="file://$sysconfdir/btscanner.dtd"
5343 fi;
5344 echo "$as_me:$LINENO: result: $cfgdtd" >&5
5345 echo "${ECHO_T}$cfgdtd" >&6
5346
5347 CFLAGS="$CFLAGS -DCFG_FILE=\\\"$cfgfile\\\" -DCFG_DTD=\\\"$cfgdtd\\\""
5348
5349 # output
5350 ac_config_files="$ac_config_files Makefile"
5351
5352 cat >confcache <<\_ACEOF
5353 # This file is a shell script that caches the results of configure
5354 # tests run on this system so they can be shared between configure
5355 # scripts and configure runs, see configure's option --config-cache.
5356 # It is not useful on other systems. If it contains results you don't
5357 # want to keep, you may remove or edit it.
5358 #
5359 # config.status only pays attention to the cache file if you give it
5360 # the --recheck option to rerun configure.
5361 #
5362 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5363 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5364 # following values.
5365
5366 _ACEOF
5367
5368 # The following way of writing the cache mishandles newlines in values,
5369 # but we know of no workaround that is simple, portable, and efficient.
5370 # So, don't put newlines in cache variables' values.
5371 # Ultrix sh set writes to stderr and can't be redirected directly,
5372 # and sets the high bit in the cache file unless we assign to the vars.
5373 {
5374 (set) 2>&1 |
5375 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5376 *ac_space=\ *)
5377 # `set' does not quote correctly, so add quotes (double-quote
5378 # substitution turns \\\\ into \\, and sed turns \\ into \).
5379 sed -n \
5380 "s/'/'\\\\''/g;
5381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5382 ;;
5383 *)
5384 # `set' quotes correctly as required by POSIX, so do not add quotes.
5385 sed -n \
5386 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5387 ;;
5388 esac;
5389 } |
5390 sed '
5391 t clear
5392 : clear
5393 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5394 t end
5395 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5396 : end' >>confcache
5397 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5398 if test -w $cache_file; then
5399 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5400 cat confcache >$cache_file
5401 else
5402 echo "not updating unwritable cache $cache_file"
5403 fi
5404 fi
5405 rm -f confcache
5406
5407 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5408 # Let make expand exec_prefix.
5409 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5410
5411 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5412 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5413 # trailing colons and then remove the whole line if VPATH becomes empty
5414 # (actually we leave an empty line to preserve line numbers).
5415 if test "x$srcdir" = x.; then
5416 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5417 s/:*\$(srcdir):*/:/;
5418 s/:*\${srcdir}:*/:/;
5419 s/:*@srcdir@:*/:/;
5420 s/^\([^=]*=[ ]*\):*/\1/;
5421 s/:*$//;
5422 s/^[^=]*=[ ]*$//;
5423 }'
5424 fi
5425
5426 DEFS=-DHAVE_CONFIG_H
5427
5428 ac_libobjs=
5429 ac_ltlibobjs=
5430 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5431 # 1. Remove the extension, and $U if already installed.
5432 ac_i=`echo "$ac_i" |
5433 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5434 # 2. Add them.
5435 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5436 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5437 done
5438 LIBOBJS=$ac_libobjs
5439
5440 LTLIBOBJS=$ac_ltlibobjs
5441
5442
5443 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5444 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5445 Usually this means the macro was only invoked conditionally." >&5
5446 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5447 Usually this means the macro was only invoked conditionally." >&2;}
5448 { (exit 1); exit 1; }; }
5449 fi
5450 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5451 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5452 Usually this means the macro was only invoked conditionally." >&5
5453 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5454 Usually this means the macro was only invoked conditionally." >&2;}
5455 { (exit 1); exit 1; }; }
5456 fi
5457
5458 : ${CONFIG_STATUS=./config.status}
5459 ac_clean_files_save=$ac_clean_files
5460 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5461 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5462 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5463 cat >$CONFIG_STATUS <<_ACEOF
5464 #! $SHELL
5465 # Generated by $as_me.
5466 # Run this file to recreate the current configuration.
5467 # Compiler output produced by configure, useful for debugging
5468 # configure, is in config.log if it exists.
5469
5470 debug=false
5471 ac_cs_recheck=false
5472 ac_cs_silent=false
5473 SHELL=\${CONFIG_SHELL-$SHELL}
5474 _ACEOF
5475
5476 cat >>$CONFIG_STATUS <<\_ACEOF
5477 ## --------------------- ##
5478 ## M4sh Initialization. ##
5479 ## --------------------- ##
5480
5481 # Be Bourne compatible
5482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5483 emulate sh
5484 NULLCMD=:
5485 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5486 # is contrary to our usage. Disable this feature.
5487 alias -g '${1+"$@"}'='"$@"'
5488 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5489 set -o posix
5490 fi
5491 DUALCASE=1; export DUALCASE # for MKS sh
5492
5493 # Support unset when possible.
5494 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5495 as_unset=unset
5496 else
5497 as_unset=false
5498 fi
5499
5500
5501 # Work around bugs in pre-3.0 UWIN ksh.
5502 $as_unset ENV MAIL MAILPATH
5503 PS1='$ '
5504 PS2='> '
5505 PS4='+ '
5506
5507 # NLS nuisances.
5508 for as_var in \
5509 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5510 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5511 LC_TELEPHONE LC_TIME
5512 do
5513 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5514 eval $as_var=C; export $as_var
5515 else
5516 $as_unset $as_var
5517 fi
5518 done
5519
5520 # Required to use basename.
5521 if expr a : '\(a\)' >/dev/null 2>&1; then
5522 as_expr=expr
5523 else
5524 as_expr=false
5525 fi
5526
5527 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5528 as_basename=basename
5529 else
5530 as_basename=false
5531 fi
5532
5533
5534 # Name of the executable.
5535 as_me=`$as_basename "$0" ||
5536 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5537 X"$0" : 'X\(//\)$' \| \
5538 X"$0" : 'X\(/\)$' \| \
5539 . : '\(.\)' 2>/dev/null ||
5540 echo X/"$0" |
5541 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5542 /^X\/\(\/\/\)$/{ s//\1/; q; }
5543 /^X\/\(\/\).*/{ s//\1/; q; }
5544 s/.*/./; q'`
5545
5546
5547 # PATH needs CR, and LINENO needs CR and PATH.
5548 # Avoid depending upon Character Ranges.
5549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5552 as_cr_digits='0123456789'
5553 as_cr_alnum=$as_cr_Letters$as_cr_digits
5554
5555 # The user is always right.
5556 if test "${PATH_SEPARATOR+set}" != set; then
5557 echo "#! /bin/sh" >conf$$.sh
5558 echo "exit 0" >>conf$$.sh
5559 chmod +x conf$$.sh
5560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5561 PATH_SEPARATOR=';'
5562 else
5563 PATH_SEPARATOR=:
5564 fi
5565 rm -f conf$$.sh
5566 fi
5567
5568
5569 as_lineno_1=$LINENO
5570 as_lineno_2=$LINENO
5571 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5572 test "x$as_lineno_1" != "x$as_lineno_2" &&
5573 test "x$as_lineno_3" = "x$as_lineno_2" || {
5574 # Find who we are. Look in the path if we contain no path at all
5575 # relative or not.
5576 case $0 in
5577 *[\\/]* ) as_myself=$0 ;;
5578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581 IFS=$as_save_IFS
5582 test -z "$as_dir" && as_dir=.
5583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5584 done
5585
5586 ;;
5587 esac
5588 # We did not find ourselves, most probably we were run as `sh COMMAND'
5589 # in which case we are not to be found in the path.
5590 if test "x$as_myself" = x; then
5591 as_myself=$0
5592 fi
5593 if test ! -f "$as_myself"; then
5594 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5595 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5596 { (exit 1); exit 1; }; }
5597 fi
5598 case $CONFIG_SHELL in
5599 '')
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5602 do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for as_base in sh bash ksh sh5; do
5606 case $as_dir in
5607 /*)
5608 if ("$as_dir/$as_base" -c '
5609 as_lineno_1=$LINENO
5610 as_lineno_2=$LINENO
5611 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5612 test "x$as_lineno_1" != "x$as_lineno_2" &&
5613 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5614 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5615 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5616 CONFIG_SHELL=$as_dir/$as_base
5617 export CONFIG_SHELL
5618 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5619 fi;;
5620 esac
5621 done
5622 done
5623 ;;
5624 esac
5625
5626 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5627 # uniformly replaced by the line number. The first 'sed' inserts a
5628 # line-number line before each line; the second 'sed' does the real
5629 # work. The second script uses 'N' to pair each line-number line
5630 # with the numbered line, and appends trailing '-' during
5631 # substitution so that $LINENO is not a special case at line end.
5632 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5633 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5634 sed '=' <$as_myself |
5635 sed '
5636 N
5637 s,$,-,
5638 : loop
5639 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5640 t loop
5641 s,-$,,
5642 s,^['$as_cr_digits']*\n,,
5643 ' >$as_me.lineno &&
5644 chmod +x $as_me.lineno ||
5645 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5646 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5647 { (exit 1); exit 1; }; }
5648
5649 # Don't try to exec as it changes $[0], causing all sort of problems
5650 # (the dirname of $[0] is not the place where we might find the
5651 # original and so on. Autoconf is especially sensible to this).
5652 . ./$as_me.lineno
5653 # Exit status is that of the last command.
5654 exit
5655 }
5656
5657
5658 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5659 *c*,-n*) ECHO_N= ECHO_C='
5660 ' ECHO_T=' ' ;;
5661 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5662 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5663 esac
5664
5665 if expr a : '\(a\)' >/dev/null 2>&1; then
5666 as_expr=expr
5667 else
5668 as_expr=false
5669 fi
5670
5671 rm -f conf$$ conf$$.exe conf$$.file
5672 echo >conf$$.file
5673 if ln -s conf$$.file conf$$ 2>/dev/null; then
5674 # We could just check for DJGPP; but this test a) works b) is more generic
5675 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5676 if test -f conf$$.exe; then
5677 # Don't use ln at all; we don't have any links
5678 as_ln_s='cp -p'
5679 else
5680 as_ln_s='ln -s'
5681 fi
5682 elif ln conf$$.file conf$$ 2>/dev/null; then
5683 as_ln_s=ln
5684 else
5685 as_ln_s='cp -p'
5686 fi
5687 rm -f conf$$ conf$$.exe conf$$.file
5688
5689 if mkdir -p . 2>/dev/null; then
5690 as_mkdir_p=:
5691 else
5692 test -d ./-p && rmdir ./-p
5693 as_mkdir_p=false
5694 fi
5695
5696 as_executable_p="test -f"
5697
5698 # Sed expression to map a string onto a valid CPP name.
5699 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5700
5701 # Sed expression to map a string onto a valid variable name.
5702 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5703
5704
5705 # IFS
5706 # We need space, tab and new line, in precisely that order.
5707 as_nl='
5708 '
5709 IFS=" $as_nl"
5710
5711 # CDPATH.
5712 $as_unset CDPATH
5713
5714 exec 6>&1
5715
5716 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5717 # report actual input values of CONFIG_FILES etc. instead of their
5718 # values after options handling. Logging --version etc. is OK.
5719 exec 5>>config.log
5720 {
5721 echo
5722 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5723 ## Running $as_me. ##
5724 _ASBOX
5725 } >&5
5726 cat >&5 <<_CSEOF
5727
5728 This file was extended by $as_me, which was
5729 generated by GNU Autoconf 2.59. Invocation command line was
5730
5731 CONFIG_FILES = $CONFIG_FILES
5732 CONFIG_HEADERS = $CONFIG_HEADERS
5733 CONFIG_LINKS = $CONFIG_LINKS
5734 CONFIG_COMMANDS = $CONFIG_COMMANDS
5735 $ $0 $@
5736
5737 _CSEOF
5738 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5739 echo >&5
5740 _ACEOF
5741
5742 # Files that config.status was made for.
5743 if test -n "$ac_config_files"; then
5744 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5745 fi
5746
5747 if test -n "$ac_config_headers"; then
5748 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5749 fi
5750
5751 if test -n "$ac_config_links"; then
5752 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5753 fi
5754
5755 if test -n "$ac_config_commands"; then
5756 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5757 fi
5758
5759 cat >>$CONFIG_STATUS <<\_ACEOF
5760
5761 ac_cs_usage="\
5762 \`$as_me' instantiates files from templates according to the
5763 current configuration.
5764
5765 Usage: $0 [OPTIONS] [FILE]...
5766
5767 -h, --help print this help, then exit
5768 -V, --version print version number, then exit
5769 -q, --quiet do not print progress messages
5770 -d, --debug don't remove temporary files
5771 --recheck update $as_me by reconfiguring in the same conditions
5772 --file=FILE[:TEMPLATE]
5773 instantiate the configuration file FILE
5774 --header=FILE[:TEMPLATE]
5775 instantiate the configuration header FILE
5776
5777 Configuration files:
5778 $config_files
5779
5780 Configuration headers:
5781 $config_headers
5782
5783 Configuration commands:
5784 $config_commands
5785
5786 Report bugs to <[email protected]>."
5787 _ACEOF
5788
5789 cat >>$CONFIG_STATUS <<_ACEOF
5790 ac_cs_version="\\
5791 config.status
5792 configured by $0, generated by GNU Autoconf 2.59,
5793 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5794
5795 Copyright (C) 2003 Free Software Foundation, Inc.
5796 This config.status script is free software; the Free Software Foundation
5797 gives unlimited permission to copy, distribute and modify it."
5798 srcdir=$srcdir
5799 INSTALL="$INSTALL"
5800 _ACEOF
5801
5802 cat >>$CONFIG_STATUS <<\_ACEOF
5803 # If no file are specified by the user, then we need to provide default
5804 # value. By we need to know if files were specified by the user.
5805 ac_need_defaults=:
5806 while test $# != 0
5807 do
5808 case $1 in
5809 --*=*)
5810 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5811 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5812 ac_shift=:
5813 ;;
5814 -*)
5815 ac_option=$1
5816 ac_optarg=$2
5817 ac_shift=shift
5818 ;;
5819 *) # This is not an option, so the user has probably given explicit
5820 # arguments.
5821 ac_option=$1
5822 ac_need_defaults=false;;
5823 esac
5824
5825 case $ac_option in
5826 # Handling of the options.
5827 _ACEOF
5828 cat >>$CONFIG_STATUS <<\_ACEOF
5829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5830 ac_cs_recheck=: ;;
5831 --version | --vers* | -V )
5832 echo "$ac_cs_version"; exit 0 ;;
5833 --he | --h)
5834 # Conflict between --help and --header
5835 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5836 Try \`$0 --help' for more information." >&5
5837 echo "$as_me: error: ambiguous option: $1
5838 Try \`$0 --help' for more information." >&2;}
5839 { (exit 1); exit 1; }; };;
5840 --help | --hel | -h )
5841 echo "$ac_cs_usage"; exit 0 ;;
5842 --debug | --d* | -d )
5843 debug=: ;;
5844 --file | --fil | --fi | --f )
5845 $ac_shift
5846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5847 ac_need_defaults=false;;
5848 --header | --heade | --head | --hea )
5849 $ac_shift
5850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5851 ac_need_defaults=false;;
5852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5854 ac_cs_silent=: ;;
5855
5856 # This is an error.
5857 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5858 Try \`$0 --help' for more information." >&5
5859 echo "$as_me: error: unrecognized option: $1
5860 Try \`$0 --help' for more information." >&2;}
5861 { (exit 1); exit 1; }; } ;;
5862
5863 *) ac_config_targets="$ac_config_targets $1" ;;
5864
5865 esac
5866 shift
5867 done
5868
5869 ac_configure_extra_args=
5870
5871 if $ac_cs_silent; then
5872 exec 6>/dev/null
5873 ac_configure_extra_args="$ac_configure_extra_args --silent"
5874 fi
5875
5876 _ACEOF
5877 cat >>$CONFIG_STATUS <<_ACEOF
5878 if \$ac_cs_recheck; then
5879 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5880 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5881 fi
5882
5883 _ACEOF
5884
5885 cat >>$CONFIG_STATUS <<_ACEOF
5886 #
5887 # INIT-COMMANDS section.
5888 #
5889
5890 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5891
5892 _ACEOF
5893
5894
5895
5896 cat >>$CONFIG_STATUS <<\_ACEOF
5897 for ac_config_target in $ac_config_targets
5898 do
5899 case "$ac_config_target" in
5900 # Handling of arguments.
5901 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5902 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5903 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5905 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5906 { (exit 1); exit 1; }; };;
5907 esac
5908 done
5909
5910 # If the user did not use the arguments to specify the items to instantiate,
5911 # then the envvar interface is used. Set only those that are not.
5912 # We use the long form for the default assignment because of an extremely
5913 # bizarre bug on SunOS 4.1.3.
5914 if $ac_need_defaults; then
5915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5916 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5917 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5918 fi
5919
5920 # Have a temporary directory for convenience. Make it in the build tree
5921 # simply because there is no reason to put it here, and in addition,
5922 # creating and moving files from /tmp can sometimes cause problems.
5923 # Create a temporary directory, and hook for its removal unless debugging.
5924 $debug ||
5925 {
5926 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5927 trap '{ (exit 1); exit 1; }' 1 2 13 15
5928 }
5929
5930 # Create a (secure) tmp directory for tmp files.
5931
5932 {
5933 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5934 test -n "$tmp" && test -d "$tmp"
5935 } ||
5936 {
5937 tmp=./confstat$$-$RANDOM
5938 (umask 077 && mkdir $tmp)
5939 } ||
5940 {
5941 echo "$me: cannot create a temporary directory in ." >&2
5942 { (exit 1); exit 1; }
5943 }
5944
5945 _ACEOF
5946
5947 cat >>$CONFIG_STATUS <<_ACEOF
5948
5949 #
5950 # CONFIG_FILES section.
5951 #
5952
5953 # No need to generate the scripts if there are no CONFIG_FILES.
5954 # This happens for instance when ./config.status config.h
5955 if test -n "\$CONFIG_FILES"; then
5956 # Protect against being on the right side of a sed subst in config.status.
5957 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5958 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5959 s,@SHELL@,$SHELL,;t t
5960 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5961 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5962 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5963 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5964 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5965 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5966 s,@exec_prefix@,$exec_prefix,;t t
5967 s,@prefix@,$prefix,;t t
5968 s,@program_transform_name@,$program_transform_name,;t t
5969 s,@bindir@,$bindir,;t t
5970 s,@sbindir@,$sbindir,;t t
5971 s,@libexecdir@,$libexecdir,;t t
5972 s,@datadir@,$datadir,;t t
5973 s,@sysconfdir@,$sysconfdir,;t t
5974 s,@sharedstatedir@,$sharedstatedir,;t t
5975 s,@localstatedir@,$localstatedir,;t t
5976 s,@libdir@,$libdir,;t t
5977 s,@includedir@,$includedir,;t t
5978 s,@oldincludedir@,$oldincludedir,;t t
5979 s,@infodir@,$infodir,;t t
5980 s,@mandir@,$mandir,;t t
5981 s,@build_alias@,$build_alias,;t t
5982 s,@host_alias@,$host_alias,;t t
5983 s,@target_alias@,$target_alias,;t t
5984 s,@DEFS@,$DEFS,;t t
5985 s,@ECHO_C@,$ECHO_C,;t t
5986 s,@ECHO_N@,$ECHO_N,;t t
5987 s,@ECHO_T@,$ECHO_T,;t t
5988 s,@LIBS@,$LIBS,;t t
5989 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5990 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5991 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5992 s,@CYGPATH_W@,$CYGPATH_W,;t t
5993 s,@PACKAGE@,$PACKAGE,;t t
5994 s,@VERSION@,$VERSION,;t t
5995 s,@ACLOCAL@,$ACLOCAL,;t t
5996 s,@AUTOCONF@,$AUTOCONF,;t t
5997 s,@AUTOMAKE@,$AUTOMAKE,;t t
5998 s,@AUTOHEADER@,$AUTOHEADER,;t t
5999 s,@MAKEINFO@,$MAKEINFO,;t t
6000 s,@install_sh@,$install_sh,;t t
6001 s,@STRIP@,$STRIP,;t t
6002 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6003 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6004 s,@mkdir_p@,$mkdir_p,;t t
6005 s,@AWK@,$AWK,;t t
6006 s,@SET_MAKE@,$SET_MAKE,;t t
6007 s,@am__leading_dot@,$am__leading_dot,;t t
6008 s,@AMTAR@,$AMTAR,;t t
6009 s,@am__tar@,$am__tar,;t t
6010 s,@am__untar@,$am__untar,;t t
6011 s,@CC@,$CC,;t t
6012 s,@CFLAGS@,$CFLAGS,;t t
6013 s,@LDFLAGS@,$LDFLAGS,;t t
6014 s,@CPPFLAGS@,$CPPFLAGS,;t t
6015 s,@ac_ct_CC@,$ac_ct_CC,;t t
6016 s,@EXEEXT@,$EXEEXT,;t t
6017 s,@OBJEXT@,$OBJEXT,;t t
6018 s,@DEPDIR@,$DEPDIR,;t t
6019 s,@am__include@,$am__include,;t t
6020 s,@am__quote@,$am__quote,;t t
6021 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6022 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6023 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6024 s,@CCDEPMODE@,$CCDEPMODE,;t t
6025 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6026 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6027 s,@PERL@,$PERL,;t t
6028 s,@CPP@,$CPP,;t t
6029 s,@EGREP@,$EGREP,;t t
6030 s,@LIBOBJS@,$LIBOBJS,;t t
6031 s,@xml2cfg@,$xml2cfg,;t t
6032 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6033 CEOF
6034
6035 _ACEOF
6036
6037 cat >>$CONFIG_STATUS <<\_ACEOF
6038 # Split the substitutions into bite-sized pieces for seds with
6039 # small command number limits, like on Digital OSF/1 and HP-UX.
6040 ac_max_sed_lines=48
6041 ac_sed_frag=1 # Number of current file.
6042 ac_beg=1 # First line for current file.
6043 ac_end=$ac_max_sed_lines # Line after last line for current file.
6044 ac_more_lines=:
6045 ac_sed_cmds=
6046 while $ac_more_lines; do
6047 if test $ac_beg -gt 1; then
6048 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6049 else
6050 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6051 fi
6052 if test ! -s $tmp/subs.frag; then
6053 ac_more_lines=false
6054 else
6055 # The purpose of the label and of the branching condition is to
6056 # speed up the sed processing (if there are no `@' at all, there
6057 # is no need to browse any of the substitutions).
6058 # These are the two extra sed commands mentioned above.
6059 (echo ':t
6060 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6061 if test -z "$ac_sed_cmds"; then
6062 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6063 else
6064 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6065 fi
6066 ac_sed_frag=`expr $ac_sed_frag + 1`
6067 ac_beg=$ac_end
6068 ac_end=`expr $ac_end + $ac_max_sed_lines`
6069 fi
6070 done
6071 if test -z "$ac_sed_cmds"; then
6072 ac_sed_cmds=cat
6073 fi
6074 fi # test -n "$CONFIG_FILES"
6075
6076 _ACEOF
6077 cat >>$CONFIG_STATUS <<\_ACEOF
6078 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6079 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6080 case $ac_file in
6081 - | *:- | *:-:* ) # input from stdin
6082 cat >$tmp/stdin
6083 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6084 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6085 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6086 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6087 * ) ac_file_in=$ac_file.in ;;
6088 esac
6089
6090 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6091 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6093 X"$ac_file" : 'X\(//\)[^/]' \| \
6094 X"$ac_file" : 'X\(//\)$' \| \
6095 X"$ac_file" : 'X\(/\)' \| \
6096 . : '\(.\)' 2>/dev/null ||
6097 echo X"$ac_file" |
6098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6099 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6100 /^X\(\/\/\)$/{ s//\1/; q; }
6101 /^X\(\/\).*/{ s//\1/; q; }
6102 s/.*/./; q'`
6103 { if $as_mkdir_p; then
6104 mkdir -p "$ac_dir"
6105 else
6106 as_dir="$ac_dir"
6107 as_dirs=
6108 while test ! -d "$as_dir"; do
6109 as_dirs="$as_dir $as_dirs"
6110 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6112 X"$as_dir" : 'X\(//\)[^/]' \| \
6113 X"$as_dir" : 'X\(//\)$' \| \
6114 X"$as_dir" : 'X\(/\)' \| \
6115 . : '\(.\)' 2>/dev/null ||
6116 echo X"$as_dir" |
6117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6118 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6119 /^X\(\/\/\)$/{ s//\1/; q; }
6120 /^X\(\/\).*/{ s//\1/; q; }
6121 s/.*/./; q'`
6122 done
6123 test ! -n "$as_dirs" || mkdir $as_dirs
6124 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6125 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6126 { (exit 1); exit 1; }; }; }
6127
6128 ac_builddir=.
6129
6130 if test "$ac_dir" != .; then
6131 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6132 # A "../" for each directory in $ac_dir_suffix.
6133 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6134 else
6135 ac_dir_suffix= ac_top_builddir=
6136 fi
6137
6138 case $srcdir in
6139 .) # No --srcdir option. We are building in place.
6140 ac_srcdir=.
6141 if test -z "$ac_top_builddir"; then
6142 ac_top_srcdir=.
6143 else
6144 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6145 fi ;;
6146 [\\/]* | ?:[\\/]* ) # Absolute path.
6147 ac_srcdir=$srcdir$ac_dir_suffix;
6148 ac_top_srcdir=$srcdir ;;
6149 *) # Relative path.
6150 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6151 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6152 esac
6153
6154 # Do not use `cd foo && pwd` to compute absolute paths, because
6155 # the directories may not exist.
6156 case `pwd` in
6157 .) ac_abs_builddir="$ac_dir";;
6158 *)
6159 case "$ac_dir" in
6160 .) ac_abs_builddir=`pwd`;;
6161 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6162 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6163 esac;;
6164 esac
6165 case $ac_abs_builddir in
6166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6167 *)
6168 case ${ac_top_builddir}. in
6169 .) ac_abs_top_builddir=$ac_abs_builddir;;
6170 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6171 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6172 esac;;
6173 esac
6174 case $ac_abs_builddir in
6175 .) ac_abs_srcdir=$ac_srcdir;;
6176 *)
6177 case $ac_srcdir in
6178 .) ac_abs_srcdir=$ac_abs_builddir;;
6179 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6180 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6181 esac;;
6182 esac
6183 case $ac_abs_builddir in
6184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6185 *)
6186 case $ac_top_srcdir in
6187 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6188 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6189 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6190 esac;;
6191 esac
6192
6193
6194 case $INSTALL in
6195 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6196 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6197 esac
6198
6199 if test x"$ac_file" != x-; then
6200 { echo "$as_me:$LINENO: creating $ac_file" >&5
6201 echo "$as_me: creating $ac_file" >&6;}
6202 rm -f "$ac_file"
6203 fi
6204 # Let's still pretend it is `configure' which instantiates (i.e., don't
6205 # use $as_me), people would be surprised to read:
6206 # /* config.h. Generated by config.status. */
6207 if test x"$ac_file" = x-; then
6208 configure_input=
6209 else
6210 configure_input="$ac_file. "
6211 fi
6212 configure_input=$configure_input"Generated from `echo $ac_file_in |
6213 sed 's,.*/,,'` by configure."
6214
6215 # First look for the input files in the build tree, otherwise in the
6216 # src tree.
6217 ac_file_inputs=`IFS=:
6218 for f in $ac_file_in; do
6219 case $f in
6220 -) echo $tmp/stdin ;;
6221 [\\/$]*)
6222 # Absolute (can't be DOS-style, as IFS=:)
6223 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6224 echo "$as_me: error: cannot find input file: $f" >&2;}
6225 { (exit 1); exit 1; }; }
6226 echo "$f";;
6227 *) # Relative
6228 if test -f "$f"; then
6229 # Build tree
6230 echo "$f"
6231 elif test -f "$srcdir/$f"; then
6232 # Source tree
6233 echo "$srcdir/$f"
6234 else
6235 # /dev/null tree
6236 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6237 echo "$as_me: error: cannot find input file: $f" >&2;}
6238 { (exit 1); exit 1; }; }
6239 fi;;
6240 esac
6241 done` || { (exit 1); exit 1; }
6242 _ACEOF
6243 cat >>$CONFIG_STATUS <<_ACEOF
6244 sed "$ac_vpsub
6245 $extrasub
6246 _ACEOF
6247 cat >>$CONFIG_STATUS <<\_ACEOF
6248 :t
6249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6250 s,@configure_input@,$configure_input,;t t
6251 s,@srcdir@,$ac_srcdir,;t t
6252 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6253 s,@top_srcdir@,$ac_top_srcdir,;t t
6254 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6255 s,@builddir@,$ac_builddir,;t t
6256 s,@abs_builddir@,$ac_abs_builddir,;t t
6257 s,@top_builddir@,$ac_top_builddir,;t t
6258 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6259 s,@INSTALL@,$ac_INSTALL,;t t
6260 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6261 rm -f $tmp/stdin
6262 if test x"$ac_file" != x-; then
6263 mv $tmp/out $ac_file
6264 else
6265 cat $tmp/out
6266 rm -f $tmp/out
6267 fi
6268
6269 done
6270 _ACEOF
6271 cat >>$CONFIG_STATUS <<\_ACEOF
6272
6273 #
6274 # CONFIG_HEADER section.
6275 #
6276
6277 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6278 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6279 #
6280 # ac_d sets the value in "#define NAME VALUE" lines.
6281 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6282 ac_dB='[ ].*$,\1#\2'
6283 ac_dC=' '
6284 ac_dD=',;t'
6285 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6286 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6287 ac_uB='$,\1#\2define\3'
6288 ac_uC=' '
6289 ac_uD=',;t'
6290
6291 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6292 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6293 case $ac_file in
6294 - | *:- | *:-:* ) # input from stdin
6295 cat >$tmp/stdin
6296 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6297 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6298 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6300 * ) ac_file_in=$ac_file.in ;;
6301 esac
6302
6303 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6304 echo "$as_me: creating $ac_file" >&6;}
6305
6306 # First look for the input files in the build tree, otherwise in the
6307 # src tree.
6308 ac_file_inputs=`IFS=:
6309 for f in $ac_file_in; do
6310 case $f in
6311 -) echo $tmp/stdin ;;
6312 [\\/$]*)
6313 # Absolute (can't be DOS-style, as IFS=:)
6314 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6315 echo "$as_me: error: cannot find input file: $f" >&2;}
6316 { (exit 1); exit 1; }; }
6317 # Do quote $f, to prevent DOS paths from being IFS'd.
6318 echo "$f";;
6319 *) # Relative
6320 if test -f "$f"; then
6321 # Build tree
6322 echo "$f"
6323 elif test -f "$srcdir/$f"; then
6324 # Source tree
6325 echo "$srcdir/$f"
6326 else
6327 # /dev/null tree
6328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6329 echo "$as_me: error: cannot find input file: $f" >&2;}
6330 { (exit 1); exit 1; }; }
6331 fi;;
6332 esac
6333 done` || { (exit 1); exit 1; }
6334 # Remove the trailing spaces.
6335 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6336
6337 _ACEOF
6338
6339 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6340 # `conftest.undefs', that substitutes the proper values into
6341 # config.h.in to produce config.h. The first handles `#define'
6342 # templates, and the second `#undef' templates.
6343 # And first: Protect against being on the right side of a sed subst in
6344 # config.status. Protect against being in an unquoted here document
6345 # in config.status.
6346 rm -f conftest.defines conftest.undefs
6347 # Using a here document instead of a string reduces the quoting nightmare.
6348 # Putting comments in sed scripts is not portable.
6349 #
6350 # `end' is used to avoid that the second main sed command (meant for
6351 # 0-ary CPP macros) applies to n-ary macro definitions.
6352 # See the Autoconf documentation for `clear'.
6353 cat >confdef2sed.sed <<\_ACEOF
6354 s/[\\&,]/\\&/g
6355 s,[\\$`],\\&,g
6356 t clear
6357 : clear
6358 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6359 t end
6360 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6361 : end
6362 _ACEOF
6363 # If some macros were called several times there might be several times
6364 # the same #defines, which is useless. Nevertheless, we may not want to
6365 # sort them, since we want the *last* AC-DEFINE to be honored.
6366 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6367 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6368 rm -f confdef2sed.sed
6369
6370 # This sed command replaces #undef with comments. This is necessary, for
6371 # example, in the case of _POSIX_SOURCE, which is predefined and required
6372 # on some systems where configure will not decide to define it.
6373 cat >>conftest.undefs <<\_ACEOF
6374 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6375 _ACEOF
6376
6377 # Break up conftest.defines because some shells have a limit on the size
6378 # of here documents, and old seds have small limits too (100 cmds).
6379 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6380 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6381 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6382 echo ' :' >>$CONFIG_STATUS
6383 rm -f conftest.tail
6384 while grep . conftest.defines >/dev/null
6385 do
6386 # Write a limited-size here document to $tmp/defines.sed.
6387 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6388 # Speed up: don't consider the non `#define' lines.
6389 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6390 # Work around the forget-to-reset-the-flag bug.
6391 echo 't clr' >>$CONFIG_STATUS
6392 echo ': clr' >>$CONFIG_STATUS
6393 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6394 echo 'CEOF
6395 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6396 rm -f $tmp/in
6397 mv $tmp/out $tmp/in
6398 ' >>$CONFIG_STATUS
6399 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6400 rm -f conftest.defines
6401 mv conftest.tail conftest.defines
6402 done
6403 rm -f conftest.defines
6404 echo ' fi # grep' >>$CONFIG_STATUS
6405 echo >>$CONFIG_STATUS
6406
6407 # Break up conftest.undefs because some shells have a limit on the size
6408 # of here documents, and old seds have small limits too (100 cmds).
6409 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6410 rm -f conftest.tail
6411 while grep . conftest.undefs >/dev/null
6412 do
6413 # Write a limited-size here document to $tmp/undefs.sed.
6414 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6415 # Speed up: don't consider the non `#undef'
6416 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6417 # Work around the forget-to-reset-the-flag bug.
6418 echo 't clr' >>$CONFIG_STATUS
6419 echo ': clr' >>$CONFIG_STATUS
6420 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6421 echo 'CEOF
6422 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6423 rm -f $tmp/in
6424 mv $tmp/out $tmp/in
6425 ' >>$CONFIG_STATUS
6426 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6427 rm -f conftest.undefs
6428 mv conftest.tail conftest.undefs
6429 done
6430 rm -f conftest.undefs
6431
6432 cat >>$CONFIG_STATUS <<\_ACEOF
6433 # Let's still pretend it is `configure' which instantiates (i.e., don't
6434 # use $as_me), people would be surprised to read:
6435 # /* config.h. Generated by config.status. */
6436 if test x"$ac_file" = x-; then
6437 echo "/* Generated by configure. */" >$tmp/config.h
6438 else
6439 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6440 fi
6441 cat $tmp/in >>$tmp/config.h
6442 rm -f $tmp/in
6443 if test x"$ac_file" != x-; then
6444 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6445 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6446 echo "$as_me: $ac_file is unchanged" >&6;}
6447 else
6448 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450 X"$ac_file" : 'X\(//\)[^/]' \| \
6451 X"$ac_file" : 'X\(//\)$' \| \
6452 X"$ac_file" : 'X\(/\)' \| \
6453 . : '\(.\)' 2>/dev/null ||
6454 echo X"$ac_file" |
6455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6457 /^X\(\/\/\)$/{ s//\1/; q; }
6458 /^X\(\/\).*/{ s//\1/; q; }
6459 s/.*/./; q'`
6460 { if $as_mkdir_p; then
6461 mkdir -p "$ac_dir"
6462 else
6463 as_dir="$ac_dir"
6464 as_dirs=
6465 while test ! -d "$as_dir"; do
6466 as_dirs="$as_dir $as_dirs"
6467 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6469 X"$as_dir" : 'X\(//\)[^/]' \| \
6470 X"$as_dir" : 'X\(//\)$' \| \
6471 X"$as_dir" : 'X\(/\)' \| \
6472 . : '\(.\)' 2>/dev/null ||
6473 echo X"$as_dir" |
6474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6475 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6476 /^X\(\/\/\)$/{ s//\1/; q; }
6477 /^X\(\/\).*/{ s//\1/; q; }
6478 s/.*/./; q'`
6479 done
6480 test ! -n "$as_dirs" || mkdir $as_dirs
6481 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6482 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6483 { (exit 1); exit 1; }; }; }
6484
6485 rm -f $ac_file
6486 mv $tmp/config.h $ac_file
6487 fi
6488 else
6489 cat $tmp/config.h
6490 rm -f $tmp/config.h
6491 fi
6492 # Compute $ac_file's index in $config_headers.
6493 _am_stamp_count=1
6494 for _am_header in $config_headers :; do
6495 case $_am_header in
6496 $ac_file | $ac_file:* )
6497 break ;;
6498 * )
6499 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6500 esac
6501 done
6502 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6503 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6504 X$ac_file : 'X\(//\)[^/]' \| \
6505 X$ac_file : 'X\(//\)$' \| \
6506 X$ac_file : 'X\(/\)' \| \
6507 . : '\(.\)' 2>/dev/null ||
6508 echo X$ac_file |
6509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6510 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6511 /^X\(\/\/\)$/{ s//\1/; q; }
6512 /^X\(\/\).*/{ s//\1/; q; }
6513 s/.*/./; q'`/stamp-h$_am_stamp_count
6514 done
6515 _ACEOF
6516 cat >>$CONFIG_STATUS <<\_ACEOF
6517
6518 #
6519 # CONFIG_COMMANDS section.
6520 #
6521 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6522 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6523 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6524 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6525 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6526 X"$ac_dest" : 'X\(//\)[^/]' \| \
6527 X"$ac_dest" : 'X\(//\)$' \| \
6528 X"$ac_dest" : 'X\(/\)' \| \
6529 . : '\(.\)' 2>/dev/null ||
6530 echo X"$ac_dest" |
6531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6532 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6533 /^X\(\/\/\)$/{ s//\1/; q; }
6534 /^X\(\/\).*/{ s//\1/; q; }
6535 s/.*/./; q'`
6536 { if $as_mkdir_p; then
6537 mkdir -p "$ac_dir"
6538 else
6539 as_dir="$ac_dir"
6540 as_dirs=
6541 while test ! -d "$as_dir"; do
6542 as_dirs="$as_dir $as_dirs"
6543 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6545 X"$as_dir" : 'X\(//\)[^/]' \| \
6546 X"$as_dir" : 'X\(//\)$' \| \
6547 X"$as_dir" : 'X\(/\)' \| \
6548 . : '\(.\)' 2>/dev/null ||
6549 echo X"$as_dir" |
6550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6551 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6552 /^X\(\/\/\)$/{ s//\1/; q; }
6553 /^X\(\/\).*/{ s//\1/; q; }
6554 s/.*/./; q'`
6555 done
6556 test ! -n "$as_dirs" || mkdir $as_dirs
6557 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6558 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6559 { (exit 1); exit 1; }; }; }
6560
6561 ac_builddir=.
6562
6563 if test "$ac_dir" != .; then
6564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6565 # A "../" for each directory in $ac_dir_suffix.
6566 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6567 else
6568 ac_dir_suffix= ac_top_builddir=
6569 fi
6570
6571 case $srcdir in
6572 .) # No --srcdir option. We are building in place.
6573 ac_srcdir=.
6574 if test -z "$ac_top_builddir"; then
6575 ac_top_srcdir=.
6576 else
6577 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6578 fi ;;
6579 [\\/]* | ?:[\\/]* ) # Absolute path.
6580 ac_srcdir=$srcdir$ac_dir_suffix;
6581 ac_top_srcdir=$srcdir ;;
6582 *) # Relative path.
6583 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6584 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6585 esac
6586
6587 # Do not use `cd foo && pwd` to compute absolute paths, because
6588 # the directories may not exist.
6589 case `pwd` in
6590 .) ac_abs_builddir="$ac_dir";;
6591 *)
6592 case "$ac_dir" in
6593 .) ac_abs_builddir=`pwd`;;
6594 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6595 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6596 esac;;
6597 esac
6598 case $ac_abs_builddir in
6599 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6600 *)
6601 case ${ac_top_builddir}. in
6602 .) ac_abs_top_builddir=$ac_abs_builddir;;
6603 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6604 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6605 esac;;
6606 esac
6607 case $ac_abs_builddir in
6608 .) ac_abs_srcdir=$ac_srcdir;;
6609 *)
6610 case $ac_srcdir in
6611 .) ac_abs_srcdir=$ac_abs_builddir;;
6612 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6613 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6614 esac;;
6615 esac
6616 case $ac_abs_builddir in
6617 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6618 *)
6619 case $ac_top_srcdir in
6620 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6621 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6622 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6623 esac;;
6624 esac
6625
6626
6627 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6628 echo "$as_me: executing $ac_dest commands" >&6;}
6629 case $ac_dest in
6630 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6631 # Strip MF so we end up with the name of the file.
6632 mf=`echo "$mf" | sed -e 's/:.*$//'`
6633 # Check whether this is an Automake generated Makefile or not.
6634 # We used to match only the files named `Makefile.in', but
6635 # some people rename them; so instead we look at the file content.
6636 # Grep'ing the first line is not enough: some people post-process
6637 # each Makefile.in and add a new line on top of each file to say so.
6638 # So let's grep whole file.
6639 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6640 dirpart=`(dirname "$mf") 2>/dev/null ||
6641 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6642 X"$mf" : 'X\(//\)[^/]' \| \
6643 X"$mf" : 'X\(//\)$' \| \
6644 X"$mf" : 'X\(/\)' \| \
6645 . : '\(.\)' 2>/dev/null ||
6646 echo X"$mf" |
6647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6649 /^X\(\/\/\)$/{ s//\1/; q; }
6650 /^X\(\/\).*/{ s//\1/; q; }
6651 s/.*/./; q'`
6652 else
6653 continue
6654 fi
6655 # Extract the definition of DEPDIR, am__include, and am__quote
6656 # from the Makefile without running `make'.
6657 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6658 test -z "$DEPDIR" && continue
6659 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6660 test -z "am__include" && continue
6661 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6662 # When using ansi2knr, U may be empty or an underscore; expand it
6663 U=`sed -n 's/^U = //p' < "$mf"`
6664 # Find all dependency output files, they are included files with
6665 # $(DEPDIR) in their names. We invoke sed twice because it is the
6666 # simplest approach to changing $(DEPDIR) to its actual value in the
6667 # expansion.
6668 for file in `sed -n "
6669 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6670 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6671 # Make sure the directory exists.
6672 test -f "$dirpart/$file" && continue
6673 fdir=`(dirname "$file") 2>/dev/null ||
6674 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6675 X"$file" : 'X\(//\)[^/]' \| \
6676 X"$file" : 'X\(//\)$' \| \
6677 X"$file" : 'X\(/\)' \| \
6678 . : '\(.\)' 2>/dev/null ||
6679 echo X"$file" |
6680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6682 /^X\(\/\/\)$/{ s//\1/; q; }
6683 /^X\(\/\).*/{ s//\1/; q; }
6684 s/.*/./; q'`
6685 { if $as_mkdir_p; then
6686 mkdir -p $dirpart/$fdir
6687 else
6688 as_dir=$dirpart/$fdir
6689 as_dirs=
6690 while test ! -d "$as_dir"; do
6691 as_dirs="$as_dir $as_dirs"
6692 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6693 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6694 X"$as_dir" : 'X\(//\)[^/]' \| \
6695 X"$as_dir" : 'X\(//\)$' \| \
6696 X"$as_dir" : 'X\(/\)' \| \
6697 . : '\(.\)' 2>/dev/null ||
6698 echo X"$as_dir" |
6699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6700 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6701 /^X\(\/\/\)$/{ s//\1/; q; }
6702 /^X\(\/\).*/{ s//\1/; q; }
6703 s/.*/./; q'`
6704 done
6705 test ! -n "$as_dirs" || mkdir $as_dirs
6706 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6707 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6708 { (exit 1); exit 1; }; }; }
6709
6710 # echo "creating $dirpart/$file"
6711 echo '# dummy' > "$dirpart/$file"
6712 done
6713 done
6714 ;;
6715 esac
6716 done
6717 _ACEOF
6718
6719 cat >>$CONFIG_STATUS <<\_ACEOF
6720
6721 { (exit 0); exit 0; }
6722 _ACEOF
6723 chmod +x $CONFIG_STATUS
6724 ac_clean_files=$ac_clean_files_save
6725
6726
6727 # configure is writing to config.log, and then calls config.status.
6728 # config.status does its own redirection, appending to config.log.
6729 # Unfortunately, on DOS this fails, as config.log is still kept open
6730 # by configure, so config.status won't be able to write to it; its
6731 # output is simply discarded. So we exec the FD to /dev/null,
6732 # effectively closing config.log, so it can be properly (re)opened and
6733 # appended to by config.status. When coming back to configure, we
6734 # need to make the FD available again.
6735 if test "$no_create" != yes; then
6736 ac_cs_success=:
6737 ac_config_status_args=
6738 test "$silent" = yes &&
6739 ac_config_status_args="$ac_config_status_args --quiet"
6740 exec 5>/dev/null
6741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6742 exec 5>>config.log
6743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6744 # would make configure fail if this is the last instruction.
6745 $ac_cs_success || { (exit 1); exit 1; }
6746 fi
6747