2 # From configure.ac Revision: 1.19 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wmwork 0.2.5.
6 # Report bugs to <martin@godisch.de>.
8 # Copyright (C) 2003 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
25 DUALCASE
=1; export DUALCASE
# for MKS sh
27 # Support unset when possible.
28 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C
; export $as_var
54 # Required to use basename.
55 if expr a
: '\(a\)' >/dev
/null
2>&1; then
61 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me
=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits
='0123456789'
87 as_cr_alnum
=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
105 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself
=$0 ;;
112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir
=.
117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x
; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
134 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir
=.
138 for as_base
in sh bash ksh sh5
; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
147 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
148 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
149 CONFIG_SHELL
=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x
$as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c
*,-n*) ECHO_N
= ECHO_C
='
193 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
194 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
197 if expr a
: '\(a\)' >/dev
/null
2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.
file
205 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe
; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.
file conf$$
2>/dev
/null
; then
219 rm -f conf$$ conf$$.exe conf$$.
file
221 if mkdir
-p .
2>/dev
/null
; then
224 test -d .
/-p && rmdir .
/-p
228 as_executable_p
="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
257 ac_default_prefix
=/usr
/local
258 ac_config_libobj_dir
=.
263 SHELL
=${CONFIG_SHELL-/bin/sh}
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
270 # Identity of this package.
271 PACKAGE_NAME
='wmwork'
272 PACKAGE_TARNAME
='wmwork'
273 PACKAGE_VERSION
='0.2.5'
274 PACKAGE_STRING
='wmwork 0.2.5'
275 PACKAGE_BUGREPORT
='martin@godisch.de'
277 ac_unique_file
="wmwork.c"
278 # Factoring default headers for most tests.
279 ac_includes_default
="\
282 # include <sys/types.h>
285 # include <sys/stat.h>
296 # if !STDC_HEADERS && HAVE_MEMORY_H
302 # include <strings.h>
305 # include <inttypes.h>
315 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
318 # Initialize some variables set by options.
320 ac_init_version
=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
330 program_transform_name
=s
,x
,x
,
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir
='${exec_prefix}/bin'
344 sbindir
='${exec_prefix}/sbin'
345 libexecdir
='${exec_prefix}/libexec'
346 datadir
='${prefix}/share'
347 sysconfdir
='${prefix}/etc'
348 sharedstatedir
='${prefix}/com'
349 localstatedir
='${prefix}/var'
350 libdir
='${exec_prefix}/lib'
351 includedir
='${prefix}/include'
352 oldincludedir
='/usr/include'
353 infodir
='${prefix}/info'
354 mandir
='${prefix}/man'
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
366 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368 # Accept the important Cygnus configure options, so we can diagnose typos.
372 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
374 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
377 -build |
--build |
--buil |
--bui |
--bu)
378 ac_prev
=build_alias
;;
379 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
380 build_alias
=$ac_optarg ;;
382 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
383 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
384 ac_prev
=cache_file
;;
385 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
386 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
387 cache_file
=$ac_optarg ;;
390 cache_file
=config.cache
;;
392 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
394 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
396 datadir
=$ac_optarg ;;
398 -disable-* |
--disable-*)
399 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
407 -enable-* |
--enable-*)
408 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
415 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 eval "enable_$ac_feature='$ac_optarg'" ;;
420 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
421 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
422 |
--exec |
--exe |
--ex)
423 ac_prev
=exec_prefix
;;
424 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
425 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
426 |
--exec=* |
--exe=* |
--ex=*)
427 exec_prefix
=$ac_optarg ;;
429 -gas |
--gas |
--ga |
--g)
430 # Obsolete; use --with-gas.
433 -help |
--help |
--hel |
--he |
-h)
435 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
436 ac_init_help
=recursive
;;
437 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
438 ac_init_help
=short
;;
440 -host |
--host |
--hos |
--ho)
441 ac_prev
=host_alias
;;
442 -host=* |
--host=* |
--hos=* |
--ho=*)
443 host_alias
=$ac_optarg ;;
445 -includedir |
--includedir |
--includedi |
--included |
--include \
446 |
--includ |
--inclu |
--incl |
--inc)
447 ac_prev
=includedir
;;
448 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
449 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
450 includedir
=$ac_optarg ;;
452 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
454 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
455 infodir
=$ac_optarg ;;
457 -libdir |
--libdir |
--libdi |
--libd)
459 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
462 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
463 |
--libexe |
--libex |
--libe)
464 ac_prev
=libexecdir
;;
465 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
466 |
--libexe=* |
--libex=* |
--libe=*)
467 libexecdir
=$ac_optarg ;;
469 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
470 |
--localstate |
--localstat |
--localsta |
--localst \
471 |
--locals |
--local |
--loca |
--loc |
--lo)
472 ac_prev
=localstatedir
;;
473 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
474 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
475 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
476 localstatedir
=$ac_optarg ;;
478 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
480 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
484 # Obsolete; use --without-fp.
487 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
488 |
--no-cr |
--no-c |
-n)
491 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
492 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
495 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
496 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
497 |
--oldin |
--oldi |
--old |
--ol |
--o)
498 ac_prev
=oldincludedir
;;
499 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
500 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
501 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
502 oldincludedir
=$ac_optarg ;;
504 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
506 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
509 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
510 |
--program-pre |
--program-pr |
--program-p)
511 ac_prev
=program_prefix
;;
512 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
513 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
514 program_prefix
=$ac_optarg ;;
516 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
517 |
--program-suf |
--program-su |
--program-s)
518 ac_prev
=program_suffix
;;
519 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
520 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
521 program_suffix
=$ac_optarg ;;
523 -program-transform-name |
--program-transform-name \
524 |
--program-transform-nam |
--program-transform-na \
525 |
--program-transform-n |
--program-transform- \
526 |
--program-transform |
--program-transfor \
527 |
--program-transfo |
--program-transf \
528 |
--program-trans |
--program-tran \
529 |
--progr-tra |
--program-tr |
--program-t)
530 ac_prev
=program_transform_name
;;
531 -program-transform-name=* |
--program-transform-name=* \
532 |
--program-transform-nam=* |
--program-transform-na=* \
533 |
--program-transform-n=* |
--program-transform-=* \
534 |
--program-transform=* |
--program-transfor=* \
535 |
--program-transfo=* |
--program-transf=* \
536 |
--program-trans=* |
--program-tran=* \
537 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
538 program_transform_name
=$ac_optarg ;;
540 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
541 |
-silent |
--silent |
--silen |
--sile |
--sil)
544 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
546 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
548 sbindir
=$ac_optarg ;;
550 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
551 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
552 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
554 ac_prev
=sharedstatedir
;;
555 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
556 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
557 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
559 sharedstatedir
=$ac_optarg ;;
561 -site |
--site |
--sit)
563 -site=* |
--site=* |
--sit=*)
566 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
568 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
571 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
572 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
573 ac_prev
=sysconfdir
;;
574 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
575 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
576 sysconfdir
=$ac_optarg ;;
578 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
579 ac_prev
=target_alias
;;
580 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
581 target_alias
=$ac_optarg ;;
583 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
586 -version |
--version |
--versio |
--versi |
--vers |
-V)
590 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package
=`echo $ac_package| sed 's/-/_/g'`
597 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 eval "with_$ac_package='$ac_optarg'" ;;
602 -without-* |
--without-*)
603 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package
=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
612 # Obsolete; use --with-x.
615 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
616 |
--x-incl |
--x-inc |
--x-in |
--x-i)
617 ac_prev
=x_includes
;;
618 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
619 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
620 x_includes
=$ac_optarg ;;
622 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
623 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
624 ac_prev
=x_libraries
;;
625 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
626 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
627 x_libraries
=$ac_optarg ;;
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
635 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
655 if test -n "$ac_prev"; then
656 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
661 # Be sure to have absolute paths.
662 for ac_var
in exec_prefix prefix
664 eval ac_val
=$
`echo $ac_var`
666 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
672 # Be sure to have absolute paths.
673 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
676 eval ac_val
=$
`echo $ac_var`
678 [\\/$
]* | ?
:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x
; then
693 if test "x$build_alias" = x
; then
694 cross_compiling
=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
703 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
705 test "$silent" = yes && exec 6>/dev
/null
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted
=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir
=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
725 if test ! -r $srcdir/$ac_unique_file; then
729 ac_srcdir_defaulted
=no
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
740 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set
=${build_alias+set}
745 ac_env_build_alias_value
=$build_alias
746 ac_cv_env_build_alias_set
=${build_alias+set}
747 ac_cv_env_build_alias_value
=$build_alias
748 ac_env_host_alias_set
=${host_alias+set}
749 ac_env_host_alias_value
=$host_alias
750 ac_cv_env_host_alias_set
=${host_alias+set}
751 ac_cv_env_host_alias_value
=$host_alias
752 ac_env_target_alias_set
=${target_alias+set}
753 ac_env_target_alias_value
=$target_alias
754 ac_cv_env_target_alias_set
=${target_alias+set}
755 ac_cv_env_target_alias_value
=$target_alias
756 ac_env_CC_set
=${CC+set}
758 ac_cv_env_CC_set
=${CC+set}
759 ac_cv_env_CC_value
=$CC
760 ac_env_CFLAGS_set
=${CFLAGS+set}
761 ac_env_CFLAGS_value
=$CFLAGS
762 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value
=$CFLAGS
764 ac_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_env_LDFLAGS_value
=$LDFLAGS
766 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value
=$LDFLAGS
768 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
772 ac_env_CPP_set
=${CPP+set}
773 ac_env_CPP_value
=$CPP
774 ac_cv_env_CPP_set
=${CPP+set}
775 ac_cv_env_CPP_value
=$CPP
778 # Report the --help message.
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
784 \`configure' configures wmwork 0.2.5 to adapt to many kinds of systems.
786 Usage: $0 [OPTION]... [VAR=VALUE]...
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
791 Defaults for the options are specified in brackets.
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
818 For better control, use the options below.
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
838 --x-includes=DIR X include files are
in DIR
839 --x-libraries=DIR X library files are
in DIR
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive
) echo "Configuration of wmwork 0.2.5:";;
850 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
851 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
852 --with-x use the X Window System
854 Some influential environment variables
:
855 CC C compiler
command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
858 nonstandard directory
<lib dir
>
859 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
860 headers
in a nonstandard directory
<include dir
>
863 Use these variables to override the choices made by
`configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
866 Report bugs to <martin@godisch.de>.
870 if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
877 if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
882 ac_dir_suffix= ac_top_builddir=
886 .) # No --srcdir option. We are building in place.
888 if test -z "$ac_top_builddir"; then
891 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
901 # Do not use `cd foo
&& pwd` to compute absolute paths, because
902 # the directories may not exist.
904 .) ac_abs_builddir="$ac_dir";;
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
912 case $ac_abs_builddir in
913 .) ac_abs_top_builddir=${ac_top_builddir}.;;
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
921 case $ac_abs_builddir in
922 .) ac_abs_srcdir=$ac_srcdir;;
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
930 case $ac_abs_builddir in
931 .) ac_abs_top_srcdir=$ac_top_srcdir;;
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
959 test -n "$ac_init_help" && exit 0
960 if $ac_init_version; then
962 wmwork configure 0.2.5
963 generated by GNU Autoconf 2.59
965 Copyright (C) 2003 Free Software Foundation, Inc.
966 This configure script is free software; the Free Software Foundation
967 gives unlimited permission to copy, distribute and modify it.
973 This file contains any messages produced by compilers while
974 running configure, to aid debugging if configure makes a mistake.
976 It was created by wmwork $as_me 0.2.5, which was
977 generated by GNU Autoconf 2.59. Invocation command line was
988 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
989 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
990 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
991 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
992 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
994 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
995 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
997 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
998 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
999 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1000 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1001 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1002 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1003 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1011 test -z "$as_dir" && as_dir=.
1012 echo "PATH: $as_dir"
1027 # Keep a trace of the command line.
1028 # Strip out --no-create and --no-recursion so they do not pile up.
1029 # Strip out --silent because we don't want to record it for future runs.
1030 # Also quote any args containing shell meta-characters.
1031 # Make two passes to allow for proper duplicate-argument suppression.
1036 ac_must_keep_next=false
1042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1046 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1050 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1052 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053 if test $ac_must_keep_next = true; then
1054 ac_must_keep_next=false # Got value, back to normal.
1057 *=* | --config-cache | -C | -disable-* | --disable-* \
1058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060 | -with-* | --with-* | -without-* | --without-* | --x)
1061 case "$ac_configure_args0 " in
1062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 -* ) ac_must_keep_next=true ;;
1068 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069 # Get rid of the leading space.
1075 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1078 # When interrupted or exit'd, cleanup temporary files, and complete
1079 # config.log. We remove comments because anyway the quotes in there
1080 # would cause problems or look ugly.
1081 # WARNING: Be sure not to use single quotes in there, as some shells,
1082 # such as our DU 5.0 friend, will then `close
' the trap.
1083 trap 'exit_status
=$?
1084 # Save into config.log some information that might help in debugging.
1089 ## ---------------- ##
1090 ## Cache variables. ##
1091 ## ---------------- ##
1094 # The following way of writing the cache mishandles newlines in values,
1097 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1105 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ## ----------------- ##
1113 ## Output variables. ##
1114 ## ----------------- ##
1117 for ac_var
in $ac_subst_vars
1119 eval ac_val
=$
`echo $ac_var`
1120 echo "$ac_var='"'"'$ac_val'"'"'"
1124 if test -n "$ac_subst_files"; then
1131 for ac_var
in $ac_subst_files
1133 eval ac_val
=$
`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1139 if test -s confdefs.h
; then
1146 sed "/^$/d" confdefs.h |
sort
1149 test "$ac_signal" != 0 &&
1150 echo "$as_me: caught signal $ac_signal"
1151 echo "$as_me: exit $exit_status"
1153 rm -f core
*.core
&&
1154 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1157 for ac_signal in 1 2 13 15; do
1158 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1162 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1163 rm -rf conftest* confdefs.h
1164 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 # Predefined preprocessor variables.
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_NAME "$PACKAGE_NAME"
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_STRING "$PACKAGE_STRING"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1194 # Let the site file select an alternate cache file if it wants to.
1195 # Prefer explicitly selected file to automatically selected ones.
1196 if test -z "$CONFIG_SITE"; then
1197 if test "x$prefix" != xNONE; then
1198 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1200 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 for ac_site_file in $CONFIG_SITE; do
1204 if test -r "$ac_site_file"; then
1205 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206 echo "$as_me: loading site script $ac_site_file" >&6;}
1207 sed 's
/^
/|
/' "$ac_site_file" >&5
1212 if test -r "$cache_file"; then
1213 # Some versions of bash will fail to source /dev/null (special
1214 # files actually), so we avoid doing that.
1215 if test -f "$cache_file"; then
1216 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217 echo "$as_me: loading cache $cache_file" >&6;}
1219 [\\/]* | ?:[\\/]* ) . $cache_file;;
1220 *) . ./$cache_file;;
1224 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225 echo "$as_me: creating cache $cache_file" >&6;}
1229 # Check that the precious variables saved in the cache have kept the same
1231 ac_cache_corrupted=false
1232 for ac_var in `(set) 2>&1 |
1233 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1234 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235 eval ac_new_set=\$ac_env_${ac_var}_set
1236 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237 eval ac_new_val="\$ac_env_${ac_var}_value"
1238 case $ac_old_set,$ac_new_set in
1240 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1242 ac_cache_corrupted=: ;;
1244 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1245 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246 ac_cache_corrupted=: ;;
1249 if test "x$ac_old_val" != "x$ac_new_val"; then
1250 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1251 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1252 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1253 echo "$as_me: former value: $ac_old_val" >&2;}
1254 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1255 echo "$as_me: current value: $ac_new_val" >&2;}
1256 ac_cache_corrupted=:
1259 # Pass precious variables to config.status.
1260 if test "$ac_new_set" = set; then
1262 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1264 *) ac_arg=$ac_var=$ac_new_val ;;
1266 case " $ac_configure_args " in
1267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1268 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1272 if $ac_cache_corrupted; then
1273 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1275 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1276 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277 { (exit 1); exit 1; }; }
1281 ac_cpp='$CPP $CPPFLAGS'
1282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1283 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 ac_config_headers="$ac_config_headers config.h"
1316 # ----------------------------------------------------------------------------
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1320 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1322 if test -n "$ac_tool_prefix"; then
1323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1325 echo "$as_me:$LINENO: checking for $ac_word" >&5
1326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1327 if test "${ac_cv_prog_CC+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1330 if test -n "$CC"; then
1331 ac_cv_prog_CC="$CC" # Let the user override the test.
1333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1337 test -z "$as_dir" && as_dir=.
1338 for ac_exec_ext in '' $ac_executable_extensions; do
1339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1350 if test -n "$CC"; then
1351 echo "$as_me:$LINENO: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:$LINENO: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$ac_cv_prog_CC"; then
1361 # Extract the first word of "gcc", so it can be a program name with args.
1362 set dummy gcc; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1368 if test -n "$ac_ct_CC"; then
1369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375 test -z "$as_dir" && as_dir=.
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1378 ac_cv_prog_ac_ct_CC="gcc"
1379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1388 if test -n "$ac_ct_CC"; then
1389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1390 echo "${ECHO_T}$ac_ct_CC" >&6
1392 echo "$as_me:$LINENO: result: no" >&5
1393 echo "${ECHO_T}no" >&6
1401 if test -z "$CC"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}cc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}cc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1439 if test -z "$ac_cv_prog_CC"; then
1441 # Extract the first word of "cc", so it can be a program name with args.
1442 set dummy cc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="cc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1482 if test -z "$CC"; then
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 for ac_exec_ext in '' $ac_executable_extensions; do
1500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1502 ac_prog_rejected=yes
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 if test $ac_prog_rejected = yes; then
1513 # We found a bogon in the path, so make sure we never use it.
1514 set dummy $ac_cv_prog_CC
1516 if test $# != 0; then
1517 # We chose a different compiler from the bogus one.
1518 # However, it has the same basename, so the bogon will be chosen
1519 # first if we set CC to just the basename; use the full file name.
1521 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1527 if test -n "$CC"; then
1528 echo "$as_me:$LINENO: result: $CC" >&5
1529 echo "${ECHO_T}$CC" >&6
1531 echo "$as_me:$LINENO: result: no" >&5
1532 echo "${ECHO_T}no" >&6
1536 if test -z "$CC"; then
1537 if test -n "$ac_tool_prefix"; then
1540 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 if test -n "$CC"; then
1548 ac_cv_prog_CC="$CC" # Let the user override the test.
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1567 if test -n "$CC"; then
1568 echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1571 echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1575 test -n "$CC" && break
1578 if test -z "$CC"; then
1582 # Extract the first word of "$ac_prog", so it can be a program name with args.
1583 set dummy $ac_prog; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="$ac_prog"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609 if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611 echo "${ECHO_T}$ac_ct_CC" >&6
1613 echo "$as_me:$LINENO: result: no" >&5
1614 echo "${ECHO_T}no" >&6
1617 test -n "$ac_ct_CC" && break
1626 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1627 See \`config.log' for more details.
" >&5
1628 echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
1629 See \
`config.log' for more details." >&2;}
1630 { (exit 1); exit 1; }; }
1632 # Provide some information about the compiler.
1633 echo "$as_me:$LINENO:" \
1634 "checking for C compiler version" >&5
1635 ac_compiler=`set X
$ac_compile; echo $2`
1636 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1637 (eval $ac_compiler --version </dev/null >&5) 2>&5
1639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640 (exit $ac_status); }
1641 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1642 (eval $ac_compiler -v </dev/null >&5) 2>&5
1644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1645 (exit $ac_status); }
1646 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1647 (eval $ac_compiler -V </dev/null >&5) 2>&5
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }
1652 cat >conftest.$ac_ext <<_ACEOF
1655 cat confdefs.h >>conftest.$ac_ext
1656 cat >>conftest.$ac_ext <<_ACEOF
1657 /* end confdefs.h. */
1667 ac_clean_files_save=$ac_clean_files
1668 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1669 # Try to create an executable without -o first, disregard a.out.
1670 # It will help us diagnose broken compilers, and finding out an intuition
1672 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1673 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1674 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
1675 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1676 (eval $ac_link_default) 2>&5
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679 (exit $ac_status); }; then
1680 # Find the output, starting from the most likely. This scheme is
1681 # not robust to junk in `.
', hence go to wildcards (a.*) only as a last
1684 # Be careful to initialize this variable, since it used to be cached.
1685 # Otherwise an old cache value of `no' led to
`EXEEXT = no' in a Makefile.
1687 # b.out is created by i960 compilers.
1688 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1690 test -f "$ac_file" || continue
1692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1695 # This is the source file.
1698 # We found the default executable, but exeext='' is most
1702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1703 # FIXME: I believe we export ac_cv_exeext for Libtool,
1704 # but it would be cool to find out if it's true. Does anybody
1705 # maintain Libtool? --akim.
1713 echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1717 See \`config.log
' for more details." >&5
1718 echo "$as_me: error: C compiler cannot create executables
1719 See \`config.log' for more details.
" >&2;}
1720 { (exit 77); exit 77; }; }
1723 ac_exeext=$ac_cv_exeext
1724 echo "$as_me:$LINENO: result
: $ac_file" >&5
1725 echo "${ECHO_T}$ac_file" >&6
1727 # Check the compiler produces executables we can run. If not, either
1728 # the compiler is broken, or we cross compile.
1729 echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
1730 echo $ECHO_N "checking whether the C compiler works...
$ECHO_C" >&6
1731 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1732 # If not cross compiling, check that we can run a simple program.
1733 if test "$cross_compiling" != yes; then
1734 if { ac_try='./$ac_file'
1735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
1739 (exit $ac_status); }; }; then
1742 if test "$cross_compiling" = maybe; then
1745 { { echo "$as_me:$LINENO: error
: cannot run C compiled programs.
1746 If you meant to cross compile
, use \
`--host'.
1747 See \`config.log
' for more details." >&5
1748 echo "$as_me: error: cannot run C compiled programs.
1749 If you meant to cross compile, use \`--host'.
1750 See \
`config.log' for more details." >&2;}
1751 { (exit 1); exit 1; }; }
1755 echo "$as_me:$LINENO: result: yes" >&5
1756 echo "${ECHO_T}yes" >&6
1758 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1759 ac_clean_files=$ac_clean_files_save
1760 # Check the compiler produces executables we can run. If not, either
1761 # the compiler is broken, or we cross compile.
1762 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1763 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1764 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1765 echo "${ECHO_T}$cross_compiling" >&6
1767 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1768 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1770 (eval $ac_link) 2>&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
1775 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
1776 # work properly (i.e., refer to `conftest.exe'), while it won't with
1778 for ac_file
in conftest.exe conftest conftest.
*; do
1779 test -f "$ac_file" ||
continue
1781 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
1782 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1789 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1790 See \`config.log' for more details." >&5
1791 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1792 See \`config.log' for more details." >&2;}
1793 { (exit 1); exit 1; }; }
1796 rm -f conftest
$ac_cv_exeext
1797 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1798 echo "${ECHO_T}$ac_cv_exeext" >&6
1800 rm -f conftest.
$ac_ext
1801 EXEEXT
=$ac_cv_exeext
1803 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1804 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1805 if test "${ac_cv_objext+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 cat >conftest.
$ac_ext <<_ACEOF
1811 cat confdefs.h
>>conftest.
$ac_ext
1812 cat >>conftest.
$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1823 rm -f conftest.o conftest.obj
1824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1825 (eval $ac_compile) 2>&5
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
1832 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1837 echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.
$ac_ext >&5
1840 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1841 See \`config.log' for more details." >&5
1842 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1843 See \`config.log' for more details." >&2;}
1844 { (exit 1); exit 1; }; }
1847 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1849 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1850 echo "${ECHO_T}$ac_cv_objext" >&6
1851 OBJEXT
=$ac_cv_objext
1853 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1854 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1855 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1856 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 cat >conftest.
$ac_ext <<_ACEOF
1861 cat confdefs.h
>>conftest.
$ac_ext
1862 cat >>conftest.
$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1876 rm -f conftest.
$ac_objext
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>conftest.er1
1880 grep -v '^ *+' conftest.er1
>conftest.err
1882 cat conftest.err
>&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); } &&
1885 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; } &&
1891 { ac_try
='test -s conftest.$ac_objext'
1892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896 (exit $ac_status); }; }; then
1899 echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.
$ac_ext >&5
1904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1905 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1908 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1910 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1911 ac_test_CFLAGS
=${CFLAGS+set}
1912 ac_save_CFLAGS
=$CFLAGS
1914 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1915 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1916 if test "${ac_cv_prog_cc_g+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1919 cat >conftest.
$ac_ext <<_ACEOF
1922 cat confdefs.h
>>conftest.
$ac_ext
1923 cat >>conftest.
$ac_ext <<_ACEOF
1924 /* end confdefs.h. */
1934 rm -f conftest.
$ac_objext
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936 (eval $ac_compile) 2>conftest.er1
1938 grep -v '^ *+' conftest.er1
>conftest.err
1940 cat conftest.err
>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); } &&
1943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; } &&
1949 { ac_try
='test -s conftest.$ac_objext'
1950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954 (exit $ac_status); }; }; then
1957 echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1965 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1966 if test "$ac_test_CFLAGS" = set; then
1967 CFLAGS
=$ac_save_CFLAGS
1968 elif test $ac_cv_prog_cc_g = yes; then
1969 if test "$GCC" = yes; then
1975 if test "$GCC" = yes; then
1981 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1982 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1983 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 ac_cv_prog_cc_stdc
=no
1988 cat >conftest.
$ac_ext <<_ACEOF
1991 cat confdefs.h
>>conftest.
$ac_ext
1992 cat >>conftest.
$ac_ext <<_ACEOF
1993 /* end confdefs.h. */
1996 #include <sys/types.h>
1997 #include <sys/stat.h>
1998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1999 struct buf { int x; };
2000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2001 static char *e (p, i)
2007 static char *f (char * (*g) (char **, int), char **p, ...)
2012 s = g (p, va_arg (v,int));
2017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2018 function prototypes and stuff, but not '\xHH' hex character constants.
2019 These don't provoke an error unfortunately, instead are silently treated
2020 as 'x'. The following induces an error, until -std1 is added to get
2021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2022 array size at least. It's necessary to write '\x00'==0 to get something
2023 that's true only with -std1. */
2024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2026 int test (int i, double x);
2027 struct s1 {int (*f) (int a);};
2028 struct s2 {int (*f) (double a);};
2029 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2035 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2040 # Don't try gcc -ansi; that turns off useful extensions and
2041 # breaks some systems' header files.
2042 # AIX -qlanglvl=ansi
2043 # Ultrix and OSF/1 -std1
2044 # HP-UX 10.20 and later -Ae
2045 # HP-UX older versions -Aa -D_HPUX_SOURCE
2046 # SVR4 -Xc -D__EXTENSIONS__
2047 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2049 CC
="$ac_save_CC $ac_arg"
2050 rm -f conftest.
$ac_objext
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2054 grep -v '^ *+' conftest.er1
>conftest.err
2056 cat conftest.err
>&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
2059 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064 (exit $ac_status); }; } &&
2065 { ac_try
='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 ac_cv_prog_cc_stdc
=$ac_arg
2074 echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.
$ac_ext >&5
2078 rm -f conftest.err conftest.
$ac_objext
2080 rm -f conftest.
$ac_ext conftest.
$ac_objext
2085 case "x$ac_cv_prog_cc_stdc" in
2087 echo "$as_me:$LINENO: result: none needed" >&5
2088 echo "${ECHO_T}none needed" >&6 ;;
2090 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2091 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2092 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2095 # Some people use a C++ compiler to compile C. Since we use `exit',
2096 # in C++ we need to declare it. In case someone uses the same compiler
2097 # for both compiling C and C++ we need to have the C++ compiler decide
2098 # the declaration of exit, since it's the most demanding environment.
2099 cat >conftest.
$ac_ext <<_ACEOF
2104 rm -f conftest.
$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2108 grep -v '^ *+' conftest.er1
>conftest.err
2110 cat conftest.err
>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; } &&
2119 { ac_try
='test -s conftest.$ac_objext'
2120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; }; then
2125 for ac_declaration
in \
2127 'extern "C" void std::exit (int) throw (); using std::exit;' \
2128 'extern "C" void std::exit (int); using std::exit;' \
2129 'extern "C" void exit (int) throw ();' \
2130 'extern "C" void exit (int);' \
2133 cat >conftest.
$ac_ext <<_ACEOF
2136 cat confdefs.h
>>conftest.
$ac_ext
2137 cat >>conftest.
$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2149 rm -f conftest.
$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>conftest.er1
2153 grep -v '^ *+' conftest.er1
>conftest.err
2155 cat conftest.err
>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try
='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.
$ac_ext >&5
2177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2178 cat >conftest.
$ac_ext <<_ACEOF
2181 cat confdefs.h
>>conftest.
$ac_ext
2182 cat >>conftest.
$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2193 rm -f conftest.
$ac_objext
2194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>conftest.er1
2197 grep -v '^ *+' conftest.er1
>conftest.err
2199 cat conftest.err
>&5
2200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201 (exit $ac_status); } &&
2202 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try
='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2216 echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.
$ac_ext >&5
2220 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2223 if test -n "$ac_declaration"; then
2224 echo '#ifdef __cplusplus' >>confdefs.h
2225 echo $ac_declaration >>confdefs.h
2226 echo '#endif' >>confdefs.h
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.
$ac_ext >&5
2234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 ac_cpp
='$CPP $CPPFLAGS'
2237 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2242 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2243 if test -f $ac_dir/install-sh
; then
2245 ac_install_sh
="$ac_aux_dir/install-sh -c"
2247 elif test -f $ac_dir/install.sh
; then
2249 ac_install_sh
="$ac_aux_dir/install.sh -c"
2251 elif test -f $ac_dir/shtool
; then
2253 ac_install_sh
="$ac_aux_dir/shtool install -c"
2257 if test -z "$ac_aux_dir"; then
2258 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2259 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2260 { (exit 1); exit 1; }; }
2262 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
2263 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
2264 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2266 # Find a good install program. We prefer a C program (faster),
2267 # so one script is as good as another. But avoid the broken or
2268 # incompatible versions:
2269 # SysV /etc/install, /usr/sbin/install
2270 # SunOS /usr/etc/install
2271 # IRIX /sbin/install
2273 # AmigaOS /C/install, which installs bootblocks on floppy discs
2274 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2277 # OS/2's system install, which has a completely different semantic
2278 # ./install, which can be erroneously created by make from ./install.sh.
2279 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2280 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2281 if test -z "$INSTALL"; then
2282 if test "${ac_cv_path_install+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2289 test -z "$as_dir" && as_dir
=.
2290 # Account for people who put trailing slashes in PATH elements.
2292 .
/ | .
// |
/cC
/* | \
2293 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2294 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2297 # OSF1 and SCO ODT 3.0 have their own names for install.
2298 # Don't use installbsd from OSF since it installs stuff as root
2300 for ac_prog
in ginstall scoinst
install; do
2301 for ac_exec_ext
in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2303 if test $ac_prog = install &&
2304 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2305 # AIX install. It has an incompatible calling convention.
2307 elif test $ac_prog = install &&
2308 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2309 # program-specific install script used by HP pwplus--don't use.
2312 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2324 if test "${ac_cv_path_install+set}" = set; then
2325 INSTALL
=$ac_cv_path_install
2327 # As a last resort, use the slow shell script. We don't cache a
2328 # path for INSTALL within a source directory, because that will
2329 # break other packages using the cache if that directory is
2330 # removed, or if the path is relative.
2331 INSTALL
=$ac_install_sh
2334 echo "$as_me:$LINENO: result: $INSTALL" >&5
2335 echo "${ECHO_T}$INSTALL" >&6
2337 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2338 # It thinks the first close brace ends the variable substitution.
2339 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2341 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2343 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2345 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2346 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2347 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
2348 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 cat >conftest.
make <<\_ACEOF
2353 @
echo 'ac_maketemp="$(MAKE)"'
2355 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2356 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2357 if test -n "$ac_maketemp"; then
2358 eval ac_cv_prog_make_
${ac_make}_set
=yes
2360 eval ac_cv_prog_make_
${ac_make}_set
=no
2364 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2365 echo "$as_me:$LINENO: result: yes" >&5
2366 echo "${ECHO_T}yes" >&6
2369 echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6
2371 SET_MAKE
="MAKE=${MAKE-make}"
2374 # ----------------------------------------------------------------------------
2377 ac_cpp
='$CPP $CPPFLAGS'
2378 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2379 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2380 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2381 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2383 # On Suns, sometimes $CPP names a directory.
2384 if test -n "$CPP" && test -d "$CPP"; then
2387 if test -z "$CPP"; then
2388 if test "${ac_cv_prog_CPP+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 # Double quotes because CPP needs to be expanded
2392 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2395 for ac_c_preproc_warn_flag
in '' yes
2397 # Use a header file that comes with gcc, so configuring glibc
2398 # with a fresh cross-compiler works.
2399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2400 # <limits.h> exists even on freestanding compilers.
2401 # On the NeXT, cc -E runs the code through the compiler's parser,
2402 # not just through cpp. "Syntax error" is here to catch this case.
2403 cat >conftest.
$ac_ext <<_ACEOF
2406 cat confdefs.h
>>conftest.
$ac_ext
2407 cat >>conftest.
$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2410 # include <limits.h>
2412 # include <assert.h>
2416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2417 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2419 grep -v '^ *+' conftest.er1
>conftest.err
2421 cat conftest.err
>&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } >/dev
/null
; then
2424 if test -s conftest.err
; then
2425 ac_cpp_err
=$ac_c_preproc_warn_flag
2426 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2433 if test -z "$ac_cpp_err"; then
2436 echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.
$ac_ext >&5
2439 # Broken: fails on valid input.
2442 rm -f conftest.err conftest.
$ac_ext
2444 # OK, works on sane cases. Now check whether non-existent headers
2445 # can be detected and how.
2446 cat >conftest.
$ac_ext <<_ACEOF
2449 cat confdefs.h
>>conftest.
$ac_ext
2450 cat >>conftest.
$ac_ext <<_ACEOF
2451 /* end confdefs.h. */
2452 #include <ac_nonexistent.h>
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2457 grep -v '^ *+' conftest.er1
>conftest.err
2459 cat conftest.err
>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev
/null
; then
2462 if test -s conftest.err
; then
2463 ac_cpp_err
=$ac_c_preproc_warn_flag
2464 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2471 if test -z "$ac_cpp_err"; then
2472 # Broken: success on invalid input.
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.
$ac_ext >&5
2478 # Passes both tests.
2482 rm -f conftest.err conftest.
$ac_ext
2485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2486 rm -f conftest.err conftest.
$ac_ext
2487 if $ac_preproc_ok; then
2499 echo "$as_me:$LINENO: result: $CPP" >&5
2500 echo "${ECHO_T}$CPP" >&6
2502 for ac_c_preproc_warn_flag
in '' yes
2504 # Use a header file that comes with gcc, so configuring glibc
2505 # with a fresh cross-compiler works.
2506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2507 # <limits.h> exists even on freestanding compilers.
2508 # On the NeXT, cc -E runs the code through the compiler's parser,
2509 # not just through cpp. "Syntax error" is here to catch this case.
2510 cat >conftest.
$ac_ext <<_ACEOF
2513 cat confdefs.h
>>conftest.
$ac_ext
2514 cat >>conftest.
$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2517 # include <limits.h>
2519 # include <assert.h>
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2526 grep -v '^ *+' conftest.er1
>conftest.err
2528 cat conftest.err
>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } >/dev
/null
; then
2531 if test -s conftest.err
; then
2532 ac_cpp_err
=$ac_c_preproc_warn_flag
2533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2540 if test -z "$ac_cpp_err"; then
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.
$ac_ext >&5
2546 # Broken: fails on valid input.
2549 rm -f conftest.err conftest.
$ac_ext
2551 # OK, works on sane cases. Now check whether non-existent headers
2552 # can be detected and how.
2553 cat >conftest.
$ac_ext <<_ACEOF
2556 cat confdefs.h
>>conftest.
$ac_ext
2557 cat >>conftest.
$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2559 #include <ac_nonexistent.h>
2561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2562 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2564 grep -v '^ *+' conftest.er1
>conftest.err
2566 cat conftest.err
>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } >/dev
/null
; then
2569 if test -s conftest.err
; then
2570 ac_cpp_err
=$ac_c_preproc_warn_flag
2571 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2578 if test -z "$ac_cpp_err"; then
2579 # Broken: success on invalid input.
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.
$ac_ext >&5
2585 # Passes both tests.
2589 rm -f conftest.err conftest.
$ac_ext
2592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2593 rm -f conftest.err conftest.
$ac_ext
2594 if $ac_preproc_ok; then
2597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2605 ac_cpp
='$CPP $CPPFLAGS'
2606 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2612 if test "x$ac_path_x_has_been_run" != xyes
; then
2613 echo "$as_me:$LINENO: checking for X" >&5
2614 echo $ECHO_N "checking for X... $ECHO_C" >&6
2616 ac_path_x_has_been_run
=yes
2618 # Check whether --with-x or --without-x was given.
2619 if test "${with_x+set}" = set; then
2623 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2624 if test "x$with_x" = xno
; then
2625 # The user explicitly disabled X.
2628 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2629 # Both variables are already set.
2632 if test "${ac_cv_have_x+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 # One or both of the vars are not set, and there is no cached value.
2636 ac_x_includes
=no ac_x_libraries
=no
2638 if mkdir conftest.dir
; then
2640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2641 cat >Imakefile
<<'_ACEOF'
2643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2645 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649 for ac_extension
in a so sl
; do
2650 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2651 test -f $ac_im_libdir/libX11.
$ac_extension; then
2652 ac_im_usrlibdir
=$ac_im_libdir; break
2655 # Screen out bogus values from the imake configuration. They are
2656 # bogus both because they are the default anyway, and because
2657 # using them would break gcc on systems where it needs fixed includes.
2658 case $ac_im_incroot in
2660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
2662 case $ac_im_usrlibdir in
2664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
2671 # Standard set of common directories for X headers.
2672 # Check X11 before X11Rn because it is often a symlink to the current release.
2684 /usr/local/X11/include
2685 /usr/local/X11R6/include
2686 /usr/local/X11R5/include
2687 /usr/local/X11R4/include
2689 /usr/local/include/X11
2690 /usr/local/include/X11R6
2691 /usr/local/include/X11R5
2692 /usr/local/include/X11R4
2696 /usr/XFree86/include/X11
2700 /usr/unsupported/include
2702 /usr/local/x11r5/include
2703 /usr/lpp/Xamples/include
2705 /usr/openwin/include
2706 /usr/openwin/share/include'
2708 if test "$ac_x_includes" = no
; then
2709 # Guess where to find include files, by looking for a specified header file.
2710 # First, try using that file with no special directory specified.
2711 cat >conftest.
$ac_ext <<_ACEOF
2714 cat confdefs.h
>>conftest.
$ac_ext
2715 cat >>conftest.
$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2717 #include <X11/Xlib.h>
2719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2720 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2722 grep -v '^ *+' conftest.er1
>conftest.err
2724 cat conftest.err
>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } >/dev
/null
; then
2727 if test -s conftest.err
; then
2728 ac_cpp_err
=$ac_c_preproc_warn_flag
2729 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2736 if test -z "$ac_cpp_err"; then
2737 # We can compile using X headers with no special include directory.
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.
$ac_ext >&5
2743 for ac_dir
in $ac_x_header_dirs; do
2744 if test -r "$ac_dir/X11/Xlib.h"; then
2745 ac_x_includes
=$ac_dir
2750 rm -f conftest.err conftest.
$ac_ext
2751 fi # $ac_x_includes = no
2753 if test "$ac_x_libraries" = no
; then
2754 # Check for the libraries.
2755 # See if we find them without any special options.
2756 # Don't add to $LIBS permanently.
2759 cat >conftest.
$ac_ext <<_ACEOF
2762 cat confdefs.h
>>conftest.
$ac_ext
2763 cat >>conftest.
$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2765 #include <X11/Xlib.h>
2774 rm -f conftest.
$ac_objext conftest
$ac_exeext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2776 (eval $ac_link) 2>conftest.er1
2778 grep -v '^ *+' conftest.er1
>conftest.err
2780 cat conftest.err
>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } &&
2783 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; } &&
2789 { ac_try
='test -s conftest$ac_exeext'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2796 # We can link X programs with no special library path.
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.
$ac_ext >&5
2803 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2805 # Don't even attempt the hair of trying to link an X program!
2806 for ac_extension
in a so sl
; do
2807 if test -r $ac_dir/libX11.
$ac_extension; then
2808 ac_x_libraries
=$ac_dir
2814 rm -f conftest.err conftest.
$ac_objext \
2815 conftest
$ac_exeext conftest.
$ac_ext
2816 fi # $ac_x_libraries = no
2818 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
2819 # Didn't find X anywhere. Cache the known absence of X.
2820 ac_cv_have_x
="have_x=no"
2822 # Record where we found X for the cache.
2823 ac_cv_have_x
="have_x=yes \
2824 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2829 eval "$ac_cv_have_x"
2832 if test "$have_x" != yes; then
2833 echo "$as_me:$LINENO: result: $have_x" >&5
2834 echo "${ECHO_T}$have_x" >&6
2837 # If each of the values was on the command line, it overrides each guess.
2838 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
2839 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
2840 # Update the cache value to reflect the command line values.
2841 ac_cv_have_x
="have_x=yes \
2842 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2843 # It might be that x_includes is empty (headers are found in the
2844 # standard search path. Then output the corresponding message
2845 ac_out_x_includes
=$x_includes
2846 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
2847 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
2848 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
2852 if test "$no_x" = yes; then
2853 # Not all programs may use this symbol, but it does not hurt to define it.
2855 cat >>confdefs.h
<<\_ACEOF
2856 #define X_DISPLAY_MISSING 1
2859 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
2861 if test -n "$x_includes"; then
2862 X_CFLAGS
="$X_CFLAGS -I$x_includes"
2865 # It would also be nice to do this for all -L options, not just this one.
2866 if test -n "$x_libraries"; then
2867 X_LIBS
="$X_LIBS -L$x_libraries"
2868 # For Solaris; some versions of Sun CC require a space after -R and
2869 # others require no space. Words are not sufficient . . . .
2870 case `(uname -sr) 2>/dev/null` in
2872 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2873 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2874 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
2875 cat >conftest.
$ac_ext <<_ACEOF
2878 cat confdefs.h
>>conftest.
$ac_ext
2879 cat >>conftest.
$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2890 rm -f conftest.
$ac_objext conftest
$ac_exeext
2891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2892 (eval $ac_link) 2>conftest.er1
2894 grep -v '^ *+' conftest.er1
>conftest.err
2896 cat conftest.err
>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
2899 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); }; } &&
2905 { ac_try
='test -s conftest$ac_exeext'
2906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; }; then
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.
$ac_ext >&5
2918 rm -f conftest.err conftest.
$ac_objext \
2919 conftest
$ac_exeext conftest.
$ac_ext
2920 if test $ac_R_nospace = yes; then
2921 echo "$as_me:$LINENO: result: no" >&5
2922 echo "${ECHO_T}no" >&6
2923 X_LIBS
="$X_LIBS -R$x_libraries"
2925 LIBS
="$ac_xsave_LIBS -R $x_libraries"
2926 cat >conftest.
$ac_ext <<_ACEOF
2929 cat confdefs.h
>>conftest.
$ac_ext
2930 cat >>conftest.
$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2941 rm -f conftest.
$ac_objext conftest
$ac_exeext
2942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>conftest.er1
2945 grep -v '^ *+' conftest.er1
>conftest.err
2947 cat conftest.err
>&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } &&
2950 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try
='test -s conftest$ac_exeext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.
$ac_ext >&5
2969 rm -f conftest.err conftest.
$ac_objext \
2970 conftest
$ac_exeext conftest.
$ac_ext
2971 if test $ac_R_space = yes; then
2972 echo "$as_me:$LINENO: result: yes" >&5
2973 echo "${ECHO_T}yes" >&6
2974 X_LIBS
="$X_LIBS -R $x_libraries"
2976 echo "$as_me:$LINENO: result: neither works" >&5
2977 echo "${ECHO_T}neither works" >&6
2984 # Check for system-dependent libraries X programs must link with.
2985 # Do this before checking for the system-independent R6 libraries
2986 # (-lICE), since we may need -lsocket or whatever for X linking.
2988 if test "$ISC" = yes; then
2989 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
2991 # Martyn Johnson says this is needed for Ultrix, if the X
2992 # libraries were built with DECnet support. And Karl Berry says
2993 # the Alpha needs dnet_stub (dnet does not exist).
2994 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
2995 cat >conftest.
$ac_ext <<_ACEOF
2998 cat confdefs.h
>>conftest.
$ac_ext
2999 cat >>conftest.
$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3002 /* Override any gcc2 internal prototype to avoid an error. */
3006 /* We use char because int might match the return type of a gcc2
3007 builtin and then its argument prototype would still apply. */
3008 char XOpenDisplay ();
3017 rm -f conftest.
$ac_objext conftest
$ac_exeext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3019 (eval $ac_link) 2>conftest.er1
3021 grep -v '^ *+' conftest.er1
>conftest.err
3023 cat conftest.err
>&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try
='test -s conftest$ac_exeext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.
$ac_ext >&5
3043 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3044 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3045 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 ac_check_lib_save_LIBS
=$LIBS
3050 cat >conftest.
$ac_ext <<_ACEOF
3053 cat confdefs.h
>>conftest.
$ac_ext
3054 cat >>conftest.
$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3057 /* Override any gcc2 internal prototype to avoid an error. */
3061 /* We use char because int might match the return type of a gcc2
3062 builtin and then its argument prototype would still apply. */
3072 rm -f conftest.
$ac_objext conftest
$ac_exeext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074 (eval $ac_link) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1
>conftest.err
3078 cat conftest.err
>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); }; } &&
3087 { ac_try
='test -s conftest$ac_exeext'
3088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; }; then
3093 ac_cv_lib_dnet_dnet_ntoa
=yes
3095 echo "$as_me: failed program was:" >&5
3096 sed 's/^/| /' conftest.
$ac_ext >&5
3098 ac_cv_lib_dnet_dnet_ntoa
=no
3100 rm -f conftest.err conftest.
$ac_objext \
3101 conftest
$ac_exeext conftest.
$ac_ext
3102 LIBS
=$ac_check_lib_save_LIBS
3104 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3105 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3106 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3107 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3110 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3111 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3112 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3113 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 ac_check_lib_save_LIBS
=$LIBS
3117 LIBS
="-ldnet_stub $LIBS"
3118 cat >conftest.
$ac_ext <<_ACEOF
3121 cat confdefs.h
>>conftest.
$ac_ext
3122 cat >>conftest.
$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3125 /* Override any gcc2 internal prototype to avoid an error. */
3129 /* We use char because int might match the return type of a gcc2
3130 builtin and then its argument prototype would still apply. */
3140 rm -f conftest.
$ac_objext conftest
$ac_exeext
3141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142 (eval $ac_link) 2>conftest.er1
3144 grep -v '^ *+' conftest.er1
>conftest.err
3146 cat conftest.err
>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; } &&
3155 { ac_try
='test -s conftest$ac_exeext'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.
$ac_ext >&5
3166 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3168 rm -f conftest.err conftest.
$ac_objext \
3169 conftest
$ac_exeext conftest.
$ac_ext
3170 LIBS
=$ac_check_lib_save_LIBS
3172 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3173 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3174 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3175 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3180 rm -f conftest.err conftest.
$ac_objext \
3181 conftest
$ac_exeext conftest.
$ac_ext
3182 LIBS
="$ac_xsave_LIBS"
3184 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3185 # to get the SysV transport functions.
3186 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3188 # The nsl library prevents programs from opening the X display
3189 # on Irix 5.2, according to T.E. Dickey.
3190 # The functions gethostbyname, getservbyname, and inet_addr are
3191 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3192 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3193 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3194 if test "${ac_cv_func_gethostbyname+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 cat >conftest.
$ac_ext <<_ACEOF
3200 cat confdefs.h
>>conftest.
$ac_ext
3201 cat >>conftest.
$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3205 #define gethostbyname innocuous_gethostbyname
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char gethostbyname (); below.
3209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3210 <limits.h> exists even on freestanding compilers. */
3213 # include <limits.h>
3215 # include <assert.h>
3218 #undef gethostbyname
3220 /* Override any gcc2 internal prototype to avoid an error. */
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227 char gethostbyname ();
3228 /* The GNU C library defines this for functions which it implements
3229 to always fail with ENOSYS. Some functions are actually named
3230 something starting with __ and the normal name is an alias. */
3231 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3234 char (*f) () = gethostbyname;
3243 return f != gethostbyname;
3248 rm -f conftest.
$ac_objext conftest
$ac_exeext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3250 (eval $ac_link) 2>conftest.er1
3252 grep -v '^ *+' conftest.er1
>conftest.err
3254 cat conftest.err
>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try
='test -s conftest$ac_exeext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_cv_func_gethostbyname
=yes
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.
$ac_ext >&5
3274 ac_cv_func_gethostbyname
=no
3276 rm -f conftest.err conftest.
$ac_objext \
3277 conftest
$ac_exeext conftest.
$ac_ext
3279 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3280 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3282 if test $ac_cv_func_gethostbyname = no
; then
3283 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3284 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3285 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 ac_check_lib_save_LIBS
=$LIBS
3290 cat >conftest.
$ac_ext <<_ACEOF
3293 cat confdefs.h
>>conftest.
$ac_ext
3294 cat >>conftest.
$ac_ext <<_ACEOF
3295 /* end confdefs.h. */
3297 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3303 char gethostbyname ();
3312 rm -f conftest.
$ac_objext conftest
$ac_exeext
3313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3314 (eval $ac_link) 2>conftest.er1
3316 grep -v '^ *+' conftest.er1
>conftest.err
3318 cat conftest.err
>&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } &&
3321 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; } &&
3327 { ac_try
='test -s conftest$ac_exeext'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; }; then
3333 ac_cv_lib_nsl_gethostbyname
=yes
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.
$ac_ext >&5
3338 ac_cv_lib_nsl_gethostbyname
=no
3340 rm -f conftest.err conftest.
$ac_objext \
3341 conftest
$ac_exeext conftest.
$ac_ext
3342 LIBS
=$ac_check_lib_save_LIBS
3344 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3345 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3346 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3347 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3350 if test $ac_cv_lib_nsl_gethostbyname = no
; then
3351 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3352 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3353 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 ac_check_lib_save_LIBS
=$LIBS
3358 cat >conftest.
$ac_ext <<_ACEOF
3361 cat confdefs.h
>>conftest.
$ac_ext
3362 cat >>conftest.
$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3365 /* Override any gcc2 internal prototype to avoid an error. */
3369 /* We use char because int might match the return type of a gcc2
3370 builtin and then its argument prototype would still apply. */
3371 char gethostbyname ();
3380 rm -f conftest.
$ac_objext conftest
$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382 (eval $ac_link) 2>conftest.er1
3384 grep -v '^ *+' conftest.er1
>conftest.err
3386 cat conftest.err
>&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try
='test -s conftest$ac_exeext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 ac_cv_lib_bsd_gethostbyname
=yes
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.
$ac_ext >&5
3406 ac_cv_lib_bsd_gethostbyname
=no
3408 rm -f conftest.err conftest.
$ac_objext \
3409 conftest
$ac_exeext conftest.
$ac_ext
3410 LIBS
=$ac_check_lib_save_LIBS
3412 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3413 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3414 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3415 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
3421 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3422 # socket/setsockopt and other routines are undefined under SCO ODT
3423 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3424 # on later versions), says Simon Leinen: it contains gethostby*
3425 # variants that don't use the name server (or something). -lsocket
3426 # must be given before -lnsl if both are needed. We assume that
3427 # if connect needs -lnsl, so does gethostbyname.
3428 echo "$as_me:$LINENO: checking for connect" >&5
3429 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3430 if test "${ac_cv_func_connect+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3439 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3441 #define connect innocuous_connect
3443 /* System header to define __stub macros and hopefully few prototypes,
3444 which can conflict with char connect (); below.
3445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446 <limits.h> exists even on freestanding compilers. */
3449 # include <limits.h>
3451 # include <assert.h>
3456 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_connect) || defined (__stub___connect)
3470 char (*f) () = connect;
3479 return f != connect;
3484 rm -f conftest.
$ac_objext conftest
$ac_exeext
3485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3486 (eval $ac_link) 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try
='test -s conftest$ac_exeext'
3500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 ac_cv_func_connect
=yes
3507 echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.
$ac_ext >&5
3510 ac_cv_func_connect
=no
3512 rm -f conftest.err conftest.
$ac_objext \
3513 conftest
$ac_exeext conftest.
$ac_ext
3515 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3516 echo "${ECHO_T}$ac_cv_func_connect" >&6
3518 if test $ac_cv_func_connect = no
; then
3519 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3520 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3521 if test "${ac_cv_lib_socket_connect+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 ac_check_lib_save_LIBS
=$LIBS
3525 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3526 cat >conftest.
$ac_ext <<_ACEOF
3529 cat confdefs.h
>>conftest.
$ac_ext
3530 cat >>conftest.
$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3533 /* Override any gcc2 internal prototype to avoid an error. */
3537 /* We use char because int might match the return type of a gcc2
3538 builtin and then its argument prototype would still apply. */
3548 rm -f conftest.
$ac_objext conftest
$ac_exeext
3549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3550 (eval $ac_link) 2>conftest.er1
3552 grep -v '^ *+' conftest.er1
>conftest.err
3554 cat conftest.err
>&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } &&
3557 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; } &&
3563 { ac_try
='test -s conftest$ac_exeext'
3564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; }; then
3569 ac_cv_lib_socket_connect
=yes
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.
$ac_ext >&5
3574 ac_cv_lib_socket_connect
=no
3576 rm -f conftest.err conftest.
$ac_objext \
3577 conftest
$ac_exeext conftest.
$ac_ext
3578 LIBS
=$ac_check_lib_save_LIBS
3580 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3581 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3582 if test $ac_cv_lib_socket_connect = yes; then
3583 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3588 # Guillermo Gomez says -lposix is necessary on A/UX.
3589 echo "$as_me:$LINENO: checking for remove" >&5
3590 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3591 if test "${ac_cv_func_remove+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 cat >conftest.
$ac_ext <<_ACEOF
3597 cat confdefs.h
>>conftest.
$ac_ext
3598 cat >>conftest.
$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3602 #define remove innocuous_remove
3604 /* System header to define __stub macros and hopefully few prototypes,
3605 which can conflict with char remove (); below.
3606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3607 <limits.h> exists even on freestanding compilers. */
3610 # include <limits.h>
3612 # include <assert.h>
3617 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3625 /* The GNU C library defines this for functions which it implements
3626 to always fail with ENOSYS. Some functions are actually named
3627 something starting with __ and the normal name is an alias. */
3628 #if defined (__stub_remove) || defined (__stub___remove)
3631 char (*f) () = remove;
3645 rm -f conftest.
$ac_objext conftest
$ac_exeext
3646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3647 (eval $ac_link) 2>conftest.er1
3649 grep -v '^ *+' conftest.er1
>conftest.err
3651 cat conftest.err
>&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } &&
3654 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); }; } &&
3660 { ac_try
='test -s conftest$ac_exeext'
3661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; }; then
3666 ac_cv_func_remove
=yes
3668 echo "$as_me: failed program was:" >&5
3669 sed 's/^/| /' conftest.
$ac_ext >&5
3671 ac_cv_func_remove
=no
3673 rm -f conftest.err conftest.
$ac_objext \
3674 conftest
$ac_exeext conftest.
$ac_ext
3676 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3677 echo "${ECHO_T}$ac_cv_func_remove" >&6
3679 if test $ac_cv_func_remove = no
; then
3680 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3681 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3682 if test "${ac_cv_lib_posix_remove+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 ac_check_lib_save_LIBS
=$LIBS
3686 LIBS
="-lposix $LIBS"
3687 cat >conftest.
$ac_ext <<_ACEOF
3690 cat confdefs.h
>>conftest.
$ac_ext
3691 cat >>conftest.
$ac_ext <<_ACEOF
3692 /* end confdefs.h. */
3694 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3709 rm -f conftest.
$ac_objext conftest
$ac_exeext
3710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3711 (eval $ac_link) 2>conftest.er1
3713 grep -v '^ *+' conftest.er1
>conftest.err
3715 cat conftest.err
>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try
='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_lib_posix_remove
=yes
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.
$ac_ext >&5
3735 ac_cv_lib_posix_remove
=no
3737 rm -f conftest.err conftest.
$ac_objext \
3738 conftest
$ac_exeext conftest.
$ac_ext
3739 LIBS
=$ac_check_lib_save_LIBS
3741 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3742 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3743 if test $ac_cv_lib_posix_remove = yes; then
3744 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
3749 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3750 echo "$as_me:$LINENO: checking for shmat" >&5
3751 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3752 if test "${ac_cv_func_shmat+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 cat >conftest.
$ac_ext <<_ACEOF
3758 cat confdefs.h
>>conftest.
$ac_ext
3759 cat >>conftest.
$ac_ext <<_ACEOF
3760 /* end confdefs.h. */
3761 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
3762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3763 #define shmat innocuous_shmat
3765 /* System header to define __stub macros and hopefully few prototypes,
3766 which can conflict with char shmat (); below.
3767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768 <limits.h> exists even on freestanding compilers. */
3771 # include <limits.h>
3773 # include <assert.h>
3778 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3786 /* The GNU C library defines this for functions which it implements
3787 to always fail with ENOSYS. Some functions are actually named
3788 something starting with __ and the normal name is an alias. */
3789 #if defined (__stub_shmat) || defined (__stub___shmat)
3792 char (*f) () = shmat;
3806 rm -f conftest.
$ac_objext conftest
$ac_exeext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3808 (eval $ac_link) 2>conftest.er1
3810 grep -v '^ *+' conftest.er1
>conftest.err
3812 cat conftest.err
>&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); } &&
3815 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try
='test -s conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_func_shmat
=yes
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.
$ac_ext >&5
3834 rm -f conftest.err conftest.
$ac_objext \
3835 conftest
$ac_exeext conftest.
$ac_ext
3837 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3838 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3840 if test $ac_cv_func_shmat = no
; then
3841 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3842 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3843 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 ac_check_lib_save_LIBS
=$LIBS
3848 cat >conftest.
$ac_ext <<_ACEOF
3851 cat confdefs.h
>>conftest.
$ac_ext
3852 cat >>conftest.
$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3855 /* Override any gcc2 internal prototype to avoid an error. */
3859 /* We use char because int might match the return type of a gcc2
3860 builtin and then its argument prototype would still apply. */
3870 rm -f conftest.
$ac_objext conftest
$ac_exeext
3871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872 (eval $ac_link) 2>conftest.er1
3874 grep -v '^ *+' conftest.er1
>conftest.err
3876 cat conftest.err
>&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; } &&
3885 { ac_try
='test -s conftest$ac_exeext'
3886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
3891 ac_cv_lib_ipc_shmat
=yes
3893 echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.
$ac_ext >&5
3896 ac_cv_lib_ipc_shmat
=no
3898 rm -f conftest.err conftest.
$ac_objext \
3899 conftest
$ac_exeext conftest.
$ac_ext
3900 LIBS
=$ac_check_lib_save_LIBS
3902 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3903 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3904 if test $ac_cv_lib_ipc_shmat = yes; then
3905 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
3911 # Check for libraries that X11R6 Xt/Xaw programs need.
3912 ac_save_LDFLAGS
=$LDFLAGS
3913 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
3914 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3915 # check for ICE first), but we must link in the order -lSM -lICE or
3916 # we get undefined symbols. So assume we have SM if we have ICE.
3917 # These have to be linked with before -lX11, unlike the other
3918 # libraries we check for below, so use a different variable.
3919 # John Interrante, Karl Berry
3920 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3921 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3922 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3925 ac_check_lib_save_LIBS
=$LIBS
3926 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
3927 cat >conftest.
$ac_ext <<_ACEOF
3930 cat confdefs.h
>>conftest.
$ac_ext
3931 cat >>conftest.
$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3938 /* We use char because int might match the return type of a gcc2
3939 builtin and then its argument prototype would still apply. */
3940 char IceConnectionNumber ();
3944 IceConnectionNumber ();
3949 rm -f conftest.
$ac_objext conftest
$ac_exeext
3950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3951 (eval $ac_link) 2>conftest.er1
3953 grep -v '^ *+' conftest.er1
>conftest.err
3955 cat conftest.err
>&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try
='test -s conftest$ac_exeext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_lib_ICE_IceConnectionNumber
=yes
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.
$ac_ext >&5
3975 ac_cv_lib_ICE_IceConnectionNumber
=no
3977 rm -f conftest.err conftest.
$ac_objext \
3978 conftest
$ac_exeext conftest.
$ac_ext
3979 LIBS
=$ac_check_lib_save_LIBS
3981 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3982 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3983 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3984 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
3987 LDFLAGS
=$ac_save_LDFLAGS
3991 LDFLAGS
="$LDFLAGS $X_LIBS"
3993 echo "$as_me:$LINENO: checking for XNextEvent in -lX11" >&5
3994 echo $ECHO_N "checking for XNextEvent in -lX11... $ECHO_C" >&6
3995 if test "${ac_cv_lib_X11_XNextEvent+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 ac_check_lib_save_LIBS
=$LIBS
3999 LIBS
="-lX11 $X_LIBS $LIBS"
4000 cat >conftest.
$ac_ext <<_ACEOF
4003 cat confdefs.h
>>conftest.
$ac_ext
4004 cat >>conftest.
$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4007 /* Override any gcc2 internal prototype to avoid an error. */
4011 /* We use char because int might match the return type of a gcc2
4012 builtin and then its argument prototype would still apply. */
4022 rm -f conftest.
$ac_objext conftest
$ac_exeext
4023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>conftest.er1
4026 grep -v '^ *+' conftest.er1
>conftest.err
4028 cat conftest.err
>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } &&
4031 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try
='test -s conftest$ac_exeext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_lib_X11_XNextEvent
=yes
4045 echo "$as_me: failed program was:" >&5
4046 sed 's/^/| /' conftest.
$ac_ext >&5
4048 ac_cv_lib_X11_XNextEvent
=no
4050 rm -f conftest.err conftest.
$ac_objext \
4051 conftest
$ac_exeext conftest.
$ac_ext
4052 LIBS
=$ac_check_lib_save_LIBS
4054 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XNextEvent" >&5
4055 echo "${ECHO_T}$ac_cv_lib_X11_XNextEvent" >&6
4056 if test $ac_cv_lib_X11_XNextEvent = yes; then
4057 cat >>confdefs.h
<<_ACEOF
4058 #define HAVE_LIBX11 1
4064 { { echo "$as_me:$LINENO: error: cannot find libX11.so" >&5
4065 echo "$as_me: error: cannot find libX11.so" >&2;}
4066 { (exit 1); exit 1; }; }
4070 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
4071 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
4072 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 ac_check_lib_save_LIBS
=$LIBS
4076 LIBS
="-lXext $X_LIBS $LIBS"
4077 cat >conftest.
$ac_ext <<_ACEOF
4080 cat confdefs.h
>>conftest.
$ac_ext
4081 cat >>conftest.
$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4084 /* Override any gcc2 internal prototype to avoid an error. */
4088 /* We use char because int might match the return type of a gcc2
4089 builtin and then its argument prototype would still apply. */
4090 char XShapeCombineMask ();
4094 XShapeCombineMask ();
4099 rm -f conftest.
$ac_objext conftest
$ac_exeext
4100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4101 (eval $ac_link) 2>conftest.er1
4103 grep -v '^ *+' conftest.er1
>conftest.err
4105 cat conftest.err
>&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } &&
4108 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try
='test -s conftest$ac_exeext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_lib_Xext_XShapeCombineMask
=yes
4122 echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.
$ac_ext >&5
4125 ac_cv_lib_Xext_XShapeCombineMask
=no
4127 rm -f conftest.err conftest.
$ac_objext \
4128 conftest
$ac_exeext conftest.
$ac_ext
4129 LIBS
=$ac_check_lib_save_LIBS
4131 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
4132 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
4133 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
4134 cat >>confdefs.h
<<_ACEOF
4135 #define HAVE_LIBXEXT 1
4141 { { echo "$as_me:$LINENO: error: cannot find libXext.so" >&5
4142 echo "$as_me: error: cannot find libXext.so" >&2;}
4143 { (exit 1); exit 1; }; }
4147 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4148 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4149 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 ac_check_lib_save_LIBS
=$LIBS
4153 LIBS
="-lXpm $X_LIBS $LIBS"
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4161 /* Override any gcc2 internal prototype to avoid an error. */
4165 /* We use char because int might match the return type of a gcc2
4166 builtin and then its argument prototype would still apply. */
4167 char XpmCreatePixmapFromData ();
4171 XpmCreatePixmapFromData ();
4176 rm -f conftest.
$ac_objext conftest
$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4180 grep -v '^ *+' conftest.er1
>conftest.err
4182 cat conftest.err
>&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try
='test -s conftest$ac_exeext'
4192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); }; }; then
4197 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=yes
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.
$ac_ext >&5
4202 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=no
4204 rm -f conftest.err conftest.
$ac_objext \
4205 conftest
$ac_exeext conftest.
$ac_ext
4206 LIBS
=$ac_check_lib_save_LIBS
4208 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4209 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4210 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4211 cat >>confdefs.h
<<_ACEOF
4212 #define HAVE_LIBXPM 1
4218 { { echo "$as_me:$LINENO: error: cannot find libXpm.so" >&5
4219 echo "$as_me: error: cannot find libXpm.so" >&2;}
4220 { (exit 1); exit 1; }; }
4223 # ----------------------------------------------------------------------------
4225 ac_cpp
='$CPP $CPPFLAGS'
4226 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4230 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4231 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4232 if test "${ac_cv_c_const+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 cat >conftest.
$ac_ext <<_ACEOF
4238 cat confdefs.h
>>conftest.
$ac_ext
4239 cat >>conftest.
$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4245 /* FIXME: Include the comments suggested by Paul. */
4247 /* Ultrix mips cc rejects this. */
4248 typedef int charset[2];
4250 /* SunOS 4.1.1 cc rejects this. */
4251 char const *const *ccp;
4253 /* NEC SVR4.0.2 mips cc rejects this. */
4254 struct point {int x, y;};
4255 static struct point const zero = {0,0};
4256 /* AIX XL C 1.02.0.0 rejects this.
4257 It does not let you subtract one const X* pointer from another in
4258 an arm of an if-expression whose if-part is not a constant
4260 const char *g = "string";
4261 ccp = &g + (g ? g-g : 0);
4262 /* HPUX 7.0 cc rejects these. */
4265 ccp = (char const *const *) p;
4266 { /* SCO 3.2v4 cc rejects this. */
4268 char const *s = 0 ? (char *) 0 : (char const *) 0;
4272 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4274 const int *foo = &x[0];
4277 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4278 typedef const int *iptr;
4282 { /* AIX XL C 1.02.0.0 rejects this saying
4283 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4284 struct s { int j; const int *ap[3]; };
4285 struct s *b; b->j = 5;
4287 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4296 rm -f conftest.
$ac_objext
4297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4298 (eval $ac_compile) 2>conftest.er1
4300 grep -v '^ *+' conftest.er1
>conftest.err
4302 cat conftest.err
>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; } &&
4311 { ac_try
='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.
$ac_ext >&5
4324 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4327 echo "${ECHO_T}$ac_cv_c_const" >&6
4328 if test $ac_cv_c_const = no
; then
4330 cat >>confdefs.h
<<\_ACEOF
4342 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4343 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4344 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4345 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 cat >conftest.
$ac_ext <<_ACEOF
4352 cat confdefs.h
>>conftest.
$ac_ext
4353 cat >>conftest.
$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4355 #include <sys/types.h>
4367 rm -f conftest.
$ac_objext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4369 (eval $ac_compile) 2>conftest.er1
4371 grep -v '^ *+' conftest.er1
>conftest.err
4373 cat conftest.err
>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } &&
4376 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try
='test -s conftest.$ac_objext'
4383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
4388 eval "$as_ac_Header=yes"
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.
$ac_ext >&5
4393 eval "$as_ac_Header=no"
4395 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4400 cat >>confdefs.h
<<_ACEOF
4401 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4404 ac_header_dirent
=$ac_hdr; break
4408 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4409 if test $ac_header_dirent = dirent.h
; then
4410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4411 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4412 if test "${ac_cv_search_opendir+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_func_search_save_LIBS
=$LIBS
4416 ac_cv_search_opendir
=no
4417 cat >conftest.
$ac_ext <<_ACEOF
4420 cat confdefs.h
>>conftest.
$ac_ext
4421 cat >>conftest.
$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 /* Override any gcc2 internal prototype to avoid an error. */
4428 /* We use char because int might match the return type of a gcc2
4429 builtin and then its argument prototype would still apply. */
4439 rm -f conftest.
$ac_objext conftest
$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>conftest.er1
4443 grep -v '^ *+' conftest.er1
>conftest.err
4445 cat conftest.err
>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try
='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_cv_search_opendir
="none required"
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.
$ac_ext >&5
4466 rm -f conftest.err conftest.
$ac_objext \
4467 conftest
$ac_exeext conftest.
$ac_ext
4468 if test "$ac_cv_search_opendir" = no
; then
4469 for ac_lib
in dir
; do
4470 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4471 cat >conftest.
$ac_ext <<_ACEOF
4474 cat confdefs.h
>>conftest.
$ac_ext
4475 cat >>conftest.
$ac_ext <<_ACEOF
4476 /* end confdefs.h. */
4478 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4493 rm -f conftest.
$ac_objext conftest
$ac_exeext
4494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>conftest.er1
4497 grep -v '^ *+' conftest.er1
>conftest.err
4499 cat conftest.err
>&5
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; } &&
4508 { ac_try
='test -s conftest$ac_exeext'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; }; then
4514 ac_cv_search_opendir
="-l$ac_lib"
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.
$ac_ext >&5
4521 rm -f conftest.err conftest.
$ac_objext \
4522 conftest
$ac_exeext conftest.
$ac_ext
4525 LIBS
=$ac_func_search_save_LIBS
4527 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4528 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4529 if test "$ac_cv_search_opendir" != no
; then
4530 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4537 if test "${ac_cv_search_opendir+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 ac_func_search_save_LIBS
=$LIBS
4541 ac_cv_search_opendir
=no
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 /* Override any gcc2 internal prototype to avoid an error. */
4553 /* We use char because int might match the return type of a gcc2
4554 builtin and then its argument prototype would still apply. */
4564 rm -f conftest.
$ac_objext conftest
$ac_exeext
4565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4566 (eval $ac_link) 2>conftest.er1
4568 grep -v '^ *+' conftest.er1
>conftest.err
4570 cat conftest.err
>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; } &&
4579 { ac_try
='test -s conftest$ac_exeext'
4580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4585 ac_cv_search_opendir
="none required"
4587 echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.
$ac_ext >&5
4591 rm -f conftest.err conftest.
$ac_objext \
4592 conftest
$ac_exeext conftest.
$ac_ext
4593 if test "$ac_cv_search_opendir" = no
; then
4595 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4596 cat >conftest.
$ac_ext <<_ACEOF
4599 cat confdefs.h
>>conftest.
$ac_ext
4600 cat >>conftest.
$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4603 /* Override any gcc2 internal prototype to avoid an error. */
4607 /* We use char because int might match the return type of a gcc2
4608 builtin and then its argument prototype would still apply. */
4618 rm -f conftest.
$ac_objext conftest
$ac_exeext
4619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4620 (eval $ac_link) 2>conftest.er1
4622 grep -v '^ *+' conftest.er1
>conftest.err
4624 cat conftest.err
>&5
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; } &&
4633 { ac_try
='test -s conftest$ac_exeext'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; }; then
4639 ac_cv_search_opendir
="-l$ac_lib"
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4646 rm -f conftest.err conftest.
$ac_objext \
4647 conftest
$ac_exeext conftest.
$ac_ext
4650 LIBS
=$ac_func_search_save_LIBS
4652 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4653 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4654 if test "$ac_cv_search_opendir" != no
; then
4655 test "$ac_cv_search_opendir" = "none required" || LIBS
="$ac_cv_search_opendir $LIBS"
4661 echo "$as_me:$LINENO: checking for egrep" >&5
4662 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4663 if test "${ac_cv_prog_egrep+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4667 then ac_cv_prog_egrep
='grep -E'
4668 else ac_cv_prog_egrep
='egrep'
4671 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4672 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4673 EGREP
=$ac_cv_prog_egrep
4676 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4677 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4678 if test "${ac_cv_header_stdc+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 cat >conftest.
$ac_ext <<_ACEOF
4684 cat confdefs.h
>>conftest.
$ac_ext
4685 cat >>conftest.
$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4700 rm -f conftest.
$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4704 grep -v '^ *+' conftest.er1
>conftest.err
4706 cat conftest.err
>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; } &&
4715 { ac_try
='test -s conftest.$ac_objext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_header_stdc
=yes
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.
$ac_ext >&5
4726 ac_cv_header_stdc
=no
4728 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 if test $ac_cv_header_stdc = yes; then
4731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4732 cat >conftest.
$ac_ext <<_ACEOF
4735 cat confdefs.h
>>conftest.
$ac_ext
4736 cat >>conftest.
$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "memchr" >/dev
/null
2>&1; then
4745 ac_cv_header_stdc
=no
4751 if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4763 $EGREP "free" >/dev
/null
2>&1; then
4766 ac_cv_header_stdc
=no
4772 if test $ac_cv_header_stdc = yes; then
4773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4774 if test "$cross_compiling" = yes; then
4777 cat >conftest.
$ac_ext <<_ACEOF
4780 cat confdefs.h
>>conftest.
$ac_ext
4781 cat >>conftest.
$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4784 #if ((' ' & 0x0FF) == 0x020)
4785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4788 # define ISLOWER(c) \
4789 (('a' <= (c) && (c) <= 'i') \
4790 || ('j' <= (c) && (c) <= 'r') \
4791 || ('s' <= (c) && (c) <= 'z'))
4792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4800 for (i = 0; i < 256; i++)
4801 if (XOR (islower (i), ISLOWER (i))
4802 || toupper (i) != TOUPPER (i))
4807 rm -f conftest
$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4820 echo "$as_me: program exited with status $ac_status" >&5
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.
$ac_ext >&5
4825 ac_cv_header_stdc
=no
4827 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4831 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4832 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4833 if test $ac_cv_header_stdc = yes; then
4835 cat >>confdefs.h
<<\_ACEOF
4836 #define STDC_HEADERS 1
4841 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4842 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4843 if test "${ac_cv_header_time+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 cat >conftest.
$ac_ext <<_ACEOF
4849 cat confdefs.h
>>conftest.
$ac_ext
4850 cat >>conftest.
$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 #include <sys/types.h>
4853 #include <sys/time.h>
4859 if ((struct tm *) 0)
4865 rm -f conftest.
$ac_objext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>conftest.er1
4869 grep -v '^ *+' conftest.er1
>conftest.err
4871 cat conftest.err
>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } &&
4874 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; } &&
4880 { ac_try
='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4886 ac_cv_header_time
=yes
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4891 ac_cv_header_time
=no
4893 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4896 echo "${ECHO_T}$ac_cv_header_time" >&6
4897 if test $ac_cv_header_time = yes; then
4899 cat >>confdefs.h
<<\_ACEOF
4900 #define TIME_WITH_SYS_TIME 1
4905 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4915 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4916 inttypes.h stdint.h unistd.h
4918 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4919 echo "$as_me:$LINENO: checking for $ac_header" >&5
4920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 cat >conftest.
$ac_ext <<_ACEOF
4927 cat confdefs.h
>>conftest.
$ac_ext
4928 cat >>conftest.
$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 $ac_includes_default
4932 #include <$ac_header>
4934 rm -f conftest.
$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>conftest.er1
4938 grep -v '^ *+' conftest.er1
>conftest.err
4940 cat conftest.err
>&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } &&
4943 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try
='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 eval "$as_ac_Header=yes"
4957 echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.
$ac_ext >&5
4960 eval "$as_ac_Header=no"
4962 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4967 cat >>confdefs.h
<<_ACEOF
4968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981 for ac_header
in fcntl.h stdlib.h string.h sys
/time.h unistd.h
4983 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4985 echo "$as_me:$LINENO: checking for $ac_header" >&5
4986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4993 # Is the header compilable?
4994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4996 cat >conftest.
$ac_ext <<_ACEOF
4999 cat confdefs.h
>>conftest.
$ac_ext
5000 cat >>conftest.
$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5002 $ac_includes_default
5003 #include <$ac_header>
5005 rm -f conftest.
$ac_objext
5006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>conftest.er1
5009 grep -v '^ *+' conftest.er1
>conftest.err
5011 cat conftest.err
>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } &&
5014 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; } &&
5020 { ac_try
='test -s conftest.$ac_objext'
5021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5026 ac_header_compiler
=yes
5028 echo "$as_me: failed program was:" >&5
5029 sed 's/^/| /' conftest.
$ac_ext >&5
5031 ac_header_compiler
=no
5033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5034 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5035 echo "${ECHO_T}$ac_header_compiler" >&6
5037 # Is the header present?
5038 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5039 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5040 cat >conftest.
$ac_ext <<_ACEOF
5043 cat confdefs.h
>>conftest.
$ac_ext
5044 cat >>conftest.
$ac_ext <<_ACEOF
5045 /* end confdefs.h. */
5046 #include <$ac_header>
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5051 grep -v '^ *+' conftest.er1
>conftest.err
5053 cat conftest.err
>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev
/null
; then
5056 if test -s conftest.err
; then
5057 ac_cpp_err
=$ac_c_preproc_warn_flag
5058 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5065 if test -z "$ac_cpp_err"; then
5066 ac_header_preproc
=yes
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.
$ac_ext >&5
5071 ac_header_preproc
=no
5073 rm -f conftest.err conftest.
$ac_ext
5074 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5075 echo "${ECHO_T}$ac_header_preproc" >&6
5077 # So? What about this header?
5078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5084 ac_header_preproc
=yes
5087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5090 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5094 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5101 ## -------------------------------- ##
5102 ## Report this to martin@godisch.de ##
5103 ## -------------------------------- ##
5106 sed "s/^/$as_me: WARNING: /" >&2
5109 echo "$as_me:$LINENO: checking for $ac_header" >&5
5110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 eval "$as_ac_Header=\$ac_header_preproc"
5116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5121 cat >>confdefs.h
<<_ACEOF
5122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5126 { { echo "$as_me:$LINENO: error: required header file missing" >&5
5127 echo "$as_me: error: required header file missing" >&2;}
5128 { (exit 1); exit 1; }; }
5133 echo "$as_me:$LINENO: checking for pid_t" >&5
5134 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5135 if test "${ac_cv_type_pid_t+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 cat >conftest.
$ac_ext <<_ACEOF
5141 cat confdefs.h
>>conftest.
$ac_ext
5142 cat >>conftest.
$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 $ac_includes_default
5156 rm -f conftest.
$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158 (eval $ac_compile) 2>conftest.er1
5160 grep -v '^ *+' conftest.er1
>conftest.err
5162 cat conftest.err
>&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } &&
5165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try
='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_type_pid_t
=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.
$ac_ext >&5
5184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5186 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5187 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5188 if test $ac_cv_type_pid_t = yes; then
5192 cat >>confdefs.h
<<_ACEOF
5198 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5199 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5200 if test "${ac_cv_type_signal+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 cat >conftest.
$ac_ext <<_ACEOF
5206 cat confdefs.h
>>conftest.
$ac_ext
5207 cat >>conftest.
$ac_ext <<_ACEOF
5208 /* end confdefs.h. */
5209 #include <sys/types.h>
5215 extern "C" void (*signal (int, void (*)(int)))(int);
5217 void (*signal ()) ();
5228 rm -f conftest.
$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>conftest.er1
5232 grep -v '^ *+' conftest.er1
>conftest.err
5234 cat conftest.err
>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; } &&
5243 { ac_try
='test -s conftest.$ac_objext'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; }; then
5249 ac_cv_type_signal
=void
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.
$ac_ext >&5
5254 ac_cv_type_signal
=int
5256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5258 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5259 echo "${ECHO_T}$ac_cv_type_signal" >&6
5261 cat >>confdefs.h
<<_ACEOF
5262 #define RETSIGTYPE $ac_cv_type_signal
5266 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5267 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5268 if test "${ac_cv_func_closedir_void+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 if test "$cross_compiling" = yes; then
5272 ac_cv_func_closedir_void
=yes
5274 cat >conftest.
$ac_ext <<_ACEOF
5277 cat confdefs.h
>>conftest.
$ac_ext
5278 cat >>conftest.
$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 $ac_includes_default
5281 #include <$ac_header_dirent>
5289 exit (closedir (opendir (".")) != 0);
5294 rm -f conftest
$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 ac_cv_func_closedir_void
=no
5307 echo "$as_me: program exited with status $ac_status" >&5
5308 echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.
$ac_ext >&5
5312 ac_cv_func_closedir_void
=yes
5314 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5317 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5318 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
5319 if test $ac_cv_func_closedir_void = yes; then
5321 cat >>confdefs.h
<<\_ACEOF
5322 #define CLOSEDIR_VOID 1
5328 for ac_header
in stdlib.h
5330 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332 echo "$as_me:$LINENO: checking for $ac_header" >&5
5333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5340 # Is the header compilable?
5341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5343 cat >conftest.
$ac_ext <<_ACEOF
5346 cat confdefs.h
>>conftest.
$ac_ext
5347 cat >>conftest.
$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5349 $ac_includes_default
5350 #include <$ac_header>
5352 rm -f conftest.
$ac_objext
5353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5354 (eval $ac_compile) 2>conftest.er1
5356 grep -v '^ *+' conftest.er1
>conftest.err
5358 cat conftest.err
>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try
='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_header_compiler
=yes
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.
$ac_ext >&5
5378 ac_header_compiler
=no
5380 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5382 echo "${ECHO_T}$ac_header_compiler" >&6
5384 # Is the header present?
5385 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5386 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5387 cat >conftest.
$ac_ext <<_ACEOF
5390 cat confdefs.h
>>conftest.
$ac_ext
5391 cat >>conftest.
$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <$ac_header>
5395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5396 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5398 grep -v '^ *+' conftest.er1
>conftest.err
5400 cat conftest.err
>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } >/dev
/null
; then
5403 if test -s conftest.err
; then
5404 ac_cpp_err
=$ac_c_preproc_warn_flag
5405 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5412 if test -z "$ac_cpp_err"; then
5413 ac_header_preproc
=yes
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.
$ac_ext >&5
5418 ac_header_preproc
=no
5420 rm -f conftest.err conftest.
$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5422 echo "${ECHO_T}$ac_header_preproc" >&6
5424 # So? What about this header?
5425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5431 ac_header_preproc
=yes
5434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5448 ## -------------------------------- ##
5449 ## Report this to martin@godisch.de ##
5450 ## -------------------------------- ##
5453 sed "s/^/$as_me: WARNING: /" >&2
5456 echo "$as_me:$LINENO: checking for $ac_header" >&5
5457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 eval "$as_ac_Header=\$ac_header_preproc"
5463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5468 cat >>confdefs.h
<<_ACEOF
5469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5476 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5477 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
5478 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 if test "$cross_compiling" = yes; then
5482 ac_cv_func_malloc_0_nonnull
=no
5484 cat >conftest.
$ac_ext <<_ACEOF
5487 cat confdefs.h
>>conftest.
$ac_ext
5488 cat >>conftest.
$ac_ext <<_ACEOF
5489 /* end confdefs.h. */
5490 #if STDC_HEADERS || HAVE_STDLIB_H
5491 # include <stdlib.h>
5499 exit (malloc (0) ? 0 : 1);
5504 rm -f conftest
$ac_exeext
5505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5506 (eval $ac_link) 2>&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_cv_func_malloc_0_nonnull
=yes
5517 echo "$as_me: program exited with status $ac_status" >&5
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.
$ac_ext >&5
5522 ac_cv_func_malloc_0_nonnull
=no
5524 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5527 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5528 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
5529 if test $ac_cv_func_malloc_0_nonnull = yes; then
5531 cat >>confdefs.h
<<\_ACEOF
5532 #define HAVE_MALLOC 1
5536 cat >>confdefs.h
<<\_ACEOF
5537 #define HAVE_MALLOC 0
5541 "malloc.$ac_objext" | \
5542 *" malloc.$ac_objext" | \
5543 "malloc.$ac_objext "* | \
5544 *" malloc.$ac_objext "* ) ;;
5545 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext" ;;
5549 cat >>confdefs.h
<<\_ACEOF
5550 #define malloc rpl_malloc
5557 echo "$as_me:$LINENO: checking for working memcmp" >&5
5558 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
5559 if test "${ac_cv_func_memcmp_working+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 if test "$cross_compiling" = yes; then
5563 ac_cv_func_memcmp_working
=no
5565 cat >conftest.
$ac_ext <<_ACEOF
5568 cat confdefs.h
>>conftest.
$ac_ext
5569 cat >>conftest.
$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 $ac_includes_default
5576 /* Some versions of memcmp are not 8-bit clean. */
5577 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5578 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5581 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5582 or more and with at least one buffer not starting on a 4-byte boundary.
5583 William Lewis provided this test program. */
5588 for (i = 0; i < 4; i++)
5592 strcpy (a, "--------01111111");
5593 strcpy (b, "--------10000000");
5594 if (memcmp (a, b, 16) >= 0)
5604 rm -f conftest
$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>&5
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_cv_func_memcmp_working
=yes
5617 echo "$as_me: program exited with status $ac_status" >&5
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5622 ac_cv_func_memcmp_working
=no
5624 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5627 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5628 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5629 test $ac_cv_func_memcmp_working = no
&& case $LIBOBJS in
5630 "memcmp.$ac_objext" | \
5631 *" memcmp.$ac_objext" | \
5632 "memcmp.$ac_objext "* | \
5633 *" memcmp.$ac_objext "* ) ;;
5634 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext" ;;
5639 for ac_func
in strftime
5641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5642 echo "$as_me:$LINENO: checking for $ac_func" >&5
5643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5644 if eval "test \"\${$as_ac_var+set}\" = set"; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.
$ac_ext <<_ACEOF
5650 cat confdefs.h
>>conftest.
$ac_ext
5651 cat >>conftest.
$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5655 #define $ac_func innocuous_$ac_func
5657 /* System header to define __stub macros and hopefully few prototypes,
5658 which can conflict with char $ac_func (); below.
5659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5660 <limits.h> exists even on freestanding compilers. */
5663 # include <limits.h>
5665 # include <assert.h>
5670 /* Override any gcc2 internal prototype to avoid an error. */
5675 /* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5678 /* The GNU C library defines this for functions which it implements
5679 to always fail with ENOSYS. Some functions are actually named
5680 something starting with __ and the normal name is an alias. */
5681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5684 char (*f) () = $ac_func;
5693 return f != $ac_func;
5698 rm -f conftest.
$ac_objext conftest
$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>conftest.er1
5702 grep -v '^ *+' conftest.er1
>conftest.err
5704 cat conftest.err
>&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try
='test -s conftest$ac_exeext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 eval "$as_ac_var=yes"
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.
$ac_ext >&5
5724 eval "$as_ac_var=no"
5726 rm -f conftest.err conftest.
$ac_objext \
5727 conftest
$ac_exeext conftest.
$ac_ext
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5731 if test `eval echo '${'$as_ac_var'}'` = yes; then
5732 cat >>confdefs.h
<<_ACEOF
5733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5737 # strftime is in -lintl on SCO UNIX.
5738 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5739 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
5740 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 ac_check_lib_save_LIBS
=$LIBS
5745 cat >conftest.
$ac_ext <<_ACEOF
5748 cat confdefs.h
>>conftest.
$ac_ext
5749 cat >>conftest.
$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5767 rm -f conftest.
$ac_objext conftest
$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5771 grep -v '^ *+' conftest.er1
>conftest.err
5773 cat conftest.err
>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try
='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_cv_lib_intl_strftime
=yes
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.
$ac_ext >&5
5793 ac_cv_lib_intl_strftime
=no
5795 rm -f conftest.err conftest.
$ac_objext \
5796 conftest
$ac_exeext conftest.
$ac_ext
5797 LIBS
=$ac_check_lib_save_LIBS
5799 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5800 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
5801 if test $ac_cv_lib_intl_strftime = yes; then
5802 cat >>confdefs.h
<<\_ACEOF
5803 #define HAVE_STRFTIME 1
5821 for ac_func
in atexit gettimeofday mkdir strcspn strdup strerror strspn strstr strtol
5823 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5824 echo "$as_me:$LINENO: checking for $ac_func" >&5
5825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5826 if eval "test \"\${$as_ac_var+set}\" = set"; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 cat >conftest.
$ac_ext <<_ACEOF
5832 cat confdefs.h
>>conftest.
$ac_ext
5833 cat >>conftest.
$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5837 #define $ac_func innocuous_$ac_func
5839 /* System header to define __stub macros and hopefully few prototypes,
5840 which can conflict with char $ac_func (); below.
5841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5842 <limits.h> exists even on freestanding compilers. */
5845 # include <limits.h>
5847 # include <assert.h>
5852 /* Override any gcc2 internal prototype to avoid an error. */
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5860 /* The GNU C library defines this for functions which it implements
5861 to always fail with ENOSYS. Some functions are actually named
5862 something starting with __ and the normal name is an alias. */
5863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5866 char (*f) () = $ac_func;
5875 return f != $ac_func;
5880 rm -f conftest.
$ac_objext conftest
$ac_exeext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5882 (eval $ac_link) 2>conftest.er1
5884 grep -v '^ *+' conftest.er1
>conftest.err
5886 cat conftest.err
>&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
5889 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; } &&
5895 { ac_try
='test -s conftest$ac_exeext'
5896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; }; then
5901 eval "$as_ac_var=yes"
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.
$ac_ext >&5
5906 eval "$as_ac_var=no"
5908 rm -f conftest.err conftest.
$ac_objext \
5909 conftest
$ac_exeext conftest.
$ac_ext
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5913 if test `eval echo '${'$as_ac_var'}'` = yes; then
5914 cat >>confdefs.h
<<_ACEOF
5915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5919 { { echo "$as_me:$LINENO: error: required standard library function missing" >&5
5920 echo "$as_me: error: required standard library function missing" >&2;}
5921 { (exit 1); exit 1; }; }
5925 # ----------------------------------------------------------------------------
5926 ac_config_files
="$ac_config_files Makefile wmwork.1"
5928 cat >confcache
<<\_ACEOF
5929 # This file is a shell script that caches the results of configure
5930 # tests run on this system so they can be shared between configure
5931 # scripts and configure runs, see configure's option --config-cache.
5932 # It is not useful on other systems. If it contains results you don't
5933 # want to keep, you may remove or edit it.
5935 # config.status only pays attention to the cache file if you give it
5936 # the --recheck option to rerun configure.
5938 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5939 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5944 # The following way of writing the cache mishandles newlines in values,
5945 # but we know of no workaround that is simple, portable, and efficient.
5946 # So, don't put newlines in cache variables' values.
5947 # Ultrix sh set writes to stderr and can't be redirected directly,
5948 # and sets the high bit in the cache file unless we assign to the vars.
5951 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5953 # `set' does not quote correctly, so add quotes (double-quote
5954 # substitution turns \\\\ into \\, and sed turns \\ into \).
5957 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5960 # `set' quotes correctly as required by POSIX, so do not add quotes.
5962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5971 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5973 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5974 if test -w $cache_file; then
5975 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5976 cat confcache
>$cache_file
5978 echo "not updating unwritable cache $cache_file"
5983 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5984 # Let make expand exec_prefix.
5985 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5987 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5988 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5989 # trailing colons and then remove the whole line if VPATH becomes empty
5990 # (actually we leave an empty line to preserve line numbers).
5991 if test "x$srcdir" = x.
; then
5992 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5993 s/:*\$(srcdir):*/:/;
5994 s/:*\${srcdir}:*/:/;
5996 s/^\([^=]*=[ ]*\):*/\1/;
6002 DEFS
=-DHAVE_CONFIG_H
6006 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6007 # 1. Remove the extension, and $U if already installed.
6008 ac_i
=`echo "$ac_i" |
6009 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6011 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
6012 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
6016 LTLIBOBJS
=$ac_ltlibobjs
6020 : ${CONFIG_STATUS=./config.status}
6021 ac_clean_files_save
=$ac_clean_files
6022 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6023 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6024 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6025 cat >$CONFIG_STATUS <<_ACEOF
6027 # Generated by $as_me.
6028 # Run this file to recreate the current configuration.
6029 # Compiler output produced by configure, useful for debugging
6030 # configure, is in config.log if it exists.
6035 SHELL=\${CONFIG_SHELL-$SHELL}
6038 cat >>$CONFIG_STATUS <<\_ACEOF
6039 ## --------------------- ##
6040 ## M4sh Initialization. ##
6041 ## --------------------- ##
6043 # Be Bourne compatible
6044 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6047 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6048 # is contrary to our usage. Disable this feature.
6049 alias -g '${1+"$@"}'='"$@"'
6050 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6053 DUALCASE
=1; export DUALCASE
# for MKS sh
6055 # Support unset when possible.
6056 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
6063 # Work around bugs in pre-3.0 UWIN ksh.
6064 $as_unset ENV MAIL MAILPATH
6071 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6072 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6073 LC_TELEPHONE LC_TIME
6075 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6076 eval $as_var=C
; export $as_var
6082 # Required to use basename.
6083 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6089 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
6090 as_basename
=basename
6096 # Name of the executable.
6097 as_me
=`$as_basename "$0" ||
6098 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6099 X"$0" : 'X\(//\)$' \| \
6100 X"$0" : 'X\(/\)$' \| \
6101 . : '\(.\)' 2>/dev/null ||
6103 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6104 /^X\/\(\/\/\)$/{ s//\1/; q; }
6105 /^X\/\(\/\).*/{ s//\1/; q; }
6109 # PATH needs CR, and LINENO needs CR and PATH.
6110 # Avoid depending upon Character Ranges.
6111 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6112 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6113 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6114 as_cr_digits
='0123456789'
6115 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6117 # The user is always right.
6118 if test "${PATH_SEPARATOR+set}" != set; then
6119 echo "#! /bin/sh" >conf$$.sh
6120 echo "exit 0" >>conf$$.sh
6122 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6133 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6134 test "x$as_lineno_1" != "x$as_lineno_2" &&
6135 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6136 # Find who we are. Look in the path if we contain no path at all
6139 *[\\/]* ) as_myself
=$0 ;;
6140 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6144 test -z "$as_dir" && as_dir
=.
6145 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6150 # We did not find ourselves, most probably we were run as `sh COMMAND'
6151 # in which case we are not to be found in the path.
6152 if test "x$as_myself" = x
; then
6155 if test ! -f "$as_myself"; then
6156 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6157 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6158 { (exit 1); exit 1; }; }
6160 case $CONFIG_SHELL in
6162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6163 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6166 test -z "$as_dir" && as_dir
=.
6167 for as_base
in sh bash ksh sh5
; do
6170 if ("$as_dir/$as_base" -c '
6173 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6174 test "x$as_lineno_1" != "x$as_lineno_2" &&
6175 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6176 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
6177 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
6178 CONFIG_SHELL
=$as_dir/$as_base
6180 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6188 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6189 # uniformly replaced by the line number. The first 'sed' inserts a
6190 # line-number line before each line; the second 'sed' does the real
6191 # work. The second script uses 'N' to pair each line-number line
6192 # with the numbered line, and appends trailing '-' during
6193 # substitution so that $LINENO is not a special case at line end.
6194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6195 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6196 sed '=' <$as_myself |
6201 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6204 s,^['$as_cr_digits']*\n,,
6206 chmod +x
$as_me.lineno ||
6207 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6208 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6209 { (exit 1); exit 1; }; }
6211 # Don't try to exec as it changes $[0], causing all sort of problems
6212 # (the dirname of $[0] is not the place where we might find the
6213 # original and so on. Autoconf is especially sensible to this).
6215 # Exit status is that of the last command.
6220 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6221 *c
*,-n*) ECHO_N
= ECHO_C
='
6223 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
6224 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
6227 if expr a
: '\(a\)' >/dev
/null
2>&1; then
6233 rm -f conf$$ conf$$.exe conf$$.
file
6235 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6236 # We could just check for DJGPP; but this test a) works b) is more generic
6237 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6238 if test -f conf$$.exe
; then
6239 # Don't use ln at all; we don't have any links
6244 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6249 rm -f conf$$ conf$$.exe conf$$.
file
6251 if mkdir
-p .
2>/dev
/null
; then
6254 test -d .
/-p && rmdir .
/-p
6258 as_executable_p
="test -f"
6260 # Sed expression to map a string onto a valid CPP name.
6261 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6263 # Sed expression to map a string onto a valid variable name.
6264 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6268 # We need space, tab and new line, in precisely that order.
6278 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6279 # report actual input values of CONFIG_FILES etc. instead of their
6280 # values after options handling. Logging --version etc. is OK.
6284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6285 ## Running $as_me. ##
6290 This file was extended by wmwork $as_me 0.2.5, which was
6291 generated by GNU Autoconf 2.59. Invocation command line was
6293 CONFIG_FILES = $CONFIG_FILES
6294 CONFIG_HEADERS = $CONFIG_HEADERS
6295 CONFIG_LINKS = $CONFIG_LINKS
6296 CONFIG_COMMANDS = $CONFIG_COMMANDS
6300 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6304 # Files that config.status was made for.
6305 if test -n "$ac_config_files"; then
6306 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6309 if test -n "$ac_config_headers"; then
6310 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6313 if test -n "$ac_config_links"; then
6314 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6317 if test -n "$ac_config_commands"; then
6318 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6321 cat >>$CONFIG_STATUS <<\_ACEOF
6324 \`$as_me' instantiates files from templates according to the
6325 current configuration.
6327 Usage: $0 [OPTIONS] [FILE]...
6329 -h, --help print this help, then exit
6330 -V, --version print version number, then exit
6331 -q, --quiet do not print progress messages
6332 -d, --debug don't remove temporary files
6333 --recheck update $as_me by reconfiguring in the same conditions
6334 --file=FILE[:TEMPLATE]
6335 instantiate the configuration file FILE
6336 --header=FILE[:TEMPLATE]
6337 instantiate the configuration header FILE
6339 Configuration files:
6342 Configuration headers:
6345 Report bugs to <bug-autoconf@gnu.org>."
6348 cat >>$CONFIG_STATUS <<_ACEOF
6350 wmwork config.status 0.2.5
6351 configured by $0, generated by GNU Autoconf 2.59,
6352 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6354 Copyright (C) 2003 Free Software Foundation, Inc.
6355 This config.status script is free software; the Free Software Foundation
6356 gives unlimited permission to copy, distribute and modify it."
6361 cat >>$CONFIG_STATUS <<\_ACEOF
6362 # If no file are specified by the user, then we need to provide default
6363 # value. By we need to know if files were specified by the user.
6369 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6370 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6378 *) # This is not an option, so the user has probably given explicit
6381 ac_need_defaults
=false
;;
6385 # Handling of the options.
6387 cat >>$CONFIG_STATUS <<\_ACEOF
6388 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6390 --version |
--vers* |
-V )
6391 echo "$ac_cs_version"; exit 0 ;;
6393 # Conflict between --help and --header
6394 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6395 Try \`$0 --help' for more information." >&5
6396 echo "$as_me: error: ambiguous option: $1
6397 Try \`$0 --help' for more information." >&2;}
6398 { (exit 1); exit 1; }; };;
6399 --help |
--hel |
-h )
6400 echo "$ac_cs_usage"; exit 0 ;;
6401 --debug |
--d* |
-d )
6403 --file |
--fil |
--fi |
--f )
6405 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6406 ac_need_defaults
=false
;;
6407 --header |
--heade |
--head |
--hea )
6409 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6410 ac_need_defaults
=false
;;
6411 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6412 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6416 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6417 Try \`$0 --help' for more information." >&5
6418 echo "$as_me: error: unrecognized option: $1
6419 Try \`$0 --help' for more information." >&2;}
6420 { (exit 1); exit 1; }; } ;;
6422 *) ac_config_targets
="$ac_config_targets $1" ;;
6428 ac_configure_extra_args
=
6430 if $ac_cs_silent; then
6432 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6436 cat >>$CONFIG_STATUS <<_ACEOF
6437 if \$ac_cs_recheck; then
6438 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6439 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6448 cat >>$CONFIG_STATUS <<\_ACEOF
6449 for ac_config_target
in $ac_config_targets
6451 case "$ac_config_target" in
6452 # Handling of arguments.
6453 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6454 "wmwork.1" ) CONFIG_FILES
="$CONFIG_FILES wmwork.1" ;;
6455 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
6456 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6457 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6458 { (exit 1); exit 1; }; };;
6462 # If the user did not use the arguments to specify the items to instantiate,
6463 # then the envvar interface is used. Set only those that are not.
6464 # We use the long form for the default assignment because of an extremely
6465 # bizarre bug on SunOS 4.1.3.
6466 if $ac_need_defaults; then
6467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6471 # Have a temporary directory for convenience. Make it in the build tree
6472 # simply because there is no reason to put it here, and in addition,
6473 # creating and moving files from /tmp can sometimes cause problems.
6474 # Create a temporary directory, and hook for its removal unless debugging.
6477 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6478 trap '{ (exit 1); exit 1; }' 1 2 13 15
6481 # Create a (secure) tmp directory for tmp files.
6484 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6485 test -n "$tmp" && test -d "$tmp"
6488 tmp
=.
/confstat$$
-$RANDOM
6489 (umask 077 && mkdir
$tmp)
6492 echo "$me: cannot create a temporary directory in ." >&2
6493 { (exit 1); exit 1; }
6498 cat >>$CONFIG_STATUS <<_ACEOF
6501 # CONFIG_FILES section.
6504 # No need to generate the scripts if there are no CONFIG_FILES.
6505 # This happens for instance when ./config.status config.h
6506 if test -n "\$CONFIG_FILES"; then
6507 # Protect against being on the right side of a sed subst in config.status.
6508 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6509 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6510 s,@SHELL@,$SHELL,;t t
6511 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6512 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6513 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6514 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6515 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6516 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6517 s,@exec_prefix@,$exec_prefix,;t t
6518 s,@prefix@,$prefix,;t t
6519 s,@program_transform_name@,$program_transform_name,;t t
6520 s,@bindir@,$bindir,;t t
6521 s,@sbindir@,$sbindir,;t t
6522 s,@libexecdir@,$libexecdir,;t t
6523 s,@datadir@,$datadir,;t t
6524 s,@sysconfdir@,$sysconfdir,;t t
6525 s,@sharedstatedir@,$sharedstatedir,;t t
6526 s,@localstatedir@,$localstatedir,;t t
6527 s,@libdir@,$libdir,;t t
6528 s,@includedir@,$includedir,;t t
6529 s,@oldincludedir@,$oldincludedir,;t t
6530 s,@infodir@,$infodir,;t t
6531 s,@mandir@,$mandir,;t t
6532 s,@build_alias@,$build_alias,;t t
6533 s,@host_alias@,$host_alias,;t t
6534 s,@target_alias@,$target_alias,;t t
6536 s,@ECHO_C@,$ECHO_C,;t t
6537 s,@ECHO_N@,$ECHO_N,;t t
6538 s,@ECHO_T@,$ECHO_T,;t t
6541 s,@CFLAGS@,$CFLAGS,;t t
6542 s,@LDFLAGS@,$LDFLAGS,;t t
6543 s,@CPPFLAGS@,$CPPFLAGS,;t t
6544 s,@ac_ct_CC@,$ac_ct_CC,;t t
6545 s,@EXEEXT@,$EXEEXT,;t t
6546 s,@OBJEXT@,$OBJEXT,;t t
6547 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6548 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6549 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6550 s,@SET_MAKE@,$SET_MAKE,;t t
6552 s,@X_CFLAGS@,$X_CFLAGS,;t t
6553 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6554 s,@X_LIBS@,$X_LIBS,;t t
6555 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6556 s,@EGREP@,$EGREP,;t t
6557 s,@LIBOBJS@,$LIBOBJS,;t t
6558 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6563 cat >>$CONFIG_STATUS <<\_ACEOF
6564 # Split the substitutions into bite-sized pieces for seds with
6565 # small command number limits, like on Digital OSF/1 and HP-UX.
6567 ac_sed_frag
=1 # Number of current file.
6568 ac_beg
=1 # First line for current file.
6569 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6572 while $ac_more_lines; do
6573 if test $ac_beg -gt 1; then
6574 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6576 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6578 if test ! -s $tmp/subs.frag
; then
6581 # The purpose of the label and of the branching condition is to
6582 # speed up the sed processing (if there are no `@' at all, there
6583 # is no need to browse any of the substitutions).
6584 # These are the two extra sed commands mentioned above.
6586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6587 if test -z "$ac_sed_cmds"; then
6588 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6590 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6592 ac_sed_frag
=`expr $ac_sed_frag + 1`
6594 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6597 if test -z "$ac_sed_cmds"; then
6600 fi # test -n "$CONFIG_FILES"
6603 cat >>$CONFIG_STATUS <<\_ACEOF
6604 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6605 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6607 - |
*:- |
*:-:* ) # input from stdin
6609 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6610 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6611 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6612 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6613 * ) ac_file_in
=$ac_file.
in ;;
6616 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6617 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6618 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6619 X"$ac_file" : 'X\(//\)[^/]' \| \
6620 X"$ac_file" : 'X\(//\)$' \| \
6621 X"$ac_file" : 'X\(/\)' \| \
6622 . : '\(.\)' 2>/dev/null ||
6624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6626 /^X\(\/\/\)$/{ s//\1/; q; }
6627 /^X\(\/\).*/{ s//\1/; q; }
6629 { if $as_mkdir_p; then
6634 while test ! -d "$as_dir"; do
6635 as_dirs
="$as_dir $as_dirs"
6636 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6638 X"$as_dir" : 'X\(//\)[^/]' \| \
6639 X"$as_dir" : 'X\(//\)$' \| \
6640 X"$as_dir" : 'X\(/\)' \| \
6641 . : '\(.\)' 2>/dev/null ||
6643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6645 /^X\(\/\/\)$/{ s//\1/; q; }
6646 /^X\(\/\).*/{ s//\1/; q; }
6649 test ! -n "$as_dirs" || mkdir
$as_dirs
6650 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6651 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6652 { (exit 1); exit 1; }; }; }
6656 if test "$ac_dir" != .
; then
6657 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6658 # A "../" for each directory in $ac_dir_suffix.
6659 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6661 ac_dir_suffix
= ac_top_builddir
=
6665 .
) # No --srcdir option. We are building in place.
6667 if test -z "$ac_top_builddir"; then
6670 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6672 [\\/]* | ?
:[\\/]* ) # Absolute path.
6673 ac_srcdir
=$srcdir$ac_dir_suffix;
6674 ac_top_srcdir
=$srcdir ;;
6676 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6677 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6680 # Do not use `cd foo && pwd` to compute absolute paths, because
6681 # the directories may not exist.
6683 .
) ac_abs_builddir
="$ac_dir";;
6686 .
) ac_abs_builddir
=`pwd`;;
6687 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6688 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6691 case $ac_abs_builddir in
6692 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6694 case ${ac_top_builddir}.
in
6695 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6696 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6697 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6700 case $ac_abs_builddir in
6701 .
) ac_abs_srcdir
=$ac_srcdir;;
6704 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6705 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6706 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6709 case $ac_abs_builddir in
6710 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6712 case $ac_top_srcdir in
6713 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6714 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6715 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6721 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6722 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6725 # Let's still pretend it is `configure' which instantiates (i.e., don't
6726 # use $as_me), people would be surprised to read:
6727 # /* config.h. Generated by config.status. */
6728 if test x
"$ac_file" = x-
; then
6731 configure_input
="$ac_file. "
6733 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6734 sed 's,.*/,,'` by configure."
6736 # First look for the input files in the build tree, otherwise in the
6738 ac_file_inputs
=`IFS=:
6739 for f in $ac_file_in; do
6741 -) echo $tmp/stdin ;;
6743 # Absolute (can't be DOS-style, as IFS=:)
6744 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6745 echo "$as_me: error: cannot find input file: $f" >&2;}
6746 { (exit 1); exit 1; }; }
6749 if test -f "$f"; then
6752 elif test -f "$srcdir/$f"; then
6757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6758 echo "$as_me: error: cannot find input file: $f" >&2;}
6759 { (exit 1); exit 1; }; }
6762 done` ||
{ (exit 1); exit 1; }
6764 if test x
"$ac_file" != x-
; then
6765 { echo "$as_me:$LINENO: creating $ac_file" >&5
6766 echo "$as_me: creating $ac_file" >&6;}
6770 cat >>$CONFIG_STATUS <<_ACEOF
6774 cat >>$CONFIG_STATUS <<\_ACEOF
6776 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6777 s
,@configure_input@
,$configure_input,;t t
6778 s
,@srcdir@
,$ac_srcdir,;t t
6779 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6780 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6781 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6782 s
,@builddir@
,$ac_builddir,;t t
6783 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6784 s
,@top_builddir@
,$ac_top_builddir,;t t
6785 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6786 s
,@INSTALL@
,$ac_INSTALL,;t t
6787 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6789 if test x"$ac_file" != x-; then
6790 mv $tmp/out $ac_file
6798 cat >>$CONFIG_STATUS <<\_ACEOF
6801 # CONFIG_HEADER section.
6804 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6805 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6807 # ac_d sets the value in "#define NAME VALUE" lines.
6808 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6809 ac_dB
='[ ].*$,\1#\2'
6812 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6813 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6814 ac_uB
='$,\1#\2define\3'
6818 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6821 - |
*:- |
*:-:* ) # input from stdin
6823 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6824 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6825 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6826 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6827 * ) ac_file_in
=$ac_file.
in ;;
6830 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6831 echo "$as_me: creating $ac_file" >&6;}
6833 # First look for the input files in the build tree, otherwise in the
6835 ac_file_inputs
=`IFS=:
6836 for f in $ac_file_in; do
6838 -) echo $tmp/stdin ;;
6840 # Absolute (can't be DOS-style, as IFS=:)
6841 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6842 echo "$as_me: error: cannot find input file: $f" >&2;}
6843 { (exit 1); exit 1; }; }
6844 # Do quote $f, to prevent DOS paths from being IFS'd.
6847 if test -f "$f"; then
6850 elif test -f "$srcdir/$f"; then
6855 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6856 echo "$as_me: error: cannot find input file: $f" >&2;}
6857 { (exit 1); exit 1; }; }
6860 done` ||
{ (exit 1); exit 1; }
6861 # Remove the trailing spaces.
6862 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6866 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6867 # `conftest.undefs', that substitutes the proper values into
6868 # config.h.in to produce config.h. The first handles `#define'
6869 # templates, and the second `#undef' templates.
6870 # And first: Protect against being on the right side of a sed subst in
6871 # config.status. Protect against being in an unquoted here document
6873 rm -f conftest.defines conftest.undefs
6874 # Using a here document instead of a string reduces the quoting nightmare.
6875 # Putting comments in sed scripts is not portable.
6877 # `end' is used to avoid that the second main sed command (meant for
6878 # 0-ary CPP macros) applies to n-ary macro definitions.
6879 # See the Autoconf documentation for `clear'.
6880 cat >confdef2sed.
sed <<\_ACEOF
6885 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6887 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6890 # If some macros were called several times there might be several times
6891 # the same #defines, which is useless. Nevertheless, we may not want to
6892 # sort them, since we want the *last* AC-DEFINE to be honored.
6893 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6894 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6895 rm -f confdef2sed.sed
6897 # This sed command replaces #undef with comments. This is necessary, for
6898 # example, in the case of _POSIX_SOURCE, which is predefined and required
6899 # on some systems where configure will not decide to define it.
6900 cat >>conftest.undefs <<\_ACEOF
6901 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6904 # Break up conftest.defines because some shells have a limit on the size
6905 # of here documents, and old seds have small limits too (100 cmds).
6906 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6907 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6908 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6909 echo ' :' >>$CONFIG_STATUS
6911 while grep . conftest.defines >/dev/null
6913 # Write a limited-size here document to $tmp/defines.sed.
6914 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6915 # Speed up: don't consider the non `#define' lines.
6916 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6917 # Work around the forget-to-reset-the-flag bug.
6918 echo 't clr' >>$CONFIG_STATUS
6919 echo ': clr' >>$CONFIG_STATUS
6920 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6922 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6926 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6927 rm -f conftest.defines
6928 mv conftest.
tail conftest.defines
6930 rm -f conftest.defines
6931 echo ' fi # grep' >>$CONFIG_STATUS
6932 echo >>$CONFIG_STATUS
6934 # Break up conftest.undefs because some shells have a limit on the size
6935 # of here documents, and old seds have small limits too (100 cmds).
6936 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6938 while grep . conftest.undefs
>/dev
/null
6940 # Write a limited-size here document to $tmp/undefs.sed.
6941 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6942 # Speed up: don't consider the non
`#undef'
6943 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6944 # Work around the forget-to-reset-the-flag bug.
6945 echo 't clr' >>$CONFIG_STATUS
6946 echo ': clr' >>$CONFIG_STATUS
6947 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6949 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6953 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6954 rm -f conftest.undefs
6955 mv conftest.tail conftest.undefs
6957 rm -f conftest.undefs
6959 cat >>$CONFIG_STATUS <<\_ACEOF
6960 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6961 # use $as_me), people would be surprised to read:
6962 # /* config.h. Generated by config.status. */
6963 if test x
"$ac_file" = x-
; then
6964 echo "/* Generated by configure. */" >$tmp/config.h
6966 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6968 cat $tmp/in >>$tmp/config.h
6970 if test x
"$ac_file" != x-
; then
6971 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6972 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6973 echo "$as_me: $ac_file is unchanged" >&6;}
6975 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6976 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6977 X"$ac_file" : 'X\(//\)[^/]' \| \
6978 X"$ac_file" : 'X\(//\)$' \| \
6979 X"$ac_file" : 'X\(/\)' \| \
6980 . : '\(.\)' 2>/dev/null ||
6982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6983 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6984 /^X\(\/\/\)$/{ s//\1/; q; }
6985 /^X\(\/\).*/{ s//\1/; q; }
6987 { if $as_mkdir_p; then
6992 while test ! -d "$as_dir"; do
6993 as_dirs
="$as_dir $as_dirs"
6994 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6995 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6996 X"$as_dir" : 'X\(//\)[^/]' \| \
6997 X"$as_dir" : 'X\(//\)$' \| \
6998 X"$as_dir" : 'X\(/\)' \| \
6999 . : '\(.\)' 2>/dev/null ||
7001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7002 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7003 /^X\(\/\/\)$/{ s//\1/; q; }
7004 /^X\(\/\).*/{ s//\1/; q; }
7007 test ! -n "$as_dirs" || mkdir
$as_dirs
7008 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7009 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7010 { (exit 1); exit 1; }; }; }
7013 mv $tmp/config.h
$ac_file
7022 cat >>$CONFIG_STATUS <<\_ACEOF
7024 { (exit 0); exit 0; }
7026 chmod +x
$CONFIG_STATUS
7027 ac_clean_files
=$ac_clean_files_save
7030 # configure is writing to config.log, and then calls config.status.
7031 # config.status does its own redirection, appending to config.log.
7032 # Unfortunately, on DOS this fails, as config.log is still kept open
7033 # by configure, so config.status won't be able to write to it; its
7034 # output is simply discarded. So we exec the FD to /dev/null,
7035 # effectively closing config.log, so it can be properly (re)opened and
7036 # appended to by config.status. When coming back to configure, we
7037 # need to make the FD available again.
7038 if test "$no_create" != yes; then
7040 ac_config_status_args
=
7041 test "$silent" = yes &&
7042 ac_config_status_args
="$ac_config_status_args --quiet"
7044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7047 # would make configure fail if this is the last instruction.
7048 $ac_cs_success ||
{ (exit 1); exit 1; }
7051 # ----------------------------------------------------------------------------