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
="main.cc"
275 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBOBJS LTLIBOBJS'
278 # Initialize some variables set by options.
280 ac_init_version
=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
290 program_transform_name
=s
,x
,x
,
298 # Installation directory options.
299 # These are left unexpanded so users can "make install exec_prefix=/foo"
300 # and all the variables that are supposed to be based on exec_prefix
301 # by default will actually change.
302 # Use braces instead of parens because sh, perl, etc. also accept them.
303 bindir
='${exec_prefix}/bin'
304 sbindir
='${exec_prefix}/sbin'
305 libexecdir
='${exec_prefix}/libexec'
306 datadir
='${prefix}/share'
307 sysconfdir
='${prefix}/etc'
308 sharedstatedir
='${prefix}/com'
309 localstatedir
='${prefix}/var'
310 libdir
='${exec_prefix}/lib'
311 includedir
='${prefix}/include'
312 oldincludedir
='/usr/include'
313 infodir
='${prefix}/info'
314 mandir
='${prefix}/man'
319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
326 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
332 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
334 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
337 -build |
--build |
--buil |
--bui |
--bu)
338 ac_prev
=build_alias
;;
339 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
340 build_alias
=$ac_optarg ;;
342 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
343 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
344 ac_prev
=cache_file
;;
345 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
346 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
347 cache_file
=$ac_optarg ;;
350 cache_file
=config.cache
;;
352 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
354 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
356 datadir
=$ac_optarg ;;
358 -disable-* |
--disable-*)
359 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
367 -enable-* |
--enable-*)
368 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
375 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
378 eval "enable_$ac_feature='$ac_optarg'" ;;
380 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
381 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
382 |
--exec |
--exe |
--ex)
383 ac_prev
=exec_prefix
;;
384 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
385 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
386 |
--exec=* |
--exe=* |
--ex=*)
387 exec_prefix
=$ac_optarg ;;
389 -gas |
--gas |
--ga |
--g)
390 # Obsolete; use --with-gas.
393 -help |
--help |
--hel |
--he |
-h)
395 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
396 ac_init_help
=recursive
;;
397 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
398 ac_init_help
=short
;;
400 -host |
--host |
--hos |
--ho)
401 ac_prev
=host_alias
;;
402 -host=* |
--host=* |
--hos=* |
--ho=*)
403 host_alias
=$ac_optarg ;;
405 -includedir |
--includedir |
--includedi |
--included |
--include \
406 |
--includ |
--inclu |
--incl |
--inc)
407 ac_prev
=includedir
;;
408 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
409 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
410 includedir
=$ac_optarg ;;
412 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
414 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
415 infodir
=$ac_optarg ;;
417 -libdir |
--libdir |
--libdi |
--libd)
419 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
422 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
423 |
--libexe |
--libex |
--libe)
424 ac_prev
=libexecdir
;;
425 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
426 |
--libexe=* |
--libex=* |
--libe=*)
427 libexecdir
=$ac_optarg ;;
429 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
430 |
--localstate |
--localstat |
--localsta |
--localst \
431 |
--locals |
--local |
--loca |
--loc |
--lo)
432 ac_prev
=localstatedir
;;
433 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
434 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
435 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
436 localstatedir
=$ac_optarg ;;
438 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
440 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
444 # Obsolete; use --without-fp.
447 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
448 |
--no-cr |
--no-c |
-n)
451 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
452 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
455 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
456 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
457 |
--oldin |
--oldi |
--old |
--ol |
--o)
458 ac_prev
=oldincludedir
;;
459 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
460 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
461 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
462 oldincludedir
=$ac_optarg ;;
464 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
466 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
469 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
470 |
--program-pre |
--program-pr |
--program-p)
471 ac_prev
=program_prefix
;;
472 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
473 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
474 program_prefix
=$ac_optarg ;;
476 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
477 |
--program-suf |
--program-su |
--program-s)
478 ac_prev
=program_suffix
;;
479 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
480 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
481 program_suffix
=$ac_optarg ;;
483 -program-transform-name |
--program-transform-name \
484 |
--program-transform-nam |
--program-transform-na \
485 |
--program-transform-n |
--program-transform- \
486 |
--program-transform |
--program-transfor \
487 |
--program-transfo |
--program-transf \
488 |
--program-trans |
--program-tran \
489 |
--progr-tra |
--program-tr |
--program-t)
490 ac_prev
=program_transform_name
;;
491 -program-transform-name=* |
--program-transform-name=* \
492 |
--program-transform-nam=* |
--program-transform-na=* \
493 |
--program-transform-n=* |
--program-transform-=* \
494 |
--program-transform=* |
--program-transfor=* \
495 |
--program-transfo=* |
--program-transf=* \
496 |
--program-trans=* |
--program-tran=* \
497 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
498 program_transform_name
=$ac_optarg ;;
500 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
501 |
-silent |
--silent |
--silen |
--sile |
--sil)
504 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
506 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
508 sbindir
=$ac_optarg ;;
510 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
511 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
512 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
514 ac_prev
=sharedstatedir
;;
515 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
516 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
517 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
519 sharedstatedir
=$ac_optarg ;;
521 -site |
--site |
--sit)
523 -site=* |
--site=* |
--sit=*)
526 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
528 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
531 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
532 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
533 ac_prev
=sysconfdir
;;
534 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
535 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
536 sysconfdir
=$ac_optarg ;;
538 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
539 ac_prev
=target_alias
;;
540 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
541 target_alias
=$ac_optarg ;;
543 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
546 -version |
--version |
--versio |
--versi |
--vers |
-V)
550 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
555 ac_package
=`echo $ac_package| sed 's/-/_/g'`
557 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* |
--without-*)
563 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package
=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
572 # Obsolete; use --with-x.
575 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
576 |
--x-incl |
--x-inc |
--x-in |
--x-i)
577 ac_prev
=x_includes
;;
578 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
579 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
580 x_includes
=$ac_optarg ;;
582 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
583 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
584 ac_prev
=x_libraries
;;
585 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
586 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
587 x_libraries
=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
595 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
615 if test -n "$ac_prev"; then
616 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var
in exec_prefix prefix
624 eval ac_val
=$
`echo $ac_var`
626 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
632 # Be sure to have absolute paths.
633 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
636 eval ac_val
=$
`echo $ac_var`
638 [\\/$
]* | ?
:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
644 # There might be people who depend on the old broken behavior: `$host'
645 # used to hold the argument of --host etc.
646 # FIXME: To remove some day.
651 # FIXME: To remove some day.
652 if test "x$host_alias" != x
; then
653 if test "x$build_alias" = x
; then
654 cross_compiling
=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
663 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
665 test "$silent" = yes && exec 6>/dev
/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted
=yes
671 # Try the directory containing this script, then its parent.
672 ac_confdir
=`(dirname "$0") 2>/dev/null ||
673 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
685 if test ! -r $srcdir/$ac_unique_file; then
689 ac_srcdir_defaulted
=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set
=${build_alias+set}
705 ac_env_build_alias_value
=$build_alias
706 ac_cv_env_build_alias_set
=${build_alias+set}
707 ac_cv_env_build_alias_value
=$build_alias
708 ac_env_host_alias_set
=${host_alias+set}
709 ac_env_host_alias_value
=$host_alias
710 ac_cv_env_host_alias_set
=${host_alias+set}
711 ac_cv_env_host_alias_value
=$host_alias
712 ac_env_target_alias_set
=${target_alias+set}
713 ac_env_target_alias_value
=$target_alias
714 ac_cv_env_target_alias_set
=${target_alias+set}
715 ac_cv_env_target_alias_value
=$target_alias
716 ac_env_CC_set
=${CC+set}
718 ac_cv_env_CC_set
=${CC+set}
719 ac_cv_env_CC_value
=$CC
720 ac_env_CFLAGS_set
=${CFLAGS+set}
721 ac_env_CFLAGS_value
=$CFLAGS
722 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value
=$CFLAGS
724 ac_env_LDFLAGS_set
=${LDFLAGS+set}
725 ac_env_LDFLAGS_value
=$LDFLAGS
726 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value
=$LDFLAGS
728 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value
=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
732 ac_env_CXX_set
=${CXX+set}
733 ac_env_CXX_value
=$CXX
734 ac_cv_env_CXX_set
=${CXX+set}
735 ac_cv_env_CXX_value
=$CXX
736 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value
=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
740 ac_env_CPP_set
=${CPP+set}
741 ac_env_CPP_value
=$CPP
742 ac_cv_env_CPP_set
=${CPP+set}
743 ac_cv_env_CPP_value
=$CPP
746 # Report the --help message.
748 if test "$ac_init_help" = "long"; then
749 # Omit some internal or obsolete options to make the list less imposing.
750 # This message is too long to be a string in the A/UX 3.1 sh.
752 \`configure' configures this package to adapt to many kinds of systems.
754 Usage: $0 [OPTION]... [VAR=VALUE]...
756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
757 VAR=VALUE. See below for descriptions of some of the useful variables.
759 Defaults for the options are specified in brackets.
762 -h, --help display this help and exit
763 --help=short display options specific to this package
764 --help=recursive display the short help of all the included packages
765 -V, --version display version information and exit
766 -q, --quiet, --silent do not print \`checking...' messages
767 --cache-file=FILE cache test results in FILE [disabled]
768 -C, --config-cache alias for \`--cache-file=config.cache'
769 -n, --no-create do not create output files
770 --srcdir=DIR find the sources in DIR [configure dir or \`..']
775 Installation directories:
776 --prefix=PREFIX install architecture-independent files in PREFIX
778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
781 By default, \`make install' will install all the files in
782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784 for instance \`--prefix=\$HOME'.
786 For better control, use the options below.
788 Fine tuning of the installation directories:
789 --bindir=DIR user executables [EPREFIX/bin]
790 --sbindir=DIR system admin executables [EPREFIX/sbin]
791 --libexecdir=DIR program executables [EPREFIX/libexec]
792 --datadir=DIR read-only architecture-independent data [PREFIX/share]
793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
796 --libdir=DIR object code libraries [EPREFIX/lib]
797 --includedir=DIR C header files [PREFIX/include]
798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
799 --infodir=DIR info documentation [PREFIX/info]
800 --mandir=DIR man documentation [PREFIX/man]
806 --program-prefix=PREFIX prepend PREFIX to installed program names
807 --program-suffix=SUFFIX append SUFFIX to installed program names
808 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
811 --x-includes=DIR X include files are
in DIR
812 --x-libraries=DIR X library files are
in DIR
815 --build=BUILD configure
for building on BUILD
[guessed
]
816 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
817 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
821 if test -n "$ac_init_help"; then
826 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
827 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
828 --disable-sdltest Do not try to compile and run a
test SDL program
831 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
832 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
833 --with-x use the X Window System
834 --with-sdl-prefix=PFX Prefix where SDL is installed
(optional
)
835 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed
(optional
)
837 Some influential environment variables
:
838 CC C compiler
command
839 CFLAGS C compiler flags
840 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
841 nonstandard directory
<lib dir
>
842 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
843 headers
in a nonstandard directory
<include dir
>
844 CXX C
++ compiler
command
845 CXXFLAGS C
++ compiler flags
848 Use these variables to override the choices made by
`configure' or to help
849 it to find libraries and programs with nonstandard names/locations.
854 if test "$ac_init_help" = "recursive"; then
855 # If there are subdirs, report their specific --help.
857 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
858 test -d $ac_dir || continue
861 if test "$ac_dir" != .; then
862 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
863 # A "../" for each directory in $ac_dir_suffix.
864 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
866 ac_dir_suffix= ac_top_builddir=
870 .) # No --srcdir option. We are building in place.
872 if test -z "$ac_top_builddir"; then
875 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
877 [\\/]* | ?:[\\/]* ) # Absolute path.
878 ac_srcdir=$srcdir$ac_dir_suffix;
879 ac_top_srcdir=$srcdir ;;
881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
885 # Do not use `cd foo
&& pwd` to compute absolute paths, because
886 # the directories may not exist.
888 .) ac_abs_builddir="$ac_dir";;
891 .) ac_abs_builddir=`pwd`;;
892 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
893 *) ac_abs_builddir=`pwd`/"$ac_dir";;
896 case $ac_abs_builddir in
897 .) ac_abs_top_builddir=${ac_top_builddir}.;;
899 case ${ac_top_builddir}. in
900 .) ac_abs_top_builddir=$ac_abs_builddir;;
901 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
902 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
905 case $ac_abs_builddir in
906 .) ac_abs_srcdir=$ac_srcdir;;
909 .) ac_abs_srcdir=$ac_abs_builddir;;
910 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
911 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
914 case $ac_abs_builddir in
915 .) ac_abs_top_srcdir=$ac_top_srcdir;;
917 case $ac_top_srcdir in
918 .) ac_abs_top_srcdir=$ac_abs_builddir;;
919 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
920 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
925 # Check for guested configure; otherwise get Cygnus style configure.
926 if test -f $ac_srcdir/configure.gnu; then
928 $SHELL $ac_srcdir/configure.gnu --help=recursive
929 elif test -f $ac_srcdir/configure; then
931 $SHELL $ac_srcdir/configure --help=recursive
932 elif test -f $ac_srcdir/configure.ac ||
933 test -f $ac_srcdir/configure.in; then
937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
947 Copyright (C) 2003 Free Software Foundation, Inc.
948 This configure script is free software; the Free Software Foundation
949 gives unlimited permission to copy, distribute and modify it.
955 This file contains any messages produced by compilers while
956 running configure, to aid debugging if configure makes a mistake.
958 It was created by $as_me, which was
959 generated by GNU Autoconf 2.59. Invocation command line was
970 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
971 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
972 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
973 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
974 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
976 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
977 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
979 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
980 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
981 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
982 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
983 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
984 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
985 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
993 test -z "$as_dir" && as_dir=.
1009 # Keep a trace of the command line.
1010 # Strip out --no-create and --no-recursion so they do not pile up.
1011 # Strip out --silent because we don't want to record it for future runs.
1012 # Also quote any args containing shell meta-characters.
1013 # Make two passes to allow for proper duplicate-argument suppression.
1018 ac_must_keep_next=false
1024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1028 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1029 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1032 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1035 if test $ac_must_keep_next = true; then
1036 ac_must_keep_next=false # Got value, back to normal.
1039 *=* | --config-cache | -C | -disable-* | --disable-* \
1040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1042 | -with-* | --with-* | -without-* | --without-* | --x)
1043 case "$ac_configure_args0 " in
1044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047 -* ) ac_must_keep_next=true ;;
1050 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051 # Get rid of the leading space.
1057 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1058 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1060 # When interrupted or exit'd, cleanup temporary files, and complete
1061 # config.log. We remove comments because anyway the quotes in there
1062 # would cause problems or look ugly.
1063 # WARNING: Be sure not to use single quotes in there, as some shells,
1064 # such as our DU 5.0 friend, will then `close
' the trap.
1065 trap 'exit_status
=$?
1066 # Save into config.log some information that might help in debugging.
1071 ## ---------------- ##
1072 ## Cache variables. ##
1073 ## ---------------- ##
1076 # The following way of writing the cache mishandles newlines in values,
1079 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094 ## ----------------- ##
1095 ## Output variables. ##
1096 ## ----------------- ##
1099 for ac_var
in $ac_subst_vars
1101 eval ac_val
=$
`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1106 if test -n "$ac_subst_files"; then
1113 for ac_var
in $ac_subst_files
1115 eval ac_val
=$
`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1121 if test -s confdefs.h
; then
1128 sed "/^$/d" confdefs.h |
sort
1131 test "$ac_signal" != 0 &&
1132 echo "$as_me: caught signal $ac_signal"
1133 echo "$as_me: exit $exit_status"
1135 rm -f core
*.core
&&
1136 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1139 for ac_signal in 1 2 13 15; do
1140 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1145 rm -rf conftest* confdefs.h
1146 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149 # Predefined preprocessor variables.
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_NAME "$PACKAGE_NAME"
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_STRING "$PACKAGE_STRING"
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1176 # Let the site file select an alternate cache file if it wants to.
1177 # Prefer explicitly selected file to automatically selected ones.
1178 if test -z "$CONFIG_SITE"; then
1179 if test "x$prefix" != xNONE; then
1180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185 for ac_site_file in $CONFIG_SITE; do
1186 if test -r "$ac_site_file"; then
1187 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1188 echo "$as_me: loading site script $ac_site_file" >&6;}
1189 sed 's
/^
/|
/' "$ac_site_file" >&5
1194 if test -r "$cache_file"; then
1195 # Some versions of bash will fail to source /dev/null (special
1196 # files actually), so we avoid doing that.
1197 if test -f "$cache_file"; then
1198 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1199 echo "$as_me: loading cache $cache_file" >&6;}
1201 [\\/]* | ?:[\\/]* ) . $cache_file;;
1202 *) . ./$cache_file;;
1206 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1207 echo "$as_me: creating cache $cache_file" >&6;}
1211 # Check that the precious variables saved in the cache have kept the same
1213 ac_cache_corrupted=false
1214 for ac_var in `(set) 2>&1 |
1215 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1216 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1217 eval ac_new_set=\$ac_env_${ac_var}_set
1218 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1219 eval ac_new_val="\$ac_env_${ac_var}_value"
1220 case $ac_old_set,$ac_new_set in
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1224 ac_cache_corrupted=: ;;
1226 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1227 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1228 ac_cache_corrupted=: ;;
1231 if test "x$ac_old_val" != "x$ac_new_val"; then
1232 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1233 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1234 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1235 echo "$as_me: former value: $ac_old_val" >&2;}
1236 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1237 echo "$as_me: current value: $ac_new_val" >&2;}
1238 ac_cache_corrupted=:
1241 # Pass precious variables to config.status.
1242 if test "$ac_new_set" = set; then
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1246 *) ac_arg=$ac_var=$ac_new_val ;;
1248 case " $ac_configure_args " in
1249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1250 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1254 if $ac_cache_corrupted; then
1255 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1256 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1257 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1258 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1259 { (exit 1); exit 1; }; }
1263 ac_cpp='$CPP $CPPFLAGS'
1264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1265 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1288 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1289 if test -f $ac_dir/install-sh; then
1291 ac_install_sh="$ac_aux_dir/install-sh -c"
1293 elif test -f $ac_dir/install.sh; then
1295 ac_install_sh="$ac_aux_dir/install.sh -c"
1297 elif test -f $ac_dir/shtool; then
1299 ac_install_sh="$ac_aux_dir/shtool install -c"
1303 if test -z "$ac_aux_dir"; then
1304 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1305 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1306 { (exit 1); exit 1; }; }
1308 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1309 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1310 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1312 # Make sure we can run config.sub.
1313 $ac_config_sub sun4 >/dev/null 2>&1 ||
1314 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1315 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1316 { (exit 1); exit 1; }; }
1318 echo "$as_me:$LINENO: checking build system type" >&5
1319 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1320 if test "${ac_cv_build+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 ac_cv_build_alias=$build_alias
1324 test -z "$ac_cv_build_alias" &&
1325 ac_cv_build_alias=`$ac_config_guess`
1326 test -z "$ac_cv_build_alias" &&
1327 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1328 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1329 { (exit 1); exit 1; }; }
1330 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1337 echo "${ECHO_T}$ac_cv_build" >&6
1339 build_cpu=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1340 build_vendor=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1341 build_os=`echo $ac_cv_build | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1344 echo "$as_me:$LINENO: checking host system type" >&5
1345 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1346 if test "${ac_cv_host+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1349 ac_cv_host_alias=$host_alias
1350 test -z "$ac_cv_host_alias" &&
1351 ac_cv_host_alias=$ac_cv_build_alias
1352 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1353 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1354 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1355 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1359 echo "${ECHO_T}$ac_cv_host" >&6
1361 host_cpu=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1362 host_vendor=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1363 host_os=`echo $ac_cv_host | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1366 echo "$as_me:$LINENO: checking target system type" >&5
1367 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1368 if test "${ac_cv_target+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1371 ac_cv_target_alias=$target_alias
1372 test "x$ac_cv_target_alias" = "x" &&
1373 ac_cv_target_alias=$ac_cv_host_alias
1374 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1381 echo "${ECHO_T}$ac_cv_target" >&6
1382 target=$ac_cv_target
1383 target_cpu=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
1/'`
1384 target_vendor=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
2/'`
1385 target_os=`echo $ac_cv_target | sed 's
/^\
([^
-]*\
)-\
([^
-]*\
)-\
(.
*\
)$
/\
3/'`
1388 # The aliases save the names the user supplied, while $host etc.
1389 # will get canonicalized.
1390 test -n "$target_alias" &&
1391 test "$program_prefix$program_suffix$program_transform_name" = \
1393 program_prefix=${target_alias}-
1395 am__api_version="1.4"
1396 # Find a good install program. We prefer a C program (faster),
1397 # so one script is as good as another. But avoid the broken or
1398 # incompatible versions:
1399 # SysV /etc/install, /usr/sbin/install
1400 # SunOS /usr/etc/install
1401 # IRIX /sbin/install
1403 # AmigaOS /C/install, which installs bootblocks on floppy discs
1404 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
1405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1407 # OS/2's system install, which has a completely different semantic
1408 # ./install, which can be erroneously created by make from ./install.sh.
1409 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1411 if test -z "$INSTALL"; then
1412 if test "${ac_cv_path_install+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1419 test -z "$as_dir" && as_dir
=.
1420 # Account for people who put trailing slashes in PATH elements.
1422 .
/ | .
// |
/cC
/* | \
1423 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
1424 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
1427 # OSF1 and SCO ODT 3.0 have their own names for install.
1428 # Don't use installbsd from OSF since it installs stuff as root
1430 for ac_prog
in ginstall scoinst
install; do
1431 for ac_exec_ext
in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1433 if test $ac_prog = install &&
1434 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1435 # AIX install. It has an incompatible calling convention.
1437 elif test $ac_prog = install &&
1438 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
1439 # program-specific install script used by HP pwplus--don't use.
1442 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
1454 if test "${ac_cv_path_install+set}" = set; then
1455 INSTALL
=$ac_cv_path_install
1457 # As a last resort, use the slow shell script. We don't cache a
1458 # path for INSTALL within a source directory, because that will
1459 # break other packages using the cache if that directory is
1460 # removed, or if the path is relative.
1461 INSTALL
=$ac_install_sh
1464 echo "$as_me:$LINENO: result: $INSTALL" >&5
1465 echo "${ECHO_T}$INSTALL" >&6
1467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1468 # It thinks the first close brace ends the variable substitution.
1469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1473 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1475 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1476 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1479 echo timestamp
> conftestfile
1480 # Do `set' in a subshell so we don't clobber the current shell's
1481 # arguments. Must try -L first in case configure is actually a
1482 # symlink; some systems play weird games with the mod time of symlinks
1483 # (eg FreeBSD returns the mod time of the symlink's containing
1486 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1487 if test "$*" = "X"; then
1489 set X
`ls -t $srcdir/configure conftestfile`
1491 if test "$*" != "X $srcdir/configure conftestfile" \
1492 && test "$*" != "X conftestfile $srcdir/configure"; then
1494 # If neither matched, then we have a broken ls. This can happen
1495 # if, for instance, CONFIG_SHELL is bash and it inherits a
1496 # broken ls alias from the environment. This has actually
1497 # happened. Such a system could not be considered "sane".
1498 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1499 alias in your environment" >&5
1500 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1501 alias in your environment" >&2;}
1502 { (exit 1); exit 1; }; }
1505 test "$2" = conftestfile
1511 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1512 Check your system clock" >&5
1513 echo "$as_me: error: newly created file is older than distributed files!
1514 Check your system clock" >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:$LINENO: result: yes" >&5
1519 echo "${ECHO_T}yes" >&6
1520 test "$program_prefix" != NONE
&&
1521 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE
&&
1524 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $. echo might interpret backslashes.
1526 # By default was `s,x,x', remove it if useless.
1527 cat <<\_ACEOF
>conftest.
sed
1528 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1530 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1533 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1534 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1535 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1536 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 cat >conftest.
make <<\_ACEOF
1541 @
echo 'ac_maketemp="$(MAKE)"'
1543 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1544 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1545 if test -n "$ac_maketemp"; then
1546 eval ac_cv_prog_make_
${ac_make}_set
=yes
1548 eval ac_cv_prog_make_
${ac_make}_set
=no
1552 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1553 echo "$as_me:$LINENO: result: yes" >&5
1554 echo "${ECHO_T}yes" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 SET_MAKE
="MAKE=${MAKE-make}"
1563 PACKAGE
=synaesthesia
1567 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1568 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1569 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1570 { (exit 1); exit 1; }; }
1573 cat >>confdefs.h
<<_ACEOF
1574 #define PACKAGE "$PACKAGE"
1578 cat >>confdefs.h
<<_ACEOF
1579 #define VERSION "$VERSION"
1584 missing_dir
=`cd $ac_aux_dir && pwd`
1585 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1586 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1587 # Run test in a subshell; some versions of sh will print an error if
1588 # an executable is not found, even if stderr is redirected.
1589 # Redirect stdin to placate older versions of autoconf. Sigh.
1590 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1591 ACLOCAL
=aclocal-
${am__api_version}
1592 echo "$as_me:$LINENO: result: found" >&5
1593 echo "${ECHO_T}found" >&6
1595 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
1596 echo "$as_me:$LINENO: result: missing" >&5
1597 echo "${ECHO_T}missing" >&6
1600 echo "$as_me:$LINENO: checking for working autoconf" >&5
1601 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1602 # Run test in a subshell; some versions of sh will print an error if
1603 # an executable is not found, even if stderr is redirected.
1604 # Redirect stdin to placate older versions of autoconf. Sigh.
1605 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1607 echo "$as_me:$LINENO: result: found" >&5
1608 echo "${ECHO_T}found" >&6
1610 AUTOCONF
="$missing_dir/missing autoconf"
1611 echo "$as_me:$LINENO: result: missing" >&5
1612 echo "${ECHO_T}missing" >&6
1615 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1616 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1617 # Run test in a subshell; some versions of sh will print an error if
1618 # an executable is not found, even if stderr is redirected.
1619 # Redirect stdin to placate older versions of autoconf. Sigh.
1620 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
1621 AUTOMAKE
=automake-
${am__api_version}
1622 echo "$as_me:$LINENO: result: found" >&5
1623 echo "${ECHO_T}found" >&6
1625 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
1626 echo "$as_me:$LINENO: result: missing" >&5
1627 echo "${ECHO_T}missing" >&6
1630 echo "$as_me:$LINENO: checking for working autoheader" >&5
1631 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf. Sigh.
1635 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1636 AUTOHEADER
=autoheader
1637 echo "$as_me:$LINENO: result: found" >&5
1638 echo "${ECHO_T}found" >&6
1640 AUTOHEADER
="$missing_dir/missing autoheader"
1641 echo "$as_me:$LINENO: result: missing" >&5
1642 echo "${ECHO_T}missing" >&6
1645 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1646 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1647 # Run test in a subshell; some versions of sh will print an error if
1648 # an executable is not found, even if stderr is redirected.
1649 # Redirect stdin to placate older versions of autoconf. Sigh.
1650 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1652 echo "$as_me:$LINENO: result: found" >&5
1653 echo "${ECHO_T}found" >&6
1655 MAKEINFO
="$missing_dir/missing makeinfo"
1656 echo "$as_me:$LINENO: result: missing" >&5
1657 echo "${ECHO_T}missing" >&6
1662 ac_config_headers
="$ac_config_headers config.h"
1664 ac_config_commands
="$ac_config_commands default-1"
1671 ac_cpp
='$CPP $CPPFLAGS'
1672 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1673 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1674 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1675 if test -n "$ac_tool_prefix"; then
1676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1677 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC
="$CC" # Let the user override the test.
1686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir
=.
1691 for ac_exec_ext
in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703 if test -n "$CC"; then
1704 echo "$as_me:$LINENO: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1712 if test -z "$ac_cv_prog_CC"; then
1714 # Extract the first word of "gcc", so it can be a program name with args.
1715 set dummy gcc
; ac_word
=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 if test -n "$ac_ct_CC"; then
1722 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir
=.
1729 for ac_exec_ext
in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_ac_ct_CC
="gcc"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1741 if test -n "$ac_ct_CC"; then
1742 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1743 echo "${ECHO_T}$ac_ct_CC" >&6
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1754 if test -z "$CC"; then
1755 if test -n "$ac_tool_prefix"; then
1756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1757 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC
="$CC" # Let the user override the test.
1766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1770 test -z "$as_dir" && as_dir
=.
1771 for ac_exec_ext
in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783 if test -n "$CC"; then
1784 echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1792 if test -z "$ac_cv_prog_CC"; then
1794 # Extract the first word of "cc", so it can be a program name with args.
1795 set dummy cc
; ac_word
=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 if test -n "$ac_ct_CC"; then
1802 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1808 test -z "$as_dir" && as_dir
=.
1809 for ac_exec_ext
in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 ac_cv_prog_ac_ct_CC
="cc"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1821 if test -n "$ac_ct_CC"; then
1822 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1823 echo "${ECHO_T}$ac_ct_CC" >&6
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1835 if test -z "$CC"; then
1836 # Extract the first word of "cc", so it can be a program name with args.
1837 set dummy cc
; ac_word
=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC
="$CC" # Let the user override the test.
1847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir
=.
1852 for ac_exec_ext
in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1855 ac_prog_rejected
=yes
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 if test $ac_prog_rejected = yes; then
1866 # We found a bogon in the path, so make sure we never use it.
1867 set dummy
$ac_cv_prog_CC
1869 if test $# != 0; then
1870 # We chose a different compiler from the bogus one.
1871 # However, it has the same basename, so the bogon will be chosen
1872 # first if we set CC to just the basename; use the full file name.
1874 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1889 if test -z "$CC"; then
1890 if test -n "$ac_tool_prefix"; then
1893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1894 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC
="$CC" # Let the user override the test.
1903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1907 test -z "$as_dir" && as_dir
=.
1908 for ac_exec_ext
in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1928 test -n "$CC" && break
1931 if test -z "$CC"; then
1935 # Extract the first word of "$ac_prog", so it can be a program name with args.
1936 set dummy
$ac_prog; ac_word
=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir
=.
1950 for ac_exec_ext
in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC
="$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1970 test -n "$ac_ct_CC" && break
1979 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1980 See \`config.log' for more details." >&5
1981 echo "$as_me: error: no acceptable C compiler found in \$PATH
1982 See \`config.log' for more details." >&2;}
1983 { (exit 1); exit 1; }; }
1985 # Provide some information about the compiler.
1986 echo "$as_me:$LINENO:" \
1987 "checking for C compiler version" >&5
1988 ac_compiler
=`set X $ac_compile; echo $2`
1989 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1990 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }
1994 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1995 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
1999 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2000 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }
2005 cat >conftest.
$ac_ext <<_ACEOF
2008 cat confdefs.h
>>conftest.
$ac_ext
2009 cat >>conftest.
$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2020 ac_clean_files_save
=$ac_clean_files
2021 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2022 # Try to create an executable without -o first, disregard a.out.
2023 # It will help us diagnose broken compilers, and finding out an intuition
2025 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2026 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2027 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2028 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2029 (eval $ac_link_default) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 # Find the output, starting from the most likely. This scheme is
2034 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2037 # Be careful to initialize this variable, since it used to be cached.
2038 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2040 # b.out is created by i960 compilers.
2041 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2043 test -f "$ac_file" ||
continue
2045 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2048 # This is the source file.
2051 # We found the default executable, but exeext='' is most
2055 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056 # FIXME: I believe we export ac_cv_exeext for Libtool,
2057 # but it would be cool to find out if it's true. Does anybody
2058 # maintain Libtool? --akim.
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.
$ac_ext >&5
2069 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: C compiler cannot create executables
2072 See \`config.log' for more details." >&2;}
2073 { (exit 77); exit 77; }; }
2076 ac_exeext
=$ac_cv_exeext
2077 echo "$as_me:$LINENO: result: $ac_file" >&5
2078 echo "${ECHO_T}$ac_file" >&6
2080 # Check the compiler produces executables we can run. If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2083 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2085 # If not cross compiling, check that we can run a simple program.
2086 if test "$cross_compiling" != yes; then
2087 if { ac_try
='./$ac_file'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 if test "$cross_compiling" = maybe
; then
2098 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: cannot run C compiled programs.
2102 If you meant to cross compile, use \`--host'.
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
2108 echo "$as_me:$LINENO: result: yes" >&5
2109 echo "${ECHO_T}yes" >&6
2111 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2112 ac_clean_files
=$ac_clean_files_save
2113 # Check the compiler produces executables we can run. If not, either
2114 # the compiler is broken, or we cross compile.
2115 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2117 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2118 echo "${ECHO_T}$cross_compiling" >&6
2120 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2123 (eval $ac_link) 2>&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2129 # work properly (i.e., refer to `conftest.exe'), while it won't with
2131 for ac_file
in conftest.exe conftest conftest.
*; do
2132 test -f "$ac_file" ||
continue
2134 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2135 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2149 rm -f conftest
$ac_cv_exeext
2150 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2151 echo "${ECHO_T}$ac_cv_exeext" >&6
2153 rm -f conftest.
$ac_ext
2154 EXEEXT
=$ac_cv_exeext
2156 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2157 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2158 if test "${ac_cv_objext+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 cat >conftest.
$ac_ext <<_ACEOF
2164 cat confdefs.h
>>conftest.
$ac_ext
2165 cat >>conftest.
$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2176 rm -f conftest.o conftest.obj
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2184 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2185 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.
$ac_ext >&5
2193 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2200 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2202 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2203 echo "${ECHO_T}$ac_cv_objext" >&6
2204 OBJEXT
=$ac_cv_objext
2206 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2207 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2208 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 cat >conftest.
$ac_ext <<_ACEOF
2214 cat confdefs.h
>>conftest.
$ac_ext
2215 cat >>conftest.
$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2229 rm -f conftest.
$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2233 grep -v '^ *+' conftest.er1
>conftest.err
2235 cat conftest.err
>&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try
='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.
$ac_ext >&5
2257 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2258 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2261 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2262 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2263 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2264 ac_test_CFLAGS
=${CFLAGS+set}
2265 ac_save_CFLAGS
=$CFLAGS
2267 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2268 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2269 if test "${ac_cv_prog_cc_g+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2272 cat >conftest.
$ac_ext <<_ACEOF
2275 cat confdefs.h
>>conftest.
$ac_ext
2276 cat >>conftest.
$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2287 rm -f conftest.
$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2291 grep -v '^ *+' conftest.er1
>conftest.err
2293 cat conftest.err
>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try
='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.
$ac_ext >&5
2315 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2319 if test "$ac_test_CFLAGS" = set; then
2320 CFLAGS
=$ac_save_CFLAGS
2321 elif test $ac_cv_prog_cc_g = yes; then
2322 if test "$GCC" = yes; then
2328 if test "$GCC" = yes; then
2334 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2335 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 ac_cv_prog_cc_stdc
=no
2341 cat >conftest.
$ac_ext <<_ACEOF
2344 cat confdefs.h
>>conftest.
$ac_ext
2345 cat >>conftest.
$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2349 #include <sys/types.h>
2350 #include <sys/stat.h>
2351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2352 struct buf { int x; };
2353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2354 static char *e (p, i)
2360 static char *f (char * (*g) (char **, int), char **p, ...)
2365 s = g (p, va_arg (v,int));
2370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2371 function prototypes and stuff, but not '\xHH' hex character constants.
2372 These don't provoke an error unfortunately, instead are silently treated
2373 as 'x'. The following induces an error, until -std1 is added to get
2374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2375 array size at least. It's necessary to write '\x00'==0 to get something
2376 that's true only with -std1. */
2377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2379 int test (int i, double x);
2380 struct s1 {int (*f) (int a);};
2381 struct s2 {int (*f) (double a);};
2382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2388 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2393 # Don't try gcc -ansi; that turns off useful extensions and
2394 # breaks some systems' header files.
2395 # AIX -qlanglvl=ansi
2396 # Ultrix and OSF/1 -std1
2397 # HP-UX 10.20 and later -Ae
2398 # HP-UX older versions -Aa -D_HPUX_SOURCE
2399 # SVR4 -Xc -D__EXTENSIONS__
2400 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2402 CC
="$ac_save_CC $ac_arg"
2403 rm -f conftest.
$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2407 grep -v '^ *+' conftest.er1
>conftest.err
2409 cat conftest.err
>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try
='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
2424 ac_cv_prog_cc_stdc
=$ac_arg
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.
$ac_ext >&5
2431 rm -f conftest.err conftest.
$ac_objext
2433 rm -f conftest.
$ac_ext conftest.
$ac_objext
2438 case "x$ac_cv_prog_cc_stdc" in
2440 echo "$as_me:$LINENO: result: none needed" >&5
2441 echo "${ECHO_T}none needed" >&6 ;;
2443 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2444 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2445 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2448 # Some people use a C++ compiler to compile C. Since we use `exit',
2449 # in C++ we need to declare it. In case someone uses the same compiler
2450 # for both compiling C and C++ we need to have the C++ compiler decide
2451 # the declaration of exit, since it's the most demanding environment.
2452 cat >conftest.
$ac_ext <<_ACEOF
2457 rm -f conftest.
$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2461 grep -v '^ *+' conftest.er1
>conftest.err
2463 cat conftest.err
>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try
='test -s conftest.$ac_objext'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 for ac_declaration
in \
2480 'extern "C" void std::exit (int) throw (); using std::exit;' \
2481 'extern "C" void std::exit (int); using std::exit;' \
2482 'extern "C" void exit (int) throw ();' \
2483 'extern "C" void exit (int);' \
2486 cat >conftest.
$ac_ext <<_ACEOF
2489 cat confdefs.h
>>conftest.
$ac_ext
2490 cat >>conftest.
$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2502 rm -f conftest.
$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2506 grep -v '^ *+' conftest.er1
>conftest.err
2508 cat conftest.err
>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try
='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.
$ac_ext >&5
2530 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2531 cat >conftest.
$ac_ext <<_ACEOF
2534 cat confdefs.h
>>conftest.
$ac_ext
2535 cat >>conftest.
$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2546 rm -f conftest.
$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2550 grep -v '^ *+' conftest.er1
>conftest.err
2552 cat conftest.err
>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try
='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.
$ac_ext >&5
2573 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.
$ac_ext >&5
2587 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2589 ac_cpp
='$CPP $CPPFLAGS'
2590 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2595 ac_cpp
='$CXXCPP $CPPFLAGS'
2596 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${ac_cv_prog_CXX+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$CXX"; then
2610 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir
=.
2617 for ac_exec_ext
in '' $ac_executable_extensions; do
2618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 if test -n "$CXX"; then
2630 echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2633 echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2637 test -n "$CXX" && break
2640 if test -z "$CXX"; then
2642 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy
$ac_prog; ac_word
=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_CXX"; then
2652 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir
=.
2659 for ac_exec_ext
in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2679 test -n "$ac_ct_CXX" && break
2681 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689 "checking for C++ compiler version" >&5
2690 ac_compiler
=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.
$ac_ext <<_ACEOF
2715 cat confdefs.h
>>conftest.
$ac_ext
2716 cat >>conftest.
$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2730 rm -f conftest.
$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1
>conftest.err
2736 cat conftest.err
>&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try
='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.
$ac_ext >&5
2758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2759 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS
=$CXXFLAGS
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 cat >conftest.
$ac_ext <<_ACEOF
2776 cat confdefs.h
>>conftest.
$ac_ext
2777 cat >>conftest.
$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 rm -f conftest.
$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1
>conftest.err
2794 cat conftest.err
>&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try
='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cxx_g
=yes
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.
$ac_ext >&5
2816 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2818 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2820 if test "$ac_test_CXXFLAGS" = set; then
2821 CXXFLAGS
=$ac_save_CXXFLAGS
2822 elif test $ac_cv_prog_cxx_g = yes; then
2823 if test "$GXX" = yes; then
2829 if test "$GXX" = yes; then
2835 for ac_declaration
in \
2837 'extern "C" void std::exit (int) throw (); using std::exit;' \
2838 'extern "C" void std::exit (int); using std::exit;' \
2839 'extern "C" void exit (int) throw ();' \
2840 'extern "C" void exit (int);' \
2843 cat >conftest.
$ac_ext <<_ACEOF
2846 cat confdefs.h
>>conftest.
$ac_ext
2847 cat >>conftest.
$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2859 rm -f conftest.
$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2863 grep -v '^ *+' conftest.er1
>conftest.err
2865 cat conftest.err
>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try
='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.
$ac_ext >&5
2887 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2888 cat >conftest.
$ac_ext <<_ACEOF
2891 cat confdefs.h
>>conftest.
$ac_ext
2892 cat >>conftest.
$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.
$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1
>conftest.err
2909 cat conftest.err
>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; } &&
2918 { ac_try
='test -s conftest.$ac_objext'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.
$ac_ext >&5
2930 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2933 if test -n "$ac_declaration"; then
2934 echo '#ifdef __cplusplus' >>confdefs.h
2935 echo $ac_declaration >>confdefs.h
2936 echo '#endif' >>confdefs.h
2940 ac_cpp
='$CPP $CPPFLAGS'
2941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2945 # Find a good install program. We prefer a C program (faster),
2946 # so one script is as good as another. But avoid the broken or
2947 # incompatible versions:
2948 # SysV /etc/install, /usr/sbin/install
2949 # SunOS /usr/etc/install
2950 # IRIX /sbin/install
2952 # AmigaOS /C/install, which installs bootblocks on floppy discs
2953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2956 # OS/2's system install, which has a completely different semantic
2957 # ./install, which can be erroneously created by make from ./install.sh.
2958 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2959 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2960 if test -z "$INSTALL"; then
2961 if test "${ac_cv_path_install+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2968 test -z "$as_dir" && as_dir
=.
2969 # Account for people who put trailing slashes in PATH elements.
2971 .
/ | .
// |
/cC
/* | \
2972 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2973 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2976 # OSF1 and SCO ODT 3.0 have their own names for install.
2977 # Don't use installbsd from OSF since it installs stuff as root
2979 for ac_prog
in ginstall scoinst
install; do
2980 for ac_exec_ext
in '' $ac_executable_extensions; do
2981 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2982 if test $ac_prog = install &&
2983 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2984 # AIX install. It has an incompatible calling convention.
2986 elif test $ac_prog = install &&
2987 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2988 # program-specific install script used by HP pwplus--don't use.
2991 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3003 if test "${ac_cv_path_install+set}" = set; then
3004 INSTALL
=$ac_cv_path_install
3006 # As a last resort, use the slow shell script. We don't cache a
3007 # path for INSTALL within a source directory, because that will
3008 # break other packages using the cache if that directory is
3009 # removed, or if the path is relative.
3010 INSTALL
=$ac_install_sh
3013 echo "$as_me:$LINENO: result: $INSTALL" >&5
3014 echo "${ECHO_T}$INSTALL" >&6
3016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3017 # It thinks the first close brace ends the variable substitution.
3018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3022 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3027 ac_cpp
='$CPP $CPPFLAGS'
3028 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3031 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3032 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3033 # On Suns, sometimes $CPP names a directory.
3034 if test -n "$CPP" && test -d "$CPP"; then
3037 if test -z "$CPP"; then
3038 if test "${ac_cv_prog_CPP+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 # Double quotes because CPP needs to be expanded
3042 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3045 for ac_c_preproc_warn_flag
in '' yes
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
3049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
3051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat >conftest.
$ac_ext <<_ACEOF
3056 cat confdefs.h
>>conftest.
$ac_ext
3057 cat >>conftest.
$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3060 # include <limits.h>
3062 # include <assert.h>
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3069 grep -v '^ *+' conftest.er1
>conftest.err
3071 cat conftest.err
>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev
/null
; then
3074 if test -s conftest.err
; then
3075 ac_cpp_err
=$ac_c_preproc_warn_flag
3076 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3083 if test -z "$ac_cpp_err"; then
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.
$ac_ext >&5
3089 # Broken: fails on valid input.
3092 rm -f conftest.err conftest.
$ac_ext
3094 # OK, works on sane cases. Now check whether non-existent headers
3095 # can be detected and how.
3096 cat >conftest.
$ac_ext <<_ACEOF
3099 cat confdefs.h
>>conftest.
$ac_ext
3100 cat >>conftest.
$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <ac_nonexistent.h>
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3107 grep -v '^ *+' conftest.er1
>conftest.err
3109 cat conftest.err
>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev
/null
; then
3112 if test -s conftest.err
; then
3113 ac_cpp_err
=$ac_c_preproc_warn_flag
3114 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3121 if test -z "$ac_cpp_err"; then
3122 # Broken: success on invalid input.
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.
$ac_ext >&5
3128 # Passes both tests.
3132 rm -f conftest.err conftest.
$ac_ext
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.err conftest.
$ac_ext
3137 if $ac_preproc_ok; then
3149 echo "$as_me:$LINENO: result: $CPP" >&5
3150 echo "${ECHO_T}$CPP" >&6
3152 for ac_c_preproc_warn_flag
in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.
$ac_ext <<_ACEOF
3163 cat confdefs.h
>>conftest.
$ac_ext
3164 cat >>conftest.
$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3167 # include <limits.h>
3169 # include <assert.h>
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3176 grep -v '^ *+' conftest.er1
>conftest.err
3178 cat conftest.err
>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev
/null
; then
3181 if test -s conftest.err
; then
3182 ac_cpp_err
=$ac_c_preproc_warn_flag
3183 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3190 if test -z "$ac_cpp_err"; then
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.
$ac_ext >&5
3196 # Broken: fails on valid input.
3199 rm -f conftest.err conftest.
$ac_ext
3201 # OK, works on sane cases. Now check whether non-existent headers
3202 # can be detected and how.
3203 cat >conftest.
$ac_ext <<_ACEOF
3206 cat confdefs.h
>>conftest.
$ac_ext
3207 cat >>conftest.
$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <ac_nonexistent.h>
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3214 grep -v '^ *+' conftest.er1
>conftest.err
3216 cat conftest.err
>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev
/null
; then
3219 if test -s conftest.err
; then
3220 ac_cpp_err
=$ac_c_preproc_warn_flag
3221 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3228 if test -z "$ac_cpp_err"; then
3229 # Broken: success on invalid input.
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.
$ac_ext >&5
3235 # Passes both tests.
3239 rm -f conftest.err conftest.
$ac_ext
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.
$ac_ext
3244 if $ac_preproc_ok; then
3247 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3248 See \`config.log' for more details." >&5
3249 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3250 See \`config.log' for more details." >&2;}
3251 { (exit 1); exit 1; }; }
3255 ac_cpp
='$CPP $CPPFLAGS'
3256 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3262 if test "x$ac_path_x_has_been_run" != xyes
; then
3263 echo "$as_me:$LINENO: checking for X" >&5
3264 echo $ECHO_N "checking for X... $ECHO_C" >&6
3266 ac_path_x_has_been_run
=yes
3268 # Check whether --with-x or --without-x was given.
3269 if test "${with_x+set}" = set; then
3273 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3274 if test "x$with_x" = xno
; then
3275 # The user explicitly disabled X.
3278 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3279 # Both variables are already set.
3282 if test "${ac_cv_have_x+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 # One or both of the vars are not set, and there is no cached value.
3286 ac_x_includes
=no ac_x_libraries
=no
3288 if mkdir conftest.dir
; then
3290 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3291 cat >Imakefile
<<'_ACEOF'
3293 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3295 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3296 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3297 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3298 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3299 for ac_extension
in a so sl
; do
3300 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3301 test -f $ac_im_libdir/libX11.
$ac_extension; then
3302 ac_im_usrlibdir
=$ac_im_libdir; break
3305 # Screen out bogus values from the imake configuration. They are
3306 # bogus both because they are the default anyway, and because
3307 # using them would break gcc on systems where it needs fixed includes.
3308 case $ac_im_incroot in
3310 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3312 case $ac_im_usrlibdir in
3314 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3321 # Standard set of common directories for X headers.
3322 # Check X11 before X11Rn because it is often a symlink to the current release.
3334 /usr/local/X11/include
3335 /usr/local/X11R6/include
3336 /usr/local/X11R5/include
3337 /usr/local/X11R4/include
3339 /usr/local/include/X11
3340 /usr/local/include/X11R6
3341 /usr/local/include/X11R5
3342 /usr/local/include/X11R4
3346 /usr/XFree86/include/X11
3350 /usr/unsupported/include
3352 /usr/local/x11r5/include
3353 /usr/lpp/Xamples/include
3355 /usr/openwin/include
3356 /usr/openwin/share/include'
3358 if test "$ac_x_includes" = no
; then
3359 # Guess where to find include files, by looking for a specified header file.
3360 # First, try using that file with no special directory specified.
3361 cat >conftest.
$ac_ext <<_ACEOF
3364 cat confdefs.h
>>conftest.
$ac_ext
3365 cat >>conftest.
$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #include <X11/Xlib.h>
3369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3372 grep -v '^ *+' conftest.er1
>conftest.err
3374 cat conftest.err
>&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev
/null
; then
3377 if test -s conftest.err
; then
3378 ac_cpp_err
=$ac_c_preproc_warn_flag
3379 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3386 if test -z "$ac_cpp_err"; then
3387 # We can compile using X headers with no special include directory.
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.
$ac_ext >&5
3393 for ac_dir
in $ac_x_header_dirs; do
3394 if test -r "$ac_dir/X11/Xlib.h"; then
3395 ac_x_includes
=$ac_dir
3400 rm -f conftest.err conftest.
$ac_ext
3401 fi # $ac_x_includes = no
3403 if test "$ac_x_libraries" = no
; then
3404 # Check for the libraries.
3405 # See if we find them without any special options.
3406 # Don't add to $LIBS permanently.
3409 cat >conftest.
$ac_ext <<_ACEOF
3412 cat confdefs.h
>>conftest.
$ac_ext
3413 cat >>conftest.
$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <X11/Xlib.h>
3424 rm -f conftest.
$ac_objext conftest
$ac_exeext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>conftest.er1
3428 grep -v '^ *+' conftest.er1
>conftest.err
3430 cat conftest.err
>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try
='test -s conftest$ac_exeext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3446 # We can link X programs with no special library path.
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.
$ac_ext >&5
3453 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3455 # Don't even attempt the hair of trying to link an X program!
3456 for ac_extension
in a so sl
; do
3457 if test -r $ac_dir/libX11.
$ac_extension; then
3458 ac_x_libraries
=$ac_dir
3464 rm -f conftest.err conftest.
$ac_objext \
3465 conftest
$ac_exeext conftest.
$ac_ext
3466 fi # $ac_x_libraries = no
3468 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3469 # Didn't find X anywhere. Cache the known absence of X.
3470 ac_cv_have_x
="have_x=no"
3472 # Record where we found X for the cache.
3473 ac_cv_have_x
="have_x=yes \
3474 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3479 eval "$ac_cv_have_x"
3482 if test "$have_x" != yes; then
3483 echo "$as_me:$LINENO: result: $have_x" >&5
3484 echo "${ECHO_T}$have_x" >&6
3487 # If each of the values was on the command line, it overrides each guess.
3488 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3489 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3490 # Update the cache value to reflect the command line values.
3491 ac_cv_have_x
="have_x=yes \
3492 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3493 # It might be that x_includes is empty (headers are found in the
3494 # standard search path. Then output the corresponding message
3495 ac_out_x_includes
=$x_includes
3496 test "x$x_includes" = x
&& ac_out_x_includes
="in standard search path"
3497 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3498 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3502 if test "$no_x" = yes; then
3503 # Not all programs may use this symbol, but it does not hurt to define it.
3505 cat >>confdefs.h
<<\_ACEOF
3506 #define X_DISPLAY_MISSING 1
3509 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3511 if test -n "$x_includes"; then
3512 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3515 # It would also be nice to do this for all -L options, not just this one.
3516 if test -n "$x_libraries"; then
3517 X_LIBS
="$X_LIBS -L$x_libraries"
3518 # For Solaris; some versions of Sun CC require a space after -R and
3519 # others require no space. Words are not sufficient . . . .
3520 case `(uname -sr) 2>/dev/null` in
3522 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3523 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3524 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3525 cat >conftest.
$ac_ext <<_ACEOF
3528 cat confdefs.h
>>conftest.
$ac_ext
3529 cat >>conftest.
$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3540 rm -f conftest.
$ac_objext conftest
$ac_exeext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3542 (eval $ac_link) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1
>conftest.err
3546 cat conftest.err
>&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try
='test -s conftest$ac_exeext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.
$ac_ext >&5
3568 rm -f conftest.err conftest.
$ac_objext \
3569 conftest
$ac_exeext conftest.
$ac_ext
3570 if test $ac_R_nospace = yes; then
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 X_LIBS
="$X_LIBS -R$x_libraries"
3575 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3576 cat >conftest.
$ac_ext <<_ACEOF
3579 cat confdefs.h
>>conftest.
$ac_ext
3580 cat >>conftest.
$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3591 rm -f conftest.
$ac_objext conftest
$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593 (eval $ac_link) 2>conftest.er1
3595 grep -v '^ *+' conftest.er1
>conftest.err
3597 cat conftest.err
>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try
='test -s conftest$ac_exeext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.
$ac_ext >&5
3619 rm -f conftest.err conftest.
$ac_objext \
3620 conftest
$ac_exeext conftest.
$ac_ext
3621 if test $ac_R_space = yes; then
3622 echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6
3624 X_LIBS
="$X_LIBS -R $x_libraries"
3626 echo "$as_me:$LINENO: result: neither works" >&5
3627 echo "${ECHO_T}neither works" >&6
3634 # Check for system-dependent libraries X programs must link with.
3635 # Do this before checking for the system-independent R6 libraries
3636 # (-lICE), since we may need -lsocket or whatever for X linking.
3638 if test "$ISC" = yes; then
3639 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3641 # Martyn Johnson says this is needed for Ultrix, if the X
3642 # libraries were built with DECnet support. And Karl Berry says
3643 # the Alpha needs dnet_stub (dnet does not exist).
3644 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
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 XOpenDisplay ();
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
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.
$ac_ext >&5
3693 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3694 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3695 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_check_lib_save_LIBS
=$LIBS
3700 cat >conftest.
$ac_ext <<_ACEOF
3703 cat confdefs.h
>>conftest.
$ac_ext
3704 cat >>conftest.
$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3707 /* Override any gcc2 internal prototype to avoid an error. */
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3722 rm -f conftest.
$ac_objext conftest
$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>conftest.er1
3726 grep -v '^ *+' conftest.er1
>conftest.err
3728 cat conftest.err
>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try
='test -s conftest$ac_exeext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_lib_dnet_dnet_ntoa
=yes
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.
$ac_ext >&5
3748 ac_cv_lib_dnet_dnet_ntoa
=no
3750 rm -f conftest.err conftest.
$ac_objext \
3751 conftest
$ac_exeext conftest.
$ac_ext
3752 LIBS
=$ac_check_lib_save_LIBS
3754 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3755 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3756 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3757 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3760 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3761 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3762 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3763 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 ac_check_lib_save_LIBS
=$LIBS
3767 LIBS
="-ldnet_stub $LIBS"
3768 cat >conftest.
$ac_ext <<_ACEOF
3771 cat confdefs.h
>>conftest.
$ac_ext
3772 cat >>conftest.
$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3775 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3790 rm -f conftest.
$ac_objext conftest
$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3794 grep -v '^ *+' conftest.er1
>conftest.err
3796 cat conftest.err
>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try
='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.
$ac_ext >&5
3816 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3818 rm -f conftest.err conftest.
$ac_objext \
3819 conftest
$ac_exeext conftest.
$ac_ext
3820 LIBS
=$ac_check_lib_save_LIBS
3822 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3823 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3824 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3825 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3830 rm -f conftest.err conftest.
$ac_objext \
3831 conftest
$ac_exeext conftest.
$ac_ext
3832 LIBS
="$ac_xsave_LIBS"
3834 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3835 # to get the SysV transport functions.
3836 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3838 # The nsl library prevents programs from opening the X display
3839 # on Irix 5.2, according to T.E. Dickey.
3840 # The functions gethostbyname, getservbyname, and inet_addr are
3841 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3842 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3843 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3844 if test "${ac_cv_func_gethostbyname+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 cat >conftest.
$ac_ext <<_ACEOF
3850 cat confdefs.h
>>conftest.
$ac_ext
3851 cat >>conftest.
$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3855 #define gethostbyname innocuous_gethostbyname
3857 /* System header to define __stub macros and hopefully few prototypes,
3858 which can conflict with char gethostbyname (); below.
3859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 <limits.h> exists even on freestanding compilers. */
3863 # include <limits.h>
3865 # include <assert.h>
3868 #undef gethostbyname
3870 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char gethostbyname ();
3878 /* The GNU C library defines this for functions which it implements
3879 to always fail with ENOSYS. Some functions are actually named
3880 something starting with __ and the normal name is an alias. */
3881 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3884 char (*f) () = gethostbyname;
3893 return f != gethostbyname;
3898 rm -f conftest.
$ac_objext conftest
$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>conftest.er1
3902 grep -v '^ *+' conftest.er1
>conftest.err
3904 cat conftest.err
>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try
='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_func_gethostbyname
=yes
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.
$ac_ext >&5
3924 ac_cv_func_gethostbyname
=no
3926 rm -f conftest.err conftest.
$ac_objext \
3927 conftest
$ac_exeext conftest.
$ac_ext
3929 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3930 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3932 if test $ac_cv_func_gethostbyname = no
; then
3933 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3934 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3935 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_check_lib_save_LIBS
=$LIBS
3940 cat >conftest.
$ac_ext <<_ACEOF
3943 cat confdefs.h
>>conftest.
$ac_ext
3944 cat >>conftest.
$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3953 char gethostbyname ();
3962 rm -f conftest.
$ac_objext conftest
$ac_exeext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964 (eval $ac_link) 2>conftest.er1
3966 grep -v '^ *+' conftest.er1
>conftest.err
3968 cat conftest.err
>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try
='test -s conftest$ac_exeext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_lib_nsl_gethostbyname
=yes
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.
$ac_ext >&5
3988 ac_cv_lib_nsl_gethostbyname
=no
3990 rm -f conftest.err conftest.
$ac_objext \
3991 conftest
$ac_exeext conftest.
$ac_ext
3992 LIBS
=$ac_check_lib_save_LIBS
3994 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3995 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3996 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3997 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4000 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4001 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4002 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4003 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 ac_check_lib_save_LIBS
=$LIBS
4008 cat >conftest.
$ac_ext <<_ACEOF
4011 cat confdefs.h
>>conftest.
$ac_ext
4012 cat >>conftest.
$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4015 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4021 char gethostbyname ();
4030 rm -f conftest.
$ac_objext conftest
$ac_exeext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4032 (eval $ac_link) 2>conftest.er1
4034 grep -v '^ *+' conftest.er1
>conftest.err
4036 cat conftest.err
>&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try
='test -s conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 ac_cv_lib_bsd_gethostbyname
=yes
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.
$ac_ext >&5
4056 ac_cv_lib_bsd_gethostbyname
=no
4058 rm -f conftest.err conftest.
$ac_objext \
4059 conftest
$ac_exeext conftest.
$ac_ext
4060 LIBS
=$ac_check_lib_save_LIBS
4062 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4063 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4064 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4065 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
4071 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4072 # socket/setsockopt and other routines are undefined under SCO ODT
4073 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4074 # on later versions), says Simon Leinen: it contains gethostby*
4075 # variants that don't use the name server (or something). -lsocket
4076 # must be given before -lnsl if both are needed. We assume that
4077 # if connect needs -lnsl, so does gethostbyname.
4078 echo "$as_me:$LINENO: checking for connect" >&5
4079 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4080 if test "${ac_cv_func_connect+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4083 cat >conftest.
$ac_ext <<_ACEOF
4086 cat confdefs.h
>>conftest.
$ac_ext
4087 cat >>conftest.
$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4091 #define connect innocuous_connect
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char connect (); below.
4095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 <limits.h> exists even on freestanding compilers. */
4099 # include <limits.h>
4101 # include <assert.h>
4106 /* Override any gcc2 internal prototype to avoid an error. */
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4114 /* The GNU C library defines this for functions which it implements
4115 to always fail with ENOSYS. Some functions are actually named
4116 something starting with __ and the normal name is an alias. */
4117 #if defined (__stub_connect) || defined (__stub___connect)
4120 char (*f) () = connect;
4129 return f != connect;
4134 rm -f conftest.
$ac_objext conftest
$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>conftest.er1
4138 grep -v '^ *+' conftest.er1
>conftest.err
4140 cat conftest.err
>&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try
='test -s conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_func_connect
=yes
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.
$ac_ext >&5
4160 ac_cv_func_connect
=no
4162 rm -f conftest.err conftest.
$ac_objext \
4163 conftest
$ac_exeext conftest.
$ac_ext
4165 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4166 echo "${ECHO_T}$ac_cv_func_connect" >&6
4168 if test $ac_cv_func_connect = no
; then
4169 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4170 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4171 if test "${ac_cv_lib_socket_connect+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 ac_check_lib_save_LIBS
=$LIBS
4175 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4176 cat >conftest.
$ac_ext <<_ACEOF
4179 cat confdefs.h
>>conftest.
$ac_ext
4180 cat >>conftest.
$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4198 rm -f conftest.
$ac_objext conftest
$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>conftest.er1
4202 grep -v '^ *+' conftest.er1
>conftest.err
4204 cat conftest.err
>&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; } &&
4213 { ac_try
='test -s conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_lib_socket_connect
=yes
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.
$ac_ext >&5
4224 ac_cv_lib_socket_connect
=no
4226 rm -f conftest.err conftest.
$ac_objext \
4227 conftest
$ac_exeext conftest.
$ac_ext
4228 LIBS
=$ac_check_lib_save_LIBS
4230 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4231 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4232 if test $ac_cv_lib_socket_connect = yes; then
4233 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
4238 # Guillermo Gomez says -lposix is necessary on A/UX.
4239 echo "$as_me:$LINENO: checking for remove" >&5
4240 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4241 if test "${ac_cv_func_remove+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4252 #define remove innocuous_remove
4254 /* System header to define __stub macros and hopefully few prototypes,
4255 which can conflict with char remove (); below.
4256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 <limits.h> exists even on freestanding compilers. */
4260 # include <limits.h>
4262 # include <assert.h>
4267 /* Override any gcc2 internal prototype to avoid an error. */
4272 /* We use char because int might match the return type of a gcc2
4273 builtin and then its argument prototype would still apply. */
4275 /* The GNU C library defines this for functions which it implements
4276 to always fail with ENOSYS. Some functions are actually named
4277 something starting with __ and the normal name is an alias. */
4278 #if defined (__stub_remove) || defined (__stub___remove)
4281 char (*f) () = remove;
4295 rm -f conftest.
$ac_objext conftest
$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>conftest.er1
4299 grep -v '^ *+' conftest.er1
>conftest.err
4301 cat conftest.err
>&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try
='test -s conftest$ac_exeext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 ac_cv_func_remove
=yes
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.
$ac_ext >&5
4321 ac_cv_func_remove
=no
4323 rm -f conftest.err conftest.
$ac_objext \
4324 conftest
$ac_exeext conftest.
$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4327 echo "${ECHO_T}$ac_cv_func_remove" >&6
4329 if test $ac_cv_func_remove = no
; then
4330 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4331 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4332 if test "${ac_cv_lib_posix_remove+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_check_lib_save_LIBS
=$LIBS
4336 LIBS
="-lposix $LIBS"
4337 cat >conftest.
$ac_ext <<_ACEOF
4340 cat confdefs.h
>>conftest.
$ac_ext
4341 cat >>conftest.
$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4344 /* Override any gcc2 internal prototype to avoid an error. */
4348 /* We use char because int might match the return type of a gcc2
4349 builtin and then its argument prototype would still apply. */
4359 rm -f conftest.
$ac_objext conftest
$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361 (eval $ac_link) 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try
='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_lib_posix_remove
=yes
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.
$ac_ext >&5
4385 ac_cv_lib_posix_remove
=no
4387 rm -f conftest.err conftest.
$ac_objext \
4388 conftest
$ac_exeext conftest.
$ac_ext
4389 LIBS
=$ac_check_lib_save_LIBS
4391 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4392 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4393 if test $ac_cv_lib_posix_remove = yes; then
4394 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4399 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4400 echo "$as_me:$LINENO: checking for shmat" >&5
4401 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4402 if test "${ac_cv_func_shmat+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 cat >conftest.
$ac_ext <<_ACEOF
4408 cat confdefs.h
>>conftest.
$ac_ext
4409 cat >>conftest.
$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4413 #define shmat innocuous_shmat
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char shmat (); below.
4417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418 <limits.h> exists even on freestanding compilers. */
4421 # include <limits.h>
4423 # include <assert.h>
4428 /* Override any gcc2 internal prototype to avoid an error. */
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4436 /* The GNU C library defines this for functions which it implements
4437 to always fail with ENOSYS. Some functions are actually named
4438 something starting with __ and the normal name is an alias. */
4439 #if defined (__stub_shmat) || defined (__stub___shmat)
4442 char (*f) () = shmat;
4456 rm -f conftest.
$ac_objext conftest
$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>conftest.er1
4460 grep -v '^ *+' conftest.er1
>conftest.err
4462 cat conftest.err
>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try
='test -s conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_func_shmat
=yes
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.
$ac_ext >&5
4484 rm -f conftest.err conftest.
$ac_objext \
4485 conftest
$ac_exeext conftest.
$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4488 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4490 if test $ac_cv_func_shmat = no
; then
4491 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4492 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4493 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 ac_check_lib_save_LIBS
=$LIBS
4498 cat >conftest.
$ac_ext <<_ACEOF
4501 cat confdefs.h
>>conftest.
$ac_ext
4502 cat >>conftest.
$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4505 /* Override any gcc2 internal prototype to avoid an error. */
4509 /* We use char because int might match the return type of a gcc2
4510 builtin and then its argument prototype would still apply. */
4520 rm -f conftest.
$ac_objext conftest
$ac_exeext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522 (eval $ac_link) 2>conftest.er1
4524 grep -v '^ *+' conftest.er1
>conftest.err
4526 cat conftest.err
>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try
='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_cv_lib_ipc_shmat
=yes
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.
$ac_ext >&5
4546 ac_cv_lib_ipc_shmat
=no
4548 rm -f conftest.err conftest.
$ac_objext \
4549 conftest
$ac_exeext conftest.
$ac_ext
4550 LIBS
=$ac_check_lib_save_LIBS
4552 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4553 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4554 if test $ac_cv_lib_ipc_shmat = yes; then
4555 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4561 # Check for libraries that X11R6 Xt/Xaw programs need.
4562 ac_save_LDFLAGS
=$LDFLAGS
4563 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4564 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4565 # check for ICE first), but we must link in the order -lSM -lICE or
4566 # we get undefined symbols. So assume we have SM if we have ICE.
4567 # These have to be linked with before -lX11, unlike the other
4568 # libraries we check for below, so use a different variable.
4569 # John Interrante, Karl Berry
4570 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4571 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4572 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 ac_check_lib_save_LIBS
=$LIBS
4576 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4577 cat >conftest.
$ac_ext <<_ACEOF
4580 cat confdefs.h
>>conftest.
$ac_ext
4581 cat >>conftest.
$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4584 /* Override any gcc2 internal prototype to avoid an error. */
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4590 char IceConnectionNumber ();
4594 IceConnectionNumber ();
4599 rm -f conftest.
$ac_objext conftest
$ac_exeext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601 (eval $ac_link) 2>conftest.er1
4603 grep -v '^ *+' conftest.er1
>conftest.err
4605 cat conftest.err
>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try
='test -s conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_lib_ICE_IceConnectionNumber
=yes
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.
$ac_ext >&5
4625 ac_cv_lib_ICE_IceConnectionNumber
=no
4627 rm -f conftest.err conftest.
$ac_objext \
4628 conftest
$ac_exeext conftest.
$ac_ext
4629 LIBS
=$ac_check_lib_save_LIBS
4631 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4632 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4633 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4634 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4637 LDFLAGS
=$ac_save_LDFLAGS
4641 if test "x$no_x" != xyes
; then
4642 CFLAGS
="$CFLAGS $X_CFLAGS"
4643 CXXFLAGS
="$CXXFLAGS $X_CFLAGS"
4644 LIBS
="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
4648 echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5
4649 echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6
4650 if test "${ac_cv_lib_vga_vga_init+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 ac_check_lib_save_LIBS
=$LIBS
4655 cat >conftest.
$ac_ext <<_ACEOF
4658 cat confdefs.h
>>conftest.
$ac_ext
4659 cat >>conftest.
$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4662 /* Override any gcc2 internal prototype to avoid an error. */
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4677 rm -f conftest.
$ac_objext conftest
$ac_exeext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4679 (eval $ac_link) 2>conftest.er1
4681 grep -v '^ *+' conftest.er1
>conftest.err
4683 cat conftest.err
>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try
='test -s conftest$ac_exeext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_lib_vga_vga_init
=yes
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.
$ac_ext >&5
4703 ac_cv_lib_vga_vga_init
=no
4705 rm -f conftest.err conftest.
$ac_objext \
4706 conftest
$ac_exeext conftest.
$ac_ext
4707 LIBS
=$ac_check_lib_save_LIBS
4709 echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5
4710 echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6
4711 if test $ac_cv_lib_vga_vga_init = yes; then
4712 cat >>confdefs.h
<<_ACEOF
4713 #define HAVE_LIBVGA 1
4723 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
4724 if test "${with_sdl_prefix+set}" = set; then
4725 withval
="$with_sdl_prefix"
4726 sdl_prefix
="$withval"
4731 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
4732 if test "${with_sdl_exec_prefix+set}" = set; then
4733 withval
="$with_sdl_exec_prefix"
4734 sdl_exec_prefix
="$withval"
4738 # Check whether --enable-sdltest or --disable-sdltest was given.
4739 if test "${enable_sdltest+set}" = set; then
4740 enableval
="$enable_sdltest"
4746 if test x
$sdl_exec_prefix != x
; then
4747 sdl_args
="$sdl_args --exec-prefix=$sdl_exec_prefix"
4748 if test x
${SDL_CONFIG+set} != xset
; then
4749 SDL_CONFIG
=$sdl_exec_prefix/bin
/sdl-config
4752 if test x
$sdl_prefix != x
; then
4753 sdl_args
="$sdl_args --prefix=$sdl_prefix"
4754 if test x
${SDL_CONFIG+set} != xset
; then
4755 SDL_CONFIG
=$sdl_prefix/bin
/sdl-config
4760 PATH
="$prefix/bin:$prefix/usr/bin:$PATH"
4761 # Extract the first word of "sdl-config", so it can be a program name with args.
4762 set dummy sdl-config
; ac_word
=$2
4763 echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 ac_cv_path_SDL_CONFIG
="$SDL_CONFIG" # Let the user override the test with a path.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_path_SDL_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG
="no"
4791 SDL_CONFIG
=$ac_cv_path_SDL_CONFIG
4793 if test -n "$SDL_CONFIG"; then
4794 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4795 echo "${ECHO_T}$SDL_CONFIG" >&6
4797 echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4801 min_sdl_version
=$SDL_VERSION
4802 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4803 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
4805 if test "$SDL_CONFIG" = "no" ; then
4808 SDL_CFLAGS
=`$SDL_CONFIG $sdlconf_args --cflags`
4809 SDL_LIBS
=`$SDL_CONFIG $sdlconf_args --libs`
4811 sdl_major_version
=`$SDL_CONFIG $sdl_args --version | \
4812 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4813 sdl_minor_version
=`$SDL_CONFIG $sdl_args --version | \
4814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4815 sdl_micro_version
=`$SDL_CONFIG $sdl_config_args --version | \
4816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4817 if test "x$enable_sdltest" = "xyes" ; then
4818 ac_save_CFLAGS
="$CFLAGS"
4819 ac_save_CXXFLAGS
="$CXXFLAGS"
4820 ac_save_LIBS
="$LIBS"
4821 CFLAGS
="$CFLAGS $SDL_CFLAGS"
4822 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
4823 LIBS
="$LIBS $SDL_LIBS"
4825 if test "$cross_compiling" = yes; then
4826 echo $ac_n "cross compiling; assumed OK... $ac_c"
4828 cat >conftest.
$ac_ext <<_ACEOF
4831 cat confdefs.h
>>conftest.
$ac_ext
4832 cat >>conftest.
$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4841 my_strdup (char *str)
4847 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4848 strcpy (new_str, str);
4856 int main (int argc, char *argv[])
4858 int major, minor, micro;
4861 /* This hangs on some systems (?)
4862 system ("touch conf.sdltest");
4864 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4866 /* HP/UX 9 (%@#!) writes to sscanf strings */
4867 tmp_version = my_strdup("$min_sdl_version");
4868 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
4869 printf("%s, bad version string\n", "$min_sdl_version");
4873 if (($sdl_major_version > major) ||
4874 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4875 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4881 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4882 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4883 printf("*** best to upgrade to the required version.\n");
4884 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4885 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4886 printf("*** config.cache before re-running configure\n");
4893 rm -f conftest
$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4906 echo "$as_me: program exited with status $ac_status" >&5
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.
$ac_ext >&5
4913 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4915 CFLAGS
="$ac_save_CFLAGS"
4916 LIBS
="$ac_save_LIBS"
4919 if test "x$no_sdl" = x
; then
4920 echo "$as_me:$LINENO: result: yes" >&5
4921 echo "${ECHO_T}yes" >&6
4922 cat >>confdefs.h
<<\_ACEOF
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 if test "$SDL_CONFIG" = "no" ; then
4930 echo "*** The sdl-config script installed by SDL could not be found"
4931 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4932 echo "*** your path, or set the SDL_CONFIG environment variable to the"
4933 echo "*** full path to sdl-config."
4935 if test -f conf.sdltest
; then
4938 echo "*** Could not run SDL test program, checking why..."
4939 CFLAGS
="$CFLAGS $SDL_CFLAGS"
4940 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
4941 LIBS
="$LIBS $SDL_LIBS"
4942 cat >conftest.
$ac_ext <<_ACEOF
4945 cat confdefs.h
>>conftest.
$ac_ext
4946 cat >>conftest.
$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4952 int main(int argc, char *argv[])
4955 #define main K_and_R_C_main
4965 rm -f conftest.
$ac_objext conftest
$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4969 grep -v '^ *+' conftest.er1
>conftest.err
4971 cat conftest.err
>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try
='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 echo "*** The test program compiled, but did not run. This usually means"
4987 echo "*** that the run-time linker is not finding SDL or finding the wrong"
4988 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4989 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4990 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4991 echo "*** is required on your system"
4993 echo "*** If you have an old version installed, it is best to remove it, although"
4994 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.
$ac_ext >&5
4999 echo "*** The test program failed to compile or link. See the file config.log for the"
5000 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
5001 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
5002 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
5004 rm -f conftest.err conftest.
$ac_objext \
5005 conftest
$ac_exeext conftest.
$ac_ext
5006 CFLAGS
="$ac_save_CFLAGS"
5007 CXXFLAGS
="$ac_save_CXXFLAGS"
5008 LIBS
="$ac_save_LIBS"
5021 CFLAGS
="$CFLAGS $SDL_CFLAGS"
5022 CXXFLAGS
="$CXXFLAGS $SDL_CFLAGS"
5023 LIBS
="$LIBS $SDL_LIBS"
5026 echo "$as_me:$LINENO: checking for esd_record_stream_fallback in -lesd" >&5
5027 echo $ECHO_N "checking for esd_record_stream_fallback in -lesd... $ECHO_C" >&6
5028 if test "${ac_cv_lib_esd_esd_record_stream_fallback+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 ac_check_lib_save_LIBS
=$LIBS
5033 cat >conftest.
$ac_ext <<_ACEOF
5036 cat confdefs.h
>>conftest.
$ac_ext
5037 cat >>conftest.
$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5046 char esd_record_stream_fallback ();
5050 esd_record_stream_fallback ();
5055 rm -f conftest.
$ac_objext conftest
$ac_exeext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5057 (eval $ac_link) 2>conftest.er1
5059 grep -v '^ *+' conftest.er1
>conftest.err
5061 cat conftest.err
>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try
='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_cv_lib_esd_esd_record_stream_fallback
=yes
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.
$ac_ext >&5
5081 ac_cv_lib_esd_esd_record_stream_fallback
=no
5083 rm -f conftest.err conftest.
$ac_objext \
5084 conftest
$ac_exeext conftest.
$ac_ext
5085 LIBS
=$ac_check_lib_save_LIBS
5087 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_record_stream_fallback" >&5
5088 echo "${ECHO_T}$ac_cv_lib_esd_esd_record_stream_fallback" >&6
5089 if test $ac_cv_lib_esd_esd_record_stream_fallback = yes; then
5090 cat >>confdefs.h
<<_ACEOF
5091 #define HAVE_LIBESD 1
5099 ac_config_files
="$ac_config_files Makefile"
5100 cat >confcache
<<\_ACEOF
5101 # This file is a shell script that caches the results of configure
5102 # tests run on this system so they can be shared between configure
5103 # scripts and configure runs, see configure's option --config-cache.
5104 # It is not useful on other systems. If it contains results you don't
5105 # want to keep, you may remove or edit it.
5107 # config.status only pays attention to the cache file if you give it
5108 # the --recheck option to rerun configure.
5110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5116 # The following way of writing the cache mishandles newlines in values,
5117 # but we know of no workaround that is simple, portable, and efficient.
5118 # So, don't put newlines in cache variables' values.
5119 # Ultrix sh set writes to stderr and can't be redirected directly,
5120 # and sets the high bit in the cache file unless we assign to the vars.
5123 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5125 # `set' does not quote correctly, so add quotes (double-quote
5126 # substitution turns \\\\ into \\, and sed turns \\ into \).
5129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5132 # `set' quotes correctly as required by POSIX, so do not add quotes.
5134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5143 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5145 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
5146 if test -w $cache_file; then
5147 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5148 cat confcache
>$cache_file
5150 echo "not updating unwritable cache $cache_file"
5155 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5156 # Let make expand exec_prefix.
5157 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5161 # trailing colons and then remove the whole line if VPATH becomes empty
5162 # (actually we leave an empty line to preserve line numbers).
5163 if test "x$srcdir" = x.
; then
5164 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
5165 s/:*\$(srcdir):*/:/;
5166 s/:*\${srcdir}:*/:/;
5168 s/^\([^=]*=[ ]*\):*/\1/;
5174 DEFS
=-DHAVE_CONFIG_H
5178 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5179 # 1. Remove the extension, and $U if already installed.
5180 ac_i
=`echo "$ac_i" |
5181 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5183 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
5184 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
5188 LTLIBOBJS
=$ac_ltlibobjs
5192 : ${CONFIG_STATUS=./config.status}
5193 ac_clean_files_save
=$ac_clean_files
5194 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5195 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5196 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5197 cat >$CONFIG_STATUS <<_ACEOF
5199 # Generated by $as_me.
5200 # Run this file to recreate the current configuration.
5201 # Compiler output produced by configure, useful for debugging
5202 # configure, is in config.log if it exists.
5207 SHELL=\${CONFIG_SHELL-$SHELL}
5210 cat >>$CONFIG_STATUS <<\_ACEOF
5211 ## --------------------- ##
5212 ## M4sh Initialization. ##
5213 ## --------------------- ##
5215 # Be Bourne compatible
5216 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
5219 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5220 # is contrary to our usage. Disable this feature.
5221 alias -g '${1+"$@"}'='"$@"'
5222 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
5225 DUALCASE
=1; export DUALCASE
# for MKS sh
5227 # Support unset when possible.
5228 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
5235 # Work around bugs in pre-3.0 UWIN ksh.
5236 $as_unset ENV MAIL MAILPATH
5243 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5244 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5245 LC_TELEPHONE LC_TIME
5247 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5248 eval $as_var=C
; export $as_var
5254 # Required to use basename.
5255 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5261 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
5262 as_basename
=basename
5268 # Name of the executable.
5269 as_me
=`$as_basename "$0" ||
5270 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5271 X"$0" : 'X\(//\)$' \| \
5272 X"$0" : 'X\(/\)$' \| \
5273 . : '\(.\)' 2>/dev/null ||
5275 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5276 /^X\/\(\/\/\)$/{ s//\1/; q; }
5277 /^X\/\(\/\).*/{ s//\1/; q; }
5281 # PATH needs CR, and LINENO needs CR and PATH.
5282 # Avoid depending upon Character Ranges.
5283 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5284 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5285 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5286 as_cr_digits
='0123456789'
5287 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5289 # The user is always right.
5290 if test "${PATH_SEPARATOR+set}" != set; then
5291 echo "#! /bin/sh" >conf$$.sh
5292 echo "exit 0" >>conf$$.sh
5294 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5305 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
5306 test "x$as_lineno_1" != "x$as_lineno_2" &&
5307 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
5308 # Find who we are. Look in the path if we contain no path at all
5311 *[\\/]* ) as_myself
=$0 ;;
5312 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir
=.
5317 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
5322 # We did not find ourselves, most probably we were run as `sh COMMAND'
5323 # in which case we are not to be found in the path.
5324 if test "x$as_myself" = x
; then
5327 if test ! -f "$as_myself"; then
5328 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5329 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5330 { (exit 1); exit 1; }; }
5332 case $CONFIG_SHELL in
5334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
5338 test -z "$as_dir" && as_dir
=.
5339 for as_base
in sh bash ksh sh5
; do
5342 if ("$as_dir/$as_base" -c '
5345 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5346 test "x$as_lineno_1" != "x$as_lineno_2" &&
5347 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
5348 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
5349 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
5350 CONFIG_SHELL
=$as_dir/$as_base
5352 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5361 # uniformly replaced by the line number. The first 'sed' inserts a
5362 # line-number line before each line; the second 'sed' does the real
5363 # work. The second script uses 'N' to pair each line-number line
5364 # with the numbered line, and appends trailing '-' during
5365 # substitution so that $LINENO is not a special case at line end.
5366 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5367 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5368 sed '=' <$as_myself |
5373 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5376 s,^['$as_cr_digits']*\n,,
5378 chmod +x
$as_me.lineno ||
5379 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5380 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5381 { (exit 1); exit 1; }; }
5383 # Don't try to exec as it changes $[0], causing all sort of problems
5384 # (the dirname of $[0] is not the place where we might find the
5385 # original and so on. Autoconf is especially sensible to this).
5387 # Exit status is that of the last command.
5392 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5393 *c
*,-n*) ECHO_N
= ECHO_C
='
5395 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
5396 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
5399 if expr a
: '\(a\)' >/dev
/null
2>&1; then
5405 rm -f conf$$ conf$$.exe conf$$.
file
5407 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
5408 # We could just check for DJGPP; but this test a) works b) is more generic
5409 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5410 if test -f conf$$.exe
; then
5411 # Don't use ln at all; we don't have any links
5416 elif ln conf$$.
file conf$$
2>/dev
/null
; then
5421 rm -f conf$$ conf$$.exe conf$$.
file
5423 if mkdir
-p .
2>/dev
/null
; then
5426 test -d .
/-p && rmdir .
/-p
5430 as_executable_p
="test -f"
5432 # Sed expression to map a string onto a valid CPP name.
5433 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5435 # Sed expression to map a string onto a valid variable name.
5436 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5440 # We need space, tab and new line, in precisely that order.
5450 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5451 # report actual input values of CONFIG_FILES etc. instead of their
5452 # values after options handling. Logging --version etc. is OK.
5456 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5457 ## Running $as_me. ##
5462 This file was extended by $as_me, which was
5463 generated by GNU Autoconf 2.59. Invocation command line was
5465 CONFIG_FILES = $CONFIG_FILES
5466 CONFIG_HEADERS = $CONFIG_HEADERS
5467 CONFIG_LINKS = $CONFIG_LINKS
5468 CONFIG_COMMANDS = $CONFIG_COMMANDS
5472 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5476 # Files that config.status was made for.
5477 if test -n "$ac_config_files"; then
5478 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5481 if test -n "$ac_config_headers"; then
5482 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5485 if test -n "$ac_config_links"; then
5486 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5489 if test -n "$ac_config_commands"; then
5490 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5493 cat >>$CONFIG_STATUS <<\_ACEOF
5496 \`$as_me' instantiates files from templates according to the
5497 current configuration.
5499 Usage: $0 [OPTIONS] [FILE]...
5501 -h, --help print this help, then exit
5502 -V, --version print version number, then exit
5503 -q, --quiet do not print progress messages
5504 -d, --debug don't remove temporary files
5505 --recheck update $as_me by reconfiguring in the same conditions
5506 --file=FILE[:TEMPLATE]
5507 instantiate the configuration file FILE
5508 --header=FILE[:TEMPLATE]
5509 instantiate the configuration header FILE
5511 Configuration files:
5514 Configuration headers:
5517 Configuration commands:
5520 Report bugs to <bug-autoconf@gnu.org>."
5523 cat >>$CONFIG_STATUS <<_ACEOF
5526 configured by $0, generated by GNU Autoconf 2.59,
5527 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5529 Copyright (C) 2003 Free Software Foundation, Inc.
5530 This config.status script is free software; the Free Software Foundation
5531 gives unlimited permission to copy, distribute and modify it."
5536 cat >>$CONFIG_STATUS <<\_ACEOF
5537 # If no file are specified by the user, then we need to provide default
5538 # value. By we need to know if files were specified by the user.
5544 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
5545 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
5553 *) # This is not an option, so the user has probably given explicit
5556 ac_need_defaults
=false
;;
5560 # Handling of the options.
5562 cat >>$CONFIG_STATUS <<\_ACEOF
5563 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5565 --version |
--vers* |
-V )
5566 echo "$ac_cs_version"; exit 0 ;;
5568 # Conflict between --help and --header
5569 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5570 Try \`$0 --help' for more information." >&5
5571 echo "$as_me: error: ambiguous option: $1
5572 Try \`$0 --help' for more information." >&2;}
5573 { (exit 1); exit 1; }; };;
5574 --help |
--hel |
-h )
5575 echo "$ac_cs_usage"; exit 0 ;;
5576 --debug |
--d* |
-d )
5578 --file |
--fil |
--fi |
--f )
5580 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
5581 ac_need_defaults
=false
;;
5582 --header |
--heade |
--head |
--hea )
5584 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
5585 ac_need_defaults
=false
;;
5586 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5587 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5591 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5592 Try \`$0 --help' for more information." >&5
5593 echo "$as_me: error: unrecognized option: $1
5594 Try \`$0 --help' for more information." >&2;}
5595 { (exit 1); exit 1; }; } ;;
5597 *) ac_config_targets
="$ac_config_targets $1" ;;
5603 ac_configure_extra_args
=
5605 if $ac_cs_silent; then
5607 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5611 cat >>$CONFIG_STATUS <<_ACEOF
5612 if \$ac_cs_recheck; then
5613 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5614 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5619 cat >>$CONFIG_STATUS <<_ACEOF
5621 # INIT-COMMANDS section.
5630 cat >>$CONFIG_STATUS <<\_ACEOF
5631 for ac_config_target
in $ac_config_targets
5633 case "$ac_config_target" in
5634 # Handling of arguments.
5635 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5636 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
5637 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
5638 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5639 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5640 { (exit 1); exit 1; }; };;
5644 # If the user did not use the arguments to specify the items to instantiate,
5645 # then the envvar interface is used. Set only those that are not.
5646 # We use the long form for the default assignment because of an extremely
5647 # bizarre bug on SunOS 4.1.3.
5648 if $ac_need_defaults; then
5649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5654 # Have a temporary directory for convenience. Make it in the build tree
5655 # simply because there is no reason to put it here, and in addition,
5656 # creating and moving files from /tmp can sometimes cause problems.
5657 # Create a temporary directory, and hook for its removal unless debugging.
5660 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5661 trap '{ (exit 1); exit 1; }' 1 2 13 15
5664 # Create a (secure) tmp directory for tmp files.
5667 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5668 test -n "$tmp" && test -d "$tmp"
5671 tmp
=.
/confstat$$
-$RANDOM
5672 (umask 077 && mkdir
$tmp)
5675 echo "$me: cannot create a temporary directory in ." >&2
5676 { (exit 1); exit 1; }
5681 cat >>$CONFIG_STATUS <<_ACEOF
5684 # CONFIG_FILES section.
5687 # No need to generate the scripts if there are no CONFIG_FILES.
5688 # This happens for instance when ./config.status config.h
5689 if test -n "\$CONFIG_FILES"; then
5690 # Protect against being on the right side of a sed subst in config.status.
5691 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5692 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5693 s,@SHELL@,$SHELL,;t t
5694 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5695 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5696 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5697 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5698 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5699 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5700 s,@exec_prefix@,$exec_prefix,;t t
5701 s,@prefix@,$prefix,;t t
5702 s,@program_transform_name@,$program_transform_name,;t t
5703 s,@bindir@,$bindir,;t t
5704 s,@sbindir@,$sbindir,;t t
5705 s,@libexecdir@,$libexecdir,;t t
5706 s,@datadir@,$datadir,;t t
5707 s,@sysconfdir@,$sysconfdir,;t t
5708 s,@sharedstatedir@,$sharedstatedir,;t t
5709 s,@localstatedir@,$localstatedir,;t t
5710 s,@libdir@,$libdir,;t t
5711 s,@includedir@,$includedir,;t t
5712 s,@oldincludedir@,$oldincludedir,;t t
5713 s,@infodir@,$infodir,;t t
5714 s,@mandir@,$mandir,;t t
5715 s,@build_alias@,$build_alias,;t t
5716 s,@host_alias@,$host_alias,;t t
5717 s,@target_alias@,$target_alias,;t t
5719 s,@ECHO_C@,$ECHO_C,;t t
5720 s,@ECHO_N@,$ECHO_N,;t t
5721 s,@ECHO_T@,$ECHO_T,;t t
5723 s,@build@,$build,;t t
5724 s,@build_cpu@,$build_cpu,;t t
5725 s,@build_vendor@,$build_vendor,;t t
5726 s,@build_os@,$build_os,;t t
5728 s,@host_cpu@,$host_cpu,;t t
5729 s,@host_vendor@,$host_vendor,;t t
5730 s,@host_os@,$host_os,;t t
5731 s,@target@,$target,;t t
5732 s,@target_cpu@,$target_cpu,;t t
5733 s,@target_vendor@,$target_vendor,;t t
5734 s,@target_os@,$target_os,;t t
5735 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5736 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5737 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5738 s,@PACKAGE@,$PACKAGE,;t t
5739 s,@VERSION@,$VERSION,;t t
5740 s,@ACLOCAL@,$ACLOCAL,;t t
5741 s,@AUTOCONF@,$AUTOCONF,;t t
5742 s,@AUTOMAKE@,$AUTOMAKE,;t t
5743 s,@AUTOHEADER@,$AUTOHEADER,;t t
5744 s,@MAKEINFO@,$MAKEINFO,;t t
5745 s,@SET_MAKE@,$SET_MAKE,;t t
5747 s,@CFLAGS@,$CFLAGS,;t t
5748 s,@LDFLAGS@,$LDFLAGS,;t t
5749 s,@CPPFLAGS@,$CPPFLAGS,;t t
5750 s,@ac_ct_CC@,$ac_ct_CC,;t t
5751 s,@EXEEXT@,$EXEEXT,;t t
5752 s,@OBJEXT@,$OBJEXT,;t t
5754 s,@CXXFLAGS@,$CXXFLAGS,;t t
5755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5757 s,@X_CFLAGS@,$X_CFLAGS,;t t
5758 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5759 s,@X_LIBS@,$X_LIBS,;t t
5760 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5761 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
5762 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
5763 s,@SDL_LIBS@,$SDL_LIBS,;t t
5764 s,@LIBOBJS@,$LIBOBJS,;t t
5765 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5770 cat >>$CONFIG_STATUS <<\_ACEOF
5771 # Split the substitutions into bite-sized pieces for seds with
5772 # small command number limits, like on Digital OSF/1 and HP-UX.
5774 ac_sed_frag
=1 # Number of current file.
5775 ac_beg
=1 # First line for current file.
5776 ac_end
=$ac_max_sed_lines # Line after last line for current file.
5779 while $ac_more_lines; do
5780 if test $ac_beg -gt 1; then
5781 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5783 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
5785 if test ! -s $tmp/subs.frag
; then
5788 # The purpose of the label and of the branching condition is to
5789 # speed up the sed processing (if there are no `@' at all, there
5790 # is no need to browse any of the substitutions).
5791 # These are the two extra sed commands mentioned above.
5793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
5794 if test -z "$ac_sed_cmds"; then
5795 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
5797 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5799 ac_sed_frag
=`expr $ac_sed_frag + 1`
5801 ac_end
=`expr $ac_end + $ac_max_sed_lines`
5804 if test -z "$ac_sed_cmds"; then
5807 fi # test -n "$CONFIG_FILES"
5810 cat >>$CONFIG_STATUS <<\_ACEOF
5811 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
5812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5814 - |
*:- |
*:-:* ) # input from stdin
5816 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5817 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5818 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
5819 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
5820 * ) ac_file_in
=$ac_file.
in ;;
5823 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5824 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
5825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5826 X"$ac_file" : 'X\(//\)[^/]' \| \
5827 X"$ac_file" : 'X\(//\)$' \| \
5828 X"$ac_file" : 'X\(/\)' \| \
5829 . : '\(.\)' 2>/dev/null ||
5831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5833 /^X\(\/\/\)$/{ s//\1/; q; }
5834 /^X\(\/\).*/{ s//\1/; q; }
5836 { if $as_mkdir_p; then
5841 while test ! -d "$as_dir"; do
5842 as_dirs
="$as_dir $as_dirs"
5843 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
5844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5845 X"$as_dir" : 'X\(//\)[^/]' \| \
5846 X"$as_dir" : 'X\(//\)$' \| \
5847 X"$as_dir" : 'X\(/\)' \| \
5848 . : '\(.\)' 2>/dev/null ||
5850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5852 /^X\(\/\/\)$/{ s//\1/; q; }
5853 /^X\(\/\).*/{ s//\1/; q; }
5856 test ! -n "$as_dirs" || mkdir
$as_dirs
5857 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5859 { (exit 1); exit 1; }; }; }
5863 if test "$ac_dir" != .
; then
5864 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5865 # A "../" for each directory in $ac_dir_suffix.
5866 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5868 ac_dir_suffix
= ac_top_builddir
=
5872 .
) # No --srcdir option. We are building in place.
5874 if test -z "$ac_top_builddir"; then
5877 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
5879 [\\/]* | ?
:[\\/]* ) # Absolute path.
5880 ac_srcdir
=$srcdir$ac_dir_suffix;
5881 ac_top_srcdir
=$srcdir ;;
5883 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
5884 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
5887 # Do not use `cd foo && pwd` to compute absolute paths, because
5888 # the directories may not exist.
5890 .
) ac_abs_builddir
="$ac_dir";;
5893 .
) ac_abs_builddir
=`pwd`;;
5894 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
5895 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
5898 case $ac_abs_builddir in
5899 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5901 case ${ac_top_builddir}.
in
5902 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
5903 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
5904 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
5907 case $ac_abs_builddir in
5908 .
) ac_abs_srcdir
=$ac_srcdir;;
5911 .
) ac_abs_srcdir
=$ac_abs_builddir;;
5912 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
5913 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
5916 case $ac_abs_builddir in
5917 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
5919 case $ac_top_srcdir in
5920 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
5921 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
5922 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
5928 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5929 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
5932 # Let's still pretend it is `configure' which instantiates (i.e., don't
5933 # use $as_me), people would be surprised to read:
5934 # /* config.h. Generated by config.status. */
5935 if test x
"$ac_file" = x-
; then
5938 configure_input
="$ac_file. "
5940 configure_input
=$configure_input"Generated from `echo $ac_file_in |
5941 sed 's,.*/,,'` by configure."
5943 # First look for the input files in the build tree, otherwise in the
5945 ac_file_inputs
=`IFS=:
5946 for f in $ac_file_in; do
5948 -) echo $tmp/stdin ;;
5950 # Absolute (can't be DOS-style, as IFS=:)
5951 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5952 echo "$as_me: error: cannot find input file: $f" >&2;}
5953 { (exit 1); exit 1; }; }
5956 if test -f "$f"; then
5959 elif test -f "$srcdir/$f"; then
5964 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5965 echo "$as_me: error: cannot find input file: $f" >&2;}
5966 { (exit 1); exit 1; }; }
5969 done` ||
{ (exit 1); exit 1; }
5971 if test x
"$ac_file" != x-
; then
5972 { echo "$as_me:$LINENO: creating $ac_file" >&5
5973 echo "$as_me: creating $ac_file" >&6;}
5977 cat >>$CONFIG_STATUS <<_ACEOF
5981 cat >>$CONFIG_STATUS <<\_ACEOF
5983 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5984 s
,@configure_input@
,$configure_input,;t t
5985 s
,@srcdir@
,$ac_srcdir,;t t
5986 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
5987 s
,@top_srcdir@
,$ac_top_srcdir,;t t
5988 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
5989 s
,@builddir@
,$ac_builddir,;t t
5990 s
,@abs_builddir@
,$ac_abs_builddir,;t t
5991 s
,@top_builddir@
,$ac_top_builddir,;t t
5992 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
5993 s
,@INSTALL@
,$ac_INSTALL,;t t
5994 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5996 if test x"$ac_file" != x-; then
5997 mv $tmp/out $ac_file
6005 cat >>$CONFIG_STATUS <<\_ACEOF
6008 # CONFIG_HEADER section.
6011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
6012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6014 # ac_d sets the value in "#define NAME VALUE" lines.
6015 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6016 ac_dB
='[ ].*$,\1#\2'
6019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6020 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6021 ac_uB
='$,\1#\2define\3'
6025 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
6026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6028 - |
*:- |
*:-:* ) # input from stdin
6030 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6031 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6032 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6033 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
6034 * ) ac_file_in
=$ac_file.
in ;;
6037 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
6038 echo "$as_me: creating $ac_file" >&6;}
6040 # First look for the input files in the build tree, otherwise in the
6042 ac_file_inputs
=`IFS=:
6043 for f in $ac_file_in; do
6045 -) echo $tmp/stdin ;;
6047 # Absolute (can't be DOS-style, as IFS=:)
6048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6049 echo "$as_me: error: cannot find input file: $f" >&2;}
6050 { (exit 1); exit 1; }; }
6051 # Do quote $f, to prevent DOS paths from being IFS'd.
6054 if test -f "$f"; then
6057 elif test -f "$srcdir/$f"; then
6062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6063 echo "$as_me: error: cannot find input file: $f" >&2;}
6064 { (exit 1); exit 1; }; }
6067 done` ||
{ (exit 1); exit 1; }
6068 # Remove the trailing spaces.
6069 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6073 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6074 # `conftest.undefs', that substitutes the proper values into
6075 # config.h.in to produce config.h. The first handles `#define'
6076 # templates, and the second `#undef' templates.
6077 # And first: Protect against being on the right side of a sed subst in
6078 # config.status. Protect against being in an unquoted here document
6080 rm -f conftest.defines conftest.undefs
6081 # Using a here document instead of a string reduces the quoting nightmare.
6082 # Putting comments in sed scripts is not portable.
6084 # `end' is used to avoid that the second main sed command (meant for
6085 # 0-ary CPP macros) applies to n-ary macro definitions.
6086 # See the Autoconf documentation for `clear'.
6087 cat >confdef2sed.
sed <<\_ACEOF
6092 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6094 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6097 # If some macros were called several times there might be several times
6098 # the same #defines, which is useless. Nevertheless, we may not want to
6099 # sort them, since we want the *last* AC-DEFINE to be honored.
6100 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6101 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6102 rm -f confdef2sed.sed
6104 # This sed command replaces #undef with comments. This is necessary, for
6105 # example, in the case of _POSIX_SOURCE, which is predefined and required
6106 # on some systems where configure will not decide to define it.
6107 cat >>conftest.undefs <<\_ACEOF
6108 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6111 # Break up conftest.defines because some shells have a limit on the size
6112 # of here documents, and old seds have small limits too (100 cmds).
6113 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6114 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6115 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6116 echo ' :' >>$CONFIG_STATUS
6118 while grep . conftest.defines >/dev/null
6120 # Write a limited-size here document to $tmp/defines.sed.
6121 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6122 # Speed up: don't consider the non `#define' lines.
6123 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6124 # Work around the forget-to-reset-the-flag bug.
6125 echo 't clr' >>$CONFIG_STATUS
6126 echo ': clr' >>$CONFIG_STATUS
6127 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
6129 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6133 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
6134 rm -f conftest.defines
6135 mv conftest.
tail conftest.defines
6137 rm -f conftest.defines
6138 echo ' fi # grep' >>$CONFIG_STATUS
6139 echo >>$CONFIG_STATUS
6141 # Break up conftest.undefs because some shells have a limit on the size
6142 # of here documents, and old seds have small limits too (100 cmds).
6143 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6145 while grep . conftest.undefs
>/dev
/null
6147 # Write a limited-size here document to $tmp/undefs.sed.
6148 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6149 # Speed up: don't consider the non
`#undef'
6150 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6151 # Work around the forget-to-reset-the-flag bug.
6152 echo 't clr' >>$CONFIG_STATUS
6153 echo ': clr' >>$CONFIG_STATUS
6154 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6156 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6160 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6161 rm -f conftest.undefs
6162 mv conftest.tail conftest.undefs
6164 rm -f conftest.undefs
6166 cat >>$CONFIG_STATUS <<\_ACEOF
6167 # Let's still pretend it is `configure
' which instantiates (i.e., don't
6168 # use $as_me), people would be surprised to read:
6169 # /* config.h. Generated by config.status. */
6170 if test x
"$ac_file" = x-
; then
6171 echo "/* Generated by configure. */" >$tmp/config.h
6173 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6175 cat $tmp/in >>$tmp/config.h
6177 if test x
"$ac_file" != x-
; then
6178 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
6179 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6180 echo "$as_me: $ac_file is unchanged" >&6;}
6182 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
6183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6184 X"$ac_file" : 'X\(//\)[^/]' \| \
6185 X"$ac_file" : 'X\(//\)$' \| \
6186 X"$ac_file" : 'X\(/\)' \| \
6187 . : '\(.\)' 2>/dev/null ||
6189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6191 /^X\(\/\/\)$/{ s//\1/; q; }
6192 /^X\(\/\).*/{ s//\1/; q; }
6194 { if $as_mkdir_p; then
6199 while test ! -d "$as_dir"; do
6200 as_dirs
="$as_dir $as_dirs"
6201 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6203 X"$as_dir" : 'X\(//\)[^/]' \| \
6204 X"$as_dir" : 'X\(//\)$' \| \
6205 X"$as_dir" : 'X\(/\)' \| \
6206 . : '\(.\)' 2>/dev/null ||
6208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6210 /^X\(\/\/\)$/{ s//\1/; q; }
6211 /^X\(\/\).*/{ s//\1/; q; }
6214 test ! -n "$as_dirs" || mkdir
$as_dirs
6215 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6217 { (exit 1); exit 1; }; }; }
6220 mv $tmp/config.h
$ac_file
6228 cat >>$CONFIG_STATUS <<\_ACEOF
6231 # CONFIG_COMMANDS section.
6233 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
6234 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
6235 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
6236 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
6237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6238 X"$ac_dest" : 'X\(//\)[^/]' \| \
6239 X"$ac_dest" : 'X\(//\)$' \| \
6240 X"$ac_dest" : 'X\(/\)' \| \
6241 . : '\(.\)' 2>/dev/null ||
6243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6245 /^X\(\/\/\)$/{ s//\1/; q; }
6246 /^X\(\/\).*/{ s//\1/; q; }
6248 { if $as_mkdir_p; then
6253 while test ! -d "$as_dir"; do
6254 as_dirs
="$as_dir $as_dirs"
6255 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
6256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6257 X"$as_dir" : 'X\(//\)[^/]' \| \
6258 X"$as_dir" : 'X\(//\)$' \| \
6259 X"$as_dir" : 'X\(/\)' \| \
6260 . : '\(.\)' 2>/dev/null ||
6262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6264 /^X\(\/\/\)$/{ s//\1/; q; }
6265 /^X\(\/\).*/{ s//\1/; q; }
6268 test ! -n "$as_dirs" || mkdir
$as_dirs
6269 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6271 { (exit 1); exit 1; }; }; }
6275 if test "$ac_dir" != .
; then
6276 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6277 # A "../" for each directory in $ac_dir_suffix.
6278 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6280 ac_dir_suffix
= ac_top_builddir
=
6284 .
) # No --srcdir option. We are building in place.
6286 if test -z "$ac_top_builddir"; then
6289 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
6291 [\\/]* | ?
:[\\/]* ) # Absolute path.
6292 ac_srcdir
=$srcdir$ac_dir_suffix;
6293 ac_top_srcdir
=$srcdir ;;
6295 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
6296 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
6299 # Do not use `cd foo && pwd` to compute absolute paths, because
6300 # the directories may not exist.
6302 .
) ac_abs_builddir
="$ac_dir";;
6305 .
) ac_abs_builddir
=`pwd`;;
6306 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
6307 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
6310 case $ac_abs_builddir in
6311 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6313 case ${ac_top_builddir}.
in
6314 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
6315 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
6316 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
6319 case $ac_abs_builddir in
6320 .
) ac_abs_srcdir
=$ac_srcdir;;
6323 .
) ac_abs_srcdir
=$ac_abs_builddir;;
6324 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
6325 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
6328 case $ac_abs_builddir in
6329 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
6331 case $ac_top_srcdir in
6332 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
6333 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
6334 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
6339 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6340 echo "$as_me: executing $ac_dest commands" >&6;}
6342 default-1
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
;;
6347 cat >>$CONFIG_STATUS <<\_ACEOF
6349 { (exit 0); exit 0; }
6351 chmod +x
$CONFIG_STATUS
6352 ac_clean_files
=$ac_clean_files_save
6355 # configure is writing to config.log, and then calls config.status.
6356 # config.status does its own redirection, appending to config.log.
6357 # Unfortunately, on DOS this fails, as config.log is still kept open
6358 # by configure, so config.status won't be able to write to it; its
6359 # output is simply discarded. So we exec the FD to /dev/null,
6360 # effectively closing config.log, so it can be properly (re)opened and
6361 # appended to by config.status. When coming back to configure, we
6362 # need to make the FD available again.
6363 if test "$no_create" != yes; then
6365 ac_config_status_args
=
6366 test "$silent" = yes &&
6367 ac_config_status_args
="$ac_config_status_args --quiet"
6369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6372 # would make configure fail if this is the last instruction.
6373 $ac_cs_success ||
{ (exit 1); exit 1; }