2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/wmwifi.c"
275 # Factoring default headers for most tests.
276 ac_includes_default
="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP LIBOBJS LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version
=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name
=s
,x
,x
,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir
='${exec_prefix}/bin'
341 sbindir
='${exec_prefix}/sbin'
342 libexecdir
='${exec_prefix}/libexec'
343 datadir
='${prefix}/share'
344 sysconfdir
='${prefix}/etc'
345 sharedstatedir
='${prefix}/com'
346 localstatedir
='${prefix}/var'
347 libdir
='${exec_prefix}/lib'
348 includedir
='${prefix}/include'
349 oldincludedir
='/usr/include'
350 infodir
='${prefix}/info'
351 mandir
='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
371 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
374 -build |
--build |
--buil |
--bui |
--bu)
375 ac_prev
=build_alias
;;
376 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
377 build_alias
=$ac_optarg ;;
379 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
380 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
381 ac_prev
=cache_file
;;
382 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
383 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
384 cache_file
=$ac_optarg ;;
387 cache_file
=config.cache
;;
389 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
391 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
393 datadir
=$ac_optarg ;;
395 -disable-* |
--disable-*)
396 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* |
--enable-*)
405 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
418 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
419 |
--exec |
--exe |
--ex)
420 ac_prev
=exec_prefix
;;
421 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
422 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
423 |
--exec=* |
--exe=* |
--ex=*)
424 exec_prefix
=$ac_optarg ;;
426 -gas |
--gas |
--ga |
--g)
427 # Obsolete; use --with-gas.
430 -help |
--help |
--hel |
--he |
-h)
432 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
433 ac_init_help
=recursive
;;
434 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
435 ac_init_help
=short
;;
437 -host |
--host |
--hos |
--ho)
438 ac_prev
=host_alias
;;
439 -host=* |
--host=* |
--hos=* |
--ho=*)
440 host_alias
=$ac_optarg ;;
442 -includedir |
--includedir |
--includedi |
--included |
--include \
443 |
--includ |
--inclu |
--incl |
--inc)
444 ac_prev
=includedir
;;
445 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
446 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
447 includedir
=$ac_optarg ;;
449 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
451 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
452 infodir
=$ac_optarg ;;
454 -libdir |
--libdir |
--libdi |
--libd)
456 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
459 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
460 |
--libexe |
--libex |
--libe)
461 ac_prev
=libexecdir
;;
462 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
463 |
--libexe=* |
--libex=* |
--libe=*)
464 libexecdir
=$ac_optarg ;;
466 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
467 |
--localstate |
--localstat |
--localsta |
--localst \
468 |
--locals |
--local |
--loca |
--loc |
--lo)
469 ac_prev
=localstatedir
;;
470 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
471 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
472 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
473 localstatedir
=$ac_optarg ;;
475 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
477 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
481 # Obsolete; use --without-fp.
484 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
485 |
--no-cr |
--no-c |
-n)
488 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
489 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
492 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
493 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
494 |
--oldin |
--oldi |
--old |
--ol |
--o)
495 ac_prev
=oldincludedir
;;
496 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
497 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
498 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
499 oldincludedir
=$ac_optarg ;;
501 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
503 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
506 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
507 |
--program-pre |
--program-pr |
--program-p)
508 ac_prev
=program_prefix
;;
509 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
510 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
511 program_prefix
=$ac_optarg ;;
513 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
514 |
--program-suf |
--program-su |
--program-s)
515 ac_prev
=program_suffix
;;
516 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
517 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
518 program_suffix
=$ac_optarg ;;
520 -program-transform-name |
--program-transform-name \
521 |
--program-transform-nam |
--program-transform-na \
522 |
--program-transform-n |
--program-transform- \
523 |
--program-transform |
--program-transfor \
524 |
--program-transfo |
--program-transf \
525 |
--program-trans |
--program-tran \
526 |
--progr-tra |
--program-tr |
--program-t)
527 ac_prev
=program_transform_name
;;
528 -program-transform-name=* |
--program-transform-name=* \
529 |
--program-transform-nam=* |
--program-transform-na=* \
530 |
--program-transform-n=* |
--program-transform-=* \
531 |
--program-transform=* |
--program-transfor=* \
532 |
--program-transfo=* |
--program-transf=* \
533 |
--program-trans=* |
--program-tran=* \
534 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
535 program_transform_name
=$ac_optarg ;;
537 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
538 |
-silent |
--silent |
--silen |
--sile |
--sil)
541 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
543 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
545 sbindir
=$ac_optarg ;;
547 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
548 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
549 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
551 ac_prev
=sharedstatedir
;;
552 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
553 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
554 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
556 sharedstatedir
=$ac_optarg ;;
558 -site |
--site |
--sit)
560 -site=* |
--site=* |
--sit=*)
563 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
565 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
568 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
569 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
570 ac_prev
=sysconfdir
;;
571 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
572 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
573 sysconfdir
=$ac_optarg ;;
575 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
576 ac_prev
=target_alias
;;
577 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
578 target_alias
=$ac_optarg ;;
580 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
583 -version |
--version |
--versio |
--versi |
--vers |
-V)
587 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package
=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* |
--without-*)
600 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package
=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
613 |
--x-incl |
--x-inc |
--x-in |
--x-i)
614 ac_prev
=x_includes
;;
615 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
616 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
617 x_includes
=$ac_optarg ;;
619 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
620 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
621 ac_prev
=x_libraries
;;
622 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
623 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
624 x_libraries
=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var
in exec_prefix prefix
661 eval ac_val
=$
`echo $ac_var`
663 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val
=$
`echo $ac_var`
675 [\\/$
]* | ?
:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x
; then
690 if test "x$build_alias" = x
; then
691 cross_compiling
=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
702 test "$silent" = yes && exec 6>/dev
/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted
=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir
=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted
=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set
=${build_alias+set}
742 ac_env_build_alias_value
=$build_alias
743 ac_cv_env_build_alias_set
=${build_alias+set}
744 ac_cv_env_build_alias_value
=$build_alias
745 ac_env_host_alias_set
=${host_alias+set}
746 ac_env_host_alias_value
=$host_alias
747 ac_cv_env_host_alias_set
=${host_alias+set}
748 ac_cv_env_host_alias_value
=$host_alias
749 ac_env_target_alias_set
=${target_alias+set}
750 ac_env_target_alias_value
=$target_alias
751 ac_cv_env_target_alias_set
=${target_alias+set}
752 ac_cv_env_target_alias_value
=$target_alias
753 ac_env_CC_set
=${CC+set}
755 ac_cv_env_CC_set
=${CC+set}
756 ac_cv_env_CC_value
=$CC
757 ac_env_CFLAGS_set
=${CFLAGS+set}
758 ac_env_CFLAGS_value
=$CFLAGS
759 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value
=$CFLAGS
761 ac_env_LDFLAGS_set
=${LDFLAGS+set}
762 ac_env_LDFLAGS_value
=$LDFLAGS
763 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value
=$LDFLAGS
765 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value
=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
769 ac_env_CPP_set
=${CPP+set}
770 ac_env_CPP_value
=$CPP
771 ac_cv_env_CPP_set
=${CPP+set}
772 ac_cv_env_CPP_value
=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
840 --x-includes=DIR X include files are
in DIR
841 --x-libraries=DIR X library files are
in DIR
845 if test -n "$ac_init_help"; then
850 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
851 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
852 --with-x use the X Window System
854 Some influential environment variables
:
855 CC C compiler
command
856 CFLAGS C compiler flags
857 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
858 nonstandard directory
<lib dir
>
859 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
860 headers
in a nonstandard directory
<include dir
>
863 Use these variables to override the choices made by
`configure' or to help
864 it to find libraries and programs with nonstandard names/locations.
869 if test "$ac_init_help" = "recursive"; then
870 # If there are subdirs, report their specific --help.
872 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873 test -d $ac_dir || continue
876 if test "$ac_dir" != .; then
877 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
878 # A "../" for each directory in $ac_dir_suffix.
879 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
881 ac_dir_suffix= ac_top_builddir=
885 .) # No --srcdir option. We are building in place.
887 if test -z "$ac_top_builddir"; then
890 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
892 [\\/]* | ?:[\\/]* ) # Absolute path.
893 ac_srcdir=$srcdir$ac_dir_suffix;
894 ac_top_srcdir=$srcdir ;;
896 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897 ac_top_srcdir=$ac_top_builddir$srcdir ;;
900 # Do not use `cd foo
&& pwd` to compute absolute paths, because
901 # the directories may not exist.
903 .) ac_abs_builddir="$ac_dir";;
906 .) ac_abs_builddir=`pwd`;;
907 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908 *) ac_abs_builddir=`pwd`/"$ac_dir";;
911 case $ac_abs_builddir in
912 .) ac_abs_top_builddir=${ac_top_builddir}.;;
914 case ${ac_top_builddir}. in
915 .) ac_abs_top_builddir=$ac_abs_builddir;;
916 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920 case $ac_abs_builddir in
921 .) ac_abs_srcdir=$ac_srcdir;;
924 .) ac_abs_srcdir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929 case $ac_abs_builddir in
930 .) ac_abs_top_srcdir=$ac_top_srcdir;;
932 case $ac_top_srcdir in
933 .) ac_abs_top_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940 # Check for guested configure; otherwise get Cygnus style configure.
941 if test -f $ac_srcdir/configure.gnu; then
943 $SHELL $ac_srcdir/configure.gnu --help=recursive
944 elif test -f $ac_srcdir/configure; then
946 $SHELL $ac_srcdir/configure --help=recursive
947 elif test -f $ac_srcdir/configure.ac ||
948 test -f $ac_srcdir/configure.in; then
952 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 test -n "$ac_init_help" && exit 0
959 if $ac_init_version; then
962 Copyright (C) 2003 Free Software Foundation, Inc.
963 This configure script is free software; the Free Software Foundation
964 gives unlimited permission to copy, distribute and modify it.
970 This file contains any messages produced by compilers while
971 running configure, to aid debugging if configure makes a mistake.
973 It was created by $as_me, which was
974 generated by GNU Autoconf 2.59. Invocation command line was
985 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
986 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
987 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
988 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
989 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
991 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
992 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
994 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
995 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
996 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
997 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
998 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
999 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1000 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008 test -z "$as_dir" && as_dir=.
1009 echo "PATH: $as_dir"
1024 # Keep a trace of the command line.
1025 # Strip out --no-create and --no-recursion so they do not pile up.
1026 # Strip out --silent because we don't want to record it for future runs.
1027 # Also quote any args containing shell meta-characters.
1028 # Make two passes to allow for proper duplicate-argument suppression.
1033 ac_must_keep_next=false
1039 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041 | -silent | --silent | --silen | --sile | --sil)
1043 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1044 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1047 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1050 if test $ac_must_keep_next = true; then
1051 ac_must_keep_next=false # Got value, back to normal.
1054 *=* | --config-cache | -C | -disable-* | --disable-* \
1055 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1056 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1057 | -with-* | --with-* | -without-* | --without-* | --x)
1058 case "$ac_configure_args0 " in
1059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1062 -* ) ac_must_keep_next=true ;;
1065 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1066 # Get rid of the leading space.
1072 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1073 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075 # When interrupted or exit'd, cleanup temporary files, and complete
1076 # config.log. We remove comments because anyway the quotes in there
1077 # would cause problems or look ugly.
1078 # WARNING: Be sure not to use single quotes in there, as some shells,
1079 # such as our DU 5.0 friend, will then `close
' the trap.
1080 trap 'exit_status
=$?
1081 # Save into config.log some information that might help in debugging.
1086 ## ---------------- ##
1087 ## Cache variables. ##
1088 ## ---------------- ##
1091 # The following way of writing the cache mishandles newlines in values,
1094 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1097 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1109 ## ----------------- ##
1110 ## Output variables. ##
1111 ## ----------------- ##
1114 for ac_var
in $ac_subst_vars
1116 eval ac_val
=$
`echo $ac_var`
1117 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -n "$ac_subst_files"; then
1128 for ac_var
in $ac_subst_files
1130 eval ac_val
=$
`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1136 if test -s confdefs.h
; then
1143 sed "/^$/d" confdefs.h |
sort
1146 test "$ac_signal" != 0 &&
1147 echo "$as_me: caught signal $ac_signal"
1148 echo "$as_me: exit $exit_status"
1150 rm -f core
*.core
&&
1151 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1154 for ac_signal in 1 2 13 15; do
1155 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1160 rm -rf conftest* confdefs.h
1161 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1164 # Predefined preprocessor variables.
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_NAME "$PACKAGE_NAME"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_STRING "$PACKAGE_STRING"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191 # Let the site file select an alternate cache file if it wants to.
1192 # Prefer explicitly selected file to automatically selected ones.
1193 if test -z "$CONFIG_SITE"; then
1194 if test "x$prefix" != xNONE; then
1195 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1200 for ac_site_file in $CONFIG_SITE; do
1201 if test -r "$ac_site_file"; then
1202 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1203 echo "$as_me: loading site script $ac_site_file" >&6;}
1204 sed 's
/^
/|
/' "$ac_site_file" >&5
1209 if test -r "$cache_file"; then
1210 # Some versions of bash will fail to source /dev/null (special
1211 # files actually), so we avoid doing that.
1212 if test -f "$cache_file"; then
1213 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1214 echo "$as_me: loading cache $cache_file" >&6;}
1216 [\\/]* | ?:[\\/]* ) . $cache_file;;
1217 *) . ./$cache_file;;
1221 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1222 echo "$as_me: creating cache $cache_file" >&6;}
1226 # Check that the precious variables saved in the cache have kept the same
1228 ac_cache_corrupted=false
1229 for ac_var in `(set) 2>&1 |
1230 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1231 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1232 eval ac_new_set=\$ac_env_${ac_var}_set
1233 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1234 eval ac_new_val="\$ac_env_${ac_var}_value"
1235 case $ac_old_set,$ac_new_set in
1237 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1238 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1239 ac_cache_corrupted=: ;;
1241 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1242 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1243 ac_cache_corrupted=: ;;
1246 if test "x$ac_old_val" != "x$ac_new_val"; then
1247 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1248 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1249 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1250 echo "$as_me: former value: $ac_old_val" >&2;}
1251 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1252 echo "$as_me: current value: $ac_new_val" >&2;}
1253 ac_cache_corrupted=:
1256 # Pass precious variables to config.status.
1257 if test "$ac_new_set" = set; then
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1261 *) ac_arg=$ac_var=$ac_new_val ;;
1263 case " $ac_configure_args " in
1264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1265 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269 if $ac_cache_corrupted; then
1270 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1271 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1272 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1273 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1274 { (exit 1); exit 1; }; }
1278 ac_cpp='$CPP $CPPFLAGS'
1279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1280 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301 am__api_version="1.4"
1303 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1304 if test -f $ac_dir/install-sh; then
1306 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 elif test -f $ac_dir/install.sh; then
1310 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 elif test -f $ac_dir/shtool; then
1314 ac_install_sh="$ac_aux_dir/shtool install -c"
1318 if test -z "$ac_aux_dir"; then
1319 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1320 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1321 { (exit 1); exit 1; }; }
1323 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1324 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1325 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327 # Find a good install program. We prefer a C program (faster),
1328 # so one script is as good as another. But avoid the broken or
1329 # incompatible versions:
1330 # SysV /etc/install, /usr/sbin/install
1331 # SunOS /usr/etc/install
1332 # IRIX /sbin/install
1334 # AmigaOS /C/install, which installs bootblocks on floppy discs
1335 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1336 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1337 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1338 # OS/2's system install, which has a completely different semantic
1339 # ./install, which can be erroneously created by make from ./install.sh.
1340 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1341 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1342 if test -z "$INSTALL"; then
1343 if test "${ac_cv_path_install+set}" = set; then
1344 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1350 test -z "$as_dir" && as_dir
=.
1351 # Account for people who put trailing slashes in PATH elements.
1353 .
/ | .
// |
/cC
/* | \
1354 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1355 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1358 # OSF1 and SCO ODT 3.0 have their own names for install.
1359 # Don't use installbsd from OSF since it installs stuff as root
1361 for ac_prog
in ginstall scoinst
install; do
1362 for ac_exec_ext
in '' $ac_executable_extensions; do
1363 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1364 if test $ac_prog = install &&
1365 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1366 # AIX install. It has an incompatible calling convention.
1368 elif test $ac_prog = install &&
1369 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1370 # program-specific install script used by HP pwplus--don't use.
1373 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1385 if test "${ac_cv_path_install+set}" = set; then
1386 INSTALL
=$ac_cv_path_install
1388 # As a last resort, use the slow shell script. We don't cache a
1389 # path for INSTALL within a source directory, because that will
1390 # break other packages using the cache if that directory is
1391 # removed, or if the path is relative.
1392 INSTALL
=$ac_install_sh
1395 echo "$as_me:$LINENO: result: $INSTALL" >&5
1396 echo "${ECHO_T}$INSTALL" >&6
1398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1399 # It thinks the first close brace ends the variable substitution.
1400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1404 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1406 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1407 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1410 echo timestamp
> conftestfile
1411 # Do `set' in a subshell so we don't clobber the current shell's
1412 # arguments. Must try -L first in case configure is actually a
1413 # symlink; some systems play weird games with the mod time of symlinks
1414 # (eg FreeBSD returns the mod time of the symlink's containing
1417 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1418 if test "$*" = "X"; then
1420 set X
`ls -t $srcdir/configure conftestfile`
1422 if test "$*" != "X $srcdir/configure conftestfile" \
1423 && test "$*" != "X conftestfile $srcdir/configure"; then
1425 # If neither matched, then we have a broken ls. This can happen
1426 # if, for instance, CONFIG_SHELL is bash and it inherits a
1427 # broken ls alias from the environment. This has actually
1428 # happened. Such a system could not be considered "sane".
1429 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1430 alias in your environment" >&5
1431 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1432 alias in your environment" >&2;}
1433 { (exit 1); exit 1; }; }
1436 test "$2" = conftestfile
1442 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1443 Check your system clock" >&5
1444 echo "$as_me: error: newly created file is older than distributed files!
1445 Check your system clock" >&2;}
1446 { (exit 1); exit 1; }; }
1449 echo "$as_me:$LINENO: result: yes" >&5
1450 echo "${ECHO_T}yes" >&6
1451 test "$program_prefix" != NONE
&&
1452 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1453 # Use a double $ so make ignores it.
1454 test "$program_suffix" != NONE
&&
1455 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1456 # Double any \ or $. echo might interpret backslashes.
1457 # By default was `s,x,x', remove it if useless.
1458 cat <<\_ACEOF
>conftest.
sed
1459 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1461 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1464 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1465 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1466 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1467 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 cat >conftest.
make <<\_ACEOF
1472 @
echo 'ac_maketemp="$(MAKE)"'
1474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1475 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1476 if test -n "$ac_maketemp"; then
1477 eval ac_cv_prog_make_
${ac_make}_set
=yes
1479 eval ac_cv_prog_make_
${ac_make}_set
=no
1483 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1484 echo "$as_me:$LINENO: result: yes" >&5
1485 echo "${ECHO_T}yes" >&6
1488 echo "$as_me:$LINENO: result: no" >&5
1489 echo "${ECHO_T}no" >&6
1490 SET_MAKE
="MAKE=${MAKE-make}"
1498 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1499 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1500 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1501 { (exit 1); exit 1; }; }
1504 cat >>confdefs.h
<<_ACEOF
1505 #define PACKAGE "$PACKAGE"
1509 cat >>confdefs.h
<<_ACEOF
1510 #define VERSION "$VERSION"
1515 missing_dir
=`cd $ac_aux_dir && pwd`
1516 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1517 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1518 # Run test in a subshell; some versions of sh will print an error if
1519 # an executable is not found, even if stderr is redirected.
1520 # Redirect stdin to placate older versions of autoconf. Sigh.
1521 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1522 ACLOCAL
=aclocal-
${am__api_version}
1523 echo "$as_me:$LINENO: result: found" >&5
1524 echo "${ECHO_T}found" >&6
1526 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
1527 echo "$as_me:$LINENO: result: missing" >&5
1528 echo "${ECHO_T}missing" >&6
1531 echo "$as_me:$LINENO: checking for working autoconf" >&5
1532 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1533 # Run test in a subshell; some versions of sh will print an error if
1534 # an executable is not found, even if stderr is redirected.
1535 # Redirect stdin to placate older versions of autoconf. Sigh.
1536 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1538 echo "$as_me:$LINENO: result: found" >&5
1539 echo "${ECHO_T}found" >&6
1541 AUTOCONF
="$missing_dir/missing autoconf"
1542 echo "$as_me:$LINENO: result: missing" >&5
1543 echo "${ECHO_T}missing" >&6
1546 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1547 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1548 # Run test in a subshell; some versions of sh will print an error if
1549 # an executable is not found, even if stderr is redirected.
1550 # Redirect stdin to placate older versions of autoconf. Sigh.
1551 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1552 AUTOMAKE
=automake-
${am__api_version}
1553 echo "$as_me:$LINENO: result: found" >&5
1554 echo "${ECHO_T}found" >&6
1556 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
1557 echo "$as_me:$LINENO: result: missing" >&5
1558 echo "${ECHO_T}missing" >&6
1561 echo "$as_me:$LINENO: checking for working autoheader" >&5
1562 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1563 # Run test in a subshell; some versions of sh will print an error if
1564 # an executable is not found, even if stderr is redirected.
1565 # Redirect stdin to placate older versions of autoconf. Sigh.
1566 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1567 AUTOHEADER
=autoheader
1568 echo "$as_me:$LINENO: result: found" >&5
1569 echo "${ECHO_T}found" >&6
1571 AUTOHEADER
="$missing_dir/missing autoheader"
1572 echo "$as_me:$LINENO: result: missing" >&5
1573 echo "${ECHO_T}missing" >&6
1576 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1577 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1578 # Run test in a subshell; some versions of sh will print an error if
1579 # an executable is not found, even if stderr is redirected.
1580 # Redirect stdin to placate older versions of autoconf. Sigh.
1581 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1583 echo "$as_me:$LINENO: result: found" >&5
1584 echo "${ECHO_T}found" >&6
1586 MAKEINFO
="$missing_dir/missing makeinfo"
1587 echo "$as_me:$LINENO: result: missing" >&5
1588 echo "${ECHO_T}missing" >&6
1592 # Find a good install program. We prefer a C program (faster),
1593 # so one script is as good as another. But avoid the broken or
1594 # incompatible versions:
1595 # SysV /etc/install, /usr/sbin/install
1596 # SunOS /usr/etc/install
1597 # IRIX /sbin/install
1599 # AmigaOS /C/install, which installs bootblocks on floppy discs
1600 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1601 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1602 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1603 # OS/2's system install, which has a completely different semantic
1604 # ./install, which can be erroneously created by make from ./install.sh.
1605 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1606 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1607 if test -z "$INSTALL"; then
1608 if test "${ac_cv_path_install+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1615 test -z "$as_dir" && as_dir
=.
1616 # Account for people who put trailing slashes in PATH elements.
1618 .
/ | .
// |
/cC
/* | \
1619 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1620 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1623 # OSF1 and SCO ODT 3.0 have their own names for install.
1624 # Don't use installbsd from OSF since it installs stuff as root
1626 for ac_prog
in ginstall scoinst
install; do
1627 for ac_exec_ext
in '' $ac_executable_extensions; do
1628 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1629 if test $ac_prog = install &&
1630 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1631 # AIX install. It has an incompatible calling convention.
1633 elif test $ac_prog = install &&
1634 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1635 # program-specific install script used by HP pwplus--don't use.
1638 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1650 if test "${ac_cv_path_install+set}" = set; then
1651 INSTALL
=$ac_cv_path_install
1653 # As a last resort, use the slow shell script. We don't cache a
1654 # path for INSTALL within a source directory, because that will
1655 # break other packages using the cache if that directory is
1656 # removed, or if the path is relative.
1657 INSTALL
=$ac_install_sh
1660 echo "$as_me:$LINENO: result: $INSTALL" >&5
1661 echo "${ECHO_T}$INSTALL" >&6
1663 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1664 # It thinks the first close brace ends the variable substitution.
1665 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1667 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1669 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1672 ac_cpp
='$CPP $CPPFLAGS'
1673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1676 if test -n "$ac_tool_prefix"; then
1677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1678 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_CC+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1684 if test -n "$CC"; then
1685 ac_cv_prog_CC
="$CC" # Let the user override the test.
1687 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1691 test -z "$as_dir" && as_dir
=.
1692 for ac_exec_ext
in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704 if test -n "$CC"; then
1705 echo "$as_me:$LINENO: result: $CC" >&5
1706 echo "${ECHO_T}$CC" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1713 if test -z "$ac_cv_prog_CC"; then
1715 # Extract the first word of "gcc", so it can be a program name with args.
1716 set dummy gcc
; ac_word
=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$ac_ct_CC"; then
1723 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir
=.
1730 for ac_exec_ext
in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_ac_ct_CC
="gcc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1742 if test -n "$ac_ct_CC"; then
1743 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1744 echo "${ECHO_T}$ac_ct_CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1755 if test -z "$CC"; then
1756 if test -n "$ac_tool_prefix"; then
1757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1758 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 if test -n "$CC"; then
1765 ac_cv_prog_CC
="$CC" # Let the user override the test.
1767 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1771 test -z "$as_dir" && as_dir
=.
1772 for ac_exec_ext
in '' $ac_executable_extensions; do
1773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784 if test -n "$CC"; then
1785 echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1788 echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1793 if test -z "$ac_cv_prog_CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc
; ac_word
=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$ac_ct_CC"; then
1803 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir
=.
1810 for ac_exec_ext
in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_ac_ct_CC
="cc"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1836 if test -z "$CC"; then
1837 # Extract the first word of "cc", so it can be a program name with args.
1838 set dummy cc
; ac_word
=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC
="$CC" # Let the user override the test.
1848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir
=.
1853 for ac_exec_ext
in '' $ac_executable_extensions; do
1854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1855 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1856 ac_prog_rejected
=yes
1860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 if test $ac_prog_rejected = yes; then
1867 # We found a bogon in the path, so make sure we never use it.
1868 set dummy
$ac_cv_prog_CC
1870 if test $# != 0; then
1871 # We chose a different compiler from the bogus one.
1872 # However, it has the same basename, so the bogon will be chosen
1873 # first if we set CC to just the basename; use the full file name.
1875 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1881 if test -n "$CC"; then
1882 echo "$as_me:$LINENO: result: $CC" >&5
1883 echo "${ECHO_T}$CC" >&6
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1895 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$CC"; then
1902 ac_cv_prog_CC
="$CC" # Let the user override the test.
1904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir
=.
1909 for ac_exec_ext
in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 if test -n "$CC"; then
1922 echo "$as_me:$LINENO: result: $CC" >&5
1923 echo "${ECHO_T}$CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$CC" && break
1932 if test -z "$CC"; then
1936 # Extract the first word of "$ac_prog", so it can be a program name with args.
1937 set dummy
$ac_prog; ac_word
=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 if test -n "$ac_ct_CC"; then
1944 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1950 test -z "$as_dir" && as_dir
=.
1951 for ac_exec_ext
in '' $ac_executable_extensions; do
1952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953 ac_cv_prog_ac_ct_CC
="$ac_prog"
1954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1963 if test -n "$ac_ct_CC"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1965 echo "${ECHO_T}$ac_ct_CC" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1971 test -n "$ac_ct_CC" && break
1980 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: no acceptable C compiler found in \$PATH
1983 See \`config.log' for more details." >&2;}
1984 { (exit 1); exit 1; }; }
1986 # Provide some information about the compiler.
1987 echo "$as_me:$LINENO:" \
1988 "checking for C compiler version" >&5
1989 ac_compiler
=`set X $ac_compile; echo $2`
1990 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1991 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }
1995 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1996 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }
2000 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2001 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }
2006 cat >conftest.
$ac_ext <<_ACEOF
2009 cat confdefs.h
>>conftest.
$ac_ext
2010 cat >>conftest.
$ac_ext <<_ACEOF
2011 /* end confdefs.h. */
2021 ac_clean_files_save
=$ac_clean_files
2022 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2023 # Try to create an executable without -o first, disregard a.out.
2024 # It will help us diagnose broken compilers, and finding out an intuition
2026 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2027 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2028 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2029 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2030 (eval $ac_link_default) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; then
2034 # Find the output, starting from the most likely. This scheme is
2035 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2038 # Be careful to initialize this variable, since it used to be cached.
2039 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2041 # b.out is created by i960 compilers.
2042 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2044 test -f "$ac_file" ||
continue
2046 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2049 # This is the source file.
2052 # We found the default executable, but exeext='' is most
2056 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2057 # FIXME: I believe we export ac_cv_exeext for Libtool,
2058 # but it would be cool to find out if it's true. Does anybody
2059 # maintain Libtool? --akim.
2067 echo "$as_me: failed program was:" >&5
2068 sed 's/^/| /' conftest.
$ac_ext >&5
2070 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2071 See \`config.log' for more details." >&5
2072 echo "$as_me: error: C compiler cannot create executables
2073 See \`config.log' for more details." >&2;}
2074 { (exit 77); exit 77; }; }
2077 ac_exeext
=$ac_cv_exeext
2078 echo "$as_me:$LINENO: result: $ac_file" >&5
2079 echo "${ECHO_T}$ac_file" >&6
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2084 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2085 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2086 # If not cross compiling, check that we can run a simple program.
2087 if test "$cross_compiling" != yes; then
2088 if { ac_try
='./$ac_file'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2096 if test "$cross_compiling" = maybe
; then
2099 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2100 If you meant to cross compile, use \`--host'.
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: cannot run C compiled programs.
2103 If you meant to cross compile, use \`--host'.
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2109 echo "$as_me:$LINENO: result: yes" >&5
2110 echo "${ECHO_T}yes" >&6
2112 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2113 ac_clean_files
=$ac_clean_files_save
2114 # Check the compiler produces executables we can run. If not, either
2115 # the compiler is broken, or we cross compile.
2116 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2117 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2118 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2119 echo "${ECHO_T}$cross_compiling" >&6
2121 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2122 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2124 (eval $ac_link) 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2129 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2130 # work properly (i.e., refer to `conftest.exe'), while it won't with
2132 for ac_file
in conftest.exe conftest conftest.
*; do
2133 test -f "$ac_file" ||
continue
2135 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2136 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2143 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2144 See \`config.log' for more details." >&5
2145 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2146 See \`config.log' for more details." >&2;}
2147 { (exit 1); exit 1; }; }
2150 rm -f conftest
$ac_cv_exeext
2151 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2152 echo "${ECHO_T}$ac_cv_exeext" >&6
2154 rm -f conftest.
$ac_ext
2155 EXEEXT
=$ac_cv_exeext
2157 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2158 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2159 if test "${ac_cv_objext+set}" = set; then
2160 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 cat >conftest.
$ac_ext <<_ACEOF
2165 cat confdefs.h
>>conftest.
$ac_ext
2166 cat >>conftest.
$ac_ext <<_ACEOF
2167 /* end confdefs.h. */
2177 rm -f conftest.o conftest.obj
2178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179 (eval $ac_compile) 2>&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; then
2183 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2185 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2186 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2191 echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.
$ac_ext >&5
2194 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2197 See \`config.log' for more details." >&2;}
2198 { (exit 1); exit 1; }; }
2201 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2203 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2204 echo "${ECHO_T}$ac_cv_objext" >&6
2205 OBJEXT
=$ac_cv_objext
2207 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2208 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2209 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 cat >conftest.
$ac_ext <<_ACEOF
2215 cat confdefs.h
>>conftest.
$ac_ext
2216 cat >>conftest.
$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2230 rm -f conftest.
$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>conftest.er1
2234 grep -v '^ *+' conftest.er1
>conftest.err
2236 cat conftest.err
>&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); } &&
2239 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; } &&
2245 { ac_try
='test -s conftest.$ac_objext'
2246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250 (exit $ac_status); }; }; then
2253 echo "$as_me: failed program was:" >&5
2254 sed 's/^/| /' conftest.
$ac_ext >&5
2258 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2259 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2262 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2264 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2265 ac_test_CFLAGS
=${CFLAGS+set}
2266 ac_save_CFLAGS
=$CFLAGS
2268 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2270 if test "${ac_cv_prog_cc_g+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 cat >conftest.
$ac_ext <<_ACEOF
2276 cat confdefs.h
>>conftest.
$ac_ext
2277 cat >>conftest.
$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2288 rm -f conftest.
$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2292 grep -v '^ *+' conftest.er1
>conftest.err
2294 cat conftest.err
>&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; } &&
2303 { ac_try
='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.
$ac_ext >&5
2316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2319 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2320 if test "$ac_test_CFLAGS" = set; then
2321 CFLAGS
=$ac_save_CFLAGS
2322 elif test $ac_cv_prog_cc_g = yes; then
2323 if test "$GCC" = yes; then
2329 if test "$GCC" = yes; then
2335 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2336 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2337 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 ac_cv_prog_cc_stdc
=no
2342 cat >conftest.
$ac_ext <<_ACEOF
2345 cat confdefs.h
>>conftest.
$ac_ext
2346 cat >>conftest.
$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2350 #include <sys/types.h>
2351 #include <sys/stat.h>
2352 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2353 struct buf { int x; };
2354 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2355 static char *e (p, i)
2361 static char *f (char * (*g) (char **, int), char **p, ...)
2366 s = g (p, va_arg (v,int));
2371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2372 function prototypes and stuff, but not '\xHH' hex character constants.
2373 These don't provoke an error unfortunately, instead are silently treated
2374 as 'x'. The following induces an error, until -std1 is added to get
2375 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2376 array size at least. It's necessary to write '\x00'==0 to get something
2377 that's true only with -std1. */
2378 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2380 int test (int i, double x);
2381 struct s1 {int (*f) (int a);};
2382 struct s2 {int (*f) (double a);};
2383 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2389 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2394 # Don't try gcc -ansi; that turns off useful extensions and
2395 # breaks some systems' header files.
2396 # AIX -qlanglvl=ansi
2397 # Ultrix and OSF/1 -std1
2398 # HP-UX 10.20 and later -Ae
2399 # HP-UX older versions -Aa -D_HPUX_SOURCE
2400 # SVR4 -Xc -D__EXTENSIONS__
2401 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2403 CC
="$ac_save_CC $ac_arg"
2404 rm -f conftest.
$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1
>conftest.err
2410 cat conftest.err
>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try
='test -s conftest.$ac_objext'
2420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }; }; then
2425 ac_cv_prog_cc_stdc
=$ac_arg
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.
$ac_ext >&5
2432 rm -f conftest.err conftest.
$ac_objext
2434 rm -f conftest.
$ac_ext conftest.
$ac_objext
2439 case "x$ac_cv_prog_cc_stdc" in
2441 echo "$as_me:$LINENO: result: none needed" >&5
2442 echo "${ECHO_T}none needed" >&6 ;;
2444 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2445 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2446 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2449 # Some people use a C++ compiler to compile C. Since we use `exit',
2450 # in C++ we need to declare it. In case someone uses the same compiler
2451 # for both compiling C and C++ we need to have the C++ compiler decide
2452 # the declaration of exit, since it's the most demanding environment.
2453 cat >conftest.
$ac_ext <<_ACEOF
2458 rm -f conftest.
$ac_objext
2459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460 (eval $ac_compile) 2>conftest.er1
2462 grep -v '^ *+' conftest.er1
>conftest.err
2464 cat conftest.err
>&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; } &&
2473 { ac_try
='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 for ac_declaration
in \
2481 'extern "C" void std::exit (int) throw (); using std::exit;' \
2482 'extern "C" void std::exit (int); using std::exit;' \
2483 'extern "C" void exit (int) throw ();' \
2484 'extern "C" void exit (int);' \
2487 cat >conftest.
$ac_ext <<_ACEOF
2490 cat confdefs.h
>>conftest.
$ac_ext
2491 cat >>conftest.
$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2503 rm -f conftest.
$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505 (eval $ac_compile) 2>conftest.er1
2507 grep -v '^ *+' conftest.er1
>conftest.err
2509 cat conftest.err
>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); } &&
2512 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; } &&
2518 { ac_try
='test -s conftest.$ac_objext'
2519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2526 echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.
$ac_ext >&5
2531 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2532 cat >conftest.
$ac_ext <<_ACEOF
2535 cat confdefs.h
>>conftest.
$ac_ext
2536 cat >>conftest.
$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2547 rm -f conftest.
$ac_objext
2548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2549 (eval $ac_compile) 2>conftest.er1
2551 grep -v '^ *+' conftest.er1
>conftest.err
2553 cat conftest.err
>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; } &&
2562 { ac_try
='test -s conftest.$ac_objext'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; }; then
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.
$ac_ext >&5
2574 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2577 if test -n "$ac_declaration"; then
2578 echo '#ifdef __cplusplus' >>confdefs.h
2579 echo $ac_declaration >>confdefs.h
2580 echo '#endif' >>confdefs.h
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.
$ac_ext >&5
2588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2590 ac_cpp
='$CPP $CPPFLAGS'
2591 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2597 echo "$as_me:$LINENO: checking for main in -le" >&5
2598 echo $ECHO_N "checking for main in -le... $ECHO_C" >&6
2599 if test "${ac_cv_lib_e_main+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 ac_check_lib_save_LIBS
=$LIBS
2604 cat >conftest.
$ac_ext <<_ACEOF
2607 cat confdefs.h
>>conftest.
$ac_ext
2608 cat >>conftest.
$ac_ext <<_ACEOF
2609 /* end confdefs.h. */
2620 rm -f conftest.
$ac_objext conftest
$ac_exeext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2622 (eval $ac_link) 2>conftest.er1
2624 grep -v '^ *+' conftest.er1
>conftest.err
2626 cat conftest.err
>&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } &&
2629 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try
='test -s conftest$ac_exeext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2641 ac_cv_lib_e_main
=yes
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.
$ac_ext >&5
2648 rm -f conftest.err conftest.
$ac_objext \
2649 conftest
$ac_exeext conftest.
$ac_ext
2650 LIBS
=$ac_check_lib_save_LIBS
2652 echo "$as_me:$LINENO: result: $ac_cv_lib_e_main" >&5
2653 echo "${ECHO_T}$ac_cv_lib_e_main" >&6
2654 if test $ac_cv_lib_e_main = yes; then
2655 cat >>confdefs.h
<<_ACEOF
2664 ac_cpp
='$CPP $CPPFLAGS'
2665 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2668 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2669 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2670 # On Suns, sometimes $CPP names a directory.
2671 if test -n "$CPP" && test -d "$CPP"; then
2674 if test -z "$CPP"; then
2675 if test "${ac_cv_prog_CPP+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 # Double quotes because CPP needs to be expanded
2679 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2682 for ac_c_preproc_warn_flag
in '' yes
2684 # Use a header file that comes with gcc, so configuring glibc
2685 # with a fresh cross-compiler works.
2686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2687 # <limits.h> exists even on freestanding compilers.
2688 # On the NeXT, cc -E runs the code through the compiler's parser,
2689 # not just through cpp. "Syntax error" is here to catch this case.
2690 cat >conftest.
$ac_ext <<_ACEOF
2693 cat confdefs.h
>>conftest.
$ac_ext
2694 cat >>conftest.
$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2697 # include <limits.h>
2699 # include <assert.h>
2703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2704 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2706 grep -v '^ *+' conftest.er1
>conftest.err
2708 cat conftest.err
>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } >/dev
/null
; then
2711 if test -s conftest.err
; then
2712 ac_cpp_err
=$ac_c_preproc_warn_flag
2713 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2720 if test -z "$ac_cpp_err"; then
2723 echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.
$ac_ext >&5
2726 # Broken: fails on valid input.
2729 rm -f conftest.err conftest.
$ac_ext
2731 # OK, works on sane cases. Now check whether non-existent headers
2732 # can be detected and how.
2733 cat >conftest.
$ac_ext <<_ACEOF
2736 cat confdefs.h
>>conftest.
$ac_ext
2737 cat >>conftest.
$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739 #include <ac_nonexistent.h>
2741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2742 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2744 grep -v '^ *+' conftest.er1
>conftest.err
2746 cat conftest.err
>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } >/dev
/null
; then
2749 if test -s conftest.err
; then
2750 ac_cpp_err
=$ac_c_preproc_warn_flag
2751 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2758 if test -z "$ac_cpp_err"; then
2759 # Broken: success on invalid input.
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.
$ac_ext >&5
2765 # Passes both tests.
2769 rm -f conftest.err conftest.
$ac_ext
2772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2773 rm -f conftest.err conftest.
$ac_ext
2774 if $ac_preproc_ok; then
2786 echo "$as_me:$LINENO: result: $CPP" >&5
2787 echo "${ECHO_T}$CPP" >&6
2789 for ac_c_preproc_warn_flag
in '' yes
2791 # Use a header file that comes with gcc, so configuring glibc
2792 # with a fresh cross-compiler works.
2793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2794 # <limits.h> exists even on freestanding compilers.
2795 # On the NeXT, cc -E runs the code through the compiler's parser,
2796 # not just through cpp. "Syntax error" is here to catch this case.
2797 cat >conftest.
$ac_ext <<_ACEOF
2800 cat confdefs.h
>>conftest.
$ac_ext
2801 cat >>conftest.
$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2804 # include <limits.h>
2806 # include <assert.h>
2810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2811 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2813 grep -v '^ *+' conftest.er1
>conftest.err
2815 cat conftest.err
>&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } >/dev
/null
; then
2818 if test -s conftest.err
; then
2819 ac_cpp_err
=$ac_c_preproc_warn_flag
2820 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2827 if test -z "$ac_cpp_err"; then
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.
$ac_ext >&5
2833 # Broken: fails on valid input.
2836 rm -f conftest.err conftest.
$ac_ext
2838 # OK, works on sane cases. Now check whether non-existent headers
2839 # can be detected and how.
2840 cat >conftest.
$ac_ext <<_ACEOF
2843 cat confdefs.h
>>conftest.
$ac_ext
2844 cat >>conftest.
$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <ac_nonexistent.h>
2848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2849 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1
>conftest.err
2853 cat conftest.err
>&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } >/dev
/null
; then
2856 if test -s conftest.err
; then
2857 ac_cpp_err
=$ac_c_preproc_warn_flag
2858 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
2865 if test -z "$ac_cpp_err"; then
2866 # Broken: success on invalid input.
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.
$ac_ext >&5
2872 # Passes both tests.
2876 rm -f conftest.err conftest.
$ac_ext
2879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2880 rm -f conftest.err conftest.
$ac_ext
2881 if $ac_preproc_ok; then
2884 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2885 See \`config.log' for more details." >&5
2886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2887 See \`config.log' for more details." >&2;}
2888 { (exit 1); exit 1; }; }
2892 ac_cpp
='$CPP $CPPFLAGS'
2893 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2899 if test "x$ac_path_x_has_been_run" != xyes
; then
2900 echo "$as_me:$LINENO: checking for X" >&5
2901 echo $ECHO_N "checking for X... $ECHO_C" >&6
2903 ac_path_x_has_been_run
=yes
2905 # Check whether --with-x or --without-x was given.
2906 if test "${with_x+set}" = set; then
2910 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2911 if test "x$with_x" = xno
; then
2912 # The user explicitly disabled X.
2915 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
2916 # Both variables are already set.
2919 if test "${ac_cv_have_x+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 # One or both of the vars are not set, and there is no cached value.
2923 ac_x_includes
=no ac_x_libraries
=no
2925 if mkdir conftest.dir
; then
2927 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2928 cat >Imakefile
<<'_ACEOF'
2930 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2932 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
2933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2934 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2935 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2936 for ac_extension
in a so sl
; do
2937 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
2938 test -f $ac_im_libdir/libX11.
$ac_extension; then
2939 ac_im_usrlibdir
=$ac_im_libdir; break
2942 # Screen out bogus values from the imake configuration. They are
2943 # bogus both because they are the default anyway, and because
2944 # using them would break gcc on systems where it needs fixed includes.
2945 case $ac_im_incroot in
2947 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
2949 case $ac_im_usrlibdir in
2951 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
2958 # Standard set of common directories for X headers.
2959 # Check X11 before X11Rn because it is often a symlink to the current release.
2971 /usr/local/X11/include
2972 /usr/local/X11R6/include
2973 /usr/local/X11R5/include
2974 /usr/local/X11R4/include
2976 /usr/local/include/X11
2977 /usr/local/include/X11R6
2978 /usr/local/include/X11R5
2979 /usr/local/include/X11R4
2983 /usr/XFree86/include/X11
2987 /usr/unsupported/include
2989 /usr/local/x11r5/include
2990 /usr/lpp/Xamples/include
2992 /usr/openwin/include
2993 /usr/openwin/share/include'
2995 if test "$ac_x_includes" = no
; then
2996 # Guess where to find include files, by looking for a specified header file.
2997 # First, try using that file with no special directory specified.
2998 cat >conftest.
$ac_ext <<_ACEOF
3001 cat confdefs.h
>>conftest.
$ac_ext
3002 cat >>conftest.
$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 #include <X11/Xlib.h>
3006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3007 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3009 grep -v '^ *+' conftest.er1
>conftest.err
3011 cat conftest.err
>&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } >/dev
/null
; then
3014 if test -s conftest.err
; then
3015 ac_cpp_err
=$ac_c_preproc_warn_flag
3016 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3023 if test -z "$ac_cpp_err"; then
3024 # We can compile using X headers with no special include directory.
3027 echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.
$ac_ext >&5
3030 for ac_dir
in $ac_x_header_dirs; do
3031 if test -r "$ac_dir/X11/Xlib.h"; then
3032 ac_x_includes
=$ac_dir
3037 rm -f conftest.err conftest.
$ac_ext
3038 fi # $ac_x_includes = no
3040 if test "$ac_x_libraries" = no
; then
3041 # Check for the libraries.
3042 # See if we find them without any special options.
3043 # Don't add to $LIBS permanently.
3046 cat >conftest.
$ac_ext <<_ACEOF
3049 cat confdefs.h
>>conftest.
$ac_ext
3050 cat >>conftest.
$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052 #include <X11/Xlib.h>
3061 rm -f conftest.
$ac_objext conftest
$ac_exeext
3062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3063 (eval $ac_link) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1
>conftest.err
3067 cat conftest.err
>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; } &&
3076 { ac_try
='test -s conftest$ac_exeext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3083 # We can link X programs with no special library path.
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.
$ac_ext >&5
3090 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3092 # Don't even attempt the hair of trying to link an X program!
3093 for ac_extension
in a so sl
; do
3094 if test -r $ac_dir/libX11.
$ac_extension; then
3095 ac_x_libraries
=$ac_dir
3101 rm -f conftest.err conftest.
$ac_objext \
3102 conftest
$ac_exeext conftest.
$ac_ext
3103 fi # $ac_x_libraries = no
3105 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3106 # Didn't find X anywhere. Cache the known absence of X.
3107 ac_cv_have_x
="have_x=no"
3109 # Record where we found X for the cache.
3110 ac_cv_have_x
="have_x=yes \
3111 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3116 eval "$ac_cv_have_x"
3119 if test "$have_x" != yes; then
3120 echo "$as_me:$LINENO: result: $have_x" >&5
3121 echo "${ECHO_T}$have_x" >&6
3124 # If each of the values was on the command line, it overrides each guess.
3125 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3126 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3127 # Update the cache value to reflect the command line values.
3128 ac_cv_have_x
="have_x=yes \
3129 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3130 # It might be that x_includes is empty (headers are found in the
3131 # standard search path. Then output the corresponding message
3132 ac_out_x_includes
=$x_includes
3133 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
3134 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3135 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3139 if test "$no_x" = yes; then
3140 # Not all programs may use this symbol, but it does not hurt to define it.
3142 cat >>confdefs.h
<<\_ACEOF
3143 #define X_DISPLAY_MISSING 1
3146 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3148 if test -n "$x_includes"; then
3149 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3152 # It would also be nice to do this for all -L options, not just this one.
3153 if test -n "$x_libraries"; then
3154 X_LIBS
="$X_LIBS -L$x_libraries"
3155 # For Solaris; some versions of Sun CC require a space after -R and
3156 # others require no space. Words are not sufficient . . . .
3157 case `(uname -sr) 2>/dev/null` in
3159 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3160 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3161 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3162 cat >conftest.
$ac_ext <<_ACEOF
3165 cat confdefs.h
>>conftest.
$ac_ext
3166 cat >>conftest.
$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3177 rm -f conftest.
$ac_objext conftest
$ac_exeext
3178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179 (eval $ac_link) 2>conftest.er1
3181 grep -v '^ *+' conftest.er1
>conftest.err
3183 cat conftest.err
>&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try
='test -s conftest$ac_exeext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.
$ac_ext >&5
3205 rm -f conftest.err conftest.
$ac_objext \
3206 conftest
$ac_exeext conftest.
$ac_ext
3207 if test $ac_R_nospace = yes; then
3208 echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6
3210 X_LIBS
="$X_LIBS -R$x_libraries"
3212 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3213 cat >conftest.
$ac_ext <<_ACEOF
3216 cat confdefs.h
>>conftest.
$ac_ext
3217 cat >>conftest.
$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3228 rm -f conftest.
$ac_objext conftest
$ac_exeext
3229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230 (eval $ac_link) 2>conftest.er1
3232 grep -v '^ *+' conftest.er1
>conftest.err
3234 cat conftest.err
>&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } &&
3237 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try
='test -s conftest$ac_exeext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.
$ac_ext >&5
3256 rm -f conftest.err conftest.
$ac_objext \
3257 conftest
$ac_exeext conftest.
$ac_ext
3258 if test $ac_R_space = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260 echo "${ECHO_T}yes" >&6
3261 X_LIBS
="$X_LIBS -R $x_libraries"
3263 echo "$as_me:$LINENO: result: neither works" >&5
3264 echo "${ECHO_T}neither works" >&6
3271 # Check for system-dependent libraries X programs must link with.
3272 # Do this before checking for the system-independent R6 libraries
3273 # (-lICE), since we may need -lsocket or whatever for X linking.
3275 if test "$ISC" = yes; then
3276 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3278 # Martyn Johnson says this is needed for Ultrix, if the X
3279 # libraries were built with DECnet support. And Karl Berry says
3280 # the Alpha needs dnet_stub (dnet does not exist).
3281 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3289 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3295 char XOpenDisplay ();
3304 rm -f conftest.
$ac_objext conftest
$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1
>conftest.err
3310 cat conftest.err
>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try
='test -s conftest$ac_exeext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.
$ac_ext >&5
3330 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3331 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3332 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 ac_check_lib_save_LIBS
=$LIBS
3337 cat >conftest.
$ac_ext <<_ACEOF
3340 cat confdefs.h
>>conftest.
$ac_ext
3341 cat >>conftest.
$ac_ext <<_ACEOF
3342 /* end confdefs.h. */
3344 /* Override any gcc2 internal prototype to avoid an error. */
3348 /* We use char because int might match the return type of a gcc2
3349 builtin and then its argument prototype would still apply. */
3359 rm -f conftest.
$ac_objext conftest
$ac_exeext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3361 (eval $ac_link) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1
>conftest.err
3365 cat conftest.err
>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; } &&
3374 { ac_try
='test -s conftest$ac_exeext'
3375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
3380 ac_cv_lib_dnet_dnet_ntoa
=yes
3382 echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.
$ac_ext >&5
3385 ac_cv_lib_dnet_dnet_ntoa
=no
3387 rm -f conftest.err conftest.
$ac_objext \
3388 conftest
$ac_exeext conftest.
$ac_ext
3389 LIBS
=$ac_check_lib_save_LIBS
3391 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3392 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3393 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3394 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3397 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3398 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3399 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3400 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 ac_check_lib_save_LIBS
=$LIBS
3404 LIBS
="-ldnet_stub $LIBS"
3405 cat >conftest.
$ac_ext <<_ACEOF
3408 cat confdefs.h
>>conftest.
$ac_ext
3409 cat >>conftest.
$ac_ext <<_ACEOF
3410 /* end confdefs.h. */
3412 /* Override any gcc2 internal prototype to avoid an error. */
3416 /* We use char because int might match the return type of a gcc2
3417 builtin and then its argument prototype would still apply. */
3427 rm -f conftest.
$ac_objext conftest
$ac_exeext
3428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3429 (eval $ac_link) 2>conftest.er1
3431 grep -v '^ *+' conftest.er1
>conftest.err
3433 cat conftest.err
>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try
='test -s conftest$ac_exeext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3453 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3455 rm -f conftest.err conftest.
$ac_objext \
3456 conftest
$ac_exeext conftest.
$ac_ext
3457 LIBS
=$ac_check_lib_save_LIBS
3459 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3460 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3461 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3462 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3467 rm -f conftest.err conftest.
$ac_objext \
3468 conftest
$ac_exeext conftest.
$ac_ext
3469 LIBS
="$ac_xsave_LIBS"
3471 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3472 # to get the SysV transport functions.
3473 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3475 # The nsl library prevents programs from opening the X display
3476 # on Irix 5.2, according to T.E. Dickey.
3477 # The functions gethostbyname, getservbyname, and inet_addr are
3478 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3479 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3480 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3481 if test "${ac_cv_func_gethostbyname+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 cat >conftest.
$ac_ext <<_ACEOF
3487 cat confdefs.h
>>conftest.
$ac_ext
3488 cat >>conftest.
$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3490 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3492 #define gethostbyname innocuous_gethostbyname
3494 /* System header to define __stub macros and hopefully few prototypes,
3495 which can conflict with char gethostbyname (); below.
3496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497 <limits.h> exists even on freestanding compilers. */
3500 # include <limits.h>
3502 # include <assert.h>
3505 #undef gethostbyname
3507 /* Override any gcc2 internal prototype to avoid an error. */
3512 /* We use char because int might match the return type of a gcc2
3513 builtin and then its argument prototype would still apply. */
3514 char gethostbyname ();
3515 /* The GNU C library defines this for functions which it implements
3516 to always fail with ENOSYS. Some functions are actually named
3517 something starting with __ and the normal name is an alias. */
3518 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3521 char (*f) () = gethostbyname;
3530 return f != gethostbyname;
3535 rm -f conftest.
$ac_objext conftest
$ac_exeext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3537 (eval $ac_link) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1
>conftest.err
3541 cat conftest.err
>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; } &&
3550 { ac_try
='test -s conftest$ac_exeext'
3551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); }; }; then
3556 ac_cv_func_gethostbyname
=yes
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.
$ac_ext >&5
3561 ac_cv_func_gethostbyname
=no
3563 rm -f conftest.err conftest.
$ac_objext \
3564 conftest
$ac_exeext conftest.
$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3567 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3569 if test $ac_cv_func_gethostbyname = no
; then
3570 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3571 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3572 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3575 ac_check_lib_save_LIBS
=$LIBS
3577 cat >conftest.
$ac_ext <<_ACEOF
3580 cat confdefs.h
>>conftest.
$ac_ext
3581 cat >>conftest.
$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 /* Override any gcc2 internal prototype to avoid an error. */
3588 /* We use char because int might match the return type of a gcc2
3589 builtin and then its argument prototype would still apply. */
3590 char gethostbyname ();
3599 rm -f conftest.
$ac_objext conftest
$ac_exeext
3600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601 (eval $ac_link) 2>conftest.er1
3603 grep -v '^ *+' conftest.er1
>conftest.err
3605 cat conftest.err
>&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } &&
3608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } &&
3614 { ac_try
='test -s conftest$ac_exeext'
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; }; then
3620 ac_cv_lib_nsl_gethostbyname
=yes
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.
$ac_ext >&5
3625 ac_cv_lib_nsl_gethostbyname
=no
3627 rm -f conftest.err conftest.
$ac_objext \
3628 conftest
$ac_exeext conftest.
$ac_ext
3629 LIBS
=$ac_check_lib_save_LIBS
3631 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3632 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3633 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3634 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3637 if test $ac_cv_lib_nsl_gethostbyname = no
; then
3638 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3639 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3640 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 ac_check_lib_save_LIBS
=$LIBS
3645 cat >conftest.
$ac_ext <<_ACEOF
3648 cat confdefs.h
>>conftest.
$ac_ext
3649 cat >>conftest.
$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3652 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3658 char gethostbyname ();
3667 rm -f conftest.
$ac_objext conftest
$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>conftest.er1
3671 grep -v '^ *+' conftest.er1
>conftest.err
3673 cat conftest.err
>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try
='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_lib_bsd_gethostbyname
=yes
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.
$ac_ext >&5
3693 ac_cv_lib_bsd_gethostbyname
=no
3695 rm -f conftest.err conftest.
$ac_objext \
3696 conftest
$ac_exeext conftest.
$ac_ext
3697 LIBS
=$ac_check_lib_save_LIBS
3699 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3700 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3701 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3702 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
3708 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3709 # socket/setsockopt and other routines are undefined under SCO ODT
3710 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3711 # on later versions), says Simon Leinen: it contains gethostby*
3712 # variants that don't use the name server (or something). -lsocket
3713 # must be given before -lnsl if both are needed. We assume that
3714 # if connect needs -lnsl, so does gethostbyname.
3715 echo "$as_me:$LINENO: checking for connect" >&5
3716 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3717 if test "${ac_cv_func_connect+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 cat >conftest.
$ac_ext <<_ACEOF
3723 cat confdefs.h
>>conftest.
$ac_ext
3724 cat >>conftest.
$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3726 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3728 #define connect innocuous_connect
3730 /* System header to define __stub macros and hopefully few prototypes,
3731 which can conflict with char connect (); below.
3732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 <limits.h> exists even on freestanding compilers. */
3736 # include <limits.h>
3738 # include <assert.h>
3743 /* Override any gcc2 internal prototype to avoid an error. */
3748 /* We use char because int might match the return type of a gcc2
3749 builtin and then its argument prototype would still apply. */
3751 /* The GNU C library defines this for functions which it implements
3752 to always fail with ENOSYS. Some functions are actually named
3753 something starting with __ and the normal name is an alias. */
3754 #if defined (__stub_connect) || defined (__stub___connect)
3757 char (*f) () = connect;
3766 return f != connect;
3771 rm -f conftest.
$ac_objext conftest
$ac_exeext
3772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3773 (eval $ac_link) 2>conftest.er1
3775 grep -v '^ *+' conftest.er1
>conftest.err
3777 cat conftest.err
>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try
='test -s conftest$ac_exeext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_cv_func_connect
=yes
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.
$ac_ext >&5
3797 ac_cv_func_connect
=no
3799 rm -f conftest.err conftest.
$ac_objext \
3800 conftest
$ac_exeext conftest.
$ac_ext
3802 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3803 echo "${ECHO_T}$ac_cv_func_connect" >&6
3805 if test $ac_cv_func_connect = no
; then
3806 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3807 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3808 if test "${ac_cv_lib_socket_connect+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 ac_check_lib_save_LIBS
=$LIBS
3812 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3813 cat >conftest.
$ac_ext <<_ACEOF
3816 cat confdefs.h
>>conftest.
$ac_ext
3817 cat >>conftest.
$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3820 /* Override any gcc2 internal prototype to avoid an error. */
3824 /* We use char because int might match the return type of a gcc2
3825 builtin and then its argument prototype would still apply. */
3835 rm -f conftest.
$ac_objext conftest
$ac_exeext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837 (eval $ac_link) 2>conftest.er1
3839 grep -v '^ *+' conftest.er1
>conftest.err
3841 cat conftest.err
>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try
='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_lib_socket_connect
=yes
3858 echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.
$ac_ext >&5
3861 ac_cv_lib_socket_connect
=no
3863 rm -f conftest.err conftest.
$ac_objext \
3864 conftest
$ac_exeext conftest.
$ac_ext
3865 LIBS
=$ac_check_lib_save_LIBS
3867 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3868 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3869 if test $ac_cv_lib_socket_connect = yes; then
3870 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3875 # Guillermo Gomez says -lposix is necessary on A/UX.
3876 echo "$as_me:$LINENO: checking for remove" >&5
3877 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3878 if test "${ac_cv_func_remove+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 cat >conftest.
$ac_ext <<_ACEOF
3884 cat confdefs.h
>>conftest.
$ac_ext
3885 cat >>conftest.
$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3887 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
3888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3889 #define remove innocuous_remove
3891 /* System header to define __stub macros and hopefully few prototypes,
3892 which can conflict with char remove (); below.
3893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 <limits.h> exists even on freestanding compilers. */
3897 # include <limits.h>
3899 # include <assert.h>
3904 /* Override any gcc2 internal prototype to avoid an error. */
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3912 /* The GNU C library defines this for functions which it implements
3913 to always fail with ENOSYS. Some functions are actually named
3914 something starting with __ and the normal name is an alias. */
3915 #if defined (__stub_remove) || defined (__stub___remove)
3918 char (*f) () = remove;
3932 rm -f conftest.
$ac_objext conftest
$ac_exeext
3933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3934 (eval $ac_link) 2>conftest.er1
3936 grep -v '^ *+' conftest.er1
>conftest.err
3938 cat conftest.err
>&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; } &&
3947 { ac_try
='test -s conftest$ac_exeext'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3953 ac_cv_func_remove
=yes
3955 echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.
$ac_ext >&5
3958 ac_cv_func_remove
=no
3960 rm -f conftest.err conftest.
$ac_objext \
3961 conftest
$ac_exeext conftest.
$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3964 echo "${ECHO_T}$ac_cv_func_remove" >&6
3966 if test $ac_cv_func_remove = no
; then
3967 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3968 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3969 if test "${ac_cv_lib_posix_remove+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_check_lib_save_LIBS
=$LIBS
3973 LIBS
="-lposix $LIBS"
3974 cat >conftest.
$ac_ext <<_ACEOF
3977 cat confdefs.h
>>conftest.
$ac_ext
3978 cat >>conftest.
$ac_ext <<_ACEOF
3979 /* end confdefs.h. */
3981 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3996 rm -f conftest.
$ac_objext conftest
$ac_exeext
3997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
4000 grep -v '^ *+' conftest.er1
>conftest.err
4002 cat conftest.err
>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try
='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_lib_posix_remove
=yes
4019 echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.
$ac_ext >&5
4022 ac_cv_lib_posix_remove
=no
4024 rm -f conftest.err conftest.
$ac_objext \
4025 conftest
$ac_exeext conftest.
$ac_ext
4026 LIBS
=$ac_check_lib_save_LIBS
4028 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4029 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4030 if test $ac_cv_lib_posix_remove = yes; then
4031 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4036 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4037 echo "$as_me:$LINENO: checking for shmat" >&5
4038 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4039 if test "${ac_cv_func_shmat+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 cat >conftest.
$ac_ext <<_ACEOF
4045 cat confdefs.h
>>conftest.
$ac_ext
4046 cat >>conftest.
$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4050 #define shmat innocuous_shmat
4052 /* System header to define __stub macros and hopefully few prototypes,
4053 which can conflict with char shmat (); below.
4054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055 <limits.h> exists even on freestanding compilers. */
4058 # include <limits.h>
4060 # include <assert.h>
4065 /* Override any gcc2 internal prototype to avoid an error. */
4070 /* We use char because int might match the return type of a gcc2
4071 builtin and then its argument prototype would still apply. */
4073 /* The GNU C library defines this for functions which it implements
4074 to always fail with ENOSYS. Some functions are actually named
4075 something starting with __ and the normal name is an alias. */
4076 #if defined (__stub_shmat) || defined (__stub___shmat)
4079 char (*f) () = shmat;
4093 rm -f conftest.
$ac_objext conftest
$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>conftest.er1
4097 grep -v '^ *+' conftest.er1
>conftest.err
4099 cat conftest.err
>&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try
='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_cv_func_shmat
=yes
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.
$ac_ext >&5
4121 rm -f conftest.err conftest.
$ac_objext \
4122 conftest
$ac_exeext conftest.
$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4125 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4127 if test $ac_cv_func_shmat = no
; then
4128 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4129 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4130 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4133 ac_check_lib_save_LIBS
=$LIBS
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4142 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4157 rm -f conftest.
$ac_objext conftest
$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>conftest.er1
4161 grep -v '^ *+' conftest.er1
>conftest.err
4163 cat conftest.err
>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } &&
4166 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; } &&
4172 { ac_try
='test -s conftest$ac_exeext'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; }; then
4178 ac_cv_lib_ipc_shmat
=yes
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.
$ac_ext >&5
4183 ac_cv_lib_ipc_shmat
=no
4185 rm -f conftest.err conftest.
$ac_objext \
4186 conftest
$ac_exeext conftest.
$ac_ext
4187 LIBS
=$ac_check_lib_save_LIBS
4189 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4190 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4191 if test $ac_cv_lib_ipc_shmat = yes; then
4192 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4198 # Check for libraries that X11R6 Xt/Xaw programs need.
4199 ac_save_LDFLAGS
=$LDFLAGS
4200 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4201 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4202 # check for ICE first), but we must link in the order -lSM -lICE or
4203 # we get undefined symbols. So assume we have SM if we have ICE.
4204 # These have to be linked with before -lX11, unlike the other
4205 # libraries we check for below, so use a different variable.
4206 # John Interrante, Karl Berry
4207 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4208 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4209 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 ac_check_lib_save_LIBS
=$LIBS
4213 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4214 cat >conftest.
$ac_ext <<_ACEOF
4217 cat confdefs.h
>>conftest.
$ac_ext
4218 cat >>conftest.
$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4221 /* Override any gcc2 internal prototype to avoid an error. */
4225 /* We use char because int might match the return type of a gcc2
4226 builtin and then its argument prototype would still apply. */
4227 char IceConnectionNumber ();
4231 IceConnectionNumber ();
4236 rm -f conftest.
$ac_objext conftest
$ac_exeext
4237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4238 (eval $ac_link) 2>conftest.er1
4240 grep -v '^ *+' conftest.er1
>conftest.err
4242 cat conftest.err
>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } &&
4245 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); }; } &&
4251 { ac_try
='test -s conftest$ac_exeext'
4252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 ac_cv_lib_ICE_IceConnectionNumber
=yes
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.
$ac_ext >&5
4262 ac_cv_lib_ICE_IceConnectionNumber
=no
4264 rm -f conftest.err conftest.
$ac_objext \
4265 conftest
$ac_exeext conftest.
$ac_ext
4266 LIBS
=$ac_check_lib_save_LIBS
4268 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4269 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4270 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4271 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4274 LDFLAGS
=$ac_save_LDFLAGS
4278 echo "$as_me:$LINENO: checking for X" >&5
4279 echo $ECHO_N "checking for X... $ECHO_C" >&6
4281 ac_path_x_has_been_run
=yes
4283 # Check whether --with-x or --without-x was given.
4284 if test "${with_x+set}" = set; then
4288 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4289 if test "x$with_x" = xno
; then
4290 # The user explicitly disabled X.
4293 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
4294 # Both variables are already set.
4297 if test "${ac_cv_have_x+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 # One or both of the vars are not set, and there is no cached value.
4301 ac_x_includes
=no ac_x_libraries
=no
4303 if mkdir conftest.dir
; then
4305 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4306 cat >Imakefile
<<'_ACEOF'
4308 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4310 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
4311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4312 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4313 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4314 for ac_extension
in a so sl
; do
4315 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
4316 test -f $ac_im_libdir/libX11.
$ac_extension; then
4317 ac_im_usrlibdir
=$ac_im_libdir; break
4320 # Screen out bogus values from the imake configuration. They are
4321 # bogus both because they are the default anyway, and because
4322 # using them would break gcc on systems where it needs fixed includes.
4323 case $ac_im_incroot in
4325 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
4327 case $ac_im_usrlibdir in
4329 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
4336 # Standard set of common directories for X headers.
4337 # Check X11 before X11Rn because it is often a symlink to the current release.
4349 /usr/local/X11/include
4350 /usr/local/X11R6/include
4351 /usr/local/X11R5/include
4352 /usr/local/X11R4/include
4354 /usr/local/include/X11
4355 /usr/local/include/X11R6
4356 /usr/local/include/X11R5
4357 /usr/local/include/X11R4
4361 /usr/XFree86/include/X11
4365 /usr/unsupported/include
4367 /usr/local/x11r5/include
4368 /usr/lpp/Xamples/include
4370 /usr/openwin/include
4371 /usr/openwin/share/include'
4373 if test "$ac_x_includes" = no
; then
4374 # Guess where to find include files, by looking for a specified header file.
4375 # First, try using that file with no special directory specified.
4376 cat >conftest.
$ac_ext <<_ACEOF
4379 cat confdefs.h
>>conftest.
$ac_ext
4380 cat >>conftest.
$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4382 #include <X11/Xlib.h>
4384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4385 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4387 grep -v '^ *+' conftest.er1
>conftest.err
4389 cat conftest.err
>&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev
/null
; then
4392 if test -s conftest.err
; then
4393 ac_cpp_err
=$ac_c_preproc_warn_flag
4394 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4401 if test -z "$ac_cpp_err"; then
4402 # We can compile using X headers with no special include directory.
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.
$ac_ext >&5
4408 for ac_dir
in $ac_x_header_dirs; do
4409 if test -r "$ac_dir/X11/Xlib.h"; then
4410 ac_x_includes
=$ac_dir
4415 rm -f conftest.err conftest.
$ac_ext
4416 fi # $ac_x_includes = no
4418 if test "$ac_x_libraries" = no
; then
4419 # Check for the libraries.
4420 # See if we find them without any special options.
4421 # Don't add to $LIBS permanently.
4424 cat >conftest.
$ac_ext <<_ACEOF
4427 cat confdefs.h
>>conftest.
$ac_ext
4428 cat >>conftest.
$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 #include <X11/Xlib.h>
4439 rm -f conftest.
$ac_objext conftest
$ac_exeext
4440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4441 (eval $ac_link) 2>conftest.er1
4443 grep -v '^ *+' conftest.er1
>conftest.err
4445 cat conftest.err
>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; } &&
4454 { ac_try
='test -s conftest$ac_exeext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4461 # We can link X programs with no special library path.
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.
$ac_ext >&5
4468 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4470 # Don't even attempt the hair of trying to link an X program!
4471 for ac_extension
in a so sl
; do
4472 if test -r $ac_dir/libX11.
$ac_extension; then
4473 ac_x_libraries
=$ac_dir
4479 rm -f conftest.err conftest.
$ac_objext \
4480 conftest
$ac_exeext conftest.
$ac_ext
4481 fi # $ac_x_libraries = no
4483 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
4484 # Didn't find X anywhere. Cache the known absence of X.
4485 ac_cv_have_x
="have_x=no"
4487 # Record where we found X for the cache.
4488 ac_cv_have_x
="have_x=yes \
4489 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4494 eval "$ac_cv_have_x"
4497 if test "$have_x" != yes; then
4498 echo "$as_me:$LINENO: result: $have_x" >&5
4499 echo "${ECHO_T}$have_x" >&6
4502 # If each of the values was on the command line, it overrides each guess.
4503 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
4504 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
4505 # Update the cache value to reflect the command line values.
4506 ac_cv_have_x
="have_x=yes \
4507 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4508 # It might be that x_includes is empty (headers are found in the
4509 # standard search path. Then output the corresponding message
4510 ac_out_x_includes
=$x_includes
4511 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
4512 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
4513 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
4516 CFLAGS
="$X_CFLAGS $X_LIBS"
4518 echo "$as_me:$LINENO: checking for XCopyArea in -lX11" >&5
4519 echo $ECHO_N "checking for XCopyArea in -lX11... $ECHO_C" >&6
4520 if test "${ac_cv_lib_X11_XCopyArea+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 ac_check_lib_save_LIBS
=$LIBS
4524 LIBS
="-lX11 $X_LIBS $LIBS"
4525 cat >conftest.
$ac_ext <<_ACEOF
4528 cat confdefs.h
>>conftest.
$ac_ext
4529 cat >>conftest.
$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4532 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4547 rm -f conftest.
$ac_objext conftest
$ac_exeext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4549 (eval $ac_link) 2>conftest.er1
4551 grep -v '^ *+' conftest.er1
>conftest.err
4553 cat conftest.err
>&5
4554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } &&
4556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); }; } &&
4562 { ac_try
='test -s conftest$ac_exeext'
4563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 ac_cv_lib_X11_XCopyArea
=yes
4570 echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.
$ac_ext >&5
4573 ac_cv_lib_X11_XCopyArea
=no
4575 rm -f conftest.err conftest.
$ac_objext \
4576 conftest
$ac_exeext conftest.
$ac_ext
4577 LIBS
=$ac_check_lib_save_LIBS
4579 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XCopyArea" >&5
4580 echo "${ECHO_T}$ac_cv_lib_X11_XCopyArea" >&6
4581 if test $ac_cv_lib_X11_XCopyArea = yes; then
4582 cat >>confdefs.h
<<_ACEOF
4583 #define HAVE_LIBX11 1
4591 echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
4592 echo $ECHO_N "checking for XShapeCombineMask in -lXext... $ECHO_C" >&6
4593 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 ac_check_lib_save_LIBS
=$LIBS
4597 LIBS
="-lXext $X_LIBS $LIBS"
4598 cat >conftest.
$ac_ext <<_ACEOF
4601 cat confdefs.h
>>conftest.
$ac_ext
4602 cat >>conftest.
$ac_ext <<_ACEOF
4603 /* end confdefs.h. */
4605 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4611 char XShapeCombineMask ();
4615 XShapeCombineMask ();
4620 rm -f conftest.
$ac_objext conftest
$ac_exeext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622 (eval $ac_link) 2>conftest.er1
4624 grep -v '^ *+' conftest.er1
>conftest.err
4626 cat conftest.err
>&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); }; } &&
4635 { ac_try
='test -s conftest$ac_exeext'
4636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_lib_Xext_XShapeCombineMask
=yes
4643 echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.
$ac_ext >&5
4646 ac_cv_lib_Xext_XShapeCombineMask
=no
4648 rm -f conftest.err conftest.
$ac_objext \
4649 conftest
$ac_exeext conftest.
$ac_ext
4650 LIBS
=$ac_check_lib_save_LIBS
4652 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
4653 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeCombineMask" >&6
4654 if test $ac_cv_lib_Xext_XShapeCombineMask = yes; then
4655 cat >>confdefs.h
<<_ACEOF
4656 #define HAVE_LIBXEXT 1
4664 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
4665 echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
4666 if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 ac_check_lib_save_LIBS
=$LIBS
4670 LIBS
="-lXpm $X_LIBS $LIBS"
4671 cat >conftest.
$ac_ext <<_ACEOF
4674 cat confdefs.h
>>conftest.
$ac_ext
4675 cat >>conftest.
$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4678 /* Override any gcc2 internal prototype to avoid an error. */
4682 /* We use char because int might match the return type of a gcc2
4683 builtin and then its argument prototype would still apply. */
4684 char XpmCreatePixmapFromData ();
4688 XpmCreatePixmapFromData ();
4693 rm -f conftest.
$ac_objext conftest
$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1
>conftest.err
4699 cat conftest.err
>&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try
='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=yes
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.
$ac_ext >&5
4719 ac_cv_lib_Xpm_XpmCreatePixmapFromData
=no
4721 rm -f conftest.err conftest.
$ac_objext \
4722 conftest
$ac_exeext conftest.
$ac_ext
4723 LIBS
=$ac_check_lib_save_LIBS
4725 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
4726 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
4727 if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
4728 cat >>confdefs.h
<<_ACEOF
4729 #define HAVE_LIBXPM 1
4736 echo "$as_me:$LINENO: checking for egrep" >&5
4737 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4738 if test "${ac_cv_prog_egrep+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4741 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
4742 then ac_cv_prog_egrep
='grep -E'
4743 else ac_cv_prog_egrep
='egrep'
4746 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4747 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4748 EGREP
=$ac_cv_prog_egrep
4751 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4752 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4753 if test "${ac_cv_header_stdc+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4775 rm -f conftest.
$ac_objext
4776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4777 (eval $ac_compile) 2>conftest.er1
4779 grep -v '^ *+' conftest.er1
>conftest.err
4781 cat conftest.err
>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try
='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 ac_cv_header_stdc
=yes
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.
$ac_ext >&5
4801 ac_cv_header_stdc
=no
4803 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4805 if test $ac_cv_header_stdc = yes; then
4806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817 $EGREP "memchr" >/dev
/null
2>&1; then
4820 ac_cv_header_stdc
=no
4826 if test $ac_cv_header_stdc = yes; then
4827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4828 cat >conftest.
$ac_ext <<_ACEOF
4831 cat confdefs.h
>>conftest.
$ac_ext
4832 cat >>conftest.
$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 $EGREP "free" >/dev
/null
2>&1; then
4841 ac_cv_header_stdc
=no
4847 if test $ac_cv_header_stdc = yes; then
4848 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4849 if test "$cross_compiling" = yes; then
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4859 #if ((' ' & 0x0FF) == 0x020)
4860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4863 # define ISLOWER(c) \
4864 (('a' <= (c) && (c) <= 'i') \
4865 || ('j' <= (c) && (c) <= 'r') \
4866 || ('s' <= (c) && (c) <= 'z'))
4867 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4870 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4875 for (i = 0; i < 256; i++)
4876 if (XOR (islower (i), ISLOWER (i))
4877 || toupper (i) != TOUPPER (i))
4882 rm -f conftest
$ac_exeext
4883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884 (eval $ac_link) 2>&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4895 echo "$as_me: program exited with status $ac_status" >&5
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.
$ac_ext >&5
4900 ac_cv_header_stdc
=no
4902 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4906 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4907 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4908 if test $ac_cv_header_stdc = yes; then
4910 cat >>confdefs.h
<<\_ACEOF
4911 #define STDC_HEADERS 1
4916 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4927 inttypes.h stdint.h unistd.h
4929 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 echo "$as_me:$LINENO: checking for $ac_header" >&5
4931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.
$ac_ext <<_ACEOF
4938 cat confdefs.h
>>conftest.
$ac_ext
4939 cat >>conftest.
$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4941 $ac_includes_default
4943 #include <$ac_header>
4945 rm -f conftest.
$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>conftest.er1
4949 grep -v '^ *+' conftest.er1
>conftest.err
4951 cat conftest.err
>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); }; } &&
4960 { ac_try
='test -s conftest.$ac_objext'
4961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); }; }; then
4966 eval "$as_ac_Header=yes"
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.
$ac_ext >&5
4971 eval "$as_ac_Header=no"
4973 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4978 cat >>confdefs.h
<<_ACEOF
4979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4988 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
4989 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
4990 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
4994 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
4996 # Is the header compilable?
4997 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
4998 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
4999 cat >conftest.
$ac_ext <<_ACEOF
5002 cat confdefs.h
>>conftest.
$ac_ext
5003 cat >>conftest.
$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5005 $ac_includes_default
5006 #include <X11/xpm.h>
5008 rm -f conftest.
$ac_objext
5009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5010 (eval $ac_compile) 2>conftest.er1
5012 grep -v '^ *+' conftest.er1
>conftest.err
5014 cat conftest.err
>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } &&
5017 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022 (exit $ac_status); }; } &&
5023 { ac_try
='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5029 ac_header_compiler
=yes
5031 echo "$as_me: failed program was:" >&5
5032 sed 's/^/| /' conftest.
$ac_ext >&5
5034 ac_header_compiler
=no
5036 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5038 echo "${ECHO_T}$ac_header_compiler" >&6
5040 # Is the header present?
5041 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
5042 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
5043 cat >conftest.
$ac_ext <<_ACEOF
5046 cat confdefs.h
>>conftest.
$ac_ext
5047 cat >>conftest.
$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 #include <X11/xpm.h>
5051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5052 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5054 grep -v '^ *+' conftest.er1
>conftest.err
5056 cat conftest.err
>&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } >/dev
/null
; then
5059 if test -s conftest.err
; then
5060 ac_cpp_err
=$ac_c_preproc_warn_flag
5061 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5068 if test -z "$ac_cpp_err"; then
5069 ac_header_preproc
=yes
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.
$ac_ext >&5
5074 ac_header_preproc
=no
5076 rm -f conftest.err conftest.
$ac_ext
5077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5078 echo "${ECHO_T}$ac_header_preproc" >&6
5080 # So? What about this header?
5081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5083 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
5084 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5085 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
5086 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
5087 ac_header_preproc
=yes
5090 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
5091 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
5092 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
5093 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
5094 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
5095 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
5096 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
5097 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
5098 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
5099 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
5100 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
5101 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
5104 ## ------------------------------------------ ##
5105 ## Report this to the AC_PACKAGE_NAME lists. ##
5106 ## ------------------------------------------ ##
5109 sed "s/^/$as_me: WARNING: /" >&2
5112 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
5113 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
5114 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 ac_cv_header_X11_xpm_h
=$ac_header_preproc
5119 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
5120 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
5125 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5127 if test "${ac_cv_header_stdc+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 cat >conftest.
$ac_ext <<_ACEOF
5133 cat confdefs.h
>>conftest.
$ac_ext
5134 cat >>conftest.
$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5149 rm -f conftest.
$ac_objext
5150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151 (eval $ac_compile) 2>conftest.er1
5153 grep -v '^ *+' conftest.er1
>conftest.err
5155 cat conftest.err
>&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } &&
5158 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try
='test -s conftest.$ac_objext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 ac_cv_header_stdc
=yes
5172 echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.
$ac_ext >&5
5175 ac_cv_header_stdc
=no
5177 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5179 if test $ac_cv_header_stdc = yes; then
5180 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5181 cat >conftest.
$ac_ext <<_ACEOF
5184 cat confdefs.h
>>conftest.
$ac_ext
5185 cat >>conftest.
$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5191 $EGREP "memchr" >/dev
/null
2>&1; then
5194 ac_cv_header_stdc
=no
5200 if test $ac_cv_header_stdc = yes; then
5201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5202 cat >conftest.
$ac_ext <<_ACEOF
5205 cat confdefs.h
>>conftest.
$ac_ext
5206 cat >>conftest.
$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212 $EGREP "free" >/dev
/null
2>&1; then
5215 ac_cv_header_stdc
=no
5221 if test $ac_cv_header_stdc = yes; then
5222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5223 if test "$cross_compiling" = yes; then
5226 cat >conftest.
$ac_ext <<_ACEOF
5229 cat confdefs.h
>>conftest.
$ac_ext
5230 cat >>conftest.
$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 #if ((' ' & 0x0FF) == 0x020)
5234 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5235 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5237 # define ISLOWER(c) \
5238 (('a' <= (c) && (c) <= 'i') \
5239 || ('j' <= (c) && (c) <= 'r') \
5240 || ('s' <= (c) && (c) <= 'z'))
5241 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5244 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5249 for (i = 0; i < 256; i++)
5250 if (XOR (islower (i), ISLOWER (i))
5251 || toupper (i) != TOUPPER (i))
5256 rm -f conftest
$ac_exeext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5258 (eval $ac_link) 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; }; then
5269 echo "$as_me: program exited with status $ac_status" >&5
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.
$ac_ext >&5
5274 ac_cv_header_stdc
=no
5276 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5280 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5281 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5282 if test $ac_cv_header_stdc = yes; then
5284 cat >>confdefs.h
<<\_ACEOF
5285 #define STDC_HEADERS 1
5293 for ac_header
in strings.h sys
/time.h unistd.h
5295 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5297 echo "$as_me:$LINENO: checking for $ac_header" >&5
5298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5305 # Is the header compilable?
5306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5308 cat >conftest.
$ac_ext <<_ACEOF
5311 cat confdefs.h
>>conftest.
$ac_ext
5312 cat >>conftest.
$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.
$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1
>conftest.err
5323 cat conftest.err
>&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; } &&
5332 { ac_try
='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_header_compiler
=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.
$ac_ext >&5
5343 ac_header_compiler
=no
5345 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5347 echo "${ECHO_T}$ac_header_compiler" >&6
5349 # Is the header present?
5350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 cat confdefs.h
>>conftest.
$ac_ext
5356 cat >>conftest.
$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <$ac_header>
5360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5363 grep -v '^ *+' conftest.er1
>conftest.err
5365 cat conftest.err
>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev
/null
; then
5368 if test -s conftest.err
; then
5369 ac_cpp_err
=$ac_c_preproc_warn_flag
5370 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5377 if test -z "$ac_cpp_err"; then
5378 ac_header_preproc
=yes
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.
$ac_ext >&5
5383 ac_header_preproc
=no
5385 rm -f conftest.err conftest.
$ac_ext
5386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc
=yes
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5413 ## ------------------------------------------ ##
5414 ## Report this to the AC_PACKAGE_NAME lists. ##
5415 ## ------------------------------------------ ##
5418 sed "s/^/$as_me: WARNING: /" >&2
5421 echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 eval "$as_ac_Header=\$ac_header_preproc"
5428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433 cat >>confdefs.h
<<_ACEOF
5434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5443 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5444 if test "${ac_cv_header_time+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 cat >conftest.
$ac_ext <<_ACEOF
5450 cat confdefs.h
>>conftest.
$ac_ext
5451 cat >>conftest.
$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <sys/types.h>
5454 #include <sys/time.h>
5460 if ((struct tm *) 0)
5466 rm -f conftest.
$ac_objext
5467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5468 (eval $ac_compile) 2>conftest.er1
5470 grep -v '^ *+' conftest.er1
>conftest.err
5472 cat conftest.err
>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } &&
5475 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; } &&
5481 { ac_try
='test -s conftest.$ac_objext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
5487 ac_cv_header_time
=yes
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.
$ac_ext >&5
5492 ac_cv_header_time
=no
5494 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5497 echo "${ECHO_T}$ac_cv_header_time" >&6
5498 if test $ac_cv_header_time = yes; then
5500 cat >>confdefs.h
<<\_ACEOF
5501 #define TIME_WITH_SYS_TIME 1
5508 for ac_func
in select
5510 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5511 echo "$as_me:$LINENO: checking for $ac_func" >&5
5512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5513 if eval "test \"\${$as_ac_var+set}\" = set"; then
5514 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 cat >conftest.
$ac_ext <<_ACEOF
5519 cat confdefs.h
>>conftest.
$ac_ext
5520 cat >>conftest.
$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5524 #define $ac_func innocuous_$ac_func
5526 /* System header to define __stub macros and hopefully few prototypes,
5527 which can conflict with char $ac_func (); below.
5528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5529 <limits.h> exists even on freestanding compilers. */
5532 # include <limits.h>
5534 # include <assert.h>
5539 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5547 /* The GNU C library defines this for functions which it implements
5548 to always fail with ENOSYS. Some functions are actually named
5549 something starting with __ and the normal name is an alias. */
5550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5553 char (*f) () = $ac_func;
5562 return f != $ac_func;
5567 rm -f conftest.
$ac_objext conftest
$ac_exeext
5568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5569 (eval $ac_link) 2>conftest.er1
5571 grep -v '^ *+' conftest.er1
>conftest.err
5573 cat conftest.err
>&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } &&
5576 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; } &&
5582 { ac_try
='test -s conftest$ac_exeext'
5583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587 (exit $ac_status); }; }; then
5588 eval "$as_ac_var=yes"
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.
$ac_ext >&5
5593 eval "$as_ac_var=no"
5595 rm -f conftest.err conftest.
$ac_objext \
5596 conftest
$ac_exeext conftest.
$ac_ext
5598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5600 if test `eval echo '${'$as_ac_var'}'` = yes; then
5601 cat >>confdefs.h
<<_ACEOF
5602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5609 ac_config_files
="$ac_config_files Makefile src/Makefile"
5610 cat >confcache
<<\_ACEOF
5611 # This file is a shell script that caches the results of configure
5612 # tests run on this system so they can be shared between configure
5613 # scripts and configure runs, see configure's option --config-cache.
5614 # It is not useful on other systems. If it contains results you don't
5615 # want to keep, you may remove or edit it.
5617 # config.status only pays attention to the cache file if you give it
5618 # the --recheck option to rerun configure.
5620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5626 # The following way of writing the cache mishandles newlines in values,
5627 # but we know of no workaround that is simple, portable, and efficient.
5628 # So, don't put newlines in cache variables' values.
5629 # Ultrix sh set writes to stderr and can't be redirected directly,
5630 # and sets the high bit in the cache file unless we assign to the vars.
5633 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5635 # `set' does not quote correctly, so add quotes (double-quote
5636 # substitution turns \\\\ into \\, and sed turns \\ into \).
5639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5642 # `set' quotes correctly as required by POSIX, so do not add quotes.
5644 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5653 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5655 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5656 if test -w $cache_file; then
5657 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5658 cat confcache
>$cache_file
5660 echo "not updating unwritable cache $cache_file"
5665 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5666 # Let make expand exec_prefix.
5667 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5671 # trailing colons and then remove the whole line if VPATH becomes empty
5672 # (actually we leave an empty line to preserve line numbers).
5673 if test "x$srcdir" = x.
; then
5674 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5675 s/:*\$(srcdir):*/:/;
5676 s/:*\${srcdir}:*/:/;
5678 s/^\([^=]*=[ ]*\):*/\1/;
5684 # Transform confdefs.h into DEFS.
5685 # Protect against shell expansion while executing Makefile rules.
5686 # Protect against Makefile macro expansion.
5688 # If the first sed substitution is executed (which looks for macros that
5689 # take arguments), then we branch to the quote section. Otherwise,
5690 # look for a macro that doesn't take arguments.
5691 cat >confdef2opt.
sed <<\_ACEOF
5694 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5696 s
,^
[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5700 s
,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5706 # We use echo to avoid assuming a particular line-breaking character.
5707 # The extra dot is to prevent the shell from consuming trailing
5708 # line-breaks from the sub-command output. A line-break within
5709 # single-quotes doesn't work because, if this script is created in a
5710 # platform that uses two characters for line-breaks (e.g., DOS), tr
5712 ac_LF_and_DOT=`echo; echo .
`
5713 DEFS=`sed -n -f confdef2opt.
sed confdefs.h |
tr "$ac_LF_and_DOT" ' .'`
5714 rm -f confdef2opt.sed
5719 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5720 # 1. Remove the extension, and $U if already installed.
5721 ac_i=`echo "$ac_i" |
5722 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5724 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5725 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5729 LTLIBOBJS=$ac_ltlibobjs
5733 : ${CONFIG_STATUS=./config.status}
5734 ac_clean_files_save=$ac_clean_files
5735 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5736 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5737 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5738 cat >$CONFIG_STATUS <<_ACEOF
5740 # Generated by $as_me.
5741 # Run this file to recreate the current configuration.
5742 # Compiler output produced by configure, useful for debugging
5743 # configure, is in config.log if it exists.
5748 SHELL=\${CONFIG_SHELL-$SHELL}
5751 cat >>$CONFIG_STATUS <<\_ACEOF
5752 ## --------------------- ##
5753 ## M4sh Initialization. ##
5754 ## --------------------- ##
5756 # Be Bourne compatible
5757 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5760 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5761 # is contrary to our usage. Disable this feature.
5762 alias -g '${1+"$@"}'='"$@"'
5763 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5766 DUALCASE=1; export DUALCASE # for MKS sh
5768 # Support unset when possible.
5769 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5776 # Work around bugs in pre-3.0 UWIN ksh.
5777 $as_unset ENV MAIL MAILPATH
5784 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5785 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5786 LC_TELEPHONE LC_TIME
5788 if (set +x; test -z "`(eval $as_var=C
; export $as_var) 2>&1`"); then
5789 eval $as_var=C; export $as_var
5795 # Required to use basename.
5796 if expr a : '\(a\)' >/dev/null 2>&1; then
5802 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5803 as_basename=basename
5809 # Name of the executable.
5810 as_me=`$as_basename "$0" ||
5811 $as_expr X
/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5812 X
"$0" : 'X\(//\)$' \| \
5813 X
"$0" : 'X\(/\)$' \| \
5814 .
: '\(.\)' 2>/dev
/null ||
5816 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5817 /^X\/\(\/\/\)$/{ s//\1/; q; }
5818 /^X\/\(\/\).*/{ s//\1/; q; }
5822 # PATH needs CR, and LINENO needs CR and PATH.
5823 # Avoid depending upon Character Ranges.
5824 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5825 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5826 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5827 as_cr_digits='0123456789'
5828 as_cr_alnum=$as_cr_Letters$as_cr_digits
5830 # The user is always right.
5831 if test "${PATH_SEPARATOR+set}" != set; then
5832 echo "#! /bin/sh" >conf$$.sh
5833 echo "exit 0" >>conf$$.sh
5835 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5846 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev
/null
`
5847 test "x$as_lineno_1" != "x$as_lineno_2" &&
5848 test "x$as_lineno_3" = "x$as_lineno_2" || {
5849 # Find who we are. Look in the path if we contain no path at all
5852 *[\\/]* ) as_myself=$0 ;;
5853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5863 # We did not find ourselves, most probably we were run as `sh COMMAND
'
5864 # in which case we are not to be found in the path.
5865 if test "x$as_myself" = x; then
5868 if test ! -f "$as_myself"; then
5869 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5870 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5871 { (exit 1); exit 1; }; }
5873 case $CONFIG_SHELL in
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5879 test -z "$as_dir" && as_dir=.
5880 for as_base in sh bash ksh sh5; do
5883 if ("$as_dir/$as_base" -c '
5886 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5887 test "x$as_lineno_1" != "x$as_lineno_2" &&
5888 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5889 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5890 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5891 CONFIG_SHELL=$as_dir/$as_base
5893 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5901 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5902 # uniformly replaced by the line number. The first 'sed' inserts a
5903 # line-number line before each line; the second 'sed' does the real
5904 # work. The second script uses 'N
' to pair each line-number line
5905 # with the numbered line, and appends trailing '-' during
5906 # substitution so that $LINENO is not a special case at line end.
5907 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5908 # second 'sed' script. Blame Lee E. McMahon for sed's syntax.
:-)
5909 sed '=' <$as_myself |
5914 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5917 s,^['$as_cr_digits']*\n,,
5919 chmod +x
$as_me.lineno ||
5920 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5921 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5922 { (exit 1); exit 1; }; }
5924 # Don't try to exec as it changes $[0], causing all sort of problems
5925 # (the dirname of $[0] is not the place where we might find the
5926 # original and so on. Autoconf is especially sensible to this).
5928 # Exit status is that of the last command.
5933 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5934 *c
*,-n*) ECHO_N
= ECHO_C
='
5936 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5937 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5940 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5946 rm -f conf$$ conf$$.exe conf$$.
file
5948 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5949 # We could just check for DJGPP; but this test a) works b) is more generic
5950 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5951 if test -f conf$$.exe
; then
5952 # Don't use ln at all; we don't have any links
5957 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5962 rm -f conf$$ conf$$.exe conf$$.
file
5964 if mkdir
-p .
2>/dev
/null
; then
5967 test -d .
/-p && rmdir .
/-p
5971 as_executable_p
="test -f"
5973 # Sed expression to map a string onto a valid CPP name.
5974 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5976 # Sed expression to map a string onto a valid variable name.
5977 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5981 # We need space, tab and new line, in precisely that order.
5991 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5992 # report actual input values of CONFIG_FILES etc. instead of their
5993 # values after options handling. Logging --version etc. is OK.
5997 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5998 ## Running $as_me. ##
6003 This file was extended by $as_me, which was
6004 generated by GNU Autoconf 2.59. Invocation command line was
6006 CONFIG_FILES = $CONFIG_FILES
6007 CONFIG_HEADERS = $CONFIG_HEADERS
6008 CONFIG_LINKS = $CONFIG_LINKS
6009 CONFIG_COMMANDS = $CONFIG_COMMANDS
6013 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6017 # Files that config.status was made for.
6018 if test -n "$ac_config_files"; then
6019 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6022 if test -n "$ac_config_headers"; then
6023 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6026 if test -n "$ac_config_links"; then
6027 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6030 if test -n "$ac_config_commands"; then
6031 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6034 cat >>$CONFIG_STATUS <<\_ACEOF
6037 \`$as_me' instantiates files from templates according to the
6038 current configuration.
6040 Usage: $0 [OPTIONS] [FILE]...
6042 -h, --help print this help, then exit
6043 -V, --version print version number, then exit
6044 -q, --quiet do not print progress messages
6045 -d, --debug don't remove temporary files
6046 --recheck update $as_me by reconfiguring in the same conditions
6047 --file=FILE[:TEMPLATE]
6048 instantiate the configuration file FILE
6050 Configuration files:
6053 Report bugs to <bug-autoconf@gnu.org>."
6056 cat >>$CONFIG_STATUS <<_ACEOF
6059 configured by $0, generated by GNU Autoconf 2.59,
6060 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6062 Copyright (C) 2003 Free Software Foundation, Inc.
6063 This config.status script is free software; the Free Software Foundation
6064 gives unlimited permission to copy, distribute and modify it."
6069 cat >>$CONFIG_STATUS <<\_ACEOF
6070 # If no file are specified by the user, then we need to provide default
6071 # value. By we need to know if files were specified by the user.
6077 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
6078 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
6086 *) # This is not an option, so the user has probably given explicit
6089 ac_need_defaults
=false
;;
6093 # Handling of the options.
6095 cat >>$CONFIG_STATUS <<\_ACEOF
6096 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6098 --version |
--vers* |
-V )
6099 echo "$ac_cs_version"; exit 0 ;;
6101 # Conflict between --help and --header
6102 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6103 Try \`$0 --help' for more information." >&5
6104 echo "$as_me: error: ambiguous option: $1
6105 Try \`$0 --help' for more information." >&2;}
6106 { (exit 1); exit 1; }; };;
6107 --help |
--hel |
-h )
6108 echo "$ac_cs_usage"; exit 0 ;;
6109 --debug |
--d* |
-d )
6111 --file |
--fil |
--fi |
--f )
6113 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
6114 ac_need_defaults
=false
;;
6115 --header |
--heade |
--head |
--hea )
6117 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
6118 ac_need_defaults
=false
;;
6119 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6120 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6124 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6125 Try \`$0 --help' for more information." >&5
6126 echo "$as_me: error: unrecognized option: $1
6127 Try \`$0 --help' for more information." >&2;}
6128 { (exit 1); exit 1; }; } ;;
6130 *) ac_config_targets
="$ac_config_targets $1" ;;
6136 ac_configure_extra_args
=
6138 if $ac_cs_silent; then
6140 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6144 cat >>$CONFIG_STATUS <<_ACEOF
6145 if \$ac_cs_recheck; then
6146 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6147 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6156 cat >>$CONFIG_STATUS <<\_ACEOF
6157 for ac_config_target
in $ac_config_targets
6159 case "$ac_config_target" in
6160 # Handling of arguments.
6161 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6162 "src/Makefile" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
6163 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6164 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6165 { (exit 1); exit 1; }; };;
6169 # If the user did not use the arguments to specify the items to instantiate,
6170 # then the envvar interface is used. Set only those that are not.
6171 # We use the long form for the default assignment because of an extremely
6172 # bizarre bug on SunOS 4.1.3.
6173 if $ac_need_defaults; then
6174 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6177 # Have a temporary directory for convenience. Make it in the build tree
6178 # simply because there is no reason to put it here, and in addition,
6179 # creating and moving files from /tmp can sometimes cause problems.
6180 # Create a temporary directory, and hook for its removal unless debugging.
6183 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6184 trap '{ (exit 1); exit 1; }' 1 2 13 15
6187 # Create a (secure) tmp directory for tmp files.
6190 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6191 test -n "$tmp" && test -d "$tmp"
6194 tmp
=.
/confstat$$
-$RANDOM
6195 (umask 077 && mkdir
$tmp)
6198 echo "$me: cannot create a temporary directory in ." >&2
6199 { (exit 1); exit 1; }
6204 cat >>$CONFIG_STATUS <<_ACEOF
6207 # CONFIG_FILES section.
6210 # No need to generate the scripts if there are no CONFIG_FILES.
6211 # This happens for instance when ./config.status config.h
6212 if test -n "\$CONFIG_FILES"; then
6213 # Protect against being on the right side of a sed subst in config.status.
6214 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6215 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6216 s,@SHELL@,$SHELL,;t t
6217 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6218 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6219 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6220 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6221 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6222 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6223 s,@exec_prefix@,$exec_prefix,;t t
6224 s,@prefix@,$prefix,;t t
6225 s,@program_transform_name@,$program_transform_name,;t t
6226 s,@bindir@,$bindir,;t t
6227 s,@sbindir@,$sbindir,;t t
6228 s,@libexecdir@,$libexecdir,;t t
6229 s,@datadir@,$datadir,;t t
6230 s,@sysconfdir@,$sysconfdir,;t t
6231 s,@sharedstatedir@,$sharedstatedir,;t t
6232 s,@localstatedir@,$localstatedir,;t t
6233 s,@libdir@,$libdir,;t t
6234 s,@includedir@,$includedir,;t t
6235 s,@oldincludedir@,$oldincludedir,;t t
6236 s,@infodir@,$infodir,;t t
6237 s,@mandir@,$mandir,;t t
6238 s,@build_alias@,$build_alias,;t t
6239 s,@host_alias@,$host_alias,;t t
6240 s,@target_alias@,$target_alias,;t t
6242 s,@ECHO_C@,$ECHO_C,;t t
6243 s,@ECHO_N@,$ECHO_N,;t t
6244 s,@ECHO_T@,$ECHO_T,;t t
6246 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6247 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6248 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6249 s,@PACKAGE@,$PACKAGE,;t t
6250 s,@VERSION@,$VERSION,;t t
6251 s,@ACLOCAL@,$ACLOCAL,;t t
6252 s,@AUTOCONF@,$AUTOCONF,;t t
6253 s,@AUTOMAKE@,$AUTOMAKE,;t t
6254 s,@AUTOHEADER@,$AUTOHEADER,;t t
6255 s,@MAKEINFO@,$MAKEINFO,;t t
6256 s,@SET_MAKE@,$SET_MAKE,;t t
6258 s,@CFLAGS@,$CFLAGS,;t t
6259 s,@LDFLAGS@,$LDFLAGS,;t t
6260 s,@CPPFLAGS@,$CPPFLAGS,;t t
6261 s,@ac_ct_CC@,$ac_ct_CC,;t t
6262 s,@EXEEXT@,$EXEEXT,;t t
6263 s,@OBJEXT@,$OBJEXT,;t t
6265 s,@X_CFLAGS@,$X_CFLAGS,;t t
6266 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6267 s,@X_LIBS@,$X_LIBS,;t t
6268 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6269 s,@EGREP@,$EGREP,;t t
6270 s,@LIBOBJS@,$LIBOBJS,;t t
6271 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6276 cat >>$CONFIG_STATUS <<\_ACEOF
6277 # Split the substitutions into bite-sized pieces for seds with
6278 # small command number limits, like on Digital OSF/1 and HP-UX.
6280 ac_sed_frag
=1 # Number of current file.
6281 ac_beg
=1 # First line for current file.
6282 ac_end
=$ac_max_sed_lines # Line after last line for current file.
6285 while $ac_more_lines; do
6286 if test $ac_beg -gt 1; then
6287 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6289 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
6291 if test ! -s $tmp/subs.frag
; then
6294 # The purpose of the label and of the branching condition is to
6295 # speed up the sed processing (if there are no `@' at all, there
6296 # is no need to browse any of the substitutions).
6297 # These are the two extra sed commands mentioned above.
6299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
6300 if test -z "$ac_sed_cmds"; then
6301 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
6303 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6305 ac_sed_frag
=`expr $ac_sed_frag + 1`
6307 ac_end
=`expr $ac_end + $ac_max_sed_lines`
6310 if test -z "$ac_sed_cmds"; then
6313 fi # test -n "$CONFIG_FILES"
6316 cat >>$CONFIG_STATUS <<\_ACEOF
6317 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
6318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6320 - |
*:- |
*:-:* ) # input from stdin
6322 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6323 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6324 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6325 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6326 * ) ac_file_in
=$ac_file.
in ;;
6329 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6330 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6332 X"$ac_file" : 'X\(//\)[^/]' \| \
6333 X"$ac_file" : 'X\(//\)$' \| \
6334 X"$ac_file" : 'X\(/\)' \| \
6335 . : '\(.\)' 2>/dev/null ||
6337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6339 /^X\(\/\/\)$/{ s//\1/; q; }
6340 /^X\(\/\).*/{ s//\1/; q; }
6342 { if $as_mkdir_p; then
6347 while test ! -d "$as_dir"; do
6348 as_dirs
="$as_dir $as_dirs"
6349 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6351 X"$as_dir" : 'X\(//\)[^/]' \| \
6352 X"$as_dir" : 'X\(//\)$' \| \
6353 X"$as_dir" : 'X\(/\)' \| \
6354 . : '\(.\)' 2>/dev/null ||
6356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6358 /^X\(\/\/\)$/{ s//\1/; q; }
6359 /^X\(\/\).*/{ s//\1/; q; }
6362 test ! -n "$as_dirs" || mkdir
$as_dirs
6363 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6364 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6365 { (exit 1); exit 1; }; }; }
6369 if test "$ac_dir" != .
; then
6370 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6371 # A "../" for each directory in $ac_dir_suffix.
6372 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6374 ac_dir_suffix
= ac_top_builddir
=
6378 .
) # No --srcdir option. We are building in place.
6380 if test -z "$ac_top_builddir"; then
6383 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6385 [\\/]* | ?
:[\\/]* ) # Absolute path.
6386 ac_srcdir
=$srcdir$ac_dir_suffix;
6387 ac_top_srcdir
=$srcdir ;;
6389 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6390 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6393 # Do not use `cd foo && pwd` to compute absolute paths, because
6394 # the directories may not exist.
6396 .
) ac_abs_builddir
="$ac_dir";;
6399 .
) ac_abs_builddir
=`pwd`;;
6400 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6401 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6404 case $ac_abs_builddir in
6405 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6407 case ${ac_top_builddir}.
in
6408 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6409 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6410 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6413 case $ac_abs_builddir in
6414 .
) ac_abs_srcdir
=$ac_srcdir;;
6417 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6418 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6419 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6422 case $ac_abs_builddir in
6423 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6425 case $ac_top_srcdir in
6426 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6427 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6428 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6434 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6435 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
6438 # Let's still pretend it is `configure' which instantiates (i.e., don't
6439 # use $as_me), people would be surprised to read:
6440 # /* config.h. Generated by config.status. */
6441 if test x
"$ac_file" = x-
; then
6444 configure_input
="$ac_file. "
6446 configure_input
=$configure_input"Generated from `echo $ac_file_in |
6447 sed 's,.*/,,'` by configure."
6449 # First look for the input files in the build tree, otherwise in the
6451 ac_file_inputs
=`IFS=:
6452 for f in $ac_file_in; do
6454 -) echo $tmp/stdin ;;
6456 # Absolute (can't be DOS-style, as IFS=:)
6457 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6458 echo "$as_me: error: cannot find input file: $f" >&2;}
6459 { (exit 1); exit 1; }; }
6462 if test -f "$f"; then
6465 elif test -f "$srcdir/$f"; then
6470 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6471 echo "$as_me: error: cannot find input file: $f" >&2;}
6472 { (exit 1); exit 1; }; }
6475 done` ||
{ (exit 1); exit 1; }
6477 if test x
"$ac_file" != x-
; then
6478 { echo "$as_me:$LINENO: creating $ac_file" >&5
6479 echo "$as_me: creating $ac_file" >&6;}
6483 cat >>$CONFIG_STATUS <<_ACEOF
6487 cat >>$CONFIG_STATUS <<\_ACEOF
6489 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6490 s
,@configure_input@
,$configure_input,;t t
6491 s
,@srcdir@
,$ac_srcdir,;t t
6492 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
6493 s
,@top_srcdir@
,$ac_top_srcdir,;t t
6494 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
6495 s
,@builddir@
,$ac_builddir,;t t
6496 s
,@abs_builddir@
,$ac_abs_builddir,;t t
6497 s
,@top_builddir@
,$ac_top_builddir,;t t
6498 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
6499 s
,@INSTALL@
,$ac_INSTALL,;t t
6500 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6502 if test x"$ac_file" != x-; then
6503 mv $tmp/out $ac_file
6512 cat >>$CONFIG_STATUS <<\_ACEOF
6514 { (exit 0); exit 0; }
6516 chmod +x $CONFIG_STATUS
6517 ac_clean_files=$ac_clean_files_save
6520 # configure is writing to config.log, and then calls config.status.
6521 # config.status does its own redirection, appending to config.log.
6522 # Unfortunately, on DOS this fails, as config.log is still kept open
6523 # by configure, so config.status won't be able to write to it; its
6524 # output is simply discarded. So we exec the FD to /dev/null,
6525 # effectively closing config.log, so it can be properly (re)opened and
6526 # appended to by config.status. When coming back to configure, we
6527 # need to make the FD available again.
6528 if test "$no_create" != yes; then
6530 ac_config_status_args=
6531 test "$silent" = yes &&
6532 ac_config_status_args="$ac_config_status_args --quiet"
6534 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6536 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6537 # would make configure fail if this is the last instruction.
6538 $ac_cs_success || { (exit 1); exit 1; }