2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for wmbatteries 0.1.2.
5 # Report bugs to <florian.krohs@informatik.uni-oldenburg.de>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
26 # Support unset when possible.
27 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
226 as_executable_p
="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix
=/usr
/local
256 ac_config_libobj_dir
=.
261 SHELL
=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME
='wmbatteries'
270 PACKAGE_TARNAME
='wmbatteries'
271 PACKAGE_VERSION
='0.1.2'
272 PACKAGE_STRING
='wmbatteries 0.1.2'
273 PACKAGE_BUGREPORT
='florian.krohs@informatik.uni-oldenburg.de'
275 ac_unique_file
="src/main.c"
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE LN_S CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIBRARY_PATH XCFLAGS XLFLAGS XLIBS DFLAGS OS SETGID_FLAGS LIBRARY_SEARCH_PATH HEADER_SEARCH_PATH EGREP LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures wmbatteries 0.1.2 to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
847 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
851 if test -n "$ac_init_help"; then
852 case $ac_init_help in
853 short | recursive
) echo "Configuration of wmbatteries 0.1.2:";;
858 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
859 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
860 --disable-dependency-tracking Speeds up one-time builds
861 --enable-dependency-tracking Do not reject slow dependency extractors
862 --enable-debug turn on debugging default
=on
865 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
866 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
867 --with-libs-from pass compiler flags to
look for libraries
868 --with-incs-from pass compiler flags to
look for header files
869 --with-x use the X Window System
871 Some influential environment variables
:
872 CC C compiler
command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
875 nonstandard directory
<lib dir
>
876 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
877 headers
in a nonstandard directory
<include dir
>
880 Use these variables to override the choices made by
`configure' or to help
881 it to find libraries and programs with nonstandard names/locations.
883 Report bugs to <florian.krohs@informatik.uni-oldenburg.de>.
887 if test "$ac_init_help" = "recursive"; then
888 # If there are subdirs, report their specific --help.
890 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
891 test -d $ac_dir || continue
894 if test "$ac_dir" != .; then
895 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
896 # A "../" for each directory in $ac_dir_suffix.
897 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
899 ac_dir_suffix= ac_top_builddir=
903 .) # No --srcdir option. We are building in place.
905 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
910 [\\/]* | ?:[\\/]* ) # Absolute path.
911 ac_srcdir=$srcdir$ac_dir_suffix;
912 ac_top_srcdir=$srcdir ;;
914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}.
&& pwd`
921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925 # Check for guested configure; otherwise get Cygnus style configure.
926 if test -f $ac_srcdir/configure.gnu; then
928 $SHELL $ac_srcdir/configure.gnu --help=recursive
929 elif test -f $ac_srcdir/configure; then
931 $SHELL $ac_srcdir/configure --help=recursive
932 elif test -f $ac_srcdir/configure.ac ||
933 test -f $ac_srcdir/configure.in; then
937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
946 wmbatteries configure 0.1.2
947 generated by GNU Autoconf 2.57
949 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
950 Free Software Foundation, Inc.
951 This configure script is free software; the Free Software Foundation
952 gives unlimited permission to copy, distribute and modify it.
958 This file contains any messages produced by compilers while
959 running configure, to aid debugging if configure makes a mistake.
961 It was created by wmbatteries $as_me 0.1.2, which was
962 generated by GNU Autoconf 2.57. Invocation command line was
973 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
974 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
975 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
976 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
977 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
979 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
980 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
982 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
983 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
984 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
985 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
986 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
987 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
988 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996 test -z "$as_dir" && as_dir=.
1012 # Keep a trace of the command line.
1013 # Strip out --no-create and --no-recursion so they do not pile up.
1014 # Strip out --silent because we don't want to record it for future runs.
1015 # Also quote any args containing shell meta-characters.
1016 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_must_keep_next=false
1027 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1031 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1032 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1035 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1037 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1038 if test $ac_must_keep_next = true; then
1039 ac_must_keep_next=false # Got value, back to normal.
1042 *=* | --config-cache | -C | -disable-* | --disable-* \
1043 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1044 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1045 | -with-* | --with-* | -without-* | --without-* | --x)
1046 case "$ac_configure_args0 " in
1047 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1050 -* ) ac_must_keep_next=true ;;
1053 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1054 # Get rid of the leading space.
1060 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1061 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1063 # When interrupted or exit'd, cleanup temporary files, and complete
1064 # config.log. We remove comments because anyway the quotes in there
1065 # would cause problems or look ugly.
1066 # WARNING: Be sure not to use single quotes in there, as some shells,
1067 # such as our DU 5.0 friend, will then `close
' the trap.
1068 trap 'exit_status
=$?
1069 # Save into config.log some information that might help in debugging.
1074 ## ---------------- ##
1075 ## Cache variables. ##
1076 ## ---------------- ##
1079 # The following way of writing the cache mishandles newlines in values,
1082 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1085 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1097 ## ----------------- ##
1098 ## Output variables. ##
1099 ## ----------------- ##
1102 for ac_var
in $ac_subst_vars
1104 eval ac_val
=$
`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1109 if test -n "$ac_subst_files"; then
1116 for ac_var
in $ac_subst_files
1118 eval ac_val
=$
`echo $ac_var`
1119 echo "$ac_var='"'"'$ac_val'"'"'"
1124 if test -s confdefs.h
; then
1131 sed "/^$/d" confdefs.h |
sort
1134 test "$ac_signal" != 0 &&
1135 echo "$as_me: caught signal $ac_signal"
1136 echo "$as_me: exit $exit_status"
1138 rm -f core core.
* *.core
&&
1139 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1142 for ac_signal in 1 2 13 15; do
1143 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1148 rm -rf conftest* confdefs.h
1149 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1152 # Predefined preprocessor variables.
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_NAME "$PACKAGE_NAME"
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_STRING "$PACKAGE_STRING"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179 # Let the site file select an alternate cache file if it wants to.
1180 # Prefer explicitly selected file to automatically selected ones.
1181 if test -z "$CONFIG_SITE"; then
1182 if test "x$prefix" != xNONE; then
1183 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1185 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1188 for ac_site_file in $CONFIG_SITE; do
1189 if test -r "$ac_site_file"; then
1190 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1191 echo "$as_me: loading site script $ac_site_file" >&6;}
1192 sed 's
/^
/|
/' "$ac_site_file" >&5
1197 if test -r "$cache_file"; then
1198 # Some versions of bash will fail to source /dev/null (special
1199 # files actually), so we avoid doing that.
1200 if test -f "$cache_file"; then
1201 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1202 echo "$as_me: loading cache $cache_file" >&6;}
1204 [\\/]* | ?:[\\/]* ) . $cache_file;;
1205 *) . ./$cache_file;;
1209 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1210 echo "$as_me: creating cache $cache_file" >&6;}
1214 # Check that the precious variables saved in the cache have kept the same
1216 ac_cache_corrupted=false
1217 for ac_var in `(set) 2>&1 |
1218 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1219 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1220 eval ac_new_set=\$ac_env_${ac_var}_set
1221 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1222 eval ac_new_val="\$ac_env_${ac_var}_value"
1223 case $ac_old_set,$ac_new_set in
1225 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1226 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1227 ac_cache_corrupted=: ;;
1229 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1234 if test "x$ac_old_val" != "x$ac_new_val"; then
1235 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1236 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1237 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1238 echo "$as_me: former value: $ac_old_val" >&2;}
1239 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1240 echo "$as_me: current value: $ac_new_val" >&2;}
1241 ac_cache_corrupted=:
1244 # Pass precious variables to config.status.
1245 if test "$ac_new_set" = set; then
1247 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1249 *) ac_arg=$ac_var=$ac_new_val ;;
1251 case " $ac_configure_args " in
1252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1253 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257 if $ac_cache_corrupted; then
1258 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1259 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1260 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1261 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1262 { (exit 1); exit 1; }; }
1266 ac_cpp='$CPP $CPPFLAGS'
1267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1268 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1299 if test -f $ac_dir/install-sh; then
1301 ac_install_sh="$ac_aux_dir/install-sh -c"
1303 elif test -f $ac_dir/install.sh; then
1305 ac_install_sh="$ac_aux_dir/install.sh -c"
1307 elif test -f $ac_dir/shtool; then
1309 ac_install_sh="$ac_aux_dir/shtool install -c"
1313 if test -z "$ac_aux_dir"; then
1314 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1315 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1316 { (exit 1); exit 1; }; }
1318 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1319 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1320 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1322 # Make sure we can run config.sub.
1323 $ac_config_sub sun4 >/dev/null 2>&1 ||
1324 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1325 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1326 { (exit 1); exit 1; }; }
1328 echo "$as_me:$LINENO: checking build system type" >&5
1329 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1330 if test "${ac_cv_build+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 ac_cv_build_alias=$build_alias
1334 test -z "$ac_cv_build_alias" &&
1335 ac_cv_build_alias=`$ac_config_guess`
1336 test -z "$ac_cv_build_alias" &&
1337 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1338 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1339 { (exit 1); exit 1; }; }
1340 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1341 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1342 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1343 { (exit 1); exit 1; }; }
1346 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1347 echo "${ECHO_T}$ac_cv_build" >&6
1349 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1350 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1351 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1354 echo "$as_me:$LINENO: checking host system type" >&5
1355 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1356 if test "${ac_cv_host+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 ac_cv_host_alias=$host_alias
1360 test -z "$ac_cv_host_alias" &&
1361 ac_cv_host_alias=$ac_cv_build_alias
1362 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1364 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1365 { (exit 1); exit 1; }; }
1368 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1369 echo "${ECHO_T}$ac_cv_host" >&6
1371 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1372 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1373 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1376 echo "$as_me:$LINENO: checking target system type" >&5
1377 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1378 if test "${ac_cv_target+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 ac_cv_target_alias=$target_alias
1382 test "x$ac_cv_target_alias" = "x" &&
1383 ac_cv_target_alias=$ac_cv_host_alias
1384 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1386 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1387 { (exit 1); exit 1; }; }
1390 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1391 echo "${ECHO_T}$ac_cv_target" >&6
1392 target=$ac_cv_target
1393 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1394 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1395 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1398 # The aliases save the names the user supplied, while $host etc.
1399 # will get canonicalized.
1400 test -n "$target_alias" &&
1401 test "$program_prefix$program_suffix$program_transform_name" = \
1403 program_prefix=${target_alias}-
1404 # Find a good install program. We prefer a C program (faster),
1405 # so one script is as good as another. But avoid the broken or
1406 # incompatible versions:
1407 # SysV /etc/install, /usr/sbin/install
1408 # SunOS /usr/etc/install
1409 # IRIX /sbin/install
1411 # AmigaOS /C/install, which installs bootblocks on floppy discs
1412 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1415 # ./install, which can be erroneously created by make from ./install.sh.
1416 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1417 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1418 if test -z "$INSTALL"; then
1419 if test "${ac_cv_path_install+set}" = set; then
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1426 test -z "$as_dir" && as_dir
=.
1427 # Account for people who put trailing slashes in PATH elements.
1429 .
/ | .
// |
/cC
/* | \
1430 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1433 # OSF1 and SCO ODT 3.0 have their own names for install.
1434 # Don't use installbsd from OSF since it installs stuff as root
1436 for ac_prog
in ginstall scoinst
install; do
1437 for ac_exec_ext
in '' $ac_executable_extensions; do
1438 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1439 if test $ac_prog = install &&
1440 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1441 # AIX install. It has an incompatible calling convention.
1443 elif test $ac_prog = install &&
1444 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1445 # program-specific install script used by HP pwplus--don't use.
1448 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1460 if test "${ac_cv_path_install+set}" = set; then
1461 INSTALL
=$ac_cv_path_install
1463 # As a last resort, use the slow shell script. We don't cache a
1464 # path for INSTALL within a source directory, because that will
1465 # break other packages using the cache if that directory is
1466 # removed, or if the path is relative.
1467 INSTALL
=$ac_install_sh
1470 echo "$as_me:$LINENO: result: $INSTALL" >&5
1471 echo "${ECHO_T}$INSTALL" >&6
1473 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1474 # It thinks the first close brace ends the variable substitution.
1475 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1477 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1479 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1481 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1482 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1485 echo timestamp
> conftest.
file
1486 # Do `set' in a subshell so we don't clobber the current shell's
1487 # arguments. Must try -L first in case configure is actually a
1488 # symlink; some systems play weird games with the mod time of symlinks
1489 # (eg FreeBSD returns the mod time of the symlink's containing
1492 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1493 if test "$*" = "X"; then
1495 set X
`ls -t $srcdir/configure conftest.file`
1498 if test "$*" != "X $srcdir/configure conftest.file" \
1499 && test "$*" != "X conftest.file $srcdir/configure"; then
1501 # If neither matched, then we have a broken ls. This can happen
1502 # if, for instance, CONFIG_SHELL is bash and it inherits a
1503 # broken ls alias from the environment. This has actually
1504 # happened. Such a system could not be considered "sane".
1505 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1506 alias in your environment" >&5
1507 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1508 alias in your environment" >&2;}
1509 { (exit 1); exit 1; }; }
1512 test "$2" = conftest.
file
1518 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1519 Check your system clock" >&5
1520 echo "$as_me: error: newly created file is older than distributed files!
1521 Check your system clock" >&2;}
1522 { (exit 1); exit 1; }; }
1524 echo "$as_me:$LINENO: result: yes" >&5
1525 echo "${ECHO_T}yes" >&6
1526 test "$program_prefix" != NONE
&&
1527 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1528 # Use a double $ so make ignores it.
1529 test "$program_suffix" != NONE
&&
1530 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1531 # Double any \ or $. echo might interpret backslashes.
1532 # By default was `s,x,x', remove it if useless.
1533 cat <<\_ACEOF
>conftest.
sed
1534 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1536 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1540 # expand $ac_aux_dir to an absolute path
1541 am_aux_dir
=`CDPATH=:; cd $ac_aux_dir && pwd`
1543 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1544 # Use eval to expand $SHELL
1545 if eval "$MISSING --run true"; then
1546 am_missing_run
="$MISSING --run "
1550 { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1551 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1554 for ac_prog
in gawk mawk nawk
awk
1556 # Extract the first word of "$ac_prog", so it can be a program name with args.
1557 set dummy
$ac_prog; ac_word
=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_AWK+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$AWK"; then
1564 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir
=.
1571 for ac_exec_ext
in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_AWK
="$ac_prog"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583 if test -n "$AWK"; then
1584 echo "$as_me:$LINENO: result: $AWK" >&5
1585 echo "${ECHO_T}$AWK" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 test -n "$AWK" && break
1594 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1595 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1596 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1597 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 cat >conftest.
make <<\_ACEOF
1602 @
echo 'ac_maketemp="$(MAKE)"'
1604 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1605 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1606 if test -n "$ac_maketemp"; then
1607 eval ac_cv_prog_make_
${ac_make}_set
=yes
1609 eval ac_cv_prog_make_
${ac_make}_set
=no
1613 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1614 echo "$as_me:$LINENO: result: yes" >&5
1615 echo "${ECHO_T}yes" >&6
1618 echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1620 SET_MAKE
="MAKE=${MAKE-make}"
1623 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1624 if test "${enable_dependency_tracking+set}" = set; then
1625 enableval
="$enable_dependency_tracking"
1628 if test "x$enable_dependency_tracking" != xno
; then
1629 am_depcomp
="$ac_aux_dir/depcomp"
1634 if test "x$enable_dependency_tracking" != xno; then
1645 rm -f .deps
2>/dev
/null
1646 mkdir .deps
2>/dev
/null
1647 if test -d .deps
; then
1650 # MS-DOS does not allow filenames that begin with a dot.
1653 rmdir .deps
2>/dev
/null
1656 # test to see if srcdir already configured
1657 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1658 test -f $srcdir/config.status
; then
1659 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1660 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1661 { (exit 1); exit 1; }; }
1664 # Define the identity of the package.
1665 PACKAGE
=$PACKAGE_NAME
1666 VERSION
=$PACKAGE_VERSION
1668 cat >>confdefs.h
<<_ACEOF
1669 #define PACKAGE "$PACKAGE"
1673 cat >>confdefs.h
<<_ACEOF
1674 #define VERSION "$VERSION"
1678 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1679 # the ones we care about.
1681 # Autoconf 2.50 always computes EXEEXT. However we need to be
1682 # compatible with 2.13, for now. So we always define EXEEXT, but we
1685 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1686 # requests that it be used. This is a bit dumb.
1690 # Some tools Automake needs.
1692 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1695 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1698 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1701 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1704 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1707 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1709 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1711 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
1713 # We need awk for the "check" target. The system "awk" is bad on
1721 ac_config_headers
="$ac_config_headers config.h"
1724 for ac_prog
in gawk mawk nawk
awk
1726 # Extract the first word of "$ac_prog", so it can be a program name with args.
1727 set dummy
$ac_prog; ac_word
=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_AWK+set}" = set; then
1731 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 if test -n "$AWK"; then
1734 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1740 test -z "$as_dir" && as_dir
=.
1741 for ac_exec_ext
in '' $ac_executable_extensions; do
1742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743 ac_cv_prog_AWK
="$ac_prog"
1744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 if test -n "$AWK"; then
1754 echo "$as_me:$LINENO: result: $AWK" >&5
1755 echo "${ECHO_T}$AWK" >&6
1757 echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1761 test -n "$AWK" && break
1765 ac_cpp
='$CPP $CPPFLAGS'
1766 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1769 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1771 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC
="$CC" # Let the user override the test.
1780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1784 test -z "$as_dir" && as_dir
=.
1785 for ac_exec_ext
in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1797 if test -n "$CC"; then
1798 echo "$as_me:$LINENO: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1806 if test -z "$ac_cv_prog_CC"; then
1808 # Extract the first word of "gcc", so it can be a program name with args.
1809 set dummy gcc
; ac_word
=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 if test -n "$ac_ct_CC"; then
1816 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1822 test -z "$as_dir" && as_dir
=.
1823 for ac_exec_ext
in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_CC
="gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1834 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1835 if test -n "$ac_ct_CC"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837 echo "${ECHO_T}$ac_ct_CC" >&6
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1851 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC
="$CC" # Let the user override the test.
1860 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir
=.
1865 for ac_exec_ext
in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1886 if test -z "$ac_cv_prog_CC"; then
1888 # Extract the first word of "cc", so it can be a program name with args.
1889 set dummy cc
; ac_word
=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1898 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1902 test -z "$as_dir" && as_dir
=.
1903 for ac_exec_ext
in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC
="cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1929 if test -z "$CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc
; ac_word
=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC
="$CC" # Let the user override the test.
1941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1945 test -z "$as_dir" && as_dir
=.
1946 for ac_exec_ext
in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1949 ac_prog_rejected
=yes
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 if test $ac_prog_rejected = yes; then
1960 # We found a bogon in the path, so make sure we never use it.
1961 set dummy
$ac_cv_prog_CC
1963 if test $# != 0; then
1964 # We chose a different compiler from the bogus one.
1965 # However, it has the same basename, so the bogon will be chosen
1966 # first if we set CC to just the basename; use the full file name.
1968 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC
="$CC" # Let the user override the test.
1997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir
=.
2002 for ac_exec_ext
in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2022 test -n "$CC" && break
2025 if test -z "$CC"; then
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy
$ac_prog; ac_word
=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC
="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$ac_ct_CC" && break
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO:" \
2081 "checking for C compiler version" >&5
2082 ac_compiler
=`set X $ac_compile; echo $2`
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2084 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2089 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2094 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2099 cat >conftest.
$ac_ext <<_ACEOF
2100 #line $LINENO "configure"
2103 cat confdefs.h
>>conftest.
$ac_ext
2104 cat >>conftest.
$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2115 ac_clean_files_save
=$ac_clean_files
2116 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2120 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2121 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2122 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2124 (eval $ac_link_default) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 # Find the output, starting from the most likely. This scheme is
2129 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2132 # Be careful to initialize this variable, since it used to be cached.
2133 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2135 # b.out is created by i960 compilers.
2136 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2138 test -f "$ac_file" ||
continue
2140 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2143 # This is the source file.
2146 # We found the default executable, but exeext='' is most
2150 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151 # FIXME: I believe we export ac_cv_exeext for Libtool,
2152 # but it would be cool to find out if it's true. Does anybody
2153 # maintain Libtool? --akim.
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.
$ac_ext >&5
2164 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: C compiler cannot create executables
2167 See \`config.log' for more details." >&2;}
2168 { (exit 77); exit 77; }; }
2171 ac_exeext
=$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_file" >&5
2173 echo "${ECHO_T}$ac_file" >&6
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2178 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2179 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2180 # If not cross compiling, check that we can run a simple program.
2181 if test "$cross_compiling" != yes; then
2182 if { ac_try
='./$ac_file'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2190 if test "$cross_compiling" = maybe
; then
2193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot run C compiled programs.
2197 If you meant to cross compile, use \`--host'.
2198 See \`config.log' for more details." >&2;}
2199 { (exit 1); exit 1; }; }
2203 echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6
2206 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2207 ac_clean_files
=$ac_clean_files_save
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2211 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2212 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2213 echo "${ECHO_T}$cross_compiling" >&6
2215 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2216 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2218 (eval $ac_link) 2>&5
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2224 # work properly (i.e., refer to `conftest.exe'), while it won't with
2226 for ac_file
in conftest.exe conftest conftest.
*; do
2227 test -f "$ac_file" ||
continue
2229 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2230 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2244 rm -f conftest
$ac_cv_exeext
2245 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2246 echo "${ECHO_T}$ac_cv_exeext" >&6
2248 rm -f conftest.
$ac_ext
2249 EXEEXT
=$ac_cv_exeext
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 cat >conftest.
$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2260 cat confdefs.h
>>conftest.
$ac_ext
2261 cat >>conftest.
$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2280 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2281 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.
$ac_ext >&5
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT
=$ac_cv_objext
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.
$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2311 cat confdefs.h
>>conftest.
$ac_ext
2312 cat >>conftest.
$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2326 rm -f conftest.
$ac_objext
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try
='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.
$ac_ext >&5
2345 rm -f conftest.
$ac_objext conftest.
$ac_ext
2346 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2349 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2350 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2351 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2352 ac_test_CFLAGS
=${CFLAGS+set}
2353 ac_save_CFLAGS
=$CFLAGS
2355 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cc_g+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat >conftest.
$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2364 cat confdefs.h
>>conftest.
$ac_ext
2365 cat >>conftest.
$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2376 rm -f conftest.
$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try
='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.
$ac_ext >&5
2395 rm -f conftest.
$ac_objext conftest.
$ac_ext
2397 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2398 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2399 if test "$ac_test_CFLAGS" = set; then
2400 CFLAGS
=$ac_save_CFLAGS
2401 elif test $ac_cv_prog_cc_g = yes; then
2402 if test "$GCC" = yes; then
2408 if test "$GCC" = yes; then
2414 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2415 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 ac_cv_prog_cc_stdc
=no
2421 cat >conftest.
$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2425 cat confdefs.h
>>conftest.
$ac_ext
2426 cat >>conftest.
$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2430 #include <sys/types.h>
2431 #include <sys/stat.h>
2432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2433 struct buf { int x; };
2434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2435 static char *e (p, i)
2441 static char *f (char * (*g) (char **, int), char **p, ...)
2446 s = g (p, va_arg (v,int));
2450 int test (int i, double x);
2451 struct s1 {int (*f) (int a);};
2452 struct s2 {int (*f) (double a);};
2453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2464 # Don't try gcc -ansi; that turns off useful extensions and
2465 # breaks some systems' header files.
2466 # AIX -qlanglvl=ansi
2467 # Ultrix and OSF/1 -std1
2468 # HP-UX 10.20 and later -Ae
2469 # HP-UX older versions -Aa -D_HPUX_SOURCE
2470 # SVR4 -Xc -D__EXTENSIONS__
2471 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2473 CC
="$ac_save_CC $ac_arg"
2474 rm -f conftest.
$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try
='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_stdc
=$ac_arg
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.
$ac_ext >&5
2493 rm -f conftest.
$ac_objext
2495 rm -f conftest.
$ac_ext conftest.
$ac_objext
2500 case "x$ac_cv_prog_cc_stdc" in
2502 echo "$as_me:$LINENO: result: none needed" >&5
2503 echo "${ECHO_T}none needed" >&6 ;;
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2510 # Some people use a C++ compiler to compile C. Since we use `exit',
2511 # in C++ we need to declare it. In case someone uses the same compiler
2512 # for both compiling C and C++ we need to have the C++ compiler decide
2513 # the declaration of exit, since it's the most demanding environment.
2514 cat >conftest.
$ac_ext <<_ACEOF
2519 rm -f conftest.
$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try
='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 for ac_declaration
in \
2533 '#include <stdlib.h>' \
2534 'extern "C" void std::exit (int) throw (); using std::exit;' \
2535 'extern "C" void std::exit (int); using std::exit;' \
2536 'extern "C" void exit (int) throw ();' \
2537 'extern "C" void exit (int);' \
2540 cat >conftest.
$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2544 cat confdefs.h
>>conftest.
$ac_ext
2545 cat >>conftest.
$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2557 rm -f conftest.
$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try
='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.
$ac_ext >&5
2576 rm -f conftest.
$ac_objext conftest.
$ac_ext
2577 cat >conftest.
$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2581 cat confdefs.h
>>conftest.
$ac_ext
2582 cat >>conftest.
$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2593 rm -f conftest.
$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try
='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.
$ac_ext >&5
2611 rm -f conftest.
$ac_objext conftest.
$ac_ext
2614 if test -n "$ac_declaration"; then
2615 echo '#ifdef __cplusplus' >>confdefs.h
2616 echo $ac_declaration >>confdefs.h
2617 echo '#endif' >>confdefs.h
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.
$ac_ext >&5
2625 rm -f conftest.
$ac_objext conftest.
$ac_ext
2627 ac_cpp
='$CPP $CPPFLAGS'
2628 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2632 ac_config_commands
="$ac_config_commands default-1"
2634 am_make
=${MAKE-make}
2635 cat > confinc
<< 'END'
2639 # If we don't find an include directive, just comment out the code.
2640 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2641 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2645 # First try GNU make style include.
2646 echo "include confinc" > confmf
2647 # We grep out `Entering directory' and `Leaving directory'
2648 # messages which can occur if `w' ends up in MAKEFLAGS.
2649 # In particular we don't look at `^make:' because GNU make might
2650 # be invoked under some other name (usually "gmake"), in which
2651 # case it prints its new name instead of `make'.
2652 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2657 # Now try BSD make style include.
2658 if test "$am__include" = "#"; then
2659 echo '.include "confinc"' > confmf
2660 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2661 am__include
=.include
2668 echo "$as_me:$LINENO: result: $_am_result" >&5
2669 echo "${ECHO_T}$_am_result" >&6
2670 rm -f confinc confmf
2673 depcc
="$CC" am_compiler_list
=
2675 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2676 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2677 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2681 # We make a subdir and do the tests there. Otherwise we can end up
2682 # making bogus files that we don't know about and never remove. For
2683 # instance it was reported that on HP-UX the gcc test will end up
2684 # making a dummy file named `D' -- because `-MD' means `put the output
2687 # Copy depcomp to subdir because otherwise we won't find it if we're
2688 # using a relative directory.
2689 cp "$am_depcomp" conftest.dir
2692 am_cv_CC_dependencies_compiler_type
=none
2693 if test "$am_compiler_list" = ""; then
2694 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2696 for depmode
in $am_compiler_list; do
2697 # We need to recreate these files for each test, as the compiler may
2698 # overwrite some of them when testing with obscure command lines.
2699 # This happens at least with the AIX C compiler.
2700 echo '#include "conftest.h"' > conftest.c
2701 echo 'int i;' > conftest.h
2702 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2706 # after this tag, mechanisms are not by side-effect, so they'll
2707 # only be used when explicitly requested
2708 if test "x$enable_dependency_tracking" = xyes
; then
2716 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2717 # mode. It turns out that the SunPro C++ compiler does not properly
2718 # handle `-M -o', and we need to detect this.
2719 if depmode
=$depmode \
2720 source=conftest.c object
=conftest.o \
2721 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2722 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2723 grep conftest.h conftest.Po
> /dev
/null
2>&1 &&
2724 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
2725 am_cv_CC_dependencies_compiler_type
=$depmode
2733 am_cv_CC_dependencies_compiler_type
=none
2737 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2738 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2739 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2742 # Find a good install program. We prefer a C program (faster),
2743 # so one script is as good as another. But avoid the broken or
2744 # incompatible versions:
2745 # SysV /etc/install, /usr/sbin/install
2746 # SunOS /usr/etc/install
2747 # IRIX /sbin/install
2749 # AmigaOS /C/install, which installs bootblocks on floppy discs
2750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2753 # ./install, which can be erroneously created by make from ./install.sh.
2754 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2755 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2756 if test -z "$INSTALL"; then
2757 if test "${ac_cv_path_install+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir
=.
2765 # Account for people who put trailing slashes in PATH elements.
2767 .
/ | .
// |
/cC
/* | \
2768 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2771 # OSF1 and SCO ODT 3.0 have their own names for install.
2772 # Don't use installbsd from OSF since it installs stuff as root
2774 for ac_prog
in ginstall scoinst
install; do
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2777 if test $ac_prog = install &&
2778 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2779 # AIX install. It has an incompatible calling convention.
2781 elif test $ac_prog = install &&
2782 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2783 # program-specific install script used by HP pwplus--don't use.
2786 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2798 if test "${ac_cv_path_install+set}" = set; then
2799 INSTALL
=$ac_cv_path_install
2801 # As a last resort, use the slow shell script. We don't cache a
2802 # path for INSTALL within a source directory, because that will
2803 # break other packages using the cache if that directory is
2804 # removed, or if the path is relative.
2805 INSTALL
=$ac_install_sh
2808 echo "$as_me:$LINENO: result: $INSTALL" >&5
2809 echo "${ECHO_T}$INSTALL" >&6
2811 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2812 # It thinks the first close brace ends the variable substitution.
2813 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2815 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2817 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2819 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2820 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2822 if test "$LN_S" = "ln -s"; then
2823 echo "$as_me:$LINENO: result: yes" >&5
2824 echo "${ECHO_T}yes" >&6
2826 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2827 echo "${ECHO_T}no, using $LN_S" >&6
2832 # Check whether --with-libs-from or --without-libs-from was given.
2833 if test "${with_libs_from+set}" = set; then
2834 withval
="$with_libs_from"
2835 lib_search_path
="$withval $lib_search_path"
2839 # Check whether --with-incs-from or --without-incs-from was given.
2840 if test "${with_incs_from+set}" = set; then
2841 withval
="$with_incs_from"
2842 inc_search_path
="$withval $inc_search_path"
2849 ac_cpp
='$CPP $CPPFLAGS'
2850 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2853 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2854 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2855 # On Suns, sometimes $CPP names a directory.
2856 if test -n "$CPP" && test -d "$CPP"; then
2859 if test -z "$CPP"; then
2860 if test "${ac_cv_prog_CPP+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 # Double quotes because CPP needs to be expanded
2864 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2867 for ac_c_preproc_warn_flag
in '' yes
2869 # Use a header file that comes with gcc, so configuring glibc
2870 # with a fresh cross-compiler works.
2871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2872 # <limits.h> exists even on freestanding compilers.
2873 # On the NeXT, cc -E runs the code through the compiler's parser,
2874 # not just through cpp. "Syntax error" is here to catch this case.
2875 cat >conftest.
$ac_ext <<_ACEOF
2876 #line $LINENO "configure"
2879 cat confdefs.h
>>conftest.
$ac_ext
2880 cat >>conftest.
$ac_ext <<_ACEOF
2881 /* end confdefs.h. */
2883 # include <limits.h>
2885 # include <assert.h>
2889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2892 grep -v '^ *+' conftest.er1
>conftest.err
2894 cat conftest.err
>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev
/null
; then
2897 if test -s conftest.err
; then
2898 ac_cpp_err
=$ac_c_preproc_warn_flag
2905 if test -z "$ac_cpp_err"; then
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.
$ac_ext >&5
2911 # Broken: fails on valid input.
2914 rm -f conftest.err conftest.
$ac_ext
2916 # OK, works on sane cases. Now check whether non-existent headers
2917 # can be detected and how.
2918 cat >conftest.
$ac_ext <<_ACEOF
2919 #line $LINENO "configure"
2922 cat confdefs.h
>>conftest.
$ac_ext
2923 cat >>conftest.
$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2925 #include <ac_nonexistent.h>
2927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2930 grep -v '^ *+' conftest.er1
>conftest.err
2932 cat conftest.err
>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev
/null
; then
2935 if test -s conftest.err
; then
2936 ac_cpp_err
=$ac_c_preproc_warn_flag
2943 if test -z "$ac_cpp_err"; then
2944 # Broken: success on invalid input.
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.
$ac_ext >&5
2950 # Passes both tests.
2954 rm -f conftest.err conftest.
$ac_ext
2957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2958 rm -f conftest.err conftest.
$ac_ext
2959 if $ac_preproc_ok; then
2971 echo "$as_me:$LINENO: result: $CPP" >&5
2972 echo "${ECHO_T}$CPP" >&6
2974 for ac_c_preproc_warn_flag
in '' yes
2976 # Use a header file that comes with gcc, so configuring glibc
2977 # with a fresh cross-compiler works.
2978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2979 # <limits.h> exists even on freestanding compilers.
2980 # On the NeXT, cc -E runs the code through the compiler's parser,
2981 # not just through cpp. "Syntax error" is here to catch this case.
2982 cat >conftest.
$ac_ext <<_ACEOF
2983 #line $LINENO "configure"
2986 cat confdefs.h
>>conftest.
$ac_ext
2987 cat >>conftest.
$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2990 # include <limits.h>
2992 # include <assert.h>
2996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2999 grep -v '^ *+' conftest.er1
>conftest.err
3001 cat conftest.err
>&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev
/null
; then
3004 if test -s conftest.err
; then
3005 ac_cpp_err
=$ac_c_preproc_warn_flag
3012 if test -z "$ac_cpp_err"; then
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.
$ac_ext >&5
3018 # Broken: fails on valid input.
3021 rm -f conftest.err conftest.
$ac_ext
3023 # OK, works on sane cases. Now check whether non-existent headers
3024 # can be detected and how.
3025 cat >conftest.
$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3029 cat confdefs.h
>>conftest.
$ac_ext
3030 cat >>conftest.
$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <ac_nonexistent.h>
3034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3037 grep -v '^ *+' conftest.er1
>conftest.err
3039 cat conftest.err
>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev
/null
; then
3042 if test -s conftest.err
; then
3043 ac_cpp_err
=$ac_c_preproc_warn_flag
3050 if test -z "$ac_cpp_err"; then
3051 # Broken: success on invalid input.
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.
$ac_ext >&5
3057 # Passes both tests.
3061 rm -f conftest.err conftest.
$ac_ext
3064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065 rm -f conftest.err conftest.
$ac_ext
3066 if $ac_preproc_ok; then
3069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3070 See \`config.log' for more details." >&5
3071 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3072 See \`config.log' for more details." >&2;}
3073 { (exit 1); exit 1; }; }
3077 ac_cpp
='$CPP $CPPFLAGS'
3078 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3083 echo "$as_me:$LINENO: checking for X" >&5
3084 echo $ECHO_N "checking for X... $ECHO_C" >&6
3087 # Check whether --with-x or --without-x was given.
3088 if test "${with_x+set}" = set; then
3092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3093 if test "x$with_x" = xno
; then
3094 # The user explicitly disabled X.
3097 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3098 # Both variables are already set.
3101 if test "${ac_cv_have_x+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 # One or both of the vars are not set, and there is no cached value.
3105 ac_x_includes
=no ac_x_libraries
=no
3107 if mkdir conftest.dir
; then
3109 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3110 cat >Imakefile
<<'_ACEOF'
3112 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3114 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3116 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3117 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3118 for ac_extension
in a so sl
; do
3119 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3120 test -f $ac_im_libdir/libX11.
$ac_extension; then
3121 ac_im_usrlibdir
=$ac_im_libdir; break
3124 # Screen out bogus values from the imake configuration. They are
3125 # bogus both because they are the default anyway, and because
3126 # using them would break gcc on systems where it needs fixed includes.
3127 case $ac_im_incroot in
3129 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3131 case $ac_im_usrlibdir in
3133 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3140 # Standard set of common directories for X headers.
3141 # Check X11 before X11Rn because it is often a symlink to the current release.
3153 /usr/local/X11/include
3154 /usr/local/X11R6/include
3155 /usr/local/X11R5/include
3156 /usr/local/X11R4/include
3158 /usr/local/include/X11
3159 /usr/local/include/X11R6
3160 /usr/local/include/X11R5
3161 /usr/local/include/X11R4
3165 /usr/XFree86/include/X11
3169 /usr/unsupported/include
3171 /usr/local/x11r5/include
3172 /usr/lpp/Xamples/include
3174 /usr/openwin/include
3175 /usr/openwin/share/include'
3177 if test "$ac_x_includes" = no
; then
3178 # Guess where to find include files, by looking for Intrinsic.h.
3179 # First, try using that file with no special directory specified.
3180 cat >conftest.
$ac_ext <<_ACEOF
3181 #line $LINENO "configure"
3184 cat confdefs.h
>>conftest.
$ac_ext
3185 cat >>conftest.
$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3187 #include <X11/Intrinsic.h>
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3192 grep -v '^ *+' conftest.er1
>conftest.err
3194 cat conftest.err
>&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } >/dev
/null
; then
3197 if test -s conftest.err
; then
3198 ac_cpp_err
=$ac_c_preproc_warn_flag
3205 if test -z "$ac_cpp_err"; then
3206 # We can compile using X headers with no special include directory.
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.
$ac_ext >&5
3212 for ac_dir
in $ac_x_header_dirs; do
3213 if test -r "$ac_dir/X11/Intrinsic.h"; then
3214 ac_x_includes
=$ac_dir
3219 rm -f conftest.err conftest.
$ac_ext
3220 fi # $ac_x_includes = no
3222 if test "$ac_x_libraries" = no
; then
3223 # Check for the libraries.
3224 # See if we find them without any special options.
3225 # Don't add to $LIBS permanently.
3228 cat >conftest.
$ac_ext <<_ACEOF
3229 #line $LINENO "configure"
3232 cat confdefs.h
>>conftest.
$ac_ext
3233 cat >>conftest.
$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <X11/Intrinsic.h>
3244 rm -f conftest.
$ac_objext conftest
$ac_exeext
3245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3246 (eval $ac_link) 2>&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try
='test -s conftest$ac_exeext'
3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3257 # We can link X programs with no special library path.
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.
$ac_ext >&5
3264 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3266 # Don't even attempt the hair of trying to link an X program!
3267 for ac_extension
in a so sl
; do
3268 if test -r $ac_dir/libXt.
$ac_extension; then
3269 ac_x_libraries
=$ac_dir
3275 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3276 fi # $ac_x_libraries = no
3278 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3279 # Didn't find X anywhere. Cache the known absence of X.
3280 ac_cv_have_x
="have_x=no"
3282 # Record where we found X for the cache.
3283 ac_cv_have_x
="have_x=yes \
3284 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3289 eval "$ac_cv_have_x"
3292 if test "$have_x" != yes; then
3293 echo "$as_me:$LINENO: result: $have_x" >&5
3294 echo "${ECHO_T}$have_x" >&6
3297 # If each of the values was on the command line, it overrides each guess.
3298 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3299 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3300 # Update the cache value to reflect the command line values.
3301 ac_cv_have_x
="have_x=yes \
3302 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3303 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3304 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3307 if test "$no_x" = yes; then
3308 # Not all programs may use this symbol, but it does not hurt to define it.
3310 cat >>confdefs.h
<<\_ACEOF
3311 #define X_DISPLAY_MISSING 1
3314 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3316 if test -n "$x_includes"; then
3317 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3320 # It would also be nice to do this for all -L options, not just this one.
3321 if test -n "$x_libraries"; then
3322 X_LIBS
="$X_LIBS -L$x_libraries"
3323 # For Solaris; some versions of Sun CC require a space after -R and
3324 # others require no space. Words are not sufficient . . . .
3325 case `(uname -sr) 2>/dev/null` in
3327 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3328 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3329 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3330 cat >conftest.
$ac_ext <<_ACEOF
3331 #line $LINENO "configure"
3334 cat confdefs.h
>>conftest.
$ac_ext
3335 cat >>conftest.
$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3346 rm -f conftest.
$ac_objext conftest
$ac_exeext
3347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3348 (eval $ac_link) 2>&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } &&
3352 { ac_try
='test -s conftest$ac_exeext'
3353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3360 echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.
$ac_ext >&5
3365 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3366 if test $ac_R_nospace = yes; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3369 X_LIBS
="$X_LIBS -R$x_libraries"
3371 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3372 cat >conftest.
$ac_ext <<_ACEOF
3373 #line $LINENO "configure"
3376 cat confdefs.h
>>conftest.
$ac_ext
3377 cat >>conftest.
$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3388 rm -f conftest.
$ac_objext conftest
$ac_exeext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3390 (eval $ac_link) 2>&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
3394 { ac_try
='test -s conftest$ac_exeext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.
$ac_ext >&5
3407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3408 if test $ac_R_space = yes; then
3409 echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6
3411 X_LIBS
="$X_LIBS -R $x_libraries"
3413 echo "$as_me:$LINENO: result: neither works" >&5
3414 echo "${ECHO_T}neither works" >&6
3421 # Check for system-dependent libraries X programs must link with.
3422 # Do this before checking for the system-independent R6 libraries
3423 # (-lICE), since we may need -lsocket or whatever for X linking.
3425 if test "$ISC" = yes; then
3426 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3428 # Martyn Johnson says this is needed for Ultrix, if the X
3429 # libraries were built with DECnet support. And Karl Berry says
3430 # the Alpha needs dnet_stub (dnet does not exist).
3431 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3432 cat >conftest.
$ac_ext <<_ACEOF
3433 #line $LINENO "configure"
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 /* Override any gcc2 internal prototype to avoid an error. */
3444 /* We use char because int might match the return type of a gcc2
3445 builtin and then its argument prototype would still apply. */
3446 char XOpenDisplay ();
3455 rm -f conftest.
$ac_objext conftest
$ac_exeext
3456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3457 (eval $ac_link) 2>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } &&
3461 { ac_try
='test -s conftest$ac_exeext'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; }; then
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.
$ac_ext >&5
3472 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3473 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3474 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_check_lib_save_LIBS
=$LIBS
3479 cat >conftest.
$ac_ext <<_ACEOF
3480 #line $LINENO "configure"
3483 cat confdefs.h
>>conftest.
$ac_ext
3484 cat >>conftest.
$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3502 rm -f conftest.
$ac_objext conftest
$ac_exeext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3504 (eval $ac_link) 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try
='test -s conftest$ac_exeext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_lib_dnet_dnet_ntoa
=yes
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.
$ac_ext >&5
3519 ac_cv_lib_dnet_dnet_ntoa
=no
3521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3522 LIBS
=$ac_check_lib_save_LIBS
3524 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3525 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3526 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3527 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3530 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3531 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3532 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3533 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 ac_check_lib_save_LIBS
=$LIBS
3537 LIBS
="-ldnet_stub $LIBS"
3538 cat >conftest.
$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3542 cat confdefs.h
>>conftest.
$ac_ext
3543 cat >>conftest.
$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3546 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3561 rm -f conftest.
$ac_objext conftest
$ac_exeext
3562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3563 (eval $ac_link) 2>&5
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
3567 { ac_try
='test -s conftest$ac_exeext'
3568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }; }; then
3573 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.
$ac_ext >&5
3578 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3580 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3581 LIBS
=$ac_check_lib_save_LIBS
3583 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3584 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3585 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3586 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3591 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3592 LIBS
="$ac_xsave_LIBS"
3594 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3595 # to get the SysV transport functions.
3596 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3598 # The nsl library prevents programs from opening the X display
3599 # on Irix 5.2, according to T.E. Dickey.
3600 # The functions gethostbyname, getservbyname, and inet_addr are
3601 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3602 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3603 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3604 if test "${ac_cv_func_gethostbyname+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 cat >conftest.
$ac_ext <<_ACEOF
3608 #line $LINENO "configure"
3611 cat confdefs.h
>>conftest.
$ac_ext
3612 cat >>conftest.
$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3614 /* System header to define __stub macros and hopefully few prototypes,
3615 which can conflict with char gethostbyname (); below.
3616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3617 <limits.h> exists even on freestanding compilers. */
3619 # include <limits.h>
3621 # include <assert.h>
3623 /* Override any gcc2 internal prototype to avoid an error. */
3628 /* We use char because int might match the return type of a gcc2
3629 builtin and then its argument prototype would still apply. */
3630 char gethostbyname ();
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3637 char (*f) () = gethostbyname;
3646 return f != gethostbyname;
3651 rm -f conftest.
$ac_objext conftest
$ac_exeext
3652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3653 (eval $ac_link) 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try
='test -s conftest$ac_exeext'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_func_gethostbyname
=yes
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.
$ac_ext >&5
3668 ac_cv_func_gethostbyname
=no
3670 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3672 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3673 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3675 if test $ac_cv_func_gethostbyname = no
; then
3676 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3677 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3678 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 ac_check_lib_save_LIBS
=$LIBS
3683 cat >conftest.
$ac_ext <<_ACEOF
3684 #line $LINENO "configure"
3687 cat confdefs.h
>>conftest.
$ac_ext
3688 cat >>conftest.
$ac_ext <<_ACEOF
3689 /* end confdefs.h. */
3691 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3697 char gethostbyname ();
3706 rm -f conftest.
$ac_objext conftest
$ac_exeext
3707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708 (eval $ac_link) 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try
='test -s conftest$ac_exeext'
3713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; }; then
3718 ac_cv_lib_nsl_gethostbyname
=yes
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.
$ac_ext >&5
3723 ac_cv_lib_nsl_gethostbyname
=no
3725 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3726 LIBS
=$ac_check_lib_save_LIBS
3728 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3729 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3730 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3731 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3734 if test $ac_cv_lib_nsl_gethostbyname = no
; then
3735 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3736 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3737 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_check_lib_save_LIBS
=$LIBS
3742 cat >conftest.
$ac_ext <<_ACEOF
3743 #line $LINENO "configure"
3746 cat confdefs.h
>>conftest.
$ac_ext
3747 cat >>conftest.
$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 /* Override any gcc2 internal prototype to avoid an error. */
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3756 char gethostbyname ();
3765 rm -f conftest.
$ac_objext conftest
$ac_exeext
3766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767 (eval $ac_link) 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try
='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_lib_bsd_gethostbyname
=yes
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.
$ac_ext >&5
3782 ac_cv_lib_bsd_gethostbyname
=no
3784 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3785 LIBS
=$ac_check_lib_save_LIBS
3787 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3788 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3789 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3790 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
3796 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3797 # socket/setsockopt and other routines are undefined under SCO ODT
3798 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3799 # on later versions), says Simon Leinen: it contains gethostby*
3800 # variants that don't use the name server (or something). -lsocket
3801 # must be given before -lnsl if both are needed. We assume that
3802 # if connect needs -lnsl, so does gethostbyname.
3803 echo "$as_me:$LINENO: checking for connect" >&5
3804 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3805 if test "${ac_cv_func_connect+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.
$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3812 cat confdefs.h
>>conftest.
$ac_ext
3813 cat >>conftest.
$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 /* System header to define __stub macros and hopefully few prototypes,
3816 which can conflict with char connect (); below.
3817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 <limits.h> exists even on freestanding compilers. */
3820 # include <limits.h>
3822 # include <assert.h>
3824 /* Override any gcc2 internal prototype to avoid an error. */
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_connect) || defined (__stub___connect)
3838 char (*f) () = connect;
3847 return f != connect;
3852 rm -f conftest.
$ac_objext conftest
$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try
='test -s conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_func_connect
=yes
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.
$ac_ext >&5
3869 ac_cv_func_connect
=no
3871 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3873 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3874 echo "${ECHO_T}$ac_cv_func_connect" >&6
3876 if test $ac_cv_func_connect = no
; then
3877 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3878 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3879 if test "${ac_cv_lib_socket_connect+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 ac_check_lib_save_LIBS
=$LIBS
3883 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3884 cat >conftest.
$ac_ext <<_ACEOF
3885 #line $LINENO "configure"
3888 cat confdefs.h
>>conftest.
$ac_ext
3889 cat >>conftest.
$ac_ext <<_ACEOF
3890 /* end confdefs.h. */
3892 /* Override any gcc2 internal prototype to avoid an error. */
3896 /* We use char because int might match the return type of a gcc2
3897 builtin and then its argument prototype would still apply. */
3907 rm -f conftest.
$ac_objext conftest
$ac_exeext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3909 (eval $ac_link) 2>&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); } &&
3913 { ac_try
='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_lib_socket_connect
=yes
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.
$ac_ext >&5
3924 ac_cv_lib_socket_connect
=no
3926 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3927 LIBS
=$ac_check_lib_save_LIBS
3929 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3930 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3931 if test $ac_cv_lib_socket_connect = yes; then
3932 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3937 # Guillermo Gomez says -lposix is necessary on A/UX.
3938 echo "$as_me:$LINENO: checking for remove" >&5
3939 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3940 if test "${ac_cv_func_remove+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3943 cat >conftest.
$ac_ext <<_ACEOF
3944 #line $LINENO "configure"
3947 cat confdefs.h
>>conftest.
$ac_ext
3948 cat >>conftest.
$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3950 /* System header to define __stub macros and hopefully few prototypes,
3951 which can conflict with char remove (); below.
3952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3953 <limits.h> exists even on freestanding compilers. */
3955 # include <limits.h>
3957 # include <assert.h>
3959 /* Override any gcc2 internal prototype to avoid an error. */
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3967 /* The GNU C library defines this for functions which it implements
3968 to always fail with ENOSYS. Some functions are actually named
3969 something starting with __ and the normal name is an alias. */
3970 #if defined (__stub_remove) || defined (__stub___remove)
3973 char (*f) () = remove;
3987 rm -f conftest.
$ac_objext conftest
$ac_exeext
3988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989 (eval $ac_link) 2>&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try
='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_func_remove
=yes
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.
$ac_ext >&5
4004 ac_cv_func_remove
=no
4006 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4008 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4009 echo "${ECHO_T}$ac_cv_func_remove" >&6
4011 if test $ac_cv_func_remove = no
; then
4012 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4013 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4014 if test "${ac_cv_lib_posix_remove+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 ac_check_lib_save_LIBS
=$LIBS
4018 LIBS
="-lposix $LIBS"
4019 cat >conftest.
$ac_ext <<_ACEOF
4020 #line $LINENO "configure"
4023 cat confdefs.h
>>conftest.
$ac_ext
4024 cat >>conftest.
$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4027 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4042 rm -f conftest.
$ac_objext conftest
$ac_exeext
4043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4044 (eval $ac_link) 2>&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } &&
4048 { ac_try
='test -s conftest$ac_exeext'
4049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053 (exit $ac_status); }; }; then
4054 ac_cv_lib_posix_remove
=yes
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.
$ac_ext >&5
4059 ac_cv_lib_posix_remove
=no
4061 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4062 LIBS
=$ac_check_lib_save_LIBS
4064 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4065 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4066 if test $ac_cv_lib_posix_remove = yes; then
4067 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4072 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4073 echo "$as_me:$LINENO: checking for shmat" >&5
4074 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4075 if test "${ac_cv_func_shmat+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.
$ac_ext <<_ACEOF
4079 #line $LINENO "configure"
4082 cat confdefs.h
>>conftest.
$ac_ext
4083 cat >>conftest.
$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 /* System header to define __stub macros and hopefully few prototypes,
4086 which can conflict with char shmat (); below.
4087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 <limits.h> exists even on freestanding compilers. */
4090 # include <limits.h>
4092 # include <assert.h>
4094 /* Override any gcc2 internal prototype to avoid an error. */
4099 /* We use char because int might match the return type of a gcc2
4100 builtin and then its argument prototype would still apply. */
4102 /* The GNU C library defines this for functions which it implements
4103 to always fail with ENOSYS. Some functions are actually named
4104 something starting with __ and the normal name is an alias. */
4105 #if defined (__stub_shmat) || defined (__stub___shmat)
4108 char (*f) () = shmat;
4122 rm -f conftest.
$ac_objext conftest
$ac_exeext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4124 (eval $ac_link) 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try
='test -s conftest$ac_exeext'
4129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4134 ac_cv_func_shmat
=yes
4136 echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.
$ac_ext >&5
4141 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4143 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4144 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4146 if test $ac_cv_func_shmat = no
; then
4147 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4148 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4149 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 ac_check_lib_save_LIBS
=$LIBS
4154 cat >conftest.
$ac_ext <<_ACEOF
4155 #line $LINENO "configure"
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4162 /* Override any gcc2 internal prototype to avoid an error. */
4166 /* We use char because int might match the return type of a gcc2
4167 builtin and then its argument prototype would still apply. */
4177 rm -f conftest.
$ac_objext conftest
$ac_exeext
4178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4179 (eval $ac_link) 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try
='test -s conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
4189 ac_cv_lib_ipc_shmat
=yes
4191 echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.
$ac_ext >&5
4194 ac_cv_lib_ipc_shmat
=no
4196 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4197 LIBS
=$ac_check_lib_save_LIBS
4199 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4200 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4201 if test $ac_cv_lib_ipc_shmat = yes; then
4202 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4208 # Check for libraries that X11R6 Xt/Xaw programs need.
4209 ac_save_LDFLAGS
=$LDFLAGS
4210 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4211 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4212 # check for ICE first), but we must link in the order -lSM -lICE or
4213 # we get undefined symbols. So assume we have SM if we have ICE.
4214 # These have to be linked with before -lX11, unlike the other
4215 # libraries we check for below, so use a different variable.
4216 # John Interrante, Karl Berry
4217 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4218 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4219 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 ac_check_lib_save_LIBS
=$LIBS
4223 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4224 cat >conftest.
$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4228 cat confdefs.h
>>conftest.
$ac_ext
4229 cat >>conftest.
$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4232 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */
4238 char IceConnectionNumber ();
4242 IceConnectionNumber ();
4247 rm -f conftest.
$ac_objext conftest
$ac_exeext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4249 (eval $ac_link) 2>&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } &&
4253 { ac_try
='test -s conftest$ac_exeext'
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 ac_cv_lib_ICE_IceConnectionNumber
=yes
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.
$ac_ext >&5
4264 ac_cv_lib_ICE_IceConnectionNumber
=no
4266 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4267 LIBS
=$ac_check_lib_save_LIBS
4269 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4270 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4271 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4272 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4275 LDFLAGS
=$ac_save_LDFLAGS
4280 X_LIBRARY_PATH
=$x_libraries
4286 XLIBS
="-lX11 $X_EXTRA_LIBS"
4288 lib_search_path
="$lib_search_path $XLFLAGS -L/usr/local/lib"
4289 inc_search_path
="$inc_search_path $XCFLAGS -I/usr/local/include"
4293 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
4294 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
4295 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 ac_check_lib_save_LIBS
=$LIBS
4299 LIBS
="-lXext $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
4300 cat >conftest.
$ac_ext <<_ACEOF
4301 #line $LINENO "configure"
4304 cat confdefs.h
>>conftest.
$ac_ext
4305 cat >>conftest.
$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4308 /* Override any gcc2 internal prototype to avoid an error. */
4312 /* We use char because int might match the return type of a gcc2
4313 builtin and then its argument prototype would still apply. */
4314 char XShapeCombineMask ();
4318 XShapeCombineMask ();
4323 rm -f conftest.
$ac_objext conftest
$ac_exeext
4324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4325 (eval $ac_link) 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try
='test -s conftest$ac_exeext'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_lib_Xext_XShapeCombineMask
=yes
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.
$ac_ext >&5
4340 ac_cv_lib_Xext_XShapeCombineMask
=no
4342 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4343 LIBS
=$ac_check_lib_save_LIBS
4345 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
4346 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
4347 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
4348 XLIBS
="$XLIBS -lXext"
4350 echo "The shape extension stuff could not be found in the X client libraries"
4355 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4356 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4357 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_check_lib_save_LIBS
=$LIBS
4361 LIBS
="-lXpm $X_LIBS $X_EXTRA_LIBS -lX11 $LIBS"
4362 cat >conftest.
$ac_ext <<_ACEOF
4363 #line $LINENO "configure"
4366 cat confdefs.h
>>conftest.
$ac_ext
4367 cat >>conftest.
$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any gcc2 internal prototype to avoid an error. */
4374 /* We use char because int might match the return type of a gcc2
4375 builtin and then its argument prototype would still apply. */
4376 char XpmCreatePixmapFromData ();
4380 XpmCreatePixmapFromData ();
4385 rm -f conftest.
$ac_objext conftest
$ac_exeext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4387 (eval $ac_link) 2>&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try
='test -s conftest$ac_exeext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=yes
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.
$ac_ext >&5
4402 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=no
4404 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4405 LIBS
=$ac_check_lib_save_LIBS
4407 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4408 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4409 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4410 XLIBS
="$XLIBS -lXpm"
4412 echo "The libXpm library was not found, but is necessary to build this library"
4424 # Check whether --enable-debug or --disable-debug was given.
4425 if test "${enable_debug+set}" = set; then
4426 enableval
="$enable_debug"
4431 if test "$enable_debug" = yes; then
4432 DFLAGS
="-Wall -g -ansi -pedantic"
4434 cat >>confdefs.h
<<\_ACEOF
4458 SETGID_FLAGS
="-g kmem -m 2755 -o root"
4468 echo "Sorry, ${host_os} is not supported yet"
4478 if test "$ignore_buffers" = yes; then
4480 cat >>confdefs.h
<<\_ACEOF
4481 #define IGNORE_BUFFERS 1
4485 if test "$ignore_cached" = yes; then
4487 cat >>confdefs.h
<<\_ACEOF
4488 #define IGNORE_CACHED 1
4492 if test "$ignore_wired" = yes; then
4494 cat >>confdefs.h
<<\_ACEOF
4495 #define IGNORE_WIRED 1
4502 LIBRARY_SEARCH_PATH
="$lib_search_path"
4503 HEADER_SEARCH_PATH
="$inc_search_path"
4508 echo "$as_me:$LINENO: checking for egrep" >&5
4509 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4510 if test "${ac_cv_prog_egrep+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4514 then ac_cv_prog_egrep
='grep -E'
4515 else ac_cv_prog_egrep
='egrep'
4518 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4519 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4520 EGREP
=$ac_cv_prog_egrep
4523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4525 if test "${ac_cv_header_stdc+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.
$ac_ext <<_ACEOF
4529 #line $LINENO "configure"
4532 cat confdefs.h
>>conftest.
$ac_ext
4533 cat >>conftest.
$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4548 rm -f conftest.
$ac_objext
4549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try
='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_header_stdc
=yes
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.
$ac_ext >&5
4565 ac_cv_header_stdc
=no
4567 rm -f conftest.
$ac_objext conftest.
$ac_ext
4569 if test $ac_cv_header_stdc = yes; then
4570 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4571 cat >conftest.
$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4575 cat confdefs.h
>>conftest.
$ac_ext
4576 cat >>conftest.
$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4582 $EGREP "memchr" >/dev
/null
2>&1; then
4585 ac_cv_header_stdc
=no
4591 if test $ac_cv_header_stdc = yes; then
4592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4593 cat >conftest.
$ac_ext <<_ACEOF
4594 #line $LINENO "configure"
4597 cat confdefs.h
>>conftest.
$ac_ext
4598 cat >>conftest.
$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "free" >/dev
/null
2>&1; then
4607 ac_cv_header_stdc
=no
4613 if test $ac_cv_header_stdc = yes; then
4614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4615 if test "$cross_compiling" = yes; then
4618 cat >conftest.
$ac_ext <<_ACEOF
4619 #line $LINENO "configure"
4622 cat confdefs.h
>>conftest.
$ac_ext
4623 cat >>conftest.
$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4626 #if ((' ' & 0x0FF) == 0x020)
4627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4630 # define ISLOWER(c) \
4631 (('a' <= (c) && (c) <= 'i') \
4632 || ('j' <= (c) && (c) <= 'r') \
4633 || ('s' <= (c) && (c) <= 'z'))
4634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4642 for (i = 0; i < 256; i++)
4643 if (XOR (islower (i), ISLOWER (i))
4644 || toupper (i) != TOUPPER (i))
4649 rm -f conftest
$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.
$ac_ext >&5
4667 ac_cv_header_stdc
=no
4669 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4673 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4674 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4675 if test $ac_cv_header_stdc = yes; then
4677 cat >>confdefs.h
<<\_ACEOF
4678 #define STDC_HEADERS 1
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4693 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4694 inttypes.h stdint.h unistd.h
4696 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 cat >conftest.
$ac_ext <<_ACEOF
4703 #line $LINENO "configure"
4706 cat confdefs.h
>>conftest.
$ac_ext
4707 cat >>conftest.
$ac_ext <<_ACEOF
4708 /* end confdefs.h. */
4709 $ac_includes_default
4711 #include <$ac_header>
4713 rm -f conftest.
$ac_objext
4714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4715 (eval $ac_compile) 2>&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } &&
4719 { ac_try
='test -s conftest.$ac_objext'
4720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; }; then
4725 eval "$as_ac_Header=yes"
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.
$ac_ext >&5
4730 eval "$as_ac_Header=no"
4732 rm -f conftest.
$ac_objext conftest.
$ac_ext
4734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4737 cat >>confdefs.h
<<_ACEOF
4738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755 for ac_header
in fcntl.h memory.h stddef.h stdlib.h string.h
strings.h sys
/param.h sys
/time.h unistd.h
4757 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo "$as_me:$LINENO: checking for $ac_header" >&5
4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4767 # Is the header compilable?
4768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4770 cat >conftest.
$ac_ext <<_ACEOF
4771 #line $LINENO "configure"
4774 cat confdefs.h
>>conftest.
$ac_ext
4775 cat >>conftest.
$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4777 $ac_includes_default
4778 #include <$ac_header>
4780 rm -f conftest.
$ac_objext
4781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4782 (eval $ac_compile) 2>&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try
='test -s conftest.$ac_objext'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; }; then
4792 ac_header_compiler
=yes
4794 echo "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.
$ac_ext >&5
4797 ac_header_compiler
=no
4799 rm -f conftest.
$ac_objext conftest.
$ac_ext
4800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4801 echo "${ECHO_T}$ac_header_compiler" >&6
4803 # Is the header present?
4804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4806 cat >conftest.
$ac_ext <<_ACEOF
4807 #line $LINENO "configure"
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 #include <$ac_header>
4815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4818 grep -v '^ *+' conftest.er1
>conftest.err
4820 cat conftest.err
>&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev
/null
; then
4823 if test -s conftest.err
; then
4824 ac_cpp_err
=$ac_c_preproc_warn_flag
4831 if test -z "$ac_cpp_err"; then
4832 ac_header_preproc
=yes
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.
$ac_ext >&5
4837 ac_header_preproc
=no
4839 rm -f conftest.err conftest.
$ac_ext
4840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4841 echo "${ECHO_T}$ac_header_preproc" >&6
4843 # So? What about this header?
4844 case $ac_header_compiler:$ac_header_preproc in
4846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852 ## ------------------------------------ ##
4853 ## Report this to bug-autoconf@gnu.org. ##
4854 ## ------------------------------------ ##
4857 sed "s/^/$as_me: WARNING: /" >&2
4860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868 ## ------------------------------------ ##
4869 ## Report this to bug-autoconf@gnu.org. ##
4870 ## ------------------------------------ ##
4873 sed "s/^/$as_me: WARNING: /" >&2
4876 echo "$as_me:$LINENO: checking for $ac_header" >&5
4877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 eval "$as_ac_Header=$ac_header_preproc"
4883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4888 cat >>confdefs.h
<<_ACEOF
4889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4897 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4898 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4899 if test "${ac_cv_c_const+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 cat >conftest.
$ac_ext <<_ACEOF
4903 #line $LINENO "configure"
4906 cat confdefs.h
>>conftest.
$ac_ext
4907 cat >>conftest.
$ac_ext <<_ACEOF
4908 /* end confdefs.h. */
4913 /* FIXME: Include the comments suggested by Paul. */
4915 /* Ultrix mips cc rejects this. */
4916 typedef int charset[2];
4918 /* SunOS 4.1.1 cc rejects this. */
4919 char const *const *ccp;
4921 /* NEC SVR4.0.2 mips cc rejects this. */
4922 struct point {int x, y;};
4923 static struct point const zero = {0,0};
4924 /* AIX XL C 1.02.0.0 rejects this.
4925 It does not let you subtract one const X* pointer from another in
4926 an arm of an if-expression whose if-part is not a constant
4928 const char *g = "string";
4929 ccp = &g + (g ? g-g : 0);
4930 /* HPUX 7.0 cc rejects these. */
4933 ccp = (char const *const *) p;
4934 { /* SCO 3.2v4 cc rejects this. */
4936 char const *s = 0 ? (char *) 0 : (char const *) 0;
4940 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4942 const int *foo = &x[0];
4945 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4946 typedef const int *iptr;
4950 { /* AIX XL C 1.02.0.0 rejects this saying
4951 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4952 struct s { int j; const int *ap[3]; };
4953 struct s *b; b->j = 5;
4955 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4964 rm -f conftest.
$ac_objext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try
='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4978 echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.
$ac_ext >&5
4983 rm -f conftest.
$ac_objext conftest.
$ac_ext
4985 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4986 echo "${ECHO_T}$ac_cv_c_const" >&6
4987 if test $ac_cv_c_const = no
; then
4989 cat >>confdefs.h
<<\_ACEOF
4995 echo "$as_me:$LINENO: checking for size_t" >&5
4996 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4997 if test "${ac_cv_type_size_t+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 cat >conftest.
$ac_ext <<_ACEOF
5001 #line $LINENO "configure"
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 $ac_includes_default
5013 if (sizeof (size_t))
5019 rm -f conftest.
$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try
='test -s conftest.$ac_objext'
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; }; then
5031 ac_cv_type_size_t
=yes
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.
$ac_ext >&5
5036 ac_cv_type_size_t
=no
5038 rm -f conftest.
$ac_objext conftest.
$ac_ext
5040 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5041 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5042 if test $ac_cv_type_size_t = yes; then
5046 cat >>confdefs.h
<<_ACEOF
5047 #define size_t unsigned
5052 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5053 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5054 if test "${ac_cv_header_time+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 cat >conftest.
$ac_ext <<_ACEOF
5058 #line $LINENO "configure"
5061 cat confdefs.h
>>conftest.
$ac_ext
5062 cat >>conftest.
$ac_ext <<_ACEOF
5063 /* end confdefs.h. */
5064 #include <sys/types.h>
5065 #include <sys/time.h>
5071 if ((struct tm *) 0)
5077 rm -f conftest.
$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } &&
5083 { ac_try
='test -s conftest.$ac_objext'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5089 ac_cv_header_time
=yes
5091 echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.
$ac_ext >&5
5094 ac_cv_header_time
=no
5096 rm -f conftest.
$ac_objext conftest.
$ac_ext
5098 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5099 echo "${ECHO_T}$ac_cv_header_time" >&6
5100 if test $ac_cv_header_time = yes; then
5102 cat >>confdefs.h
<<\_ACEOF
5103 #define TIME_WITH_SYS_TIME 1
5110 for ac_header
in stdlib.h
5112 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5114 echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5122 # Is the header compilable?
5123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5125 cat >conftest.
$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5129 cat confdefs.h
>>conftest.
$ac_ext
5130 cat >>conftest.
$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 $ac_includes_default
5133 #include <$ac_header>
5135 rm -f conftest.
$ac_objext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } &&
5141 { ac_try
='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5147 ac_header_compiler
=yes
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.
$ac_ext >&5
5152 ac_header_compiler
=no
5154 rm -f conftest.
$ac_objext conftest.
$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156 echo "${ECHO_T}$ac_header_compiler" >&6
5158 # Is the header present?
5159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5161 cat >conftest.
$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5165 cat confdefs.h
>>conftest.
$ac_ext
5166 cat >>conftest.
$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5168 #include <$ac_header>
5170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5171 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5173 grep -v '^ *+' conftest.er1
>conftest.err
5175 cat conftest.err
>&5
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); } >/dev
/null
; then
5178 if test -s conftest.err
; then
5179 ac_cpp_err
=$ac_c_preproc_warn_flag
5186 if test -z "$ac_cpp_err"; then
5187 ac_header_preproc
=yes
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.
$ac_ext >&5
5192 ac_header_preproc
=no
5194 rm -f conftest.err conftest.
$ac_ext
5195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5196 echo "${ECHO_T}$ac_header_preproc" >&6
5198 # So? What about this header?
5199 case $ac_header_compiler:$ac_header_preproc in
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5207 ## ------------------------------------ ##
5208 ## Report this to bug-autoconf@gnu.org. ##
5209 ## ------------------------------------ ##
5212 sed "s/^/$as_me: WARNING: /" >&2
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5223 ## ------------------------------------ ##
5224 ## Report this to bug-autoconf@gnu.org. ##
5225 ## ------------------------------------ ##
5228 sed "s/^/$as_me: WARNING: /" >&2
5231 echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 eval "$as_ac_Header=$ac_header_preproc"
5238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5243 cat >>confdefs.h
<<_ACEOF
5244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5251 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5252 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5253 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 if test "$cross_compiling" = yes; then
5257 ac_cv_func_malloc_0_nonnull
=no
5259 cat >conftest.
$ac_ext <<_ACEOF
5260 #line $LINENO "configure"
5263 cat confdefs.h
>>conftest.
$ac_ext
5264 cat >>conftest.
$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #if STDC_HEADERS || HAVE_STDLIB_H
5267 # include <stdlib.h>
5275 exit (malloc (0) ? 0 : 1);
5280 rm -f conftest
$ac_exeext
5281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); }; }; then
5291 ac_cv_func_malloc_0_nonnull
=yes
5293 echo "$as_me: program exited with status $ac_status" >&5
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.
$ac_ext >&5
5298 ac_cv_func_malloc_0_nonnull
=no
5300 rm -f core core.
* *.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5304 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5305 if test $ac_cv_func_malloc_0_nonnull = yes; then
5307 cat >>confdefs.h
<<\_ACEOF
5308 #define HAVE_MALLOC 1
5312 cat >>confdefs.h
<<\_ACEOF
5313 #define HAVE_MALLOC 0
5316 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
5318 cat >>confdefs.h
<<\_ACEOF
5319 #define malloc rpl_malloc
5329 for ac_func
in select strtoul uname
5331 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5332 echo "$as_me:$LINENO: checking for $ac_func" >&5
5333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5334 if eval "test \"\${$as_ac_var+set}\" = set"; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 cat >conftest.
$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5341 cat confdefs.h
>>conftest.
$ac_ext
5342 cat >>conftest.
$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 /* System header to define __stub macros and hopefully few prototypes,
5345 which can conflict with char $ac_func (); below.
5346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 <limits.h> exists even on freestanding compilers. */
5349 # include <limits.h>
5351 # include <assert.h>
5353 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5367 char (*f) () = $ac_func;
5376 return f != $ac_func;
5381 rm -f conftest.
$ac_objext conftest
$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>&5
5385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } &&
5387 { ac_try
='test -s conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 eval "$as_ac_var=yes"
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.
$ac_ext >&5
5398 eval "$as_ac_var=no"
5400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5404 if test `eval echo '${'$as_ac_var'}'` = yes; then
5405 cat >>confdefs.h
<<_ACEOF
5406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5413 ac_config_files
="$ac_config_files Makefile src/Makefile doc/Makefile"
5415 cat >confcache
<<\_ACEOF
5416 # This file is a shell script that caches the results of configure
5417 # tests run on this system so they can be shared between configure
5418 # scripts and configure runs, see configure's option --config-cache.
5419 # It is not useful on other systems. If it contains results you don't
5420 # want to keep, you may remove or edit it.
5422 # config.status only pays attention to the cache file if you give it
5423 # the --recheck option to rerun configure.
5425 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5426 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5431 # The following way of writing the cache mishandles newlines in values,
5432 # but we know of no workaround that is simple, portable, and efficient.
5433 # So, don't put newlines in cache variables' values.
5434 # Ultrix sh set writes to stderr and can't be redirected directly,
5435 # and sets the high bit in the cache file unless we assign to the vars.
5438 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5440 # `set' does not quote correctly, so add quotes (double-quote
5441 # substitution turns \\\\ into \\, and sed turns \\ into \).
5444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5447 # `set' quotes correctly as required by POSIX, so do not add quotes.
5449 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5456 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5458 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5460 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5461 if test -w $cache_file; then
5462 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5463 cat confcache
>$cache_file
5465 echo "not updating unwritable cache $cache_file"
5470 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5471 # Let make expand exec_prefix.
5472 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5474 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5475 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5476 # trailing colons and then remove the whole line if VPATH becomes empty
5477 # (actually we leave an empty line to preserve line numbers).
5478 if test "x$srcdir" = x.
; then
5479 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5480 s/:*\$(srcdir):*/:/;
5481 s/:*\${srcdir}:*/:/;
5483 s/^\([^=]*=[ ]*\):*/\1/;
5489 DEFS
=-DHAVE_CONFIG_H
5493 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5494 # 1. Remove the extension, and $U if already installed.
5495 ac_i
=`echo "$ac_i" |
5496 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5498 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5499 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5503 LTLIBOBJS
=$ac_ltlibobjs
5507 : ${CONFIG_STATUS=./config.status}
5508 ac_clean_files_save
=$ac_clean_files
5509 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5510 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5511 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5512 cat >$CONFIG_STATUS <<_ACEOF
5514 # Generated by $as_me.
5515 # Run this file to recreate the current configuration.
5516 # Compiler output produced by configure, useful for debugging
5517 # configure, is in config.log if it exists.
5522 SHELL=\${CONFIG_SHELL-$SHELL}
5525 cat >>$CONFIG_STATUS <<\_ACEOF
5526 ## --------------------- ##
5527 ## M4sh Initialization. ##
5528 ## --------------------- ##
5530 # Be Bourne compatible
5531 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5534 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5535 # is contrary to our usage. Disable this feature.
5536 alias -g '${1+"$@"}'='"$@"'
5537 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5541 # Support unset when possible.
5542 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
5549 # Work around bugs in pre-3.0 UWIN ksh.
5550 $as_unset ENV MAIL MAILPATH
5557 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5558 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5559 LC_TELEPHONE LC_TIME
5561 if (set +x
; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
5562 eval $as_var=C
; export $as_var
5568 # Required to use basename.
5569 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5575 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5576 as_basename
=basename
5582 # Name of the executable.
5583 as_me
=`$as_basename "$0" ||
5584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5585 X"$0" : 'X\(//\)$' \| \
5586 X"$0" : 'X\(/\)$' \| \
5587 . : '\(.\)' 2>/dev/null ||
5589 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5590 /^X\/\(\/\/\)$/{ s//\1/; q; }
5591 /^X\/\(\/\).*/{ s//\1/; q; }
5595 # PATH needs CR, and LINENO needs CR and PATH.
5596 # Avoid depending upon Character Ranges.
5597 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5598 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5599 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5600 as_cr_digits
='0123456789'
5601 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5603 # The user is always right.
5604 if test "${PATH_SEPARATOR+set}" != set; then
5605 echo "#! /bin/sh" >conf$$.sh
5606 echo "exit 0" >>conf$$.sh
5608 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5619 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5620 test "x$as_lineno_1" != "x$as_lineno_2" &&
5621 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5622 # Find who we are. Look in the path if we contain no path at all
5625 *[\\/]* ) as_myself
=$0 ;;
5626 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir
=.
5631 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5636 # We did not find ourselves, most probably we were run as `sh COMMAND'
5637 # in which case we are not to be found in the path.
5638 if test "x$as_myself" = x
; then
5641 if test ! -f "$as_myself"; then
5642 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5643 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5644 { (exit 1); exit 1; }; }
5646 case $CONFIG_SHELL in
5648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5649 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5652 test -z "$as_dir" && as_dir
=.
5653 for as_base
in sh bash ksh sh5
; do
5656 if ("$as_dir/$as_base" -c '
5659 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5660 test "x$as_lineno_1" != "x$as_lineno_2" &&
5661 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5662 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5663 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5664 CONFIG_SHELL
=$as_dir/$as_base
5666 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5674 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5675 # uniformly replaced by the line number. The first 'sed' inserts a
5676 # line-number line before each line; the second 'sed' does the real
5677 # work. The second script uses 'N' to pair each line-number line
5678 # with the numbered line, and appends trailing '-' during
5679 # substitution so that $LINENO is not a special case at line end.
5680 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5681 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5682 sed '=' <$as_myself |
5687 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5690 s,^['$as_cr_digits']*\n,,
5692 chmod +x
$as_me.lineno ||
5693 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5694 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5695 { (exit 1); exit 1; }; }
5697 # Don't try to exec as it changes $[0], causing all sort of problems
5698 # (the dirname of $[0] is not the place where we might find the
5699 # original and so on. Autoconf is especially sensible to this).
5701 # Exit status is that of the last command.
5706 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5707 *c
*,-n*) ECHO_N
= ECHO_C
='
5709 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5710 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5713 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5719 rm -f conf$$ conf$$.exe conf$$.
file
5721 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5722 # We could just check for DJGPP; but this test a) works b) is more generic
5723 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5724 if test -f conf$$.exe
; then
5725 # Don't use ln at all; we don't have any links
5730 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5735 rm -f conf$$ conf$$.exe conf$$.
file
5737 if mkdir
-p .
2>/dev
/null
; then
5743 as_executable_p
="test -f"
5745 # Sed expression to map a string onto a valid CPP name.
5746 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5748 # Sed expression to map a string onto a valid variable name.
5749 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5753 # We need space, tab and new line, in precisely that order.
5763 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5764 # report actual input values of CONFIG_FILES etc. instead of their
5765 # values after options handling. Logging --version etc. is OK.
5769 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5770 ## Running $as_me. ##
5775 This file was extended by wmbatteries $as_me 0.1.2, which was
5776 generated by GNU Autoconf 2.57. Invocation command line was
5778 CONFIG_FILES = $CONFIG_FILES
5779 CONFIG_HEADERS = $CONFIG_HEADERS
5780 CONFIG_LINKS = $CONFIG_LINKS
5781 CONFIG_COMMANDS = $CONFIG_COMMANDS
5785 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5789 # Files that config.status was made for.
5790 if test -n "$ac_config_files"; then
5791 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5794 if test -n "$ac_config_headers"; then
5795 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5798 if test -n "$ac_config_links"; then
5799 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5802 if test -n "$ac_config_commands"; then
5803 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5806 cat >>$CONFIG_STATUS <<\_ACEOF
5809 \`$as_me' instantiates files from templates according to the
5810 current configuration.
5812 Usage: $0 [OPTIONS] [FILE]...
5814 -h, --help print this help, then exit
5815 -V, --version print version number, then exit
5816 -q, --quiet do not print progress messages
5817 -d, --debug don't remove temporary files
5818 --recheck update $as_me by reconfiguring in the same conditions
5819 --file=FILE[:TEMPLATE]
5820 instantiate the configuration file FILE
5821 --header=FILE[:TEMPLATE]
5822 instantiate the configuration header FILE
5824 Configuration files:
5827 Configuration headers:
5830 Configuration commands:
5833 Report bugs to <bug-autoconf@gnu.org>."
5836 cat >>$CONFIG_STATUS <<_ACEOF
5838 wmbatteries config.status 0.1.2
5839 configured by $0, generated by GNU Autoconf 2.57,
5840 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5842 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5843 Free Software Foundation, Inc.
5844 This config.status script is free software; the Free Software Foundation
5845 gives unlimited permission to copy, distribute and modify it."
5850 cat >>$CONFIG_STATUS <<\_ACEOF
5851 # If no file are specified by the user, then we need to provide default
5852 # value. By we need to know if files were specified by the user.
5858 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5859 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5867 *) # This is not an option, so the user has probably given explicit
5870 ac_need_defaults
=false
;;
5874 # Handling of the options.
5876 cat >>$CONFIG_STATUS <<\_ACEOF
5877 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5879 --version |
--vers* |
-V )
5880 echo "$ac_cs_version"; exit 0 ;;
5882 # Conflict between --help and --header
5883 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5884 Try \`$0 --help' for more information." >&5
5885 echo "$as_me: error: ambiguous option: $1
5886 Try \`$0 --help' for more information." >&2;}
5887 { (exit 1); exit 1; }; };;
5888 --help |
--hel |
-h )
5889 echo "$ac_cs_usage"; exit 0 ;;
5890 --debug |
--d* |
-d )
5892 --file |
--fil |
--fi |
--f )
5894 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5895 ac_need_defaults
=false
;;
5896 --header |
--heade |
--head |
--hea )
5898 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5899 ac_need_defaults
=false
;;
5900 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5901 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5905 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5906 Try \`$0 --help' for more information." >&5
5907 echo "$as_me: error: unrecognized option: $1
5908 Try \`$0 --help' for more information." >&2;}
5909 { (exit 1); exit 1; }; } ;;
5911 *) ac_config_targets
="$ac_config_targets $1" ;;
5917 ac_configure_extra_args
=
5919 if $ac_cs_silent; then
5921 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5925 cat >>$CONFIG_STATUS <<_ACEOF
5926 if \$ac_cs_recheck; then
5927 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5928 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5933 cat >>$CONFIG_STATUS <<_ACEOF
5935 # INIT-COMMANDS section.
5938 AMDEP_TRUE="$AMDEP_TRUE"
5939 ac_aux_dir="$ac_aux_dir"
5945 cat >>$CONFIG_STATUS <<\_ACEOF
5946 for ac_config_target
in $ac_config_targets
5948 case "$ac_config_target" in
5949 # Handling of arguments.
5950 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5951 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
5952 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
5953 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
5954 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5955 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5956 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5957 { (exit 1); exit 1; }; };;
5961 # If the user did not use the arguments to specify the items to instantiate,
5962 # then the envvar interface is used. Set only those that are not.
5963 # We use the long form for the default assignment because of an extremely
5964 # bizarre bug on SunOS 4.1.3.
5965 if $ac_need_defaults; then
5966 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5967 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5968 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5971 # Have a temporary directory for convenience. Make it in the build tree
5972 # simply because there is no reason to put it here, and in addition,
5973 # creating and moving files from /tmp can sometimes cause problems.
5974 # Create a temporary directory, and hook for its removal unless debugging.
5977 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5978 trap '{ (exit 1); exit 1; }' 1 2 13 15
5981 # Create a (secure) tmp directory for tmp files.
5984 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5985 test -n "$tmp" && test -d "$tmp"
5988 tmp
=.
/confstat$$
-$RANDOM
5989 (umask 077 && mkdir
$tmp)
5992 echo "$me: cannot create a temporary directory in ." >&2
5993 { (exit 1); exit 1; }
5998 cat >>$CONFIG_STATUS <<_ACEOF
6001 # CONFIG_FILES section.
6004 # No need to generate the scripts if there are no CONFIG_FILES.
6005 # This happens for instance when ./config.status config.h
6006 if test -n "\$CONFIG_FILES"; then
6007 # Protect against being on the right side of a sed subst in config.status.
6008 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6009 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6010 s,@SHELL@,$SHELL,;t t
6011 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6012 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6013 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6014 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6015 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6016 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6017 s,@exec_prefix@,$exec_prefix,;t t
6018 s,@prefix@,$prefix,;t t
6019 s,@program_transform_name@,$program_transform_name,;t t
6020 s,@bindir@,$bindir,;t t
6021 s,@sbindir@,$sbindir,;t t
6022 s,@libexecdir@,$libexecdir,;t t
6023 s,@datadir@,$datadir,;t t
6024 s,@sysconfdir@,$sysconfdir,;t t
6025 s,@sharedstatedir@,$sharedstatedir,;t t
6026 s,@localstatedir@,$localstatedir,;t t
6027 s,@libdir@,$libdir,;t t
6028 s,@includedir@,$includedir,;t t
6029 s,@oldincludedir@,$oldincludedir,;t t
6030 s,@infodir@,$infodir,;t t
6031 s,@mandir@,$mandir,;t t
6032 s,@build_alias@,$build_alias,;t t
6033 s,@host_alias@,$host_alias,;t t
6034 s,@target_alias@,$target_alias,;t t
6036 s,@ECHO_C@,$ECHO_C,;t t
6037 s,@ECHO_N@,$ECHO_N,;t t
6038 s,@ECHO_T@,$ECHO_T,;t t
6040 s,@build@,$build,;t t
6041 s,@build_cpu@,$build_cpu,;t t
6042 s,@build_vendor@,$build_vendor,;t t
6043 s,@build_os@,$build_os,;t t
6045 s,@host_cpu@,$host_cpu,;t t
6046 s,@host_vendor@,$host_vendor,;t t
6047 s,@host_os@,$host_os,;t t
6048 s,@target@,$target,;t t
6049 s,@target_cpu@,$target_cpu,;t t
6050 s,@target_vendor@,$target_vendor,;t t
6051 s,@target_os@,$target_os,;t t
6052 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6053 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6054 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6055 s,@PACKAGE@,$PACKAGE,;t t
6056 s,@VERSION@,$VERSION,;t t
6057 s,@EXEEXT@,$EXEEXT,;t t
6058 s,@OBJEXT@,$OBJEXT,;t t
6059 s,@ACLOCAL@,$ACLOCAL,;t t
6060 s,@AUTOCONF@,$AUTOCONF,;t t
6061 s,@AUTOMAKE@,$AUTOMAKE,;t t
6062 s,@AUTOHEADER@,$AUTOHEADER,;t t
6063 s,@MAKEINFO@,$MAKEINFO,;t t
6064 s,@AMTAR@,$AMTAR,;t t
6065 s,@install_sh@,$install_sh,;t t
6066 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6068 s,@SET_MAKE@,$SET_MAKE,;t t
6069 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6070 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6071 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6072 s,@DEPDIR@,$DEPDIR,;t t
6074 s,@CFLAGS@,$CFLAGS,;t t
6075 s,@LDFLAGS@,$LDFLAGS,;t t
6076 s,@CPPFLAGS@,$CPPFLAGS,;t t
6077 s,@ac_ct_CC@,$ac_ct_CC,;t t
6078 s,@am__include@,$am__include,;t t
6079 s,@am__quote@,$am__quote,;t t
6080 s,@CCDEPMODE@,$CCDEPMODE,;t t
6083 s,@X_CFLAGS@,$X_CFLAGS,;t t
6084 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6085 s,@X_LIBS@,$X_LIBS,;t t
6086 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6087 s,@X_LIBRARY_PATH@,$X_LIBRARY_PATH,;t t
6088 s,@XCFLAGS@,$XCFLAGS,;t t
6089 s,@XLFLAGS@,$XLFLAGS,;t t
6090 s,@XLIBS@,$XLIBS,;t t
6091 s,@DFLAGS@,$DFLAGS,;t t
6093 s,@SETGID_FLAGS@,$SETGID_FLAGS,;t t
6094 s,@LIBRARY_SEARCH_PATH@,$LIBRARY_SEARCH_PATH,;t t
6095 s,@HEADER_SEARCH_PATH@,$HEADER_SEARCH_PATH,;t t
6096 s,@EGREP@,$EGREP,;t t
6097 s,@LIBOBJS@,$LIBOBJS,;t t
6098 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6103 cat >>$CONFIG_STATUS <<\_ACEOF
6104 # Split the substitutions into bite-sized pieces for seds with
6105 # small command number limits, like on Digital OSF/1 and HP-UX.
6107 ac_sed_frag
=1 # Number of current file.
6108 ac_beg
=1 # First line for current file.
6109 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6112 while $ac_more_lines; do
6113 if test $ac_beg -gt 1; then
6114 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6116 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6118 if test ! -s $tmp/subs.frag
; then
6121 # The purpose of the label and of the branching condition is to
6122 # speed up the sed processing (if there are no `@' at all, there
6123 # is no need to browse any of the substitutions).
6124 # These are the two extra sed commands mentioned above.
6126 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6127 if test -z "$ac_sed_cmds"; then
6128 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6130 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6132 ac_sed_frag
=`expr $ac_sed_frag + 1`
6134 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6137 if test -z "$ac_sed_cmds"; then
6140 fi # test -n "$CONFIG_FILES"
6143 cat >>$CONFIG_STATUS <<\_ACEOF
6144 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6145 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6147 - |
*:- |
*:-:* ) # input from stdin
6149 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6150 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6151 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6152 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6153 * ) ac_file_in
=$ac_file.
in ;;
6156 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6157 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6158 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6159 X"$ac_file" : 'X\(//\)[^/]' \| \
6160 X"$ac_file" : 'X\(//\)$' \| \
6161 X"$ac_file" : 'X\(/\)' \| \
6162 . : '\(.\)' 2>/dev/null ||
6164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6166 /^X\(\/\/\)$/{ s//\1/; q; }
6167 /^X\(\/\).*/{ s//\1/; q; }
6169 { if $as_mkdir_p; then
6174 while test ! -d "$as_dir"; do
6175 as_dirs
="$as_dir $as_dirs"
6176 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6178 X"$as_dir" : 'X\(//\)[^/]' \| \
6179 X"$as_dir" : 'X\(//\)$' \| \
6180 X"$as_dir" : 'X\(/\)' \| \
6181 . : '\(.\)' 2>/dev/null ||
6183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6185 /^X\(\/\/\)$/{ s//\1/; q; }
6186 /^X\(\/\).*/{ s//\1/; q; }
6189 test ! -n "$as_dirs" || mkdir
$as_dirs
6190 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6191 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6192 { (exit 1); exit 1; }; }; }
6196 if test "$ac_dir" != .
; then
6197 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6198 # A "../" for each directory in $ac_dir_suffix.
6199 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6201 ac_dir_suffix
= ac_top_builddir
=
6205 .
) # No --srcdir option. We are building in place.
6207 if test -z "$ac_top_builddir"; then
6210 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6212 [\\/]* | ?
:[\\/]* ) # Absolute path.
6213 ac_srcdir
=$srcdir$ac_dir_suffix;
6214 ac_top_srcdir
=$srcdir ;;
6216 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6217 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6219 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6221 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
6222 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6223 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6224 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6228 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6229 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6232 if test x
"$ac_file" != x-
; then
6233 { echo "$as_me:$LINENO: creating $ac_file" >&5
6234 echo "$as_me: creating $ac_file" >&6;}
6237 # Let's still pretend it is `configure' which instantiates (i.e., don't
6238 # use $as_me), people would be surprised to read:
6239 # /* config.h. Generated by config.status. */
6240 if test x
"$ac_file" = x-
; then
6243 configure_input
="$ac_file. "
6245 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6246 sed 's,.*/,,'` by configure."
6248 # First look for the input files in the build tree, otherwise in the
6250 ac_file_inputs
=`IFS=:
6251 for f in $ac_file_in; do
6253 -) echo $tmp/stdin ;;
6255 # Absolute (can't be DOS-style, as IFS=:)
6256 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6257 echo "$as_me: error: cannot find input file: $f" >&2;}
6258 { (exit 1); exit 1; }; }
6261 if test -f "$f"; then
6264 elif test -f "$srcdir/$f"; then
6269 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6270 echo "$as_me: error: cannot find input file: $f" >&2;}
6271 { (exit 1); exit 1; }; }
6274 done` ||
{ (exit 1); exit 1; }
6276 cat >>$CONFIG_STATUS <<_ACEOF
6280 cat >>$CONFIG_STATUS <<\_ACEOF
6282 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6283 s
,@configure_input@
,$configure_input,;t t
6284 s
,@srcdir@
,$ac_srcdir,;t t
6285 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6286 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6287 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6288 s
,@builddir@
,$ac_builddir,;t t
6289 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6290 s
,@top_builddir@
,$ac_top_builddir,;t t
6291 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6292 s
,@INSTALL@
,$ac_INSTALL,;t t
6293 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6295 if test x"$ac_file" != x-; then
6296 mv $tmp/out $ac_file
6304 cat >>$CONFIG_STATUS <<\_ACEOF
6307 # CONFIG_HEADER section.
6310 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6311 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6313 # ac_d sets the value in "#define NAME VALUE" lines.
6314 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6315 ac_dB
='[ ].*$,\1#\2'
6318 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6319 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6320 ac_uB
='$,\1#\2define\3'
6324 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6325 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6327 - |
*:- |
*:-:* ) # input from stdin
6329 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6330 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6331 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6332 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6333 * ) ac_file_in
=$ac_file.
in ;;
6336 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6337 echo "$as_me: creating $ac_file" >&6;}
6339 # First look for the input files in the build tree, otherwise in the
6341 ac_file_inputs
=`IFS=:
6342 for f in $ac_file_in; do
6344 -) echo $tmp/stdin ;;
6346 # Absolute (can't be DOS-style, as IFS=:)
6347 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6348 echo "$as_me: error: cannot find input file: $f" >&2;}
6349 { (exit 1); exit 1; }; }
6352 if test -f "$f"; then
6355 elif test -f "$srcdir/$f"; then
6360 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6361 echo "$as_me: error: cannot find input file: $f" >&2;}
6362 { (exit 1); exit 1; }; }
6365 done` ||
{ (exit 1); exit 1; }
6366 # Remove the trailing spaces.
6367 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6371 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6372 # `conftest.undefs', that substitutes the proper values into
6373 # config.h.in to produce config.h. The first handles `#define'
6374 # templates, and the second `#undef' templates.
6375 # And first: Protect against being on the right side of a sed subst in
6376 # config.status. Protect against being in an unquoted here document
6378 rm -f conftest.defines conftest.undefs
6379 # Using a here document instead of a string reduces the quoting nightmare.
6380 # Putting comments in sed scripts is not portable.
6382 # `end' is used to avoid that the second main sed command (meant for
6383 # 0-ary CPP macros) applies to n-ary macro definitions.
6384 # See the Autoconf documentation for `clear'.
6385 cat >confdef2sed.
sed <<\_ACEOF
6390 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6392 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6395 # If some macros were called several times there might be several times
6396 # the same #defines, which is useless. Nevertheless, we may not want to
6397 # sort them, since we want the *last* AC-DEFINE to be honored.
6398 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6399 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6400 rm -f confdef2sed.sed
6402 # This sed command replaces #undef with comments. This is necessary, for
6403 # example, in the case of _POSIX_SOURCE, which is predefined and required
6404 # on some systems where configure will not decide to define it.
6405 cat >>conftest.undefs <<\_ACEOF
6406 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6409 # Break up conftest.defines because some shells have a limit on the size
6410 # of here documents, and old seds have small limits too (100 cmds).
6411 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6412 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6413 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6414 echo ' :' >>$CONFIG_STATUS
6416 while grep . conftest.defines >/dev/null
6418 # Write a limited-size here document to $tmp/defines.sed.
6419 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6420 # Speed up: don't consider the non `#define' lines.
6421 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6422 # Work around the forget-to-reset-the-flag bug.
6423 echo 't clr' >>$CONFIG_STATUS
6424 echo ': clr' >>$CONFIG_STATUS
6425 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6427 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6431 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6432 rm -f conftest.defines
6433 mv conftest.
tail conftest.defines
6435 rm -f conftest.defines
6436 echo ' fi # grep' >>$CONFIG_STATUS
6437 echo >>$CONFIG_STATUS
6439 # Break up conftest.undefs because some shells have a limit on the size
6440 # of here documents, and old seds have small limits too (100 cmds).
6441 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6443 while grep . conftest.undefs
>/dev
/null
6445 # Write a limited-size here document to $tmp/undefs.sed.
6446 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6447 # Speed up: don't consider the non
`#undef'
6448 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6449 # Work around the forget-to-reset-the-flag bug.
6450 echo 't clr' >>$CONFIG_STATUS
6451 echo ': clr' >>$CONFIG_STATUS
6452 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6454 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6458 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6459 rm -f conftest.undefs
6460 mv conftest.tail conftest.undefs
6462 rm -f conftest.undefs
6464 cat >>$CONFIG_STATUS <<\_ACEOF
6465 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6466 # use $as_me), people would be surprised to read:
6467 # /* config.h. Generated by config.status. */
6468 if test x
"$ac_file" = x-
; then
6469 echo "/* Generated by configure. */" >$tmp/config.h
6471 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6473 cat $tmp/in >>$tmp/config.h
6475 if test x
"$ac_file" != x-
; then
6476 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6477 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6478 echo "$as_me: $ac_file is unchanged" >&6;}
6480 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6482 X"$ac_file" : 'X\(//\)[^/]' \| \
6483 X"$ac_file" : 'X\(//\)$' \| \
6484 X"$ac_file" : 'X\(/\)' \| \
6485 . : '\(.\)' 2>/dev/null ||
6487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6489 /^X\(\/\/\)$/{ s//\1/; q; }
6490 /^X\(\/\).*/{ s//\1/; q; }
6492 { if $as_mkdir_p; then
6497 while test ! -d "$as_dir"; do
6498 as_dirs
="$as_dir $as_dirs"
6499 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6500 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6501 X"$as_dir" : 'X\(//\)[^/]' \| \
6502 X"$as_dir" : 'X\(//\)$' \| \
6503 X"$as_dir" : 'X\(/\)' \| \
6504 . : '\(.\)' 2>/dev/null ||
6506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6507 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6508 /^X\(\/\/\)$/{ s//\1/; q; }
6509 /^X\(\/\).*/{ s//\1/; q; }
6512 test ! -n "$as_dirs" || mkdir
$as_dirs
6513 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6514 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6515 { (exit 1); exit 1; }; }; }
6518 mv $tmp/config.h
$ac_file
6524 # Run the commands associated with the file.
6526 config.h
) # update the timestamp
6527 echo timestamp
>"./stamp-h1"
6532 cat >>$CONFIG_STATUS <<\_ACEOF
6535 # CONFIG_COMMANDS section.
6537 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
6538 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
6539 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6540 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
6541 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6542 X"$ac_dest" : 'X\(//\)[^/]' \| \
6543 X"$ac_dest" : 'X\(//\)$' \| \
6544 X"$ac_dest" : 'X\(/\)' \| \
6545 . : '\(.\)' 2>/dev/null ||
6547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6549 /^X\(\/\/\)$/{ s//\1/; q; }
6550 /^X\(\/\).*/{ s//\1/; q; }
6554 if test "$ac_dir" != .
; then
6555 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6556 # A "../" for each directory in $ac_dir_suffix.
6557 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6559 ac_dir_suffix
= ac_top_builddir
=
6563 .
) # No --srcdir option. We are building in place.
6565 if test -z "$ac_top_builddir"; then
6568 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6570 [\\/]* | ?
:[\\/]* ) # Absolute path.
6571 ac_srcdir
=$srcdir$ac_dir_suffix;
6572 ac_top_srcdir
=$srcdir ;;
6574 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6575 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6577 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6579 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
6580 ac_abs_top_builddir
=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6581 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6582 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6585 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6586 echo "$as_me: executing $ac_dest commands" >&6;}
6589 test x
"$AMDEP_TRUE" != x
"" ||
6590 for mf
in $CONFIG_FILES; do
6592 Makefile|GNUmakefile
) dirpart
=.
;;
6593 */Makefile|
*/GNUmakefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
6596 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
6597 # Extract the definition of DEP_FILES from the Makefile without
6599 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6600 test -z "$DEPDIR" && continue
6601 # When using ansi2knr, U may be empty or an underscore; expand it
6602 U
=`sed -n -e '/^U = / s///p' < "$mf"`
6603 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
6604 # We invoke sed twice because it is the simplest approach to
6605 # changing $(DEPDIR) to its actual value in the expansion.
6606 for file in `sed -n -e '
6607 /^DEP_FILES = .*\\\\$/ {
6616 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6617 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6618 # Make sure the directory exists.
6619 test -f "$dirpart/$file" && continue
6620 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
6621 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
6622 # echo "creating $dirpart/$file"
6623 echo '# dummy' > "$dirpart/$file"
6631 cat >>$CONFIG_STATUS <<\_ACEOF
6633 { (exit 0); exit 0; }
6635 chmod +x
$CONFIG_STATUS
6636 ac_clean_files
=$ac_clean_files_save
6639 # configure is writing to config.log, and then calls config.status.
6640 # config.status does its own redirection, appending to config.log.
6641 # Unfortunately, on DOS this fails, as config.log is still kept open
6642 # by configure, so config.status won't be able to write to it; its
6643 # output is simply discarded. So we exec the FD to /dev/null,
6644 # effectively closing config.log, so it can be properly (re)opened and
6645 # appended to by config.status. When coming back to configure, we
6646 # need to make the FD available again.
6647 if test "$no_create" != yes; then
6649 ac_config_status_args
=
6650 test "$silent" = yes &&
6651 ac_config_status_args
="$ac_config_status_args --quiet"
6653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6656 # would make configure fail if this is the last instruction.
6657 $ac_cs_success ||
{ (exit 1); exit 1; }