2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for xrestop 0.4.
5 # Report bugs to <mallum@handhelds.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='xrestop'
271 PACKAGE_TARNAME='xrestop'
272 PACKAGE_VERSION='0.4'
273 PACKAGE_STRING='xrestop 0.4'
274 PACKAGE_BUGREPORT='mallum@handhelds.org'
276 ac_unique_file="xrestop.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
281 # include <sys/types.h>
284 # include <sys/stat.h>
295 # if !STDC_HEADERS && HAVE_MEMORY_H
301 # include <strings.h>
304 # include <inttypes.h>
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG X11_CFLAGS X11_LIBS XLIBS_CFLAGS XLIBS_LIBS CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
317 # Initialize some variables set by options.
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
329 program_transform_name=s,x,x,
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
432 -help | --help | --hel | --he | -h)
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 # Obsolete; use --without-fp.
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
562 -site=* | --site=* | --sit=*)
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 -version | --version | --versio | --versi | --vers | -V)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
611 # Obsolete; use --with-x.
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
724 if test ! -r $srcdir/$ac_unique_file; then
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
772 ac_env_PKG_CONFIG_value=$PKG_CONFIG
773 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
774 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
775 ac_env_X11_CFLAGS_set=${X11_CFLAGS+set}
776 ac_env_X11_CFLAGS_value=$X11_CFLAGS
777 ac_cv_env_X11_CFLAGS_set=${X11_CFLAGS+set}
778 ac_cv_env_X11_CFLAGS_value=$X11_CFLAGS
779 ac_env_X11_LIBS_set=${X11_LIBS+set}
780 ac_env_X11_LIBS_value=$X11_LIBS
781 ac_cv_env_X11_LIBS_set=${X11_LIBS+set}
782 ac_cv_env_X11_LIBS_value=$X11_LIBS
783 ac_env_XLIBS_CFLAGS_set=${XLIBS_CFLAGS+set}
784 ac_env_XLIBS_CFLAGS_value=$XLIBS_CFLAGS
785 ac_cv_env_XLIBS_CFLAGS_set=${XLIBS_CFLAGS+set}
786 ac_cv_env_XLIBS_CFLAGS_value=$XLIBS_CFLAGS
787 ac_env_XLIBS_LIBS_set=${XLIBS_LIBS+set}
788 ac_env_XLIBS_LIBS_value=$XLIBS_LIBS
789 ac_cv_env_XLIBS_LIBS_set=${XLIBS_LIBS+set}
790 ac_cv_env_XLIBS_LIBS_value=$XLIBS_LIBS
791 ac_env_CPP_set=${CPP+set}
792 ac_env_CPP_value=$CPP
793 ac_cv_env_CPP_set=${CPP+set}
794 ac_cv_env_CPP_value=$CPP
797 # Report the --help message.
799 if test "$ac_init_help" = "long"; then
800 # Omit some internal or obsolete options to make the list less imposing.
801 # This message is too long to be a string in the A/UX 3.1 sh.
803 \`configure' configures xrestop 0.4 to adapt to many kinds of systems.
805 Usage: $0 [OPTION]... [VAR=VALUE]...
807 To assign environment variables (e.g., CC, CFLAGS...), specify them as
808 VAR=VALUE. See below for descriptions of some of the useful variables.
810 Defaults for the options are specified in brackets.
813 -h, --help display this help and exit
814 --help=short display options specific to this package
815 --help=recursive display the short help of all the included packages
816 -V, --version display version information and exit
817 -q, --quiet, --silent do not print \`checking...' messages
818 --cache-file=FILE cache test results in FILE [disabled]
819 -C, --config-cache alias for \`--cache-file=config.cache'
820 -n, --no-create do not create output files
821 --srcdir=DIR find the sources in DIR [configure dir or \`..']
826 Installation directories:
827 --prefix=PREFIX install architecture-independent files in PREFIX
829 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
832 By default, \`make install' will install all the files in
833 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
834 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
835 for instance \`--prefix=\$HOME'.
837 For better control, use the options below.
839 Fine tuning of the installation directories:
840 --bindir=DIR user executables [EPREFIX/bin]
841 --sbindir=DIR system admin executables [EPREFIX/sbin]
842 --libexecdir=DIR program executables [EPREFIX/libexec]
843 --datadir=DIR read-only architecture-independent data [PREFIX/share]
844 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
845 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
846 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
847 --libdir=DIR object code libraries [EPREFIX/lib]
848 --includedir=DIR C header files [PREFIX/include]
849 --oldincludedir=DIR C header files for non-gcc [/usr/include]
850 --infodir=DIR info documentation [PREFIX/info]
851 --mandir=DIR man documentation [PREFIX/man]
857 --program-prefix=PREFIX prepend PREFIX to installed program names
858 --program-suffix=SUFFIX append SUFFIX to installed program names
859 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
862 --x-includes=DIR X include files are in DIR
863 --x-libraries=DIR X library files are in DIR
867 if test -n "$ac_init_help"; then
868 case $ac_init_help in
869 short | recursive ) echo "Configuration of xrestop 0.4:";;
874 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
875 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
876 --enable-maintainer-mode enable make rules and dependencies not useful
877 (and sometimes confusing) to the casual installer
878 --disable-dependency-tracking speeds up one-time build
879 --enable-dependency-tracking do not reject slow dependency extractors
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-x use the X Window System
886 Some influential environment variables:
887 CC C compiler command
888 CFLAGS C compiler flags
889 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
890 nonstandard directory <lib dir>
891 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
892 headers in a nonstandard directory <include dir>
893 PKG_CONFIG path to pkg-config utility
894 X11_CFLAGS C compiler flags for X11, overriding pkg-config
895 X11_LIBS linker flags for X11, overriding pkg-config
897 C compiler flags for XLIBS, overriding pkg-config
898 XLIBS_LIBS linker flags for XLIBS, overriding pkg-config
901 Use these variables to override the choices made by `configure' or to help
902 it to find libraries and programs with nonstandard names/locations.
904 Report bugs to <mallum@handhelds.org>.
908 if test "$ac_init_help" = "recursive"; then
909 # If there are subdirs, report their specific --help.
911 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
912 test -d $ac_dir || continue
915 if test "$ac_dir" != .; then
916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
917 # A "../" for each directory in $ac_dir_suffix.
918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 ac_dir_suffix= ac_top_builddir=
924 .) # No --srcdir option. We are building in place.
926 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931 [\\/]* | ?:[\\/]* ) # Absolute path.
932 ac_srcdir=$srcdir$ac_dir_suffix;
933 ac_top_srcdir=$srcdir ;;
935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 # Do not use `cd foo && pwd` to compute absolute paths, because
940 # the directories may not exist.
942 .) ac_abs_builddir="$ac_dir";;
945 .) ac_abs_builddir=`pwd`;;
946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 case $ac_abs_builddir in
951 .) ac_abs_top_builddir=${ac_top_builddir}.;;
953 case ${ac_top_builddir}. in
954 .) ac_abs_top_builddir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 case $ac_abs_builddir in
960 .) ac_abs_srcdir=$ac_srcdir;;
963 .) ac_abs_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 case $ac_abs_builddir in
969 .) ac_abs_top_srcdir=$ac_top_srcdir;;
971 case $ac_top_srcdir in
972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979 # Check for guested configure; otherwise get Cygnus style configure.
980 if test -f $ac_srcdir/configure.gnu; then
982 $SHELL $ac_srcdir/configure.gnu --help=recursive
983 elif test -f $ac_srcdir/configure; then
985 $SHELL $ac_srcdir/configure --help=recursive
986 elif test -f $ac_srcdir/configure.ac ||
987 test -f $ac_srcdir/configure.in; then
991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 test -n "$ac_init_help" && exit 0
998 if $ac_init_version; then
1000 xrestop configure 0.4
1001 generated by GNU Autoconf 2.59
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1014 It was created by xrestop $as_me 0.4, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_must_keep_next=false
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103 -* ) ac_must_keep_next=true ;;
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1132 # The following way of writing the cache mishandles newlines in values,
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1155 for ac_var in $ac_subst_vars
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1162 if test -n "$ac_subst_files"; then
1169 for ac_var in $ac_subst_files
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1177 if test -s confdefs.h; then
1184 sed "/^$/d" confdefs.h | sort
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 # Predefined preprocessor variables.
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1267 # Check that the precious variables saved in the cache have kept the same
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352 am__api_version="1.9"
1354 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1355 if test -f $ac_dir/install-sh; then
1357 ac_install_sh="$ac_aux_dir/install-sh -c"
1359 elif test -f $ac_dir/install.sh; then
1361 ac_install_sh="$ac_aux_dir/install.sh -c"
1363 elif test -f $ac_dir/shtool; then
1365 ac_install_sh="$ac_aux_dir/shtool install -c"
1369 if test -z "$ac_aux_dir"; then
1370 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1371 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1372 { (exit 1); exit 1; }; }
1374 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1375 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1376 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1378 # Find a good install program. We prefer a C program (faster),
1379 # so one script is as good as another. But avoid the broken or
1380 # incompatible versions:
1381 # SysV /etc/install, /usr/sbin/install
1382 # SunOS /usr/etc/install
1383 # IRIX /sbin/install
1385 # AmigaOS /C/install, which installs bootblocks on floppy discs
1386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1389 # OS/2's system install, which has a completely different semantic
1390 # ./install, which can be erroneously created by make from ./install.sh.
1391 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1392 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1393 if test -z "$INSTALL"; then
1394 if test "${ac_cv_path_install+set}" = set; then
1395 echo $ECHO_N "(cached) $ECHO_C" >&6
1397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401 test -z "$as_dir" && as_dir=.
1402 # Account for people who put trailing slashes in PATH elements.
1404 ./ | .// | /cC/* | \
1405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1406 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1409 # OSF1 and SCO ODT 3.0 have their own names for install.
1410 # Don't use installbsd from OSF since it installs stuff as root
1412 for ac_prog in ginstall scoinst install; do
1413 for ac_exec_ext in '' $ac_executable_extensions; do
1414 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1415 if test $ac_prog = install &&
1416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1417 # AIX install. It has an incompatible calling convention.
1419 elif test $ac_prog = install &&
1420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1421 # program-specific install script used by HP pwplus--don't use.
1424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1436 if test "${ac_cv_path_install+set}" = set; then
1437 INSTALL=$ac_cv_path_install
1439 # As a last resort, use the slow shell script. We don't cache a
1440 # path for INSTALL within a source directory, because that will
1441 # break other packages using the cache if that directory is
1442 # removed, or if the path is relative.
1443 INSTALL=$ac_install_sh
1446 echo "$as_me:$LINENO: result: $INSTALL" >&5
1447 echo "${ECHO_T}$INSTALL" >&6
1449 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1450 # It thinks the first close brace ends the variable substitution.
1451 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1453 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1455 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1457 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1458 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1461 echo timestamp > conftest.file
1462 # Do `set' in a subshell so we don't clobber the current shell's
1463 # arguments. Must try -L first in case configure is actually a
1464 # symlink; some systems play weird games with the mod time of symlinks
1465 # (eg FreeBSD returns the mod time of the symlink's containing
1468 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1469 if test "$*" = "X"; then
1471 set X `ls -t $srcdir/configure conftest.file`
1474 if test "$*" != "X $srcdir/configure conftest.file" \
1475 && test "$*" != "X conftest.file $srcdir/configure"; then
1477 # If neither matched, then we have a broken ls. This can happen
1478 # if, for instance, CONFIG_SHELL is bash and it inherits a
1479 # broken ls alias from the environment. This has actually
1480 # happened. Such a system could not be considered "sane".
1481 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1482 alias in your environment" >&5
1483 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1484 alias in your environment" >&2;}
1485 { (exit 1); exit 1; }; }
1488 test "$2" = conftest.file
1494 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1495 Check your system clock" >&5
1496 echo "$as_me: error: newly created file is older than distributed files!
1497 Check your system clock" >&2;}
1498 { (exit 1); exit 1; }; }
1500 echo "$as_me:$LINENO: result: yes" >&5
1501 echo "${ECHO_T}yes" >&6
1502 test "$program_prefix" != NONE &&
1503 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1504 # Use a double $ so make ignores it.
1505 test "$program_suffix" != NONE &&
1506 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1507 # Double any \ or $. echo might interpret backslashes.
1508 # By default was `s,x,x', remove it if useless.
1509 cat <<\_ACEOF >conftest.sed
1510 s/[\\$]/&&/g;s/;s,x,x,$//
1512 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1515 # expand $ac_aux_dir to an absolute path
1516 am_aux_dir=`cd $ac_aux_dir && pwd`
1518 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1519 # Use eval to expand $SHELL
1520 if eval "$MISSING --run true"; then
1521 am_missing_run="$MISSING --run "
1524 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1525 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1528 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1529 # We used to keeping the `.' as first argument, in order to
1530 # allow $(mkdir_p) to be used without argument. As in
1531 # $(mkdir_p) $(somedir)
1532 # where $(somedir) is conditionally defined. However this is wrong
1534 # 1. if the package is installed by a user who cannot write `.'
1535 # make install will fail,
1536 # 2. the above comment should most certainly read
1537 # $(mkdir_p) $(DESTDIR)$(somedir)
1538 # so it does not work when $(somedir) is undefined and
1539 # $(DESTDIR) is not.
1540 # To support the latter case, we have to write
1541 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1542 # so the `.' trick is pointless.
1543 mkdir_p='mkdir -p --'
1545 # On NextStep and OpenStep, the `mkdir' command does not
1546 # recognize any option. It will interpret all options as
1547 # directories to create, and then abort because `.' already
1549 for d in ./-p ./--version;
1551 test -d $d && rmdir $d
1553 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1554 if test -f "$ac_aux_dir/mkinstalldirs"; then
1555 mkdir_p='$(mkinstalldirs)'
1557 mkdir_p='$(install_sh) -d'
1561 for ac_prog in gawk mawk nawk awk
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_AWK+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$AWK"; then
1571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_AWK="$ac_prog"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 if test -n "$AWK"; then
1591 echo "$as_me:$LINENO: result: $AWK" >&5
1592 echo "${ECHO_T}$AWK" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1598 test -n "$AWK" && break
1601 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1602 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1603 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1604 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 cat >conftest.make <<\_ACEOF
1609 @echo 'ac_maketemp="$(MAKE)"'
1611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1612 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1613 if test -n "$ac_maketemp"; then
1614 eval ac_cv_prog_make_${ac_make}_set=yes
1616 eval ac_cv_prog_make_${ac_make}_set=no
1620 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1621 echo "$as_me:$LINENO: result: yes" >&5
1622 echo "${ECHO_T}yes" >&6
1625 echo "$as_me:$LINENO: result: no" >&5
1626 echo "${ECHO_T}no" >&6
1627 SET_MAKE="MAKE=${MAKE-make}"
1630 rm -rf .tst 2>/dev/null
1631 mkdir .tst 2>/dev/null
1632 if test -d .tst; then
1637 rmdir .tst 2>/dev/null
1639 # test to see if srcdir already configured
1640 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1641 test -f $srcdir/config.status; then
1642 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1643 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1644 { (exit 1); exit 1; }; }
1647 # test whether we have cygpath
1648 if test -z "$CYGPATH_W"; then
1649 if (cygpath --version) >/dev/null 2>/dev/null; then
1650 CYGPATH_W='cygpath -w'
1657 # Define the identity of the package.
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE "$PACKAGE"
1667 cat >>confdefs.h <<_ACEOF
1668 #define VERSION "$VERSION"
1671 # Some tools Automake needs.
1673 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1676 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1679 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1682 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1685 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1687 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1689 # Installed binaries are usually stripped using `strip' when the user
1690 # run `make install-strip'. However `strip' might not be the right
1691 # tool to use in cross-compilation environments, therefore Automake
1692 # will honor the `STRIP' environment variable to overrule this program.
1693 if test "$cross_compiling" != no; then
1694 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1696 set dummy ${ac_tool_prefix}strip; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_STRIP+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$STRIP"; then
1703 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721 STRIP=$ac_cv_prog_STRIP
1722 if test -n "$STRIP"; then
1723 echo "$as_me:$LINENO: result: $STRIP" >&5
1724 echo "${ECHO_T}$STRIP" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$ac_cv_prog_STRIP"; then
1733 # Extract the first word of "strip", so it can be a program name with args.
1734 set dummy strip; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1740 if test -n "$ac_ct_STRIP"; then
1741 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_ac_ct_STRIP="strip"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1761 if test -n "$ac_ct_STRIP"; then
1762 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1763 echo "${ECHO_T}$ac_ct_STRIP" >&6
1765 echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1771 STRIP="$ac_cv_prog_STRIP"
1775 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1777 # We need awk for the "check" target. The system "awk" is bad on
1779 # Always define AMTAR for backward compatibility.
1781 AMTAR=${AMTAR-"${am_missing_run}tar"}
1783 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1789 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1790 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1791 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1792 if test "${enable_maintainer_mode+set}" = set; then
1793 enableval="$enable_maintainer_mode"
1794 USE_MAINTAINER_MODE=$enableval
1796 USE_MAINTAINER_MODE=no
1798 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1799 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1802 if test $USE_MAINTAINER_MODE = yes; then
1803 MAINTAINER_MODE_TRUE=
1804 MAINTAINER_MODE_FALSE='#'
1806 MAINTAINER_MODE_TRUE='#'
1807 MAINTAINER_MODE_FALSE=
1810 MAINT=$MAINTAINER_MODE_TRUE
1813 ac_config_headers="$ac_config_headers config.h"
1816 # Checks for programs.
1818 ac_cpp='$CPP $CPPFLAGS'
1819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 if test -n "$ac_tool_prefix"; then
1823 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1824 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1825 echo "$as_me:$LINENO: checking for $ac_word" >&5
1826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827 if test "${ac_cv_prog_CC+set}" = set; then
1828 echo $ECHO_N "(cached) $ECHO_C" >&6
1830 if test -n "$CC"; then
1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir=.
1838 for ac_exec_ext in '' $ac_executable_extensions; do
1839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 if test -n "$CC"; then
1851 echo "$as_me:$LINENO: result: $CC" >&5
1852 echo "${ECHO_T}$CC" >&6
1854 echo "$as_me:$LINENO: result: no" >&5
1855 echo "${ECHO_T}no" >&6
1859 if test -z "$ac_cv_prog_CC"; then
1861 # Extract the first word of "gcc", so it can be a program name with args.
1862 set dummy gcc; ac_word=$2
1863 echo "$as_me:$LINENO: checking for $ac_word" >&5
1864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 if test -n "$ac_ct_CC"; then
1869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 test -z "$as_dir" && as_dir=.
1876 for ac_exec_ext in '' $ac_executable_extensions; do
1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878 ac_cv_prog_ac_ct_CC="gcc"
1879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1888 if test -n "$ac_ct_CC"; then
1889 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1890 echo "${ECHO_T}$ac_ct_CC" >&6
1892 echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1901 if test -z "$CC"; then
1902 if test -n "$ac_tool_prefix"; then
1903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1904 set dummy ${ac_tool_prefix}cc; ac_word=$2
1905 echo "$as_me:$LINENO: checking for $ac_word" >&5
1906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907 if test "${ac_cv_prog_CC+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 if test -n "$CC"; then
1911 ac_cv_prog_CC="$CC" # Let the user override the test.
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 test -z "$as_dir" && as_dir=.
1918 for ac_exec_ext in '' $ac_executable_extensions; do
1919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920 ac_cv_prog_CC="${ac_tool_prefix}cc"
1921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1930 if test -n "$CC"; then
1931 echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1934 echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1939 if test -z "$ac_cv_prog_CC"; then
1941 # Extract the first word of "cc", so it can be a program name with args.
1942 set dummy cc; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 if test -n "$ac_ct_CC"; then
1949 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_ac_ct_CC="cc"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1968 if test -n "$ac_ct_CC"; then
1969 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1970 echo "${ECHO_T}$ac_ct_CC" >&6
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1982 if test -z "$CC"; then
1983 # Extract the first word of "cc", so it can be a program name with args.
1984 set dummy cc; ac_word=$2
1985 echo "$as_me:$LINENO: checking for $ac_word" >&5
1986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987 if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2002 ac_prog_rejected=yes
2006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012 if test $ac_prog_rejected = yes; then
2013 # We found a bogon in the path, so make sure we never use it.
2014 set dummy $ac_cv_prog_CC
2016 if test $# != 0; then
2017 # We chose a different compiler from the bogus one.
2018 # However, it has the same basename, so the bogon will be chosen
2019 # first if we set CC to just the basename; use the full file name.
2021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2027 if test -n "$CC"; then
2028 echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2036 if test -z "$CC"; then
2037 if test -n "$ac_tool_prefix"; then
2040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2042 echo "$as_me:$LINENO: checking for $ac_word" >&5
2043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044 if test "${ac_cv_prog_CC+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 test -z "$as_dir" && as_dir=.
2055 for ac_exec_ext in '' $ac_executable_extensions; do
2056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2067 if test -n "$CC"; then
2068 echo "$as_me:$LINENO: result: $CC" >&5
2069 echo "${ECHO_T}$CC" >&6
2071 echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2075 test -n "$CC" && break
2078 if test -z "$CC"; then
2082 # Extract the first word of "$ac_prog", so it can be a program name with args.
2083 set dummy $ac_prog; ac_word=$2
2084 echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 if test -n "$ac_ct_CC"; then
2090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_ac_ct_CC="$ac_prog"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6
2113 echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6
2117 test -n "$ac_ct_CC" && break
2126 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2127 See \`config.log' for more details." >&5
2128 echo "$as_me: error: no acceptable C compiler found in \$PATH
2129 See \`config.log' for more details." >&2;}
2130 { (exit 1); exit 1; }; }
2132 # Provide some information about the compiler.
2133 echo "$as_me:$LINENO:" \
2134 "checking for C compiler version" >&5
2135 ac_compiler=`set X $ac_compile; echo $2`
2136 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2137 (eval $ac_compiler --version </dev/null >&5) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }
2141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2142 (eval $ac_compiler -v </dev/null >&5) 2>&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); }
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2147 (eval $ac_compiler -V </dev/null >&5) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }
2152 cat >conftest.$ac_ext <<_ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2167 ac_clean_files_save=$ac_clean_files
2168 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2169 # Try to create an executable without -o first, disregard a.out.
2170 # It will help us diagnose broken compilers, and finding out an intuition
2172 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2173 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2174 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2175 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2176 (eval $ac_link_default) 2>&5
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; then
2180 # Find the output, starting from the most likely. This scheme is
2181 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2184 # Be careful to initialize this variable, since it used to be cached.
2185 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2187 # b.out is created by i960 compilers.
2188 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2190 test -f "$ac_file" || continue
2192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2195 # This is the source file.
2198 # We found the default executable, but exeext='' is most
2202 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2203 # FIXME: I believe we export ac_cv_exeext for Libtool,
2204 # but it would be cool to find out if it's true. Does anybody
2205 # maintain Libtool? --akim.
2213 echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2216 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: C compiler cannot create executables
2219 See \`config.log' for more details." >&2;}
2220 { (exit 77); exit 77; }; }
2223 ac_exeext=$ac_cv_exeext
2224 echo "$as_me:$LINENO: result: $ac_file" >&5
2225 echo "${ECHO_T}$ac_file" >&6
2227 # Check the compiler produces executables we can run. If not, either
2228 # the compiler is broken, or we cross compile.
2229 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2230 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2231 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2232 # If not cross compiling, check that we can run a simple program.
2233 if test "$cross_compiling" != yes; then
2234 if { ac_try='./$ac_file'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2242 if test "$cross_compiling" = maybe; then
2245 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2246 If you meant to cross compile, use \`--host'.
2247 See \`config.log' for more details." >&5
2248 echo "$as_me: error: cannot run C compiled programs.
2249 If you meant to cross compile, use \`--host'.
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2255 echo "$as_me:$LINENO: result: yes" >&5
2256 echo "${ECHO_T}yes" >&6
2258 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2259 ac_clean_files=$ac_clean_files_save
2260 # Check the compiler produces executables we can run. If not, either
2261 # the compiler is broken, or we cross compile.
2262 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2263 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2264 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2265 echo "${ECHO_T}$cross_compiling" >&6
2267 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2268 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2270 (eval $ac_link) 2>&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2275 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2276 # work properly (i.e., refer to `conftest.exe'), while it won't with
2278 for ac_file in conftest.exe conftest conftest.*; do
2279 test -f "$ac_file" || continue
2281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2282 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2296 rm -f conftest$ac_cv_exeext
2297 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2298 echo "${ECHO_T}$ac_cv_exeext" >&6
2300 rm -f conftest.$ac_ext
2301 EXEEXT=$ac_cv_exeext
2303 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2304 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2305 if test "${ac_cv_objext+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 cat >conftest.$ac_ext <<_ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2323 rm -f conftest.o conftest.obj
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350 echo "${ECHO_T}$ac_cv_objext" >&6
2351 OBJEXT=$ac_cv_objext
2353 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat >conftest.$ac_ext <<_ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; } &&
2391 { ac_try='test -s conftest.$ac_objext'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2410 GCC=`test $ac_compiler_gnu = yes && echo yes`
2411 ac_test_CFLAGS=${CFLAGS+set}
2412 ac_save_CFLAGS=$CFLAGS
2414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_g+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 cat >conftest.$ac_ext <<_ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436 (eval $ac_compile) 2>conftest.er1
2438 grep -v '^ *+' conftest.er1 >conftest.err
2440 cat conftest.err >&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); } &&
2443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try='test -s conftest.$ac_objext'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2465 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2466 if test "$ac_test_CFLAGS" = set; then
2467 CFLAGS=$ac_save_CFLAGS
2468 elif test $ac_cv_prog_cc_g = yes; then
2469 if test "$GCC" = yes; then
2475 if test "$GCC" = yes; then
2481 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2482 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2483 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2486 ac_cv_prog_cc_stdc=no
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2496 #include <sys/types.h>
2497 #include <sys/stat.h>
2498 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2499 struct buf { int x; };
2500 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2501 static char *e (p, i)
2507 static char *f (char * (*g) (char **, int), char **p, ...)
2512 s = g (p, va_arg (v,int));
2517 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2518 function prototypes and stuff, but not '\xHH' hex character constants.
2519 These don't provoke an error unfortunately, instead are silently treated
2520 as 'x'. The following induces an error, until -std1 is added to get
2521 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2522 array size at least. It's necessary to write '\x00'==0 to get something
2523 that's true only with -std1. */
2524 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2526 int test (int i, double x);
2527 struct s1 {int (*f) (int a);};
2528 struct s2 {int (*f) (double a);};
2529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2540 # Don't try gcc -ansi; that turns off useful extensions and
2541 # breaks some systems' header files.
2542 # AIX -qlanglvl=ansi
2543 # Ultrix and OSF/1 -std1
2544 # HP-UX 10.20 and later -Ae
2545 # HP-UX older versions -Aa -D_HPUX_SOURCE
2546 # SVR4 -Xc -D__EXTENSIONS__
2547 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2549 CC="$ac_save_CC $ac_arg"
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>conftest.er1
2554 grep -v '^ *+' conftest.er1 >conftest.err
2556 cat conftest.err >&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); } &&
2559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; } &&
2565 { ac_try='test -s conftest.$ac_objext'
2566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); }; }; then
2571 ac_cv_prog_cc_stdc=$ac_arg
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2578 rm -f conftest.err conftest.$ac_objext
2580 rm -f conftest.$ac_ext conftest.$ac_objext
2585 case "x$ac_cv_prog_cc_stdc" in
2587 echo "$as_me:$LINENO: result: none needed" >&5
2588 echo "${ECHO_T}none needed" >&6 ;;
2590 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2591 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2592 CC="$CC $ac_cv_prog_cc_stdc" ;;
2595 # Some people use a C++ compiler to compile C. Since we use `exit',
2596 # in C++ we need to declare it. In case someone uses the same compiler
2597 # for both compiling C and C++ we need to have the C++ compiler decide
2598 # the declaration of exit, since it's the most demanding environment.
2599 cat >conftest.$ac_ext <<_ACEOF
2604 rm -f conftest.$ac_objext
2605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2606 (eval $ac_compile) 2>conftest.er1
2608 grep -v '^ *+' conftest.er1 >conftest.err
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 for ac_declaration in \
2627 'extern "C" void std::exit (int) throw (); using std::exit;' \
2628 'extern "C" void std::exit (int); using std::exit;' \
2629 'extern "C" void exit (int) throw ();' \
2630 'extern "C" void exit (int);' \
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2649 rm -f conftest.$ac_objext
2650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2651 (eval $ac_compile) 2>conftest.er1
2653 grep -v '^ *+' conftest.er1 >conftest.err
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } &&
2658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>conftest.er1
2697 grep -v '^ *+' conftest.er1 >conftest.err
2699 cat conftest.err >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
2702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; } &&
2708 { ac_try='test -s conftest.$ac_objext'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; }; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2723 if test -n "$ac_declaration"; then
2724 echo '#ifdef __cplusplus' >>confdefs.h
2725 echo $ac_declaration >>confdefs.h
2726 echo '#endif' >>confdefs.h
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 DEPDIR="${am__leading_dot}deps"
2742 ac_config_commands="$ac_config_commands depfiles"
2745 am_make=${MAKE-make}
2746 cat > confinc << 'END'
2751 # If we don't find an include directive, just comment out the code.
2752 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2753 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2757 # First try GNU make style include.
2758 echo "include confinc" > confmf
2759 # We grep out `Entering directory' and `Leaving directory'
2760 # messages which can occur if `w' ends up in MAKEFLAGS.
2761 # In particular we don't look at `^make:' because GNU make might
2762 # be invoked under some other name (usually "gmake"), in which
2763 # case it prints its new name instead of `make'.
2764 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2769 # Now try BSD make style include.
2770 if test "$am__include" = "#"; then
2771 echo '.include "confinc"' > confmf
2772 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2773 am__include=.include
2780 echo "$as_me:$LINENO: result: $_am_result" >&5
2781 echo "${ECHO_T}$_am_result" >&6
2782 rm -f confinc confmf
2784 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2785 if test "${enable_dependency_tracking+set}" = set; then
2786 enableval="$enable_dependency_tracking"
2789 if test "x$enable_dependency_tracking" != xno; then
2790 am_depcomp="$ac_aux_dir/depcomp"
2795 if test "x$enable_dependency_tracking" != xno; then
2806 depcc="$CC" am_compiler_list=
2808 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2809 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2810 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2814 # We make a subdir and do the tests there. Otherwise we can end up
2815 # making bogus files that we don't know about and never remove. For
2816 # instance it was reported that on HP-UX the gcc test will end up
2817 # making a dummy file named `D' -- because `-MD' means `put the output
2820 # Copy depcomp to subdir because otherwise we won't find it if we're
2821 # using a relative directory.
2822 cp "$am_depcomp" conftest.dir
2824 # We will build objects and dependencies in a subdirectory because
2825 # it helps to detect inapplicable dependency modes. For instance
2826 # both Tru64's cc and ICC support -MD to output dependencies as a
2827 # side effect of compilation, but ICC will put the dependencies in
2828 # the current directory while Tru64 will put them in the object
2832 am_cv_CC_dependencies_compiler_type=none
2833 if test "$am_compiler_list" = ""; then
2834 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2836 for depmode in $am_compiler_list; do
2837 # Setup a source with many dependencies, because some compilers
2838 # like to wrap large dependency lists on column 80 (with \), and
2839 # we should not choose a depcomp mode which is confused by this.
2841 # We need to recreate these files for each test, as the compiler may
2842 # overwrite some of them when testing with obscure command lines.
2843 # This happens at least with the AIX C compiler.
2845 for i in 1 2 3 4 5 6; do
2846 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2847 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2848 # Solaris 8's {/usr,}/bin/sh.
2849 touch sub/conftst$i.h
2851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2855 # after this tag, mechanisms are not by side-effect, so they'll
2856 # only be used when explicitly requested
2857 if test "x$enable_dependency_tracking" = xyes; then
2865 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2866 # mode. It turns out that the SunPro C++ compiler does not properly
2867 # handle `-M -o', and we need to detect this.
2868 if depmode=$depmode \
2869 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2871 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2872 >/dev/null 2>conftest.err &&
2873 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2874 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2875 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2876 # icc doesn't choke on unknown options, it will just issue warnings
2877 # or remarks (even with -Werror). So we grep stderr for any message
2878 # that says an option was ignored or not supported.
2879 # When given -MP, icc 7.0 and 7.1 complain thusly:
2880 # icc: Command line warning: ignoring option '-M'; no argument required
2881 # The diagnosis changed in icc 8.0:
2882 # icc: Command line remark: option '-MP' not supported
2883 if (grep 'ignoring option' conftest.err ||
2884 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2885 am_cv_CC_dependencies_compiler_type=$depmode
2894 am_cv_CC_dependencies_compiler_type=none
2898 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2899 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2900 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2905 test "x$enable_dependency_tracking" != xno \
2906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2908 am__fastdepCC_FALSE='#'
2910 am__fastdepCC_TRUE='#'
2911 am__fastdepCC_FALSE=
2920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2924 echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2953 if test -n "$PKG_CONFIG"; then
2954 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2955 echo "${ECHO_T}$PKG_CONFIG" >&6
2957 echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6
2962 if test -z "$ac_cv_path_PKG_CONFIG"; then
2963 ac_pt_PKG_CONFIG=$PKG_CONFIG
2964 # Extract the first word of "pkg-config", so it can be a program name with args.
2965 set dummy pkg-config; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 case $ac_pt_PKG_CONFIG in
2973 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2995 if test -n "$ac_pt_PKG_CONFIG"; then
2996 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
2997 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2999 echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3003 PKG_CONFIG=$ac_pt_PKG_CONFIG
3005 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3009 if test -n "$PKG_CONFIG"; then
3010 _pkg_min_version=0.9.0
3011 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3012 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
3013 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3014 echo "$as_me:$LINENO: result: yes" >&5
3015 echo "${ECHO_T}yes" >&6
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3025 echo "$as_me:$LINENO: checking for X11" >&5
3026 echo $ECHO_N "checking for X11... $ECHO_C" >&6
3028 if test -n "$PKG_CONFIG"; then
3029 if test -n "$PKG_CONFIG" && \
3030 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
3031 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; then
3035 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
3042 if test -n "$PKG_CONFIG"; then
3043 if test -n "$PKG_CONFIG" && \
3044 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
3045 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; then
3049 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
3057 if test $pkg_failed = yes; then
3058 X11_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11"`
3059 # Put the nasty error message in config.log where it belongs
3060 echo "$X11_PKG_ERRORS" 1>&5
3063 elif test $pkg_failed = untried; then
3066 X11_CFLAGS=$pkg_cv_X11_CFLAGS
3067 X11_LIBS=$pkg_cv_X11_LIBS
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3073 if test $have_libx11pc = yes; then
3076 echo "$as_me:$LINENO: checking for XLIBS" >&5
3077 echo $ECHO_N "checking for XLIBS... $ECHO_C" >&6
3079 if test -n "$PKG_CONFIG"; then
3080 if test -n "$PKG_CONFIG" && \
3081 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xres xext\"") >&5
3082 ($PKG_CONFIG --exists --print-errors "x11 xres xext") 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 pkg_cv_XLIBS_CFLAGS=`$PKG_CONFIG --cflags "x11 xres xext" 2>/dev/null`
3093 if test -n "$PKG_CONFIG"; then
3094 if test -n "$PKG_CONFIG" && \
3095 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xres xext\"") >&5
3096 ($PKG_CONFIG --exists --print-errors "x11 xres xext") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 pkg_cv_XLIBS_LIBS=`$PKG_CONFIG --libs "x11 xres xext" 2>/dev/null`
3108 if test $pkg_failed = yes; then
3109 XLIBS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xres xext"`
3110 # Put the nasty error message in config.log where it belongs
3111 echo "$XLIBS_PKG_ERRORS" 1>&5
3113 { { echo "$as_me:$LINENO: error: Package requirements (x11 xres xext) were not met.
3114 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3115 installed software in a non-standard prefix.
3117 Alternatively you may set the XLIBS_CFLAGS and XLIBS_LIBS environment variables
3118 to avoid the need to call pkg-config. See the pkg-config man page for
3120 echo "$as_me: error: Package requirements (x11 xres xext) were not met.
3121 Consider adjusting the PKG_CONFIG_PATH environment variable if you
3122 installed software in a non-standard prefix.
3124 Alternatively you may set the XLIBS_CFLAGS and XLIBS_LIBS environment variables
3125 to avoid the need to call pkg-config. See the pkg-config man page for
3126 more details." >&2;}
3127 { (exit 1); exit 1; }; }
3128 elif test $pkg_failed = untried; then
3129 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
3130 is in your PATH or set the PKG_CONFIG environment variable to the full
3133 Alternatively you may set the XLIBS_CFLAGS and XLIBS_LIBS environment variables
3134 to avoid the need to call pkg-config. See the pkg-config man page for
3137 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
3140 is in your PATH or set the PKG_CONFIG environment variable to the full
3143 Alternatively you may set the XLIBS_CFLAGS and XLIBS_LIBS environment variables
3144 to avoid the need to call pkg-config. See the pkg-config man page for
3147 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
3148 See \`config.log' for more details." >&2;}
3149 { (exit 1); exit 1; }; }
3151 XLIBS_CFLAGS=$pkg_cv_XLIBS_CFLAGS
3152 XLIBS_LIBS=$pkg_cv_XLIBS_LIBS
3153 echo "$as_me:$LINENO: result: yes" >&5
3154 echo "${ECHO_T}yes" >&6
3160 ac_cpp='$CPP $CPPFLAGS'
3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3166 # On Suns, sometimes $CPP names a directory.
3167 if test -n "$CPP" && test -d "$CPP"; then
3170 if test -z "$CPP"; then
3171 if test "${ac_cv_prog_CPP+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3174 # Double quotes because CPP needs to be expanded
3175 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3178 for ac_c_preproc_warn_flag in '' yes
3180 # Use a header file that comes with gcc, so configuring glibc
3181 # with a fresh cross-compiler works.
3182 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3183 # <limits.h> exists even on freestanding compilers.
3184 # On the NeXT, cc -E runs the code through the compiler's parser,
3185 # not just through cpp. "Syntax error" is here to catch this case.
3186 cat >conftest.$ac_ext <<_ACEOF
3189 cat confdefs.h >>conftest.$ac_ext
3190 cat >>conftest.$ac_ext <<_ACEOF
3191 /* end confdefs.h. */
3193 # include <limits.h>
3195 # include <assert.h>
3199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } >/dev/null; then
3207 if test -s conftest.err; then
3208 ac_cpp_err=$ac_c_preproc_warn_flag
3209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3216 if test -z "$ac_cpp_err"; then
3219 echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3222 # Broken: fails on valid input.
3225 rm -f conftest.err conftest.$ac_ext
3227 # OK, works on sane cases. Now check whether non-existent headers
3228 # can be detected and how.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3235 #include <ac_nonexistent.h>
3237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null; then
3245 if test -s conftest.err; then
3246 ac_cpp_err=$ac_c_preproc_warn_flag
3247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3254 if test -z "$ac_cpp_err"; then
3255 # Broken: success on invalid input.
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 # Passes both tests.
3265 rm -f conftest.err conftest.$ac_ext
3268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3269 rm -f conftest.err conftest.$ac_ext
3270 if $ac_preproc_ok; then
3282 echo "$as_me:$LINENO: result: $CPP" >&5
3283 echo "${ECHO_T}$CPP" >&6
3285 for ac_c_preproc_warn_flag in '' yes
3287 # Use a header file that comes with gcc, so configuring glibc
3288 # with a fresh cross-compiler works.
3289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3290 # <limits.h> exists even on freestanding compilers.
3291 # On the NeXT, cc -E runs the code through the compiler's parser,
3292 # not just through cpp. "Syntax error" is here to catch this case.
3293 cat >conftest.$ac_ext <<_ACEOF
3296 cat confdefs.h >>conftest.$ac_ext
3297 cat >>conftest.$ac_ext <<_ACEOF
3298 /* end confdefs.h. */
3300 # include <limits.h>
3302 # include <assert.h>
3306 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3309 grep -v '^ *+' conftest.er1 >conftest.err
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); } >/dev/null; then
3314 if test -s conftest.err; then
3315 ac_cpp_err=$ac_c_preproc_warn_flag
3316 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3323 if test -z "$ac_cpp_err"; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 # Broken: fails on valid input.
3332 rm -f conftest.err conftest.$ac_ext
3334 # OK, works on sane cases. Now check whether non-existent headers
3335 # can be detected and how.
3336 cat >conftest.$ac_ext <<_ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342 #include <ac_nonexistent.h>
3344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3347 grep -v '^ *+' conftest.er1 >conftest.err
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } >/dev/null; then
3352 if test -s conftest.err; then
3353 ac_cpp_err=$ac_c_preproc_warn_flag
3354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3361 if test -z "$ac_cpp_err"; then
3362 # Broken: success on invalid input.
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 # Passes both tests.
3372 rm -f conftest.err conftest.$ac_ext
3375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3376 rm -f conftest.err conftest.$ac_ext
3377 if $ac_preproc_ok; then
3380 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3381 See \`config.log' for more details." >&5
3382 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3383 See \`config.log' for more details." >&2;}
3384 { (exit 1); exit 1; }; }
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 if test "x$ac_path_x_has_been_run" != xyes; then
3396 echo "$as_me:$LINENO: checking for X" >&5
3397 echo $ECHO_N "checking for X... $ECHO_C" >&6
3399 ac_path_x_has_been_run=yes
3401 # Check whether --with-x or --without-x was given.
3402 if test "${with_x+set}" = set; then
3406 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3407 if test "x$with_x" = xno; then
3408 # The user explicitly disabled X.
3411 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3412 # Both variables are already set.
3415 if test "${ac_cv_have_x+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 # One or both of the vars are not set, and there is no cached value.
3419 ac_x_includes=no ac_x_libraries=no
3421 if mkdir conftest.dir; then
3423 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3424 cat >Imakefile <<'_ACEOF'
3426 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3428 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3429 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3430 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3431 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3432 for ac_extension in a so sl; do
3433 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3434 test -f $ac_im_libdir/libX11.$ac_extension; then
3435 ac_im_usrlibdir=$ac_im_libdir; break
3438 # Screen out bogus values from the imake configuration. They are
3439 # bogus both because they are the default anyway, and because
3440 # using them would break gcc on systems where it needs fixed includes.
3441 case $ac_im_incroot in
3443 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3445 case $ac_im_usrlibdir in
3447 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3454 # Standard set of common directories for X headers.
3455 # Check X11 before X11Rn because it is often a symlink to the current release.
3467 /usr/local/X11/include
3468 /usr/local/X11R6/include
3469 /usr/local/X11R5/include
3470 /usr/local/X11R4/include
3472 /usr/local/include/X11
3473 /usr/local/include/X11R6
3474 /usr/local/include/X11R5
3475 /usr/local/include/X11R4
3479 /usr/XFree86/include/X11
3483 /usr/unsupported/include
3485 /usr/local/x11r5/include
3486 /usr/lpp/Xamples/include
3488 /usr/openwin/include
3489 /usr/openwin/share/include'
3491 if test "$ac_x_includes" = no; then
3492 # Guess where to find include files, by looking for a specified header file.
3493 # First, try using that file with no special directory specified.
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <X11/Intrinsic.h>
3502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } >/dev/null; then
3510 if test -s conftest.err; then
3511 ac_cpp_err=$ac_c_preproc_warn_flag
3512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3519 if test -z "$ac_cpp_err"; then
3520 # We can compile using X headers with no special include directory.
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 for ac_dir in $ac_x_header_dirs; do
3527 if test -r "$ac_dir/X11/Intrinsic.h"; then
3528 ac_x_includes=$ac_dir
3533 rm -f conftest.err conftest.$ac_ext
3534 fi # $ac_x_includes = no
3536 if test "$ac_x_libraries" = no; then
3537 # Check for the libraries.
3538 # See if we find them without any special options.
3539 # Don't add to $LIBS permanently.
3542 cat >conftest.$ac_ext <<_ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h. */
3548 #include <X11/Intrinsic.h>
3557 rm -f conftest.$ac_objext conftest$ac_exeext
3558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3559 (eval $ac_link) 2>conftest.er1
3561 grep -v '^ *+' conftest.er1 >conftest.err
3563 cat conftest.err >&5
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest$ac_exeext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3579 # We can link X programs with no special library path.
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3586 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3588 # Don't even attempt the hair of trying to link an X program!
3589 for ac_extension in a so sl; do
3590 if test -r $ac_dir/libXt.$ac_extension; then
3591 ac_x_libraries=$ac_dir
3597 rm -f conftest.err conftest.$ac_objext \
3598 conftest$ac_exeext conftest.$ac_ext
3599 fi # $ac_x_libraries = no
3601 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3602 # Didn't find X anywhere. Cache the known absence of X.
3603 ac_cv_have_x="have_x=no"
3605 # Record where we found X for the cache.
3606 ac_cv_have_x="have_x=yes \
3607 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3612 eval "$ac_cv_have_x"
3615 if test "$have_x" != yes; then
3616 echo "$as_me:$LINENO: result: $have_x" >&5
3617 echo "${ECHO_T}$have_x" >&6
3620 # If each of the values was on the command line, it overrides each guess.
3621 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3622 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3623 # Update the cache value to reflect the command line values.
3624 ac_cv_have_x="have_x=yes \
3625 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3626 # It might be that x_includes is empty (headers are found in the
3627 # standard search path. Then output the corresponding message
3628 ac_out_x_includes=$x_includes
3629 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3630 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3631 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3635 if test "$no_x" = yes; then
3636 # Not all programs may use this symbol, but it does not hurt to define it.
3638 cat >>confdefs.h <<\_ACEOF
3639 #define X_DISPLAY_MISSING 1
3642 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3644 if test -n "$x_includes"; then
3645 X_CFLAGS="$X_CFLAGS -I$x_includes"
3648 # It would also be nice to do this for all -L options, not just this one.
3649 if test -n "$x_libraries"; then
3650 X_LIBS="$X_LIBS -L$x_libraries"
3651 # For Solaris; some versions of Sun CC require a space after -R and
3652 # others require no space. Words are not sufficient . . . .
3653 case `(uname -sr) 2>/dev/null` in
3655 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3656 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3657 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3658 cat >conftest.$ac_ext <<_ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h. */
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3701 rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703 if test $ac_R_nospace = yes; then
3704 echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3706 X_LIBS="$X_LIBS -R$x_libraries"
3708 LIBS="$ac_xsave_LIBS -R $x_libraries"
3709 cat >conftest.$ac_ext <<_ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3724 rm -f conftest.$ac_objext conftest$ac_exeext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>conftest.er1
3728 grep -v '^ *+' conftest.er1 >conftest.err
3730 cat conftest.err >&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } &&
3733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); }; } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3747 echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3752 rm -f conftest.err conftest.$ac_objext \
3753 conftest$ac_exeext conftest.$ac_ext
3754 if test $ac_R_space = yes; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3757 X_LIBS="$X_LIBS -R $x_libraries"
3759 echo "$as_me:$LINENO: result: neither works" >&5
3760 echo "${ECHO_T}neither works" >&6
3767 # Check for system-dependent libraries X programs must link with.
3768 # Do this before checking for the system-independent R6 libraries
3769 # (-lICE), since we may need -lsocket or whatever for X linking.
3771 if test "$ISC" = yes; then
3772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3774 # Martyn Johnson says this is needed for Ultrix, if the X
3775 # libraries were built with DECnet support. And Karl Berry says
3776 # the Alpha needs dnet_stub (dnet does not exist).
3777 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3785 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3791 char XOpenDisplay ();
3800 rm -f conftest.$ac_objext conftest$ac_exeext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802 (eval $ac_link) 2>conftest.er1
3804 grep -v '^ *+' conftest.er1 >conftest.err
3806 cat conftest.err >&5
3807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; } &&
3815 { ac_try='test -s conftest$ac_exeext'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; }; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3827 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3828 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 ac_check_lib_save_LIBS=$LIBS
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3840 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3855 rm -f conftest.$ac_objext conftest$ac_exeext
3856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest$ac_exeext'
3871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); }; }; then
3876 ac_cv_lib_dnet_dnet_ntoa=yes
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3881 ac_cv_lib_dnet_dnet_ntoa=no
3883 rm -f conftest.err conftest.$ac_objext \
3884 conftest$ac_exeext conftest.$ac_ext
3885 LIBS=$ac_check_lib_save_LIBS
3887 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3888 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3889 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3890 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3893 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3894 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3895 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3896 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 ac_check_lib_save_LIBS=$LIBS
3900 LIBS="-ldnet_stub $LIBS"
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3908 /* Override any gcc2 internal prototype to avoid an error. */
3912 /* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3923 rm -f conftest.$ac_objext conftest$ac_exeext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3925 (eval $ac_link) 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } &&
3932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest$ac_exeext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_cv_lib_dnet_stub_dnet_ntoa=no
3951 rm -f conftest.err conftest.$ac_objext \
3952 conftest$ac_exeext conftest.$ac_ext
3953 LIBS=$ac_check_lib_save_LIBS
3955 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3956 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3957 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3958 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3963 rm -f conftest.err conftest.$ac_objext \
3964 conftest$ac_exeext conftest.$ac_ext
3965 LIBS="$ac_xsave_LIBS"
3967 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3968 # to get the SysV transport functions.
3969 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3971 # The nsl library prevents programs from opening the X display
3972 # on Irix 5.2, according to T.E. Dickey.
3973 # The functions gethostbyname, getservbyname, and inet_addr are
3974 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3975 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3976 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3977 if test "${ac_cv_func_gethostbyname+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3988 #define gethostbyname innocuous_gethostbyname
3990 /* System header to define __stub macros and hopefully few prototypes,
3991 which can conflict with char gethostbyname (); below.
3992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993 <limits.h> exists even on freestanding compilers. */
3996 # include <limits.h>
3998 # include <assert.h>
4001 #undef gethostbyname
4003 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4010 char gethostbyname ();
4011 /* The GNU C library defines this for functions which it implements
4012 to always fail with ENOSYS. Some functions are actually named
4013 something starting with __ and the normal name is an alias. */
4014 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4017 char (*f) () = gethostbyname;
4026 return f != gethostbyname;
4031 rm -f conftest.$ac_objext conftest$ac_exeext
4032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033 (eval $ac_link) 2>conftest.er1
4035 grep -v '^ *+' conftest.er1 >conftest.err
4037 cat conftest.err >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4045 (exit $ac_status); }; } &&
4046 { ac_try='test -s conftest$ac_exeext'
4047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; }; then
4052 ac_cv_func_gethostbyname=yes
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 ac_cv_func_gethostbyname=no
4059 rm -f conftest.err conftest.$ac_objext \
4060 conftest$ac_exeext conftest.$ac_ext
4062 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4063 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4065 if test $ac_cv_func_gethostbyname = no; then
4066 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4067 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4068 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4071 ac_check_lib_save_LIBS=$LIBS
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 /* Override any gcc2 internal prototype to avoid an error. */
4084 /* We use char because int might match the return type of a gcc2
4085 builtin and then its argument prototype would still apply. */
4086 char gethostbyname ();
4095 rm -f conftest.$ac_objext conftest$ac_exeext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097 (eval $ac_link) 2>conftest.er1
4099 grep -v '^ *+' conftest.er1 >conftest.err
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest$ac_exeext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_cv_lib_nsl_gethostbyname=yes
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 ac_cv_lib_nsl_gethostbyname=no
4123 rm -f conftest.err conftest.$ac_objext \
4124 conftest$ac_exeext conftest.$ac_ext
4125 LIBS=$ac_check_lib_save_LIBS
4127 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4128 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4129 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4133 if test $ac_cv_lib_nsl_gethostbyname = no; then
4134 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4135 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4136 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 ac_check_lib_save_LIBS=$LIBS
4141 cat >conftest.$ac_ext <<_ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4148 /* Override any gcc2 internal prototype to avoid an error. */
4152 /* We use char because int might match the return type of a gcc2
4153 builtin and then its argument prototype would still apply. */
4154 char gethostbyname ();
4163 rm -f conftest.$ac_objext conftest$ac_exeext
4164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165 (eval $ac_link) 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } &&
4172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 ac_cv_lib_bsd_gethostbyname=yes
4186 echo "$as_me: failed program was:" >&5
4187 sed 's/^/| /' conftest.$ac_ext >&5
4189 ac_cv_lib_bsd_gethostbyname=no
4191 rm -f conftest.err conftest.$ac_objext \
4192 conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4195 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4196 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4197 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4198 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4204 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4205 # socket/setsockopt and other routines are undefined under SCO ODT
4206 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4207 # on later versions), says Simon Leinen: it contains gethostby*
4208 # variants that don't use the name server (or something). -lsocket
4209 # must be given before -lnsl if both are needed. We assume that
4210 # if connect needs -lnsl, so does gethostbyname.
4211 echo "$as_me:$LINENO: checking for connect" >&5
4212 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4213 if test "${ac_cv_func_connect+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4223 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4224 #define connect innocuous_connect
4226 /* System header to define __stub macros and hopefully few prototypes,
4227 which can conflict with char connect (); below.
4228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4229 <limits.h> exists even on freestanding compilers. */
4232 # include <limits.h>
4234 # include <assert.h>
4239 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */
4247 /* The GNU C library defines this for functions which it implements
4248 to always fail with ENOSYS. Some functions are actually named
4249 something starting with __ and the normal name is an alias. */
4250 #if defined (__stub_connect) || defined (__stub___connect)
4253 char (*f) () = connect;
4262 return f != connect;
4267 rm -f conftest.$ac_objext conftest$ac_exeext
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269 (eval $ac_link) 2>conftest.er1
4271 grep -v '^ *+' conftest.er1 >conftest.err
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest$ac_exeext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_cv_func_connect=yes
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_func_connect=no
4295 rm -f conftest.err conftest.$ac_objext \
4296 conftest$ac_exeext conftest.$ac_ext
4298 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4299 echo "${ECHO_T}$ac_cv_func_connect" >&6
4301 if test $ac_cv_func_connect = no; then
4302 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4303 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4304 if test "${ac_cv_lib_socket_connect+set}" = set; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 ac_check_lib_save_LIBS=$LIBS
4308 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4309 cat >conftest.$ac_ext <<_ACEOF
4312 cat confdefs.h >>conftest.$ac_ext
4313 cat >>conftest.$ac_ext <<_ACEOF
4314 /* end confdefs.h. */
4316 /* Override any gcc2 internal prototype to avoid an error. */
4320 /* We use char because int might match the return type of a gcc2
4321 builtin and then its argument prototype would still apply. */
4331 rm -f conftest.$ac_objext conftest$ac_exeext
4332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4333 (eval $ac_link) 2>conftest.er1
4335 grep -v '^ *+' conftest.er1 >conftest.err
4337 cat conftest.err >&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; } &&
4346 { ac_try='test -s conftest$ac_exeext'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_lib_socket_connect=yes
4354 echo "$as_me: failed program was:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 ac_cv_lib_socket_connect=no
4359 rm -f conftest.err conftest.$ac_objext \
4360 conftest$ac_exeext conftest.$ac_ext
4361 LIBS=$ac_check_lib_save_LIBS
4363 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4364 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4365 if test $ac_cv_lib_socket_connect = yes; then
4366 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4371 # Guillermo Gomez says -lposix is necessary on A/UX.
4372 echo "$as_me:$LINENO: checking for remove" >&5
4373 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4374 if test "${ac_cv_func_remove+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4385 #define remove innocuous_remove
4387 /* System header to define __stub macros and hopefully few prototypes,
4388 which can conflict with char remove (); below.
4389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4390 <limits.h> exists even on freestanding compilers. */
4393 # include <limits.h>
4395 # include <assert.h>
4400 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4408 /* The GNU C library defines this for functions which it implements
4409 to always fail with ENOSYS. Some functions are actually named
4410 something starting with __ and the normal name is an alias. */
4411 #if defined (__stub_remove) || defined (__stub___remove)
4414 char (*f) () = remove;
4428 rm -f conftest.$ac_objext conftest$ac_exeext
4429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4430 (eval $ac_link) 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } &&
4437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 ac_cv_func_remove=yes
4451 echo "$as_me: failed program was:" >&5
4452 sed 's/^/| /' conftest.$ac_ext >&5
4454 ac_cv_func_remove=no
4456 rm -f conftest.err conftest.$ac_objext \
4457 conftest$ac_exeext conftest.$ac_ext
4459 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4460 echo "${ECHO_T}$ac_cv_func_remove" >&6
4462 if test $ac_cv_func_remove = no; then
4463 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4464 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4465 if test "${ac_cv_lib_posix_remove+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-lposix $LIBS"
4470 cat >conftest.$ac_ext <<_ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4477 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4492 rm -f conftest.$ac_objext conftest$ac_exeext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4494 (eval $ac_link) 2>conftest.er1
4496 grep -v '^ *+' conftest.er1 >conftest.err
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } &&
4501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; } &&
4507 { ac_try='test -s conftest$ac_exeext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 ac_cv_lib_posix_remove=yes
4515 echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4518 ac_cv_lib_posix_remove=no
4520 rm -f conftest.err conftest.$ac_objext \
4521 conftest$ac_exeext conftest.$ac_ext
4522 LIBS=$ac_check_lib_save_LIBS
4524 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4525 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4526 if test $ac_cv_lib_posix_remove = yes; then
4527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4532 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4533 echo "$as_me:$LINENO: checking for shmat" >&5
4534 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4535 if test "${ac_cv_func_shmat+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 cat >conftest.$ac_ext <<_ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4544 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4546 #define shmat innocuous_shmat
4548 /* System header to define __stub macros and hopefully few prototypes,
4549 which can conflict with char shmat (); below.
4550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 <limits.h> exists even on freestanding compilers. */
4554 # include <limits.h>
4556 # include <assert.h>
4561 /* Override any gcc2 internal prototype to avoid an error. */
4566 /* We use char because int might match the return type of a gcc2
4567 builtin and then its argument prototype would still apply. */
4569 /* The GNU C library defines this for functions which it implements
4570 to always fail with ENOSYS. Some functions are actually named
4571 something starting with __ and the normal name is an alias. */
4572 #if defined (__stub_shmat) || defined (__stub___shmat)
4575 char (*f) () = shmat;
4589 rm -f conftest.$ac_objext conftest$ac_exeext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591 (eval $ac_link) 2>conftest.er1
4593 grep -v '^ *+' conftest.er1 >conftest.err
4595 cat conftest.err >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } &&
4598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; } &&
4604 { ac_try='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_func_shmat=yes
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4617 rm -f conftest.err conftest.$ac_objext \
4618 conftest$ac_exeext conftest.$ac_ext
4620 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4621 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4623 if test $ac_cv_func_shmat = no; then
4624 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4625 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4626 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4629 ac_check_lib_save_LIBS=$LIBS
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4638 /* Override any gcc2 internal prototype to avoid an error. */
4642 /* We use char because int might match the return type of a gcc2
4643 builtin and then its argument prototype would still apply. */
4653 rm -f conftest.$ac_objext conftest$ac_exeext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4655 (eval $ac_link) 2>conftest.er1
4657 grep -v '^ *+' conftest.er1 >conftest.err
4659 cat conftest.err >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); } &&
4662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; } &&
4668 { ac_try='test -s conftest$ac_exeext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_cv_lib_ipc_shmat=yes
4676 echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 ac_cv_lib_ipc_shmat=no
4681 rm -f conftest.err conftest.$ac_objext \
4682 conftest$ac_exeext conftest.$ac_ext
4683 LIBS=$ac_check_lib_save_LIBS
4685 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4686 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4687 if test $ac_cv_lib_ipc_shmat = yes; then
4688 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4694 # Check for libraries that X11R6 Xt/Xaw programs need.
4695 ac_save_LDFLAGS=$LDFLAGS
4696 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4697 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4698 # check for ICE first), but we must link in the order -lSM -lICE or
4699 # we get undefined symbols. So assume we have SM if we have ICE.
4700 # These have to be linked with before -lX11, unlike the other
4701 # libraries we check for below, so use a different variable.
4702 # John Interrante, Karl Berry
4703 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4704 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4705 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4706 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 ac_check_lib_save_LIBS=$LIBS
4709 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4717 /* Override any gcc2 internal prototype to avoid an error. */
4721 /* We use char because int might match the return type of a gcc2
4722 builtin and then its argument prototype would still apply. */
4723 char IceConnectionNumber ();
4727 IceConnectionNumber ();
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest$ac_exeext'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; }; then
4753 ac_cv_lib_ICE_IceConnectionNumber=yes
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 ac_cv_lib_ICE_IceConnectionNumber=no
4760 rm -f conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762 LIBS=$ac_check_lib_save_LIBS
4764 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4765 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4766 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4767 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4770 LDFLAGS=$ac_save_LDFLAGS
4775 ALL_X_LIBS="$X_LIBS -lX11"
4778 echo "$as_me:$LINENO: checking for XResQueryClients in -lXRes" >&5
4779 echo $ECHO_N "checking for XResQueryClients in -lXRes... $ECHO_C" >&6
4780 if test "${ac_cv_lib_XRes_XResQueryClients+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 ac_check_lib_save_LIBS=$LIBS
4784 LIBS="-lXRes -lXext $ALL_X_LIBS $LIBS"
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4792 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4798 char XResQueryClients ();
4802 XResQueryClients ();
4807 rm -f conftest.$ac_objext conftest$ac_exeext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4809 (eval $ac_link) 2>conftest.er1
4811 grep -v '^ *+' conftest.er1 >conftest.err
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; } &&
4822 { ac_try='test -s conftest$ac_exeext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_lib_XRes_XResQueryClients=yes
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4833 ac_cv_lib_XRes_XResQueryClients=no
4835 rm -f conftest.err conftest.$ac_objext \
4836 conftest$ac_exeext conftest.$ac_ext
4837 LIBS=$ac_check_lib_save_LIBS
4839 echo "$as_me:$LINENO: result: $ac_cv_lib_XRes_XResQueryClients" >&5
4840 echo "${ECHO_T}$ac_cv_lib_XRes_XResQueryClients" >&6
4841 if test $ac_cv_lib_XRes_XResQueryClients = yes; then
4842 XRES_LIBS=-lXRes found_xres_lib=yes
4846 if test "x$found_xres_lib" = "xno"; then
4847 # Try again, overriding defaults for certain platforms
4850 # Solaris ships libXres in /usr/openwin/sfw/lib
4851 save_LDFLAGS=$LDFLAGS
4852 SOL_XRES_LDFLAGS="-L/usr/openwin/sfw/lib -R/usr/openwin/sfw/lib"
4853 LDFLAGS="$LDFLAGS $SOL_XRES_LDFLAGS"
4854 echo "$as_me:$LINENO: checking for XResQueryClientResources in -lXRes" >&5
4855 echo $ECHO_N "checking for XResQueryClientResources in -lXRes... $ECHO_C" >&6
4856 if test "${ac_cv_lib_XRes_XResQueryClientResources+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_check_lib_save_LIBS=$LIBS
4860 LIBS="-lXRes -lXext $ALL_X_LIBS $LIBS"
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4868 /* Override any gcc2 internal prototype to avoid an error. */
4872 /* We use char because int might match the return type of a gcc2
4873 builtin and then its argument prototype would still apply. */
4874 char XResQueryClientResources ();
4878 XResQueryClientResources ();
4883 rm -f conftest.$ac_objext conftest$ac_exeext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4885 (eval $ac_link) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); }; } &&
4898 { ac_try='test -s conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4904 ac_cv_lib_XRes_XResQueryClientResources=yes
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 ac_cv_lib_XRes_XResQueryClientResources=no
4911 rm -f conftest.err conftest.$ac_objext \
4912 conftest$ac_exeext conftest.$ac_ext
4913 LIBS=$ac_check_lib_save_LIBS
4915 echo "$as_me:$LINENO: result: $ac_cv_lib_XRes_XResQueryClientResources" >&5
4916 echo "${ECHO_T}$ac_cv_lib_XRes_XResQueryClientResources" >&6
4917 if test $ac_cv_lib_XRes_XResQueryClientResources = yes; then
4918 found_xres_lib=yes XRES_LIBS="$SOL_XRES_LDFLAGS -lXRes"
4921 LDFLAGS="$save_LDFLAGS"
4927 if test "x$found_xres_lib" = "xno"; then
4928 { { echo "$as_me:$LINENO: error: Cannot find XRes extension library" >&5
4929 echo "$as_me: error: Cannot find XRes extension library" >&2;}
4930 { (exit 1); exit 1; }; }
4936 echo "$as_me:$LINENO: checking for X11/extensions/XRes.h" >&5
4937 echo $ECHO_N "checking for X11/extensions/XRes.h... $ECHO_C" >&6
4938 if test "${ac_cv_header_X11_extensions_XRes_h+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #include <X11/Xlib.h>
4949 #include <X11/extensions/XRes.h>
4951 rm -f conftest.$ac_objext
4952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4953 (eval $ac_compile) 2>conftest.er1
4955 grep -v '^ *+' conftest.er1 >conftest.err
4957 cat conftest.err >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } &&
4960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 ac_cv_header_X11_extensions_XRes_h=yes
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_cv_header_X11_extensions_XRes_h=no
4979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4981 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XRes_h" >&5
4982 echo "${ECHO_T}$ac_cv_header_X11_extensions_XRes_h" >&6
4983 if test $ac_cv_header_X11_extensions_XRes_h = yes; then
4989 if test "x$found_xres" = "xno"; then
4990 { { echo "$as_me:$LINENO: error: Cannot find XRes extension headers" >&5
4991 echo "$as_me: error: Cannot find XRes extension headers" >&2;}
4992 { (exit 1); exit 1; }; }
4996 XLIBS_LIBS="$XRES_LIBS -lXext $ALL_X_LIBS"
5000 # check for ncurses, fall back to curses
5002 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
5003 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
5004 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-lncurses $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 /* Override any gcc2 internal prototype to avoid an error. */
5020 /* We use char because int might match the return type of a gcc2
5021 builtin and then its argument prototype would still apply. */
5031 rm -f conftest.$ac_objext conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; } &&
5046 { ac_try='test -s conftest$ac_exeext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_lib_ncurses_initscr=yes
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 ac_cv_lib_ncurses_initscr=no
5059 rm -f conftest.err conftest.$ac_objext \
5060 conftest$ac_exeext conftest.$ac_ext
5061 LIBS=$ac_check_lib_save_LIBS
5063 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
5064 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
5065 if test $ac_cv_lib_ncurses_initscr = yes; then
5066 cat >>confdefs.h <<_ACEOF
5067 #define HAVE_LIBNCURSES 1
5070 LIBS="-lncurses $LIBS"
5074 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
5075 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
5076 if test "${ac_cv_lib_curses_initscr+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 ac_check_lib_save_LIBS=$LIBS
5080 LIBS="-lcurses $LIBS"
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5088 /* Override any gcc2 internal prototype to avoid an error. */
5092 /* We use char because int might match the return type of a gcc2
5093 builtin and then its argument prototype would still apply. */
5103 rm -f conftest.$ac_objext conftest$ac_exeext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5105 (eval $ac_link) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } &&
5112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_lib_curses_initscr=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 ac_cv_lib_curses_initscr=no
5131 rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133 LIBS=$ac_check_lib_save_LIBS
5135 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
5136 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
5137 if test $ac_cv_lib_curses_initscr = yes; then
5138 cat >>confdefs.h <<_ACEOF
5139 #define HAVE_LIBCURSES 1
5142 LIBS="-lcurses $LIBS"
5149 if test "x$GCC" = "xyes"; then
5150 GCC_WARNINGS="-Wall -fno-strict-aliasing"
5151 XLIBS_CFLAGS="$GCC_WARNINGS $XLIBS_CFLAGS"
5157 # Checks for header files.
5159 echo "$as_me:$LINENO: checking for egrep" >&5
5160 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5161 if test "${ac_cv_prog_egrep+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5165 then ac_cv_prog_egrep='grep -E'
5166 else ac_cv_prog_egrep='egrep'
5169 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5170 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5171 EGREP=$ac_cv_prog_egrep
5174 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5176 if test "${ac_cv_header_stdc+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } &&
5207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }; } &&
5213 { ac_try='test -s conftest.$ac_objext'
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; }; then
5219 ac_cv_header_stdc=yes
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 ac_cv_header_stdc=no
5226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5228 if test $ac_cv_header_stdc = yes; then
5229 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240 $EGREP "memchr" >/dev/null 2>&1; then
5243 ac_cv_header_stdc=no
5249 if test $ac_cv_header_stdc = yes; then
5250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5251 cat >conftest.$ac_ext <<_ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5261 $EGREP "free" >/dev/null 2>&1; then
5264 ac_cv_header_stdc=no
5270 if test $ac_cv_header_stdc = yes; then
5271 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5272 if test "$cross_compiling" = yes; then
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5282 #if ((' ' & 0x0FF) == 0x020)
5283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5286 # define ISLOWER(c) \
5287 (('a' <= (c) && (c) <= 'i') \
5288 || ('j' <= (c) && (c) <= 'r') \
5289 || ('s' <= (c) && (c) <= 'z'))
5290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5298 for (i = 0; i < 256; i++)
5299 if (XOR (islower (i), ISLOWER (i))
5300 || toupper (i) != TOUPPER (i))
5305 rm -f conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5318 echo "$as_me: program exited with status $ac_status" >&5
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5323 ac_cv_header_stdc=no
5325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5330 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5331 if test $ac_cv_header_stdc = yes; then
5333 cat >>confdefs.h <<\_ACEOF
5334 #define STDC_HEADERS 1
5339 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5349 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5350 inttypes.h stdint.h unistd.h
5352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5353 echo "$as_me:$LINENO: checking for $ac_header" >&5
5354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 $ac_includes_default
5366 #include <$ac_header>
5368 rm -f conftest.$ac_objext
5369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5370 (eval $ac_compile) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; } &&
5383 { ac_try='test -s conftest.$ac_objext'
5384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; }; then
5389 eval "$as_ac_Header=yes"
5391 echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5394 eval "$as_ac_Header=no"
5396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5401 cat >>confdefs.h <<_ACEOF
5402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5413 for ac_header in stdlib.h string.h unistd.h
5415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5417 echo "$as_me:$LINENO: checking for $ac_header" >&5
5418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5425 # Is the header compilable?
5426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5428 cat >conftest.$ac_ext <<_ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5434 $ac_includes_default
5435 #include <$ac_header>
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439 (eval $ac_compile) 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } &&
5446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 ac_header_compiler=yes
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_header_compiler=no
5465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5466 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5467 echo "${ECHO_T}$ac_header_compiler" >&6
5469 # Is the header present?
5470 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5478 #include <$ac_header>
5480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5483 grep -v '^ *+' conftest.er1 >conftest.err
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } >/dev/null; then
5488 if test -s conftest.err; then
5489 ac_cpp_err=$ac_c_preproc_warn_flag
5490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5497 if test -z "$ac_cpp_err"; then
5498 ac_header_preproc=yes
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_header_preproc=no
5505 rm -f conftest.err conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5507 echo "${ECHO_T}$ac_header_preproc" >&6
5509 # So? What about this header?
5510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5516 ac_header_preproc=yes
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5533 ## ----------------------------------- ##
5534 ## Report this to mallum@handhelds.org ##
5535 ## ----------------------------------- ##
5538 sed "s/^/$as_me: WARNING: /" >&2
5541 echo "$as_me:$LINENO: checking for $ac_header" >&5
5542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 eval "$as_ac_Header=\$ac_header_preproc"
5548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5553 cat >>confdefs.h <<_ACEOF
5554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 # Checks for typedefs, structures, and compiler characteristics.
5563 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5564 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5565 if test "${ac_cv_c_const+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 cat >conftest.$ac_ext <<_ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5578 /* FIXME: Include the comments suggested by Paul. */
5580 /* Ultrix mips cc rejects this. */
5581 typedef int charset[2];
5583 /* SunOS 4.1.1 cc rejects this. */
5584 char const *const *ccp;
5586 /* NEC SVR4.0.2 mips cc rejects this. */
5587 struct point {int x, y;};
5588 static struct point const zero = {0,0};
5589 /* AIX XL C 1.02.0.0 rejects this.
5590 It does not let you subtract one const X* pointer from another in
5591 an arm of an if-expression whose if-part is not a constant
5593 const char *g = "string";
5594 ccp = &g + (g ? g-g : 0);
5595 /* HPUX 7.0 cc rejects these. */
5598 ccp = (char const *const *) p;
5599 { /* SCO 3.2v4 cc rejects this. */
5601 char const *s = 0 ? (char *) 0 : (char const *) 0;
5605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5607 const int *foo = &x[0];
5610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5611 typedef const int *iptr;
5615 { /* AIX XL C 1.02.0.0 rejects this saying
5616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5617 struct s { int j; const int *ap[3]; };
5618 struct s *b; b->j = 5;
5620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>conftest.er1
5633 grep -v '^ *+' conftest.er1 >conftest.err
5635 cat conftest.err >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } &&
5638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5659 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5660 echo "${ECHO_T}$ac_cv_c_const" >&6
5661 if test $ac_cv_c_const = no; then
5663 cat >>confdefs.h <<\_ACEOF
5669 echo "$as_me:$LINENO: checking for pid_t" >&5
5670 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5671 if test "${ac_cv_type_pid_t+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 cat >conftest.$ac_ext <<_ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 $ac_includes_default
5692 rm -f conftest.$ac_objext
5693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5694 (eval $ac_compile) 2>conftest.er1
5696 grep -v '^ *+' conftest.er1 >conftest.err
5698 cat conftest.err >&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } &&
5701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 ac_cv_type_pid_t=yes
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5722 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5723 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5724 if test $ac_cv_type_pid_t = yes; then
5728 cat >>confdefs.h <<_ACEOF
5735 # Checks for library functions.
5739 for ac_func in memset strdup
5741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5742 echo "$as_me:$LINENO: checking for $ac_func" >&5
5743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5744 if eval "test \"\${$as_ac_var+set}\" = set"; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5755 #define $ac_func innocuous_$ac_func
5757 /* System header to define __stub macros and hopefully few prototypes,
5758 which can conflict with char $ac_func (); below.
5759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 <limits.h> exists even on freestanding compilers. */
5763 # include <limits.h>
5765 # include <assert.h>
5770 /* Override any gcc2 internal prototype to avoid an error. */
5775 /* We use char because int might match the return type of a gcc2
5776 builtin and then its argument prototype would still apply. */
5778 /* The GNU C library defines this for functions which it implements
5779 to always fail with ENOSYS. Some functions are actually named
5780 something starting with __ and the normal name is an alias. */
5781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5784 char (*f) () = $ac_func;
5793 return f != $ac_func;
5798 rm -f conftest.$ac_objext conftest$ac_exeext
5799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5800 (eval $ac_link) 2>conftest.er1
5802 grep -v '^ *+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); }; } &&
5813 { ac_try='test -s conftest$ac_exeext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 eval "$as_ac_var=yes"
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 eval "$as_ac_var=no"
5826 rm -f conftest.err conftest.$ac_objext \
5827 conftest$ac_exeext conftest.$ac_ext
5829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5831 if test `eval echo '${'$as_ac_var'}'` = yes; then
5832 cat >>confdefs.h <<_ACEOF
5833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5840 ac_config_files="$ac_config_files Makefile doc/Makefile xrestop.spec"
5841 cat >confcache <<\_ACEOF
5842 # This file is a shell script that caches the results of configure
5843 # tests run on this system so they can be shared between configure
5844 # scripts and configure runs, see configure's option --config-cache.
5845 # It is not useful on other systems. If it contains results you don't
5846 # want to keep, you may remove or edit it.
5848 # config.status only pays attention to the cache file if you give it
5849 # the --recheck option to rerun configure.
5851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5857 # The following way of writing the cache mishandles newlines in values,
5858 # but we know of no workaround that is simple, portable, and efficient.
5859 # So, don't put newlines in cache variables' values.
5860 # Ultrix sh set writes to stderr and can't be redirected directly,
5861 # and sets the high bit in the cache file unless we assign to the vars.
5864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5866 # `set' does not quote correctly, so add quotes (double-quote
5867 # substitution turns \\\\ into \\, and sed turns \\ into \).
5870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5873 # `set' quotes correctly as required by POSIX, so do not add quotes.
5875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5887 if test -w $cache_file; then
5888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5889 cat confcache >$cache_file
5891 echo "not updating unwritable cache $cache_file"
5896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5897 # Let make expand exec_prefix.
5898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5902 # trailing colons and then remove the whole line if VPATH becomes empty
5903 # (actually we leave an empty line to preserve line numbers).
5904 if test "x$srcdir" = x.; then
5905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5906 s/:*\$(srcdir):*/:/;
5907 s/:*\${srcdir}:*/:/;
5909 s/^\([^=]*=[ ]*\):*/\1/;
5915 DEFS=-DHAVE_CONFIG_H
5919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5920 # 1. Remove the extension, and $U if already installed.
5921 ac_i=`echo "$ac_i" |
5922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5929 LTLIBOBJS=$ac_ltlibobjs
5932 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5933 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5934 Usually this means the macro was only invoked conditionally." >&5
5935 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5936 Usually this means the macro was only invoked conditionally." >&2;}
5937 { (exit 1); exit 1; }; }
5939 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5940 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5941 Usually this means the macro was only invoked conditionally." >&5
5942 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5943 Usually this means the macro was only invoked conditionally." >&2;}
5944 { (exit 1); exit 1; }; }
5946 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5947 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5948 Usually this means the macro was only invoked conditionally." >&5
5949 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5950 Usually this means the macro was only invoked conditionally." >&2;}
5951 { (exit 1); exit 1; }; }
5954 : ${CONFIG_STATUS=./config.status}
5955 ac_clean_files_save=$ac_clean_files
5956 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5957 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5958 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5959 cat >$CONFIG_STATUS <<_ACEOF
5961 # Generated by $as_me.
5962 # Run this file to recreate the current configuration.
5963 # Compiler output produced by configure, useful for debugging
5964 # configure, is in config.log if it exists.
5969 SHELL=\${CONFIG_SHELL-$SHELL}
5972 cat >>$CONFIG_STATUS <<\_ACEOF
5973 ## --------------------- ##
5974 ## M4sh Initialization. ##
5975 ## --------------------- ##
5977 # Be Bourne compatible
5978 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5981 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5982 # is contrary to our usage. Disable this feature.
5983 alias -g '${1+"$@"}'='"$@"'
5984 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5987 DUALCASE=1; export DUALCASE # for MKS sh
5989 # Support unset when possible.
5990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5997 # Work around bugs in pre-3.0 UWIN ksh.
5998 $as_unset ENV MAIL MAILPATH
6005 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6006 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6007 LC_TELEPHONE LC_TIME
6009 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6010 eval $as_var=C; export $as_var
6016 # Required to use basename.
6017 if expr a : '\(a\)' >/dev/null 2>&1; then
6023 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6024 as_basename=basename
6030 # Name of the executable.
6031 as_me=`$as_basename "$0" ||
6032 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6033 X"$0" : 'X\(//\)$' \| \
6034 X"$0" : 'X\(/\)$' \| \
6035 . : '\(.\)' 2>/dev/null ||
6037 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6038 /^X\/\(\/\/\)$/{ s//\1/; q; }
6039 /^X\/\(\/\).*/{ s//\1/; q; }
6043 # PATH needs CR, and LINENO needs CR and PATH.
6044 # Avoid depending upon Character Ranges.
6045 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6046 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6047 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6048 as_cr_digits='0123456789'
6049 as_cr_alnum=$as_cr_Letters$as_cr_digits
6051 # The user is always right.
6052 if test "${PATH_SEPARATOR+set}" != set; then
6053 echo "#! /bin/sh" >conf$$.sh
6054 echo "exit 0" >>conf$$.sh
6056 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6067 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6068 test "x$as_lineno_1" != "x$as_lineno_2" &&
6069 test "x$as_lineno_3" = "x$as_lineno_2" || {
6070 # Find who we are. Look in the path if we contain no path at all
6073 *[\\/]* ) as_myself=$0 ;;
6074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6084 # We did not find ourselves, most probably we were run as `sh COMMAND'
6085 # in which case we are not to be found in the path.
6086 if test "x$as_myself" = x; then
6089 if test ! -f "$as_myself"; then
6090 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6091 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6092 { (exit 1); exit 1; }; }
6094 case $CONFIG_SHELL in
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6100 test -z "$as_dir" && as_dir=.
6101 for as_base in sh bash ksh sh5; do
6104 if ("$as_dir/$as_base" -c '
6107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6108 test "x$as_lineno_1" != "x$as_lineno_2" &&
6109 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6110 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6111 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6112 CONFIG_SHELL=$as_dir/$as_base
6114 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6123 # uniformly replaced by the line number. The first 'sed' inserts a
6124 # line-number line before each line; the second 'sed' does the real
6125 # work. The second script uses 'N' to pair each line-number line
6126 # with the numbered line, and appends trailing '-' during
6127 # substitution so that $LINENO is not a special case at line end.
6128 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6129 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6130 sed '=' <$as_myself |
6135 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6138 s,^['$as_cr_digits']*\n,,
6140 chmod +x $as_me.lineno ||
6141 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6142 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6143 { (exit 1); exit 1; }; }
6145 # Don't try to exec as it changes $[0], causing all sort of problems
6146 # (the dirname of $[0] is not the place where we might find the
6147 # original and so on. Autoconf is especially sensible to this).
6149 # Exit status is that of the last command.
6154 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6155 *c*,-n*) ECHO_N= ECHO_C='
6157 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6158 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6161 if expr a : '\(a\)' >/dev/null 2>&1; then
6167 rm -f conf$$ conf$$.exe conf$$.file
6169 if ln -s conf$$.file conf$$ 2>/dev/null; then
6170 # We could just check for DJGPP; but this test a) works b) is more generic
6171 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6172 if test -f conf$$.exe; then
6173 # Don't use ln at all; we don't have any links
6178 elif ln conf$$.file conf$$ 2>/dev/null; then
6183 rm -f conf$$ conf$$.exe conf$$.file
6185 if mkdir -p . 2>/dev/null; then
6188 test -d ./-p && rmdir ./-p
6192 as_executable_p="test -f"
6194 # Sed expression to map a string onto a valid CPP name.
6195 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6197 # Sed expression to map a string onto a valid variable name.
6198 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6202 # We need space, tab and new line, in precisely that order.
6212 # Open the log real soon, to keep \$[0] and so on meaningful, and to
6213 # report actual input values of CONFIG_FILES etc. instead of their
6214 # values after options handling. Logging --version etc. is OK.
6218 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6219 ## Running $as_me. ##
6224 This file was extended by xrestop $as_me 0.4, which was
6225 generated by GNU Autoconf 2.59. Invocation command line was
6227 CONFIG_FILES = $CONFIG_FILES
6228 CONFIG_HEADERS = $CONFIG_HEADERS
6229 CONFIG_LINKS = $CONFIG_LINKS
6230 CONFIG_COMMANDS = $CONFIG_COMMANDS
6234 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6238 # Files that config.status was made for.
6239 if test -n "$ac_config_files"; then
6240 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6243 if test -n "$ac_config_headers"; then
6244 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6247 if test -n "$ac_config_links"; then
6248 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6251 if test -n "$ac_config_commands"; then
6252 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6255 cat >>$CONFIG_STATUS <<\_ACEOF
6258 \`$as_me' instantiates files from templates according to the
6259 current configuration.
6261 Usage: $0 [OPTIONS] [FILE]...
6263 -h, --help print this help, then exit
6264 -V, --version print version number, then exit
6265 -q, --quiet do not print progress messages
6266 -d, --debug don't remove temporary files
6267 --recheck update $as_me by reconfiguring in the same conditions
6268 --file=FILE[:TEMPLATE]
6269 instantiate the configuration file FILE
6270 --header=FILE[:TEMPLATE]
6271 instantiate the configuration header FILE
6273 Configuration files:
6276 Configuration headers:
6279 Configuration commands:
6282 Report bugs to <bug-autoconf@gnu.org>."
6285 cat >>$CONFIG_STATUS <<_ACEOF
6287 xrestop config.status 0.4
6288 configured by $0, generated by GNU Autoconf 2.59,
6289 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6291 Copyright (C) 2003 Free Software Foundation, Inc.
6292 This config.status script is free software; the Free Software Foundation
6293 gives unlimited permission to copy, distribute and modify it."
6298 cat >>$CONFIG_STATUS <<\_ACEOF
6299 # If no file are specified by the user, then we need to provide default
6300 # value. By we need to know if files were specified by the user.
6306 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6307 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6315 *) # This is not an option, so the user has probably given explicit
6318 ac_need_defaults=false;;
6322 # Handling of the options.
6324 cat >>$CONFIG_STATUS <<\_ACEOF
6325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6327 --version | --vers* | -V )
6328 echo "$ac_cs_version"; exit 0 ;;
6330 # Conflict between --help and --header
6331 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6332 Try \`$0 --help' for more information." >&5
6333 echo "$as_me: error: ambiguous option: $1
6334 Try \`$0 --help' for more information." >&2;}
6335 { (exit 1); exit 1; }; };;
6336 --help | --hel | -h )
6337 echo "$ac_cs_usage"; exit 0 ;;
6338 --debug | --d* | -d )
6340 --file | --fil | --fi | --f )
6342 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6343 ac_need_defaults=false;;
6344 --header | --heade | --head | --hea )
6346 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6347 ac_need_defaults=false;;
6348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6349 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6353 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6354 Try \`$0 --help' for more information." >&5
6355 echo "$as_me: error: unrecognized option: $1
6356 Try \`$0 --help' for more information." >&2;}
6357 { (exit 1); exit 1; }; } ;;
6359 *) ac_config_targets="$ac_config_targets $1" ;;
6365 ac_configure_extra_args=
6367 if $ac_cs_silent; then
6369 ac_configure_extra_args="$ac_configure_extra_args --silent"
6373 cat >>$CONFIG_STATUS <<_ACEOF
6374 if \$ac_cs_recheck; then
6375 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6376 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6381 cat >>$CONFIG_STATUS <<_ACEOF
6383 # INIT-COMMANDS section.
6386 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6392 cat >>$CONFIG_STATUS <<\_ACEOF
6393 for ac_config_target in $ac_config_targets
6395 case "$ac_config_target" in
6396 # Handling of arguments.
6397 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6398 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6399 "xrestop.spec" ) CONFIG_FILES="$CONFIG_FILES xrestop.spec" ;;
6400 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6401 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6402 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6403 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6404 { (exit 1); exit 1; }; };;
6408 # If the user did not use the arguments to specify the items to instantiate,
6409 # then the envvar interface is used. Set only those that are not.
6410 # We use the long form for the default assignment because of an extremely
6411 # bizarre bug on SunOS 4.1.3.
6412 if $ac_need_defaults; then
6413 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6414 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6415 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6418 # Have a temporary directory for convenience. Make it in the build tree
6419 # simply because there is no reason to put it here, and in addition,
6420 # creating and moving files from /tmp can sometimes cause problems.
6421 # Create a temporary directory, and hook for its removal unless debugging.
6424 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6425 trap '{ (exit 1); exit 1; }' 1 2 13 15
6428 # Create a (secure) tmp directory for tmp files.
6431 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6432 test -n "$tmp" && test -d "$tmp"
6435 tmp=./confstat$$-$RANDOM
6436 (umask 077 && mkdir $tmp)
6439 echo "$me: cannot create a temporary directory in ." >&2
6440 { (exit 1); exit 1; }
6445 cat >>$CONFIG_STATUS <<_ACEOF
6448 # CONFIG_FILES section.
6451 # No need to generate the scripts if there are no CONFIG_FILES.
6452 # This happens for instance when ./config.status config.h
6453 if test -n "\$CONFIG_FILES"; then
6454 # Protect against being on the right side of a sed subst in config.status.
6455 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6456 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6457 s,@SHELL@,$SHELL,;t t
6458 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6459 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6460 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6461 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6462 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6463 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6464 s,@exec_prefix@,$exec_prefix,;t t
6465 s,@prefix@,$prefix,;t t
6466 s,@program_transform_name@,$program_transform_name,;t t
6467 s,@bindir@,$bindir,;t t
6468 s,@sbindir@,$sbindir,;t t
6469 s,@libexecdir@,$libexecdir,;t t
6470 s,@datadir@,$datadir,;t t
6471 s,@sysconfdir@,$sysconfdir,;t t
6472 s,@sharedstatedir@,$sharedstatedir,;t t
6473 s,@localstatedir@,$localstatedir,;t t
6474 s,@libdir@,$libdir,;t t
6475 s,@includedir@,$includedir,;t t
6476 s,@oldincludedir@,$oldincludedir,;t t
6477 s,@infodir@,$infodir,;t t
6478 s,@mandir@,$mandir,;t t
6479 s,@build_alias@,$build_alias,;t t
6480 s,@host_alias@,$host_alias,;t t
6481 s,@target_alias@,$target_alias,;t t
6483 s,@ECHO_C@,$ECHO_C,;t t
6484 s,@ECHO_N@,$ECHO_N,;t t
6485 s,@ECHO_T@,$ECHO_T,;t t
6487 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6488 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6489 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6490 s,@CYGPATH_W@,$CYGPATH_W,;t t
6491 s,@PACKAGE@,$PACKAGE,;t t
6492 s,@VERSION@,$VERSION,;t t
6493 s,@ACLOCAL@,$ACLOCAL,;t t
6494 s,@AUTOCONF@,$AUTOCONF,;t t
6495 s,@AUTOMAKE@,$AUTOMAKE,;t t
6496 s,@AUTOHEADER@,$AUTOHEADER,;t t
6497 s,@MAKEINFO@,$MAKEINFO,;t t
6498 s,@install_sh@,$install_sh,;t t
6499 s,@STRIP@,$STRIP,;t t
6500 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6501 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6502 s,@mkdir_p@,$mkdir_p,;t t
6504 s,@SET_MAKE@,$SET_MAKE,;t t
6505 s,@am__leading_dot@,$am__leading_dot,;t t
6506 s,@AMTAR@,$AMTAR,;t t
6507 s,@am__tar@,$am__tar,;t t
6508 s,@am__untar@,$am__untar,;t t
6509 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6510 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6511 s,@MAINT@,$MAINT,;t t
6513 s,@CFLAGS@,$CFLAGS,;t t
6514 s,@LDFLAGS@,$LDFLAGS,;t t
6515 s,@CPPFLAGS@,$CPPFLAGS,;t t
6516 s,@ac_ct_CC@,$ac_ct_CC,;t t
6517 s,@EXEEXT@,$EXEEXT,;t t
6518 s,@OBJEXT@,$OBJEXT,;t t
6519 s,@DEPDIR@,$DEPDIR,;t t
6520 s,@am__include@,$am__include,;t t
6521 s,@am__quote@,$am__quote,;t t
6522 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6523 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6524 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6525 s,@CCDEPMODE@,$CCDEPMODE,;t t
6526 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6527 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6528 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
6529 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
6530 s,@X11_CFLAGS@,$X11_CFLAGS,;t t
6531 s,@X11_LIBS@,$X11_LIBS,;t t
6532 s,@XLIBS_CFLAGS@,$XLIBS_CFLAGS,;t t
6533 s,@XLIBS_LIBS@,$XLIBS_LIBS,;t t
6535 s,@X_CFLAGS@,$X_CFLAGS,;t t
6536 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6537 s,@X_LIBS@,$X_LIBS,;t t
6538 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6539 s,@EGREP@,$EGREP,;t t
6540 s,@LIBOBJS@,$LIBOBJS,;t t
6541 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6546 cat >>$CONFIG_STATUS <<\_ACEOF
6547 # Split the substitutions into bite-sized pieces for seds with
6548 # small command number limits, like on Digital OSF/1 and HP-UX.
6550 ac_sed_frag=1 # Number of current file.
6551 ac_beg=1 # First line for current file.
6552 ac_end=$ac_max_sed_lines # Line after last line for current file.
6555 while $ac_more_lines; do
6556 if test $ac_beg -gt 1; then
6557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6561 if test ! -s $tmp/subs.frag; then
6564 # The purpose of the label and of the branching condition is to
6565 # speed up the sed processing (if there are no `@' at all, there
6566 # is no need to browse any of the substitutions).
6567 # These are the two extra sed commands mentioned above.
6569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6570 if test -z "$ac_sed_cmds"; then
6571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6575 ac_sed_frag=`expr $ac_sed_frag + 1`
6577 ac_end=`expr $ac_end + $ac_max_sed_lines`
6580 if test -z "$ac_sed_cmds"; then
6583 fi # test -n "$CONFIG_FILES"
6586 cat >>$CONFIG_STATUS <<\_ACEOF
6587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6590 - | *:- | *:-:* ) # input from stdin
6592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6596 * ) ac_file_in=$ac_file.in ;;
6599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6602 X"$ac_file" : 'X\(//\)[^/]' \| \
6603 X"$ac_file" : 'X\(//\)$' \| \
6604 X"$ac_file" : 'X\(/\)' \| \
6605 . : '\(.\)' 2>/dev/null ||
6607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6609 /^X\(\/\/\)$/{ s//\1/; q; }
6610 /^X\(\/\).*/{ s//\1/; q; }
6612 { if $as_mkdir_p; then
6617 while test ! -d "$as_dir"; do
6618 as_dirs="$as_dir $as_dirs"
6619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6621 X"$as_dir" : 'X\(//\)[^/]' \| \
6622 X"$as_dir" : 'X\(//\)$' \| \
6623 X"$as_dir" : 'X\(/\)' \| \
6624 . : '\(.\)' 2>/dev/null ||
6626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6628 /^X\(\/\/\)$/{ s//\1/; q; }
6629 /^X\(\/\).*/{ s//\1/; q; }
6632 test ! -n "$as_dirs" || mkdir $as_dirs
6633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6635 { (exit 1); exit 1; }; }; }
6639 if test "$ac_dir" != .; then
6640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6641 # A "../" for each directory in $ac_dir_suffix.
6642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6644 ac_dir_suffix= ac_top_builddir=
6648 .) # No --srcdir option. We are building in place.
6650 if test -z "$ac_top_builddir"; then
6653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6655 [\\/]* | ?:[\\/]* ) # Absolute path.
6656 ac_srcdir=$srcdir$ac_dir_suffix;
6657 ac_top_srcdir=$srcdir ;;
6659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6663 # Do not use `cd foo && pwd` to compute absolute paths, because
6664 # the directories may not exist.
6666 .) ac_abs_builddir="$ac_dir";;
6669 .) ac_abs_builddir=`pwd`;;
6670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6674 case $ac_abs_builddir in
6675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6677 case ${ac_top_builddir}. in
6678 .) ac_abs_top_builddir=$ac_abs_builddir;;
6679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6683 case $ac_abs_builddir in
6684 .) ac_abs_srcdir=$ac_srcdir;;
6687 .) ac_abs_srcdir=$ac_abs_builddir;;
6688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6692 case $ac_abs_builddir in
6693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6695 case $ac_top_srcdir in
6696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6705 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6708 # Let's still pretend it is `configure' which instantiates (i.e., don't
6709 # use $as_me), people would be surprised to read:
6710 # /* config.h. Generated by config.status. */
6711 if test x"$ac_file" = x-; then
6714 configure_input="$ac_file. "
6716 configure_input=$configure_input"Generated from `echo $ac_file_in |
6717 sed 's,.*/,,'` by configure."
6719 # First look for the input files in the build tree, otherwise in the
6721 ac_file_inputs=`IFS=:
6722 for f in $ac_file_in; do
6724 -) echo $tmp/stdin ;;
6726 # Absolute (can't be DOS-style, as IFS=:)
6727 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6728 echo "$as_me: error: cannot find input file: $f" >&2;}
6729 { (exit 1); exit 1; }; }
6732 if test -f "$f"; then
6735 elif test -f "$srcdir/$f"; then
6740 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6741 echo "$as_me: error: cannot find input file: $f" >&2;}
6742 { (exit 1); exit 1; }; }
6745 done` || { (exit 1); exit 1; }
6747 if test x"$ac_file" != x-; then
6748 { echo "$as_me:$LINENO: creating $ac_file" >&5
6749 echo "$as_me: creating $ac_file" >&6;}
6753 cat >>$CONFIG_STATUS <<_ACEOF
6757 cat >>$CONFIG_STATUS <<\_ACEOF
6759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6760 s,@configure_input@,$configure_input,;t t
6761 s,@srcdir@,$ac_srcdir,;t t
6762 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6763 s,@top_srcdir@,$ac_top_srcdir,;t t
6764 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6765 s,@builddir@,$ac_builddir,;t t
6766 s,@abs_builddir@,$ac_abs_builddir,;t t
6767 s,@top_builddir@,$ac_top_builddir,;t t
6768 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6769 s,@INSTALL@,$ac_INSTALL,;t t
6770 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6772 if test x"$ac_file" != x-; then
6773 mv $tmp/out $ac_file
6781 cat >>$CONFIG_STATUS <<\_ACEOF
6784 # CONFIG_HEADER section.
6787 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6788 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6790 # ac_d sets the value in "#define NAME VALUE" lines.
6791 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6792 ac_dB='[ ].*$,\1#\2'
6795 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6796 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6797 ac_uB='$,\1#\2define\3'
6801 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6802 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6804 - | *:- | *:-:* ) # input from stdin
6806 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6807 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6808 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6809 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6810 * ) ac_file_in=$ac_file.in ;;
6813 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6814 echo "$as_me: creating $ac_file" >&6;}
6816 # First look for the input files in the build tree, otherwise in the
6818 ac_file_inputs=`IFS=:
6819 for f in $ac_file_in; do
6821 -) echo $tmp/stdin ;;
6823 # Absolute (can't be DOS-style, as IFS=:)
6824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6825 echo "$as_me: error: cannot find input file: $f" >&2;}
6826 { (exit 1); exit 1; }; }
6827 # Do quote $f, to prevent DOS paths from being IFS'd.
6830 if test -f "$f"; then
6833 elif test -f "$srcdir/$f"; then
6838 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6839 echo "$as_me: error: cannot find input file: $f" >&2;}
6840 { (exit 1); exit 1; }; }
6843 done` || { (exit 1); exit 1; }
6844 # Remove the trailing spaces.
6845 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6849 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6850 # `conftest.undefs', that substitutes the proper values into
6851 # config.h.in to produce config.h. The first handles `#define'
6852 # templates, and the second `#undef' templates.
6853 # And first: Protect against being on the right side of a sed subst in
6854 # config.status. Protect against being in an unquoted here document
6856 rm -f conftest.defines conftest.undefs
6857 # Using a here document instead of a string reduces the quoting nightmare.
6858 # Putting comments in sed scripts is not portable.
6860 # `end' is used to avoid that the second main sed command (meant for
6861 # 0-ary CPP macros) applies to n-ary macro definitions.
6862 # See the Autoconf documentation for `clear'.
6863 cat >confdef2sed.sed <<\_ACEOF
6868 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6870 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6873 # If some macros were called several times there might be several times
6874 # the same #defines, which is useless. Nevertheless, we may not want to
6875 # sort them, since we want the *last* AC-DEFINE to be honored.
6876 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6877 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6878 rm -f confdef2sed.sed
6880 # This sed command replaces #undef with comments. This is necessary, for
6881 # example, in the case of _POSIX_SOURCE, which is predefined and required
6882 # on some systems where configure will not decide to define it.
6883 cat >>conftest.undefs <<\_ACEOF
6884 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6887 # Break up conftest.defines because some shells have a limit on the size
6888 # of here documents, and old seds have small limits too (100 cmds).
6889 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6890 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6891 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6892 echo ' :' >>$CONFIG_STATUS
6894 while grep . conftest.defines >/dev/null
6896 # Write a limited-size here document to $tmp/defines.sed.
6897 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6898 # Speed up: don't consider the non `#define' lines.
6899 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6900 # Work around the forget-to-reset-the-flag bug.
6901 echo 't clr' >>$CONFIG_STATUS
6902 echo ': clr' >>$CONFIG_STATUS
6903 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6905 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6909 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6910 rm -f conftest.defines
6911 mv conftest.tail conftest.defines
6913 rm -f conftest.defines
6914 echo ' fi # grep' >>$CONFIG_STATUS
6915 echo >>$CONFIG_STATUS
6917 # Break up conftest.undefs because some shells have a limit on the size
6918 # of here documents, and old seds have small limits too (100 cmds).
6919 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6921 while grep . conftest.undefs >/dev/null
6923 # Write a limited-size here document to $tmp/undefs.sed.
6924 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6925 # Speed up: don't consider the non `#undef'
6926 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6927 # Work around the forget-to-reset-the-flag bug.
6928 echo 't clr' >>$CONFIG_STATUS
6929 echo ': clr' >>$CONFIG_STATUS
6930 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6932 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6936 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6937 rm -f conftest.undefs
6938 mv conftest.tail conftest.undefs
6940 rm -f conftest.undefs
6942 cat >>$CONFIG_STATUS <<\_ACEOF
6943 # Let's still pretend it is `configure' which instantiates (i.e., don't
6944 # use $as_me), people would be surprised to read:
6945 # /* config.h. Generated by config.status. */
6946 if test x"$ac_file" = x-; then
6947 echo "/* Generated by configure. */" >$tmp/config.h
6949 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6951 cat $tmp/in >>$tmp/config.h
6953 if test x"$ac_file" != x-; then
6954 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6955 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6956 echo "$as_me: $ac_file is unchanged" >&6;}
6958 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6959 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6960 X"$ac_file" : 'X\(//\)[^/]' \| \
6961 X"$ac_file" : 'X\(//\)$' \| \
6962 X"$ac_file" : 'X\(/\)' \| \
6963 . : '\(.\)' 2>/dev/null ||
6965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6967 /^X\(\/\/\)$/{ s//\1/; q; }
6968 /^X\(\/\).*/{ s//\1/; q; }
6970 { if $as_mkdir_p; then
6975 while test ! -d "$as_dir"; do
6976 as_dirs="$as_dir $as_dirs"
6977 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6979 X"$as_dir" : 'X\(//\)[^/]' \| \
6980 X"$as_dir" : 'X\(//\)$' \| \
6981 X"$as_dir" : 'X\(/\)' \| \
6982 . : '\(.\)' 2>/dev/null ||
6984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6986 /^X\(\/\/\)$/{ s//\1/; q; }
6987 /^X\(\/\).*/{ s//\1/; q; }
6990 test ! -n "$as_dirs" || mkdir $as_dirs
6991 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6992 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6993 { (exit 1); exit 1; }; }; }
6996 mv $tmp/config.h $ac_file
7002 # Compute $ac_file's index in $config_headers.
7004 for _am_header in $config_headers :; do
7006 $ac_file | $ac_file:* )
7009 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7012 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7013 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7014 X$ac_file : 'X\(//\)[^/]' \| \
7015 X$ac_file : 'X\(//\)$' \| \
7016 X$ac_file : 'X\(/\)' \| \
7017 . : '\(.\)' 2>/dev/null ||
7019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7021 /^X\(\/\/\)$/{ s//\1/; q; }
7022 /^X\(\/\).*/{ s//\1/; q; }
7023 s/.*/./; q'`/stamp-h$_am_stamp_count
7026 cat >>$CONFIG_STATUS <<\_ACEOF
7029 # CONFIG_COMMANDS section.
7031 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7032 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7033 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7034 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7035 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7036 X"$ac_dest" : 'X\(//\)[^/]' \| \
7037 X"$ac_dest" : 'X\(//\)$' \| \
7038 X"$ac_dest" : 'X\(/\)' \| \
7039 . : '\(.\)' 2>/dev/null ||
7041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7042 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7043 /^X\(\/\/\)$/{ s//\1/; q; }
7044 /^X\(\/\).*/{ s//\1/; q; }
7046 { if $as_mkdir_p; then
7051 while test ! -d "$as_dir"; do
7052 as_dirs="$as_dir $as_dirs"
7053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7055 X"$as_dir" : 'X\(//\)[^/]' \| \
7056 X"$as_dir" : 'X\(//\)$' \| \
7057 X"$as_dir" : 'X\(/\)' \| \
7058 . : '\(.\)' 2>/dev/null ||
7060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7062 /^X\(\/\/\)$/{ s//\1/; q; }
7063 /^X\(\/\).*/{ s//\1/; q; }
7066 test ! -n "$as_dirs" || mkdir $as_dirs
7067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7069 { (exit 1); exit 1; }; }; }
7073 if test "$ac_dir" != .; then
7074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7075 # A "../" for each directory in $ac_dir_suffix.
7076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7078 ac_dir_suffix= ac_top_builddir=
7082 .) # No --srcdir option. We are building in place.
7084 if test -z "$ac_top_builddir"; then
7087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7089 [\\/]* | ?:[\\/]* ) # Absolute path.
7090 ac_srcdir=$srcdir$ac_dir_suffix;
7091 ac_top_srcdir=$srcdir ;;
7093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7097 # Do not use `cd foo && pwd` to compute absolute paths, because
7098 # the directories may not exist.
7100 .) ac_abs_builddir="$ac_dir";;
7103 .) ac_abs_builddir=`pwd`;;
7104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7108 case $ac_abs_builddir in
7109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7111 case ${ac_top_builddir}. in
7112 .) ac_abs_top_builddir=$ac_abs_builddir;;
7113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7117 case $ac_abs_builddir in
7118 .) ac_abs_srcdir=$ac_srcdir;;
7121 .) ac_abs_srcdir=$ac_abs_builddir;;
7122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7126 case $ac_abs_builddir in
7127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7129 case $ac_top_srcdir in
7130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7137 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7138 echo "$as_me: executing $ac_dest commands" >&6;}
7140 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7141 # Strip MF so we end up with the name of the file.
7142 mf=`echo "$mf" | sed -e 's/:.*$//'`
7143 # Check whether this is an Automake generated Makefile or not.
7144 # We used to match only the files named `Makefile.in', but
7145 # some people rename them; so instead we look at the file content.
7146 # Grep'ing the first line is not enough: some people post-process
7147 # each Makefile.in and add a new line on top of each file to say so.
7148 # So let's grep whole file.
7149 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7150 dirpart=`(dirname "$mf") 2>/dev/null ||
7151 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7152 X"$mf" : 'X\(//\)[^/]' \| \
7153 X"$mf" : 'X\(//\)$' \| \
7154 X"$mf" : 'X\(/\)' \| \
7155 . : '\(.\)' 2>/dev/null ||
7157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7159 /^X\(\/\/\)$/{ s//\1/; q; }
7160 /^X\(\/\).*/{ s//\1/; q; }
7165 # Extract the definition of DEPDIR, am__include, and am__quote
7166 # from the Makefile without running `make'.
7167 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7168 test -z "$DEPDIR" && continue
7169 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7170 test -z "am__include" && continue
7171 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7172 # When using ansi2knr, U may be empty or an underscore; expand it
7173 U=`sed -n 's/^U = //p' < "$mf"`
7174 # Find all dependency output files, they are included files with
7175 # $(DEPDIR) in their names. We invoke sed twice because it is the
7176 # simplest approach to changing $(DEPDIR) to its actual value in the
7178 for file in `sed -n "
7179 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7180 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7181 # Make sure the directory exists.
7182 test -f "$dirpart/$file" && continue
7183 fdir=`(dirname "$file") 2>/dev/null ||
7184 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7185 X"$file" : 'X\(//\)[^/]' \| \
7186 X"$file" : 'X\(//\)$' \| \
7187 X"$file" : 'X\(/\)' \| \
7188 . : '\(.\)' 2>/dev/null ||
7190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7192 /^X\(\/\/\)$/{ s//\1/; q; }
7193 /^X\(\/\).*/{ s//\1/; q; }
7195 { if $as_mkdir_p; then
7196 mkdir -p $dirpart/$fdir
7198 as_dir=$dirpart/$fdir
7200 while test ! -d "$as_dir"; do
7201 as_dirs="$as_dir $as_dirs"
7202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7204 X"$as_dir" : 'X\(//\)[^/]' \| \
7205 X"$as_dir" : 'X\(//\)$' \| \
7206 X"$as_dir" : 'X\(/\)' \| \
7207 . : '\(.\)' 2>/dev/null ||
7209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7211 /^X\(\/\/\)$/{ s//\1/; q; }
7212 /^X\(\/\).*/{ s//\1/; q; }
7215 test ! -n "$as_dirs" || mkdir $as_dirs
7216 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
7217 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
7218 { (exit 1); exit 1; }; }; }
7220 # echo "creating $dirpart/$file"
7221 echo '# dummy' > "$dirpart/$file"
7229 cat >>$CONFIG_STATUS <<\_ACEOF
7231 { (exit 0); exit 0; }
7233 chmod +x $CONFIG_STATUS
7234 ac_clean_files=$ac_clean_files_save
7237 # configure is writing to config.log, and then calls config.status.
7238 # config.status does its own redirection, appending to config.log.
7239 # Unfortunately, on DOS this fails, as config.log is still kept open
7240 # by configure, so config.status won't be able to write to it; its
7241 # output is simply discarded. So we exec the FD to /dev/null,
7242 # effectively closing config.log, so it can be properly (re)opened and
7243 # appended to by config.status. When coming back to configure, we
7244 # need to make the FD available again.
7245 if test "$no_create" != yes; then
7247 ac_config_status_args=
7248 test "$silent" = yes &&
7249 ac_config_status_args="$ac_config_status_args --quiet"
7251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7254 # would make configure fail if this is the last instruction.
7255 $ac_cs_success || { (exit 1); exit 1; }