2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Support unset when possible.
31 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
37 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
39 { LANG
=C
; export LANG
; }
40 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
42 { LC_ALL
=C
; export LC_ALL
; }
43 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
45 { LC_TIME
=C
; export LC_TIME
; }
46 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE
=C
; export LC_CTYPE
; }
49 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE
=C
; export LANGUAGE
; }
52 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE
=C
; export LC_COLLATE
; }
55 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
58 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
63 # Name of the executable.
64 as_me
=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 CONFIG_SHELL
=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x
$as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c
*,-n*) ECHO_N
= ECHO_C
='
185 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
186 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
189 if expr a
: '\(a\)' >/dev
/null
2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.
file
197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe
; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
211 rm -f conf$$ conf$$.exe conf$$.
file
213 as_executable_p
="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix
=/usr
/local
247 SHELL
=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 # Factoring default headers for most tests.
262 ac_includes_default
="\
265 # include <sys/types.h>
268 # include <sys/stat.h>
279 # if !STDC_HEADERS && HAVE_MEMORY_H
285 # include <strings.h>
288 # include <inttypes.h>
299 # Initialize some variables set by options.
301 ac_init_version
=false
302 # The variables have the same names as the options, with
303 # dashes changed to underlines.
311 program_transform_name
=s
,x
,x
,
319 # Installation directory options.
320 # These are left unexpanded so users can "make install exec_prefix=/foo"
321 # and all the variables that are supposed to be based on exec_prefix
322 # by default will actually change.
323 # Use braces instead of parens because sh, perl, etc. also accept them.
324 bindir
='${exec_prefix}/bin'
325 sbindir
='${exec_prefix}/sbin'
326 libexecdir
='${exec_prefix}/libexec'
327 datadir
='${prefix}/share'
328 sysconfdir
='${prefix}/etc'
329 sharedstatedir
='${prefix}/com'
330 localstatedir
='${prefix}/var'
331 libdir
='${exec_prefix}/lib'
332 includedir
='${prefix}/include'
333 oldincludedir
='/usr/include'
334 infodir
='${prefix}/info'
335 mandir
='${prefix}/man'
340 # If the previous option needs an argument, assign it.
341 if test -n "$ac_prev"; then
342 eval "$ac_prev=\$ac_option"
347 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349 # Accept the important Cygnus configure options, so we can diagnose typos.
353 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
355 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
358 -build |
--build |
--buil |
--bui |
--bu)
359 ac_prev
=build_alias
;;
360 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
361 build_alias
=$ac_optarg ;;
363 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
364 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
365 ac_prev
=cache_file
;;
366 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
367 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
368 cache_file
=$ac_optarg ;;
371 cache_file
=config.cache
;;
373 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
375 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
377 datadir
=$ac_optarg ;;
379 -disable-* |
--disable-*)
380 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
381 # Reject names that are not valid shell variable names.
382 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
383 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
384 { (exit 1); exit 1; }; }
385 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
386 eval "enable_$ac_feature=no" ;;
388 -enable-* |
--enable-*)
389 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
392 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
393 { (exit 1); exit 1; }; }
394 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
396 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "enable_$ac_feature='$ac_optarg'" ;;
401 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
402 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
403 |
--exec |
--exe |
--ex)
404 ac_prev
=exec_prefix
;;
405 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
406 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
407 |
--exec=* |
--exe=* |
--ex=*)
408 exec_prefix
=$ac_optarg ;;
410 -gas |
--gas |
--ga |
--g)
411 # Obsolete; use --with-gas.
414 -help |
--help |
--hel |
--he |
-h)
416 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
417 ac_init_help
=recursive
;;
418 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
419 ac_init_help
=short
;;
421 -host |
--host |
--hos |
--ho)
422 ac_prev
=host_alias
;;
423 -host=* |
--host=* |
--hos=* |
--ho=*)
424 host_alias
=$ac_optarg ;;
426 -includedir |
--includedir |
--includedi |
--included |
--include \
427 |
--includ |
--inclu |
--incl |
--inc)
428 ac_prev
=includedir
;;
429 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
430 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
431 includedir
=$ac_optarg ;;
433 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
435 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
436 infodir
=$ac_optarg ;;
438 -libdir |
--libdir |
--libdi |
--libd)
440 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
443 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
444 |
--libexe |
--libex |
--libe)
445 ac_prev
=libexecdir
;;
446 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
447 |
--libexe=* |
--libex=* |
--libe=*)
448 libexecdir
=$ac_optarg ;;
450 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
451 |
--localstate |
--localstat |
--localsta |
--localst \
452 |
--locals |
--local |
--loca |
--loc |
--lo)
453 ac_prev
=localstatedir
;;
454 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
455 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
456 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
457 localstatedir
=$ac_optarg ;;
459 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
461 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
465 # Obsolete; use --without-fp.
468 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
469 |
--no-cr |
--no-c |
-n)
472 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
473 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
476 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
477 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
478 |
--oldin |
--oldi |
--old |
--ol |
--o)
479 ac_prev
=oldincludedir
;;
480 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
481 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
482 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
483 oldincludedir
=$ac_optarg ;;
485 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
487 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
490 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
491 |
--program-pre |
--program-pr |
--program-p)
492 ac_prev
=program_prefix
;;
493 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
494 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
495 program_prefix
=$ac_optarg ;;
497 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
498 |
--program-suf |
--program-su |
--program-s)
499 ac_prev
=program_suffix
;;
500 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
501 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
502 program_suffix
=$ac_optarg ;;
504 -program-transform-name |
--program-transform-name \
505 |
--program-transform-nam |
--program-transform-na \
506 |
--program-transform-n |
--program-transform- \
507 |
--program-transform |
--program-transfor \
508 |
--program-transfo |
--program-transf \
509 |
--program-trans |
--program-tran \
510 |
--progr-tra |
--program-tr |
--program-t)
511 ac_prev
=program_transform_name
;;
512 -program-transform-name=* |
--program-transform-name=* \
513 |
--program-transform-nam=* |
--program-transform-na=* \
514 |
--program-transform-n=* |
--program-transform-=* \
515 |
--program-transform=* |
--program-transfor=* \
516 |
--program-transfo=* |
--program-transf=* \
517 |
--program-trans=* |
--program-tran=* \
518 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
519 program_transform_name
=$ac_optarg ;;
521 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
522 |
-silent |
--silent |
--silen |
--sile |
--sil)
525 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
527 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
529 sbindir
=$ac_optarg ;;
531 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
532 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
533 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
535 ac_prev
=sharedstatedir
;;
536 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
537 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
538 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
540 sharedstatedir
=$ac_optarg ;;
542 -site |
--site |
--sit)
544 -site=* |
--site=* |
--sit=*)
547 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
549 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
552 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
553 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
554 ac_prev
=sysconfdir
;;
555 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
556 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
557 sysconfdir
=$ac_optarg ;;
559 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
560 ac_prev
=target_alias
;;
561 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
562 target_alias
=$ac_optarg ;;
564 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
567 -version |
--version |
--versio |
--versi |
--vers |
-V)
571 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
572 # Reject names that are not valid shell variable names.
573 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
574 { echo "$as_me: error: invalid package name: $ac_package" >&2
575 { (exit 1); exit 1; }; }
576 ac_package
=`echo $ac_package| sed 's/-/_/g'`
578 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581 eval "with_$ac_package='$ac_optarg'" ;;
583 -without-* |
--without-*)
584 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
585 # Reject names that are not valid shell variable names.
586 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
587 { echo "$as_me: error: invalid package name: $ac_package" >&2
588 { (exit 1); exit 1; }; }
589 ac_package
=`echo $ac_package | sed 's/-/_/g'`
590 eval "with_$ac_package=no" ;;
593 # Obsolete; use --with-x.
596 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
597 |
--x-incl |
--x-inc |
--x-in |
--x-i)
598 ac_prev
=x_includes
;;
599 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
600 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
601 x_includes
=$ac_optarg ;;
603 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
604 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
605 ac_prev
=x_libraries
;;
606 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
607 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
608 x_libraries
=$ac_optarg ;;
610 -*) { echo "$as_me: error: unrecognized option: $ac_option
611 Try \`$0 --help' for more information." >&2
612 { (exit 1); exit 1; }; }
616 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
617 # Reject names that are not valid shell variable names.
618 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
619 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
620 { (exit 1); exit 1; }; }
621 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
622 eval "$ac_envvar='$ac_optarg'"
626 # FIXME: should be removed in autoconf 3.0.
627 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
629 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
630 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
636 if test -n "$ac_prev"; then
637 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
638 { echo "$as_me: error: missing argument to $ac_option" >&2
639 { (exit 1); exit 1; }; }
642 # Be sure to have absolute paths.
643 for ac_var
in exec_prefix prefix
645 eval ac_val
=$
`echo $ac_var`
647 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
648 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
649 { (exit 1); exit 1; }; };;
653 # Be sure to have absolute paths.
654 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
655 localstatedir libdir includedir oldincludedir infodir mandir
657 eval ac_val
=$
`echo $ac_var`
659 [\\/$
]* | ?
:[\\/]* ) ;;
660 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
661 { (exit 1); exit 1; }; };;
665 # There might be people who depend on the old broken behavior: `$host'
666 # used to hold the argument of --host etc.
667 # FIXME: To remove some day.
672 # FIXME: To remove some day.
673 if test "x$host_alias" != x
; then
674 if test "x$build_alias" = x
; then
675 cross_compiling
=maybe
676 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
677 If a cross compiler is detected then cross compile mode will be used." >&2
678 elif test "x$build_alias" != "x$host_alias"; then
684 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
686 test "$silent" = yes && exec 6>/dev
/null
689 # Find the source files, if location was not specified.
690 if test -z "$srcdir"; then
691 ac_srcdir_defaulted
=yes
692 # Try the directory containing this script, then its parent.
693 ac_confdir
=`(dirname "$0") 2>/dev/null ||
694 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
695 X"$0" : 'X\(//\)[^/]' \| \
696 X"$0" : 'X\(//\)$' \| \
697 X"$0" : 'X\(/\)' \| \
698 . : '\(.\)' 2>/dev/null ||
700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
702 /^X\(\/\/\)$/{ s//\1/; q; }
703 /^X\(\/\).*/{ s//\1/; q; }
706 if test ! -r $srcdir/$ac_unique_file; then
710 ac_srcdir_defaulted
=no
712 if test ! -r $srcdir/$ac_unique_file; then
713 if test "$ac_srcdir_defaulted" = yes; then
714 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
715 { (exit 1); exit 1; }; }
717 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
718 { (exit 1); exit 1; }; }
721 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
722 ac_env_build_alias_set
=${build_alias+set}
723 ac_env_build_alias_value
=$build_alias
724 ac_cv_env_build_alias_set
=${build_alias+set}
725 ac_cv_env_build_alias_value
=$build_alias
726 ac_env_host_alias_set
=${host_alias+set}
727 ac_env_host_alias_value
=$host_alias
728 ac_cv_env_host_alias_set
=${host_alias+set}
729 ac_cv_env_host_alias_value
=$host_alias
730 ac_env_target_alias_set
=${target_alias+set}
731 ac_env_target_alias_value
=$target_alias
732 ac_cv_env_target_alias_set
=${target_alias+set}
733 ac_cv_env_target_alias_value
=$target_alias
734 ac_env_CC_set
=${CC+set}
736 ac_cv_env_CC_set
=${CC+set}
737 ac_cv_env_CC_value
=$CC
738 ac_env_CFLAGS_set
=${CFLAGS+set}
739 ac_env_CFLAGS_value
=$CFLAGS
740 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
741 ac_cv_env_CFLAGS_value
=$CFLAGS
742 ac_env_LDFLAGS_set
=${LDFLAGS+set}
743 ac_env_LDFLAGS_value
=$LDFLAGS
744 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
745 ac_cv_env_LDFLAGS_value
=$LDFLAGS
746 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
747 ac_env_CPPFLAGS_value
=$CPPFLAGS
748 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
749 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
750 ac_env_CXX_set
=${CXX+set}
751 ac_env_CXX_value
=$CXX
752 ac_cv_env_CXX_set
=${CXX+set}
753 ac_cv_env_CXX_value
=$CXX
754 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
755 ac_env_CXXFLAGS_value
=$CXXFLAGS
756 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
757 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
758 ac_env_CXXCPP_set
=${CXXCPP+set}
759 ac_env_CXXCPP_value
=$CXXCPP
760 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
761 ac_cv_env_CXXCPP_value
=$CXXCPP
762 ac_env_CPP_set
=${CPP+set}
763 ac_env_CPP_value
=$CPP
764 ac_cv_env_CPP_set
=${CPP+set}
765 ac_cv_env_CPP_value
=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures this package to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --x-includes=DIR X include files are
in DIR
829 --x-libraries=DIR X library files are
in DIR
832 --build=BUILD configure
for building on BUILD
[guessed
]
833 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
837 if test -n "$ac_init_help"; then
842 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
843 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
844 --disable-fastalloc omit fast allocator
for small objects
845 --enable-experimental support new style rewriting code
846 --enable-debug=ARG
install a debugging
enable executable
-ggdb
847 --enable-warnings print warning messages during compilation
848 --enable-optimize=ARG compile with optimizations guessed
851 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
852 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
853 --with-x use the X Window System
854 --with-iconv=DIR where to
find iconv system
855 --with-freetype=ARG with freetype support ARG
=linked
856 --with-imlib2=ARG with imlib2 support ARG
=no
858 Some influential environment variables
:
859 CC C compiler
command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
862 nonstandard directory
<lib dir
>
863 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
864 headers
in a nonstandard directory
<include dir
>
865 CXX C
++ compiler
command
866 CXXFLAGS C
++ compiler flags
867 CXXCPP C
++ preprocessor
870 Use these variables to override the choices made by
`configure' or to help
871 it to find libraries and programs with nonstandard names/locations.
876 if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
883 if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
888 ac_dir_suffix= ac_top_builddir=
892 .) # No --srcdir option. We are building in place.
894 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
906 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
908 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
910 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
932 test -n "$ac_init_help" && exit 0
933 if $ac_init_version; then
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.53. Invocation command line was
960 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
961 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
962 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
963 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
964 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
966 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
967 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
969 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
970 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
971 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
972 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
973 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
974 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
975 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
983 test -z "$as_dir" && as_dir=.
999 # Keep a trace of the command line.
1000 # Strip out --no-create and --no-recursion so they do not pile up.
1001 # Also quote any args containing shell meta-characters.
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n ) continue ;;
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1015 case " $ac_configure_args " in
1016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1017 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1020 # Get rid of the leading space.
1023 # When interrupted or exit'd, cleanup temporary files, and complete
1024 # config.log. We remove comments because anyway the quotes in there
1025 # would cause problems or look ugly.
1026 # WARNING: Be sure not to use single quotes in there, as some shells,
1027 # such as our DU 5.0 friend, will then `close
' the trap.
1028 trap 'exit_status
=$?
1029 # Save into config.log some information that might help in debugging.
1033 ## ---------------- ##
1034 ## Cache variables. ##
1035 ## ---------------- ##
1038 # The following way of writing the cache mishandles newlines in values,
1041 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1044 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1054 if test -s confdefs.h
; then
1061 sed "/^$/d" confdefs.h
1064 test "$ac_signal" != 0 &&
1065 echo "$as_me: caught signal $ac_signal"
1066 echo "$as_me: exit $exit_status"
1068 rm -f core core.
* *.core
&&
1069 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1072 for ac_signal in 1 2 13 15; do
1073 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1077 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1078 rm -rf conftest* confdefs.h
1079 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1082 # Predefined preprocessor variables.
1084 cat >>confdefs.h <<_ACEOF
1085 #define PACKAGE_NAME "$PACKAGE_NAME"
1089 cat >>confdefs.h <<_ACEOF
1090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_STRING "$PACKAGE_STRING"
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1109 # Let the site file select an alternate cache file if it wants to.
1110 # Prefer explicitly selected file to automatically selected ones.
1111 if test -z "$CONFIG_SITE"; then
1112 if test "x$prefix" != xNONE; then
1113 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1115 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1118 for ac_site_file in $CONFIG_SITE; do
1119 if test -r "$ac_site_file"; then
1120 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1121 echo "$as_me: loading site script $ac_site_file" >&6;}
1122 sed 's
/^
/|
/' "$ac_site_file" >&5
1127 if test -r "$cache_file"; then
1128 # Some versions of bash will fail to source /dev/null (special
1129 # files actually), so we avoid doing that.
1130 if test -f "$cache_file"; then
1131 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1132 echo "$as_me: loading cache $cache_file" >&6;}
1134 [\\/]* | ?:[\\/]* ) . $cache_file;;
1135 *) . ./$cache_file;;
1139 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1140 echo "$as_me: creating cache $cache_file" >&6;}
1144 # Check that the precious variables saved in the cache have kept the same
1146 ac_cache_corrupted=false
1147 for ac_var in `(set) 2>&1 |
1148 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1150 eval ac_new_set=\$ac_env_${ac_var}_set
1151 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1152 eval ac_new_val="\$ac_env_${ac_var}_value"
1153 case $ac_old_set,$ac_new_set in
1155 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1156 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1157 ac_cache_corrupted=: ;;
1159 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1160 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1161 ac_cache_corrupted=: ;;
1164 if test "x$ac_old_val" != "x$ac_new_val"; then
1165 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1166 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1167 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1168 echo "$as_me: former value: $ac_old_val" >&2;}
1169 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1170 echo "$as_me: current value: $ac_new_val" >&2;}
1171 ac_cache_corrupted=:
1174 # Pass precious variables to config.status.
1175 if test "$ac_new_set" = set; then
1177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1178 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1179 *) ac_arg=$ac_var=$ac_new_val ;;
1181 case " $ac_configure_args " in
1182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1183 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1187 if $ac_cache_corrupted; then
1188 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1189 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1190 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1191 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1192 { (exit 1); exit 1; }; }
1196 ac_cpp='$CPP $CPPFLAGS'
1197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1198 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1218 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1222 DEVEL_VERSION="1.0.6.12"
1224 STABLE_VERSION="1.0.6"
1226 WINDOWS_VERSION="1.0.5"
1234 #--------------------------------------------------------------------
1235 # Checks for C++ compiler
1236 #--------------------------------------------------------------------
1239 ac_cpp='$CPP $CPPFLAGS'
1240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1241 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1243 if test -n "$ac_tool_prefix"; then
1244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1246 echo "$as_me:$LINENO: checking for $ac_word" >&5
1247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1248 if test "${ac_cv_prog_CC+set}" = set; then
1249 echo $ECHO_N "(cached) $ECHO_C" >&6
1251 if test -n "$CC"; then
1252 ac_cv_prog_CC="$CC" # Let the user override the test.
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258 test -z "$as_dir" && as_dir=.
1259 for ac_exec_ext in '' $ac_executable_extensions; do
1260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1261 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1271 if test -n "$CC"; then
1272 echo "$as_me:$LINENO: result: $CC" >&5
1273 echo "${ECHO_T}$CC" >&6
1275 echo "$as_me:$LINENO: result: no" >&5
1276 echo "${ECHO_T}no" >&6
1280 if test -z "$ac_cv_prog_CC"; then
1282 # Extract the first word of "gcc", so it can be a program name with args.
1283 set dummy gcc; ac_word=$2
1284 echo "$as_me:$LINENO: checking for $ac_word" >&5
1285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1287 echo $ECHO_N "(cached) $ECHO_C" >&6
1289 if test -n "$ac_ct_CC"; then
1290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1296 test -z "$as_dir" && as_dir=.
1297 for ac_exec_ext in '' $ac_executable_extensions; do
1298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1299 ac_cv_prog_ac_ct_CC="gcc"
1300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1309 if test -n "$ac_ct_CC"; then
1310 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1311 echo "${ECHO_T}$ac_ct_CC" >&6
1313 echo "$as_me:$LINENO: result: no" >&5
1314 echo "${ECHO_T}no" >&6
1322 if test -z "$CC"; then
1323 if test -n "$ac_tool_prefix"; then
1324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1325 set dummy ${ac_tool_prefix}cc; ac_word=$2
1326 echo "$as_me:$LINENO: checking for $ac_word" >&5
1327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1328 if test "${ac_cv_prog_CC+set}" = set; then
1329 echo $ECHO_N "(cached) $ECHO_C" >&6
1331 if test -n "$CC"; then
1332 ac_cv_prog_CC="$CC" # Let the user override the test.
1334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1338 test -z "$as_dir" && as_dir=.
1339 for ac_exec_ext in '' $ac_executable_extensions; do
1340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1341 ac_cv_prog_CC="${ac_tool_prefix}cc"
1342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1351 if test -n "$CC"; then
1352 echo "$as_me:$LINENO: result: $CC" >&5
1353 echo "${ECHO_T}$CC" >&6
1355 echo "$as_me:$LINENO: result: no" >&5
1356 echo "${ECHO_T}no" >&6
1360 if test -z "$ac_cv_prog_CC"; then
1362 # Extract the first word of "cc", so it can be a program name with args.
1363 set dummy cc; ac_word=$2
1364 echo "$as_me:$LINENO: checking for $ac_word" >&5
1365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1367 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 if test -n "$ac_ct_CC"; then
1370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1376 test -z "$as_dir" && as_dir=.
1377 for ac_exec_ext in '' $ac_executable_extensions; do
1378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1379 ac_cv_prog_ac_ct_CC="cc"
1380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1389 if test -n "$ac_ct_CC"; then
1390 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1391 echo "${ECHO_T}$ac_ct_CC" >&6
1393 echo "$as_me:$LINENO: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1403 if test -z "$CC"; then
1404 # Extract the first word of "cc", so it can be a program name with args.
1405 set dummy cc; ac_word=$2
1406 echo "$as_me:$LINENO: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$CC"; then
1412 ac_cv_prog_CC="$CC" # Let the user override the test.
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419 test -z "$as_dir" && as_dir=.
1420 for ac_exec_ext in '' $ac_executable_extensions; do
1421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1423 ac_prog_rejected=yes
1427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 if test $ac_prog_rejected = yes; then
1434 # We found a bogon in the path, so make sure we never use it.
1435 set dummy $ac_cv_prog_CC
1437 if test $# != 0; then
1438 # We chose a different compiler from the bogus one.
1439 # However, it has the same basename, so the bogon will be chosen
1440 # first if we set CC to just the basename; use the full file name.
1442 set dummy "$as_dir/$ac_word" ${1+"$@"}
1450 if test -n "$CC"; then
1451 echo "$as_me:$LINENO: result: $CC" >&5
1452 echo "${ECHO_T}$CC" >&6
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1459 if test -z "$CC"; then
1460 if test -n "$ac_tool_prefix"; then
1463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 test -z "$as_dir" && as_dir=.
1478 for ac_exec_ext in '' $ac_executable_extensions; do
1479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490 if test -n "$CC"; then
1491 echo "$as_me:$LINENO: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1494 echo "$as_me:$LINENO: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1498 test -n "$CC" && break
1501 if test -z "$CC"; then
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy $ac_prog; ac_word=$2
1507 echo "$as_me:$LINENO: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1512 if test -n "$ac_ct_CC"; then
1513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 test -z "$as_dir" && as_dir=.
1520 for ac_exec_ext in '' $ac_executable_extensions; do
1521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1522 ac_cv_prog_ac_ct_CC="$ac_prog"
1523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1532 if test -n "$ac_ct_CC"; then
1533 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1534 echo "${ECHO_T}$ac_ct_CC" >&6
1536 echo "$as_me:$LINENO: result: no" >&5
1537 echo "${ECHO_T}no" >&6
1540 test -n "$ac_ct_CC" && break
1549 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1550 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1551 { (exit 1); exit 1; }; }
1553 # Provide some information about the compiler.
1554 echo "$as_me:$LINENO:" \
1555 "checking for C compiler version" >&5
1556 ac_compiler=`set X $ac_compile; echo $2`
1557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1558 (eval $ac_compiler --version </dev/null >&5) 2>&5
1560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1561 (exit $ac_status); }
1562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1563 (eval $ac_compiler -v </dev/null >&5) 2>&5
1565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1566 (exit $ac_status); }
1567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1568 (eval $ac_compiler -V </dev/null >&5) 2>&5
1570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1571 (exit $ac_status); }
1573 cat >conftest.$ac_ext <<_ACEOF
1574 #line $LINENO "configure"
1575 #include "confdefs.h"
1577 #ifdef F77_DUMMY_MAIN
1581 int F77_DUMMY_MAIN() { return 1; }
1591 ac_clean_files_save=$ac_clean_files
1592 ac_clean_files="$ac_clean_files a.out a.exe"
1593 # Try to create an executable without -o first, disregard a.out.
1594 # It will help us diagnose broken compilers, and finding out an intuition
1596 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1597 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1598 ac_link_default=`echo "$ac_link" | sed 's
/ -o *conftest
[^
]*//'`
1599 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1600 (eval $ac_link_default) 2>&5
1602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 # Find the output, starting from the most likely. This scheme is
1605 # not robust to junk in `.', hence go to wildcards
(a.
*) only as a last
1608 # Be careful to initialize this variable, since it used to be cached.
1609 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1611 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1612 ls a.out conftest 2>/dev/null;
1613 ls a.* conftest.* 2>/dev/null`; do
1615 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
1616 a.out
) # We found the default executable, but exeext='' is most
1619 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1620 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1627 echo "$as_me: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1629 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1630 echo "$as_me: error: C compiler cannot create executables" >&2;}
1631 { (exit 77); exit 77; }; }
1634 ac_exeext
=$ac_cv_exeext
1635 echo "$as_me:$LINENO: result: $ac_file" >&5
1636 echo "${ECHO_T}$ac_file" >&6
1638 # Check the compiler produces executables we can run. If not, either
1639 # the compiler is broken, or we cross compile.
1640 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1641 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1642 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1643 # If not cross compiling, check that we can run a simple program.
1644 if test "$cross_compiling" != yes; then
1645 if { ac_try
='./$ac_file'
1646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1653 if test "$cross_compiling" = maybe
; then
1656 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1657 If you meant to cross compile, use \`--host'." >&5
1658 echo "$as_me: error: cannot run C compiled programs.
1659 If you meant to cross compile, use \`--host'." >&2;}
1660 { (exit 1); exit 1; }; }
1664 echo "$as_me:$LINENO: result: yes" >&5
1665 echo "${ECHO_T}yes" >&6
1667 rm -f a.out a.exe conftest
$ac_cv_exeext
1668 ac_clean_files
=$ac_clean_files_save
1669 # Check the compiler produces executables we can run. If not, either
1670 # the compiler is broken, or we cross compile.
1671 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1672 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1673 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1674 echo "${ECHO_T}$cross_compiling" >&6
1676 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1677 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1679 (eval $ac_link) 2>&5
1681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1682 (exit $ac_status); }; then
1683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1685 # work properly (i.e., refer to `conftest.exe'), while it won't with
1687 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1689 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1690 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1698 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1699 { (exit 1); exit 1; }; }
1702 rm -f conftest
$ac_cv_exeext
1703 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1704 echo "${ECHO_T}$ac_cv_exeext" >&6
1706 rm -f conftest.
$ac_ext
1707 EXEEXT
=$ac_cv_exeext
1709 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1710 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1711 if test "${ac_cv_objext+set}" = set; then
1712 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 cat >conftest.
$ac_ext <<_ACEOF
1715 #line $LINENO "configure"
1716 #include "confdefs.h"
1718 #ifdef F77_DUMMY_MAIN
1722 int F77_DUMMY_MAIN() { return 1; }
1732 rm -f conftest.o conftest.obj
1733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1734 (eval $ac_compile) 2>&5
1736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1737 (exit $ac_status); }; then
1738 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1740 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1741 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1746 echo "$as_me: failed program was:" >&5
1747 cat conftest.
$ac_ext >&5
1748 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1749 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1750 { (exit 1); exit 1; }; }
1753 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1755 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1756 echo "${ECHO_T}$ac_cv_objext" >&6
1757 OBJEXT
=$ac_cv_objext
1759 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1760 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1761 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 cat >conftest.
$ac_ext <<_ACEOF
1765 #line $LINENO "configure"
1766 #include "confdefs.h"
1768 #ifdef F77_DUMMY_MAIN
1772 int F77_DUMMY_MAIN() { return 1; }
1785 rm -f conftest.
$ac_objext
1786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1787 (eval $ac_compile) 2>&5
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790 (exit $ac_status); } &&
1791 { ac_try
='test -s conftest.$ac_objext'
1792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; }; then
1799 echo "$as_me: failed program was:" >&5
1800 cat conftest.
$ac_ext >&5
1803 rm -f conftest.
$ac_objext conftest.
$ac_ext
1804 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1807 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1808 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1809 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1810 ac_test_CFLAGS
=${CFLAGS+set}
1811 ac_save_CFLAGS
=$CFLAGS
1813 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1814 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1815 if test "${ac_cv_prog_cc_g+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 cat >conftest.
$ac_ext <<_ACEOF
1819 #line $LINENO "configure"
1820 #include "confdefs.h"
1822 #ifdef F77_DUMMY_MAIN
1826 int F77_DUMMY_MAIN() { return 1; }
1836 rm -f conftest.
$ac_objext
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); } &&
1842 { ac_try
='test -s conftest.$ac_objext'
1843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; }; then
1850 echo "$as_me: failed program was:" >&5
1851 cat conftest.
$ac_ext >&5
1854 rm -f conftest.
$ac_objext conftest.
$ac_ext
1856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1857 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1858 if test "$ac_test_CFLAGS" = set; then
1859 CFLAGS
=$ac_save_CFLAGS
1860 elif test $ac_cv_prog_cc_g = yes; then
1861 if test "$GCC" = yes; then
1867 if test "$GCC" = yes; then
1873 # Some people use a C++ compiler to compile C. Since we use `exit',
1874 # in C++ we need to declare it. In case someone uses the same compiler
1875 # for both compiling C and C++ we need to have the C++ compiler decide
1876 # the declaration of exit, since it's the most demanding environment.
1877 cat >conftest.
$ac_ext <<_ACEOF
1882 rm -f conftest.
$ac_objext
1883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1884 (eval $ac_compile) 2>&5
1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887 (exit $ac_status); } &&
1888 { ac_try
='test -s conftest.$ac_objext'
1889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }; }; then
1894 for ac_declaration
in \
1896 '#include <stdlib.h>' \
1897 'extern "C" void std::exit (int) throw (); using std::exit;' \
1898 'extern "C" void std::exit (int); using std::exit;' \
1899 'extern "C" void exit (int) throw ();' \
1900 'extern "C" void exit (int);' \
1903 cat >conftest.
$ac_ext <<_ACEOF
1904 #line $LINENO "configure"
1905 #include "confdefs.h"
1908 #ifdef F77_DUMMY_MAIN
1912 int F77_DUMMY_MAIN() { return 1; }
1922 rm -f conftest.
$ac_objext
1923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try
='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1936 echo "$as_me: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1940 rm -f conftest.
$ac_objext conftest.
$ac_ext
1941 cat >conftest.
$ac_ext <<_ACEOF
1942 #line $LINENO "configure"
1943 #include "confdefs.h"
1945 #ifdef F77_DUMMY_MAIN
1949 int F77_DUMMY_MAIN() { return 1; }
1959 rm -f conftest.
$ac_objext
1960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1961 (eval $ac_compile) 2>&5
1963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964 (exit $ac_status); } &&
1965 { ac_try
='test -s conftest.$ac_objext'
1966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1970 (exit $ac_status); }; }; then
1973 echo "$as_me: failed program was:" >&5
1974 cat conftest.
$ac_ext >&5
1976 rm -f conftest.
$ac_objext conftest.
$ac_ext
1979 if test -n "$ac_declaration"; then
1980 echo '#ifdef __cplusplus' >>confdefs.h
1981 echo $ac_declaration >>confdefs.h
1982 echo '#endif' >>confdefs.h
1986 echo "$as_me: failed program was:" >&5
1987 cat conftest.
$ac_ext >&5
1989 rm -f conftest.
$ac_objext conftest.
$ac_ext
1991 ac_cpp
='$CPP $CPPFLAGS'
1992 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1997 ac_cpp
='$CXXCPP $CPPFLAGS'
1998 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2001 if test -n "$ac_tool_prefix"; then
2002 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2005 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2006 echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008 if test "${ac_cv_prog_CXX+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 if test -n "$CXX"; then
2012 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2018 test -z "$as_dir" && as_dir
=.
2019 for ac_exec_ext
in '' $ac_executable_extensions; do
2020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 if test -n "$CXX"; then
2032 echo "$as_me:$LINENO: result: $CXX" >&5
2033 echo "${ECHO_T}$CXX" >&6
2035 echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6
2039 test -n "$CXX" && break
2042 if test -z "$CXX"; then
2044 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
2046 # Extract the first word of "$ac_prog", so it can be a program name with args.
2047 set dummy
$ac_prog; ac_word
=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_CXX"; then
2054 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir
=.
2061 for ac_exec_ext
in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2073 if test -n "$ac_ct_CXX"; then
2074 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2075 echo "${ECHO_T}$ac_ct_CXX" >&6
2077 echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6
2081 test -n "$ac_ct_CXX" && break
2083 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
2089 # Provide some information about the compiler.
2090 echo "$as_me:$LINENO:" \
2091 "checking for C++ compiler version" >&5
2092 ac_compiler
=`set X $ac_compile; echo $2`
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2094 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2099 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2104 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2109 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2110 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2111 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 cat >conftest.
$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2116 #include "confdefs.h"
2118 #ifdef F77_DUMMY_MAIN
2122 int F77_DUMMY_MAIN() { return 1; }
2135 rm -f conftest.
$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try
='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 echo "$as_me: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2153 rm -f conftest.
$ac_objext conftest.
$ac_ext
2154 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2157 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2158 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2159 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2160 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2161 ac_save_CXXFLAGS
=$CXXFLAGS
2163 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2164 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2165 if test "${ac_cv_prog_cxx_g+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 cat >conftest.
$ac_ext <<_ACEOF
2169 #line $LINENO "configure"
2170 #include "confdefs.h"
2172 #ifdef F77_DUMMY_MAIN
2176 int F77_DUMMY_MAIN() { return 1; }
2186 rm -f conftest.
$ac_objext
2187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188 (eval $ac_compile) 2>&5
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); } &&
2192 { ac_try
='test -s conftest.$ac_objext'
2193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); }; }; then
2198 ac_cv_prog_cxx_g
=yes
2200 echo "$as_me: failed program was:" >&5
2201 cat conftest.
$ac_ext >&5
2204 rm -f conftest.
$ac_objext conftest.
$ac_ext
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2207 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2208 if test "$ac_test_CXXFLAGS" = set; then
2209 CXXFLAGS
=$ac_save_CXXFLAGS
2210 elif test $ac_cv_prog_cxx_g = yes; then
2211 if test "$GXX" = yes; then
2217 if test "$GXX" = yes; then
2223 for ac_declaration
in \
2225 '#include <stdlib.h>' \
2226 'extern "C" void std::exit (int) throw (); using std::exit;' \
2227 'extern "C" void std::exit (int); using std::exit;' \
2228 'extern "C" void exit (int) throw ();' \
2229 'extern "C" void exit (int);' \
2232 cat >conftest.
$ac_ext <<_ACEOF
2233 #line $LINENO "configure"
2234 #include "confdefs.h"
2237 #ifdef F77_DUMMY_MAIN
2241 int F77_DUMMY_MAIN() { return 1; }
2251 rm -f conftest.
$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); } &&
2257 { ac_try
='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2265 echo "$as_me: failed program was:" >&5
2266 cat conftest.
$ac_ext >&5
2269 rm -f conftest.
$ac_objext conftest.
$ac_ext
2270 cat >conftest.
$ac_ext <<_ACEOF
2271 #line $LINENO "configure"
2272 #include "confdefs.h"
2274 #ifdef F77_DUMMY_MAIN
2278 int F77_DUMMY_MAIN() { return 1; }
2288 rm -f conftest.
$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try
='test -s conftest.$ac_objext'
2295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2302 echo "$as_me: failed program was:" >&5
2303 cat conftest.
$ac_ext >&5
2305 rm -f conftest.
$ac_objext conftest.
$ac_ext
2308 if test -n "$ac_declaration"; then
2309 echo '#ifdef __cplusplus' >>confdefs.h
2310 echo $ac_declaration >>confdefs.h
2311 echo '#endif' >>confdefs.h
2315 ac_cpp
='$CPP $CPPFLAGS'
2316 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2321 ac_cpp
='$CXXCPP $CPPFLAGS'
2322 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2326 echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
2327 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6
2330 GCC_VERSION
=`$CC -dumpversion`
2331 GXX_VERSION
=`$CXX -dumpversion`
2332 echo "$as_me:$LINENO: result: yes" >&5
2333 echo "${ECHO_T}yes" >&6
2334 echo "$as_me:$LINENO: checking version of gcc" >&5
2335 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6
2336 echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
2337 echo "${ECHO_T}$GCC_VERSION" >&6
2338 echo "$as_me:$LINENO: checking version of g++" >&5
2339 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2340 echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
2341 echo "${ECHO_T}$GXX_VERSION" >&6
2346 echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6
2348 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
2349 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
2353 #--------------------------------------------------------------------
2355 #--------------------------------------------------------------------
2358 ## The GUILE_FLAGS macro.
2359 ## First, let's just see if we can find Guile at all.
2360 echo "$as_me:$LINENO: checking for Guile" >&5
2361 echo $ECHO_N "checking for Guile... $ECHO_C" >&6
2362 guile-config link
> /dev
/null ||
{
2363 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2366 GUILE_ORIGINAL_CFLAGS
="`guile-config compile`"
2367 GUILE_CFLAGS
="$GUILE_ORIGINAL_CFLAGS"
2368 GUILE_VARIANT_CFLAGS
="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
2369 GUILE_LDFLAGS
="`guile-config link`"
2370 GUILE_VARIANT_LDFLAGS
="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
2373 echo "$as_me:$LINENO: result: yes" >&5
2374 echo "${ECHO_T}yes" >&6
2376 echo "$as_me:$LINENO: checking version of guile" >&5
2377 echo $ECHO_N "checking version of guile... $ECHO_C" >&6
2378 GUILE_VERSION
=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
2379 echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
2380 echo "${ECHO_T}$GUILE_VERSION" >&6
2382 case "$GUILE_VERSION" in
2383 1.0* |
1.1* |
1.2* |
1.3* |
1.4* |
1.5*)
2384 CONFIG_GUILE_SERIAL
="A"
2387 CONFIG_GUILE_SERIAL
="B"
2390 CONFIG_GUILE_SERIAL
="C"
2395 #--------------------------------------------------------------------
2396 # Checks for standard functionality
2397 #--------------------------------------------------------------------
2401 echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
2402 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6
2403 ac_save_cppflags
="$CPPFLAGS"
2404 CPPFLAGS
="$CPPFLAGS $X_CFLAGS"
2405 cat >conftest.
$ac_ext <<_ACEOF
2406 #line $LINENO "configure"
2407 #include "confdefs.h"
2408 #include <X11/Xlib.h>
2409 #include <X11/Xutil.h>
2410 #ifdef F77_DUMMY_MAIN
2414 int F77_DUMMY_MAIN() { return 1; }
2424 rm -f conftest.
$ac_objext
2425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426 (eval $ac_compile) 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } &&
2430 { ac_try
='test -s conftest.$ac_objext'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; }; then
2438 echo "$as_me: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2444 /usr
/X11R
6/include \
2445 /usr
/X11R
5/include \
2446 /usr
/X11R
4/include \
2449 /usr
/include
/X11R6 \
2450 /usr
/include
/X11R5 \
2451 /usr
/include
/X11R4 \
2453 /usr
/local
/X11
/include \
2454 /usr
/local
/X11R
6/include \
2455 /usr
/local
/X11R
5/include \
2456 /usr
/local
/X11R
4/include \
2458 /usr
/local
/include
/X11 \
2459 /usr
/local
/include
/X11R6 \
2460 /usr
/local
/include
/X11R5 \
2461 /usr
/local
/include
/X11R4 \
2465 /usr
/XFree86
/include
/X11 \
2468 /usr
/local
/include \
2469 /usr
/unsupported
/include \
2470 /usr
/athena
/include \
2471 /usr
/local
/x11r
5/include \
2472 /usr
/lpp
/Xamples
/include \
2474 /usr
/openwin
/include \
2475 /usr
/openwin
/share
/include \
2478 if test -r "$ac_dir/X11/Xlib.h"; then
2479 tm_x_includes
=$ac_dir
2483 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
2484 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
2485 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
2486 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
2487 X_CFLAGS
="-I.. $X_CFLAGS"
2490 rm -f conftest.
$ac_objext conftest.
$ac_ext
2491 CPPFLAGS
="$ac_save_cppflags"
2494 ac_cpp
='$CXXCPP $CPPFLAGS'
2495 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2496 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2497 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2498 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2499 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2500 if test -z "$CXXCPP"; then
2501 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 # Double quotes because CXXCPP needs to be expanded
2505 for CXXCPP
in "$CXX -E" "/lib/cpp"
2508 for ac_cxx_preproc_warn_flag
in '' yes
2510 # Use a header file that comes with gcc, so configuring glibc
2511 # with a fresh cross-compiler works.
2512 # On the NeXT, cc -E runs the code through the compiler's parser,
2513 # not just through cpp. "Syntax error" is here to catch this case.
2514 cat >conftest.
$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 #include "confdefs.h"
2520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2521 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2523 egrep -v '^ *\+' conftest.er1
>conftest.err
2525 cat conftest.err
>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } >/dev
/null
; then
2528 if test -s conftest.err
; then
2529 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2536 if test -z "$ac_cpp_err"; then
2539 echo "$as_me: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2541 # Broken: fails on valid input.
2544 rm -f conftest.err conftest.
$ac_ext
2546 # OK, works on sane cases. Now check whether non-existent headers
2547 # can be detected and how.
2548 cat >conftest.
$ac_ext <<_ACEOF
2549 #line $LINENO "configure"
2550 #include "confdefs.h"
2551 #include <ac_nonexistent.h>
2553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2554 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2556 egrep -v '^ *\+' conftest.er1
>conftest.err
2558 cat conftest.err
>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } >/dev
/null
; then
2561 if test -s conftest.err
; then
2562 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2569 if test -z "$ac_cpp_err"; then
2570 # Broken: success on invalid input.
2573 echo "$as_me: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2575 # Passes both tests.
2579 rm -f conftest.err conftest.
$ac_ext
2582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2583 rm -f conftest.err conftest.
$ac_ext
2584 if $ac_preproc_ok; then
2589 ac_cv_prog_CXXCPP
=$CXXCPP
2592 CXXCPP
=$ac_cv_prog_CXXCPP
2594 ac_cv_prog_CXXCPP
=$CXXCPP
2596 echo "$as_me:$LINENO: result: $CXXCPP" >&5
2597 echo "${ECHO_T}$CXXCPP" >&6
2599 for ac_cxx_preproc_warn_flag
in '' yes
2601 # Use a header file that comes with gcc, so configuring glibc
2602 # with a fresh cross-compiler works.
2603 # On the NeXT, cc -E runs the code through the compiler's parser,
2604 # not just through cpp. "Syntax error" is here to catch this case.
2605 cat >conftest.
$ac_ext <<_ACEOF
2606 #line $LINENO "configure"
2607 #include "confdefs.h"
2611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2612 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2614 egrep -v '^ *\+' conftest.er1
>conftest.err
2616 cat conftest.err
>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } >/dev
/null
; then
2619 if test -s conftest.err
; then
2620 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2627 if test -z "$ac_cpp_err"; then
2630 echo "$as_me: failed program was:" >&5
2631 cat conftest.
$ac_ext >&5
2632 # Broken: fails on valid input.
2635 rm -f conftest.err conftest.
$ac_ext
2637 # OK, works on sane cases. Now check whether non-existent headers
2638 # can be detected and how.
2639 cat >conftest.
$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 #include "confdefs.h"
2642 #include <ac_nonexistent.h>
2644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2645 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2647 egrep -v '^ *\+' conftest.er1
>conftest.err
2649 cat conftest.err
>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } >/dev
/null
; then
2652 if test -s conftest.err
; then
2653 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2660 if test -z "$ac_cpp_err"; then
2661 # Broken: success on invalid input.
2664 echo "$as_me: failed program was:" >&5
2665 cat conftest.
$ac_ext >&5
2666 # Passes both tests.
2670 rm -f conftest.err conftest.
$ac_ext
2673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2674 rm -f conftest.err conftest.
$ac_ext
2675 if $ac_preproc_ok; then
2678 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
2679 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
2680 { (exit 1); exit 1; }; }
2684 ac_cpp
='$CXXCPP $CPPFLAGS'
2685 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2690 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2691 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2692 if test "${ac_cv_header_stdc+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2695 cat >conftest.
$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2697 #include "confdefs.h"
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2707 egrep -v '^ *\+' conftest.er1
>conftest.err
2709 cat conftest.err
>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev
/null
; then
2712 if test -s conftest.err
; then
2713 ac_cpp_err
=$ac_cxx_preproc_warn_flag
2720 if test -z "$ac_cpp_err"; then
2721 ac_cv_header_stdc
=yes
2723 echo "$as_me: failed program was:" >&5
2724 cat conftest.
$ac_ext >&5
2725 ac_cv_header_stdc
=no
2727 rm -f conftest.err conftest.
$ac_ext
2729 if test $ac_cv_header_stdc = yes; then
2730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2731 cat >conftest.
$ac_ext <<_ACEOF
2732 #line $LINENO "configure"
2733 #include "confdefs.h"
2737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2738 egrep "memchr" >/dev
/null
2>&1; then
2741 ac_cv_header_stdc
=no
2747 if test $ac_cv_header_stdc = yes; then
2748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2749 cat >conftest.
$ac_ext <<_ACEOF
2750 #line $LINENO "configure"
2751 #include "confdefs.h"
2755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2756 egrep "free" >/dev
/null
2>&1; then
2759 ac_cv_header_stdc
=no
2765 if test $ac_cv_header_stdc = yes; then
2766 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2767 if test "$cross_compiling" = yes; then
2770 cat >conftest.
$ac_ext <<_ACEOF
2771 #line $LINENO "configure"
2772 #include "confdefs.h"
2774 #if ((' ' & 0x0FF) == 0x020)
2775 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2776 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2778 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2779 || ('j' <= (c) && (c) <= 'r') \
2780 || ('s' <= (c) && (c) <= 'z'))
2781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2789 for (i = 0; i < 256; i++)
2790 if (XOR (islower (i), ISLOWER (i))
2791 || toupper (i) != TOUPPER (i))
2796 rm -f conftest
$ac_exeext
2797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2798 (eval $ac_link) 2>&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2809 echo "$as_me: program exited with status $ac_status" >&5
2810 echo "$as_me: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 ac_cv_header_stdc
=no
2815 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
2819 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2820 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2821 if test $ac_cv_header_stdc = yes; then
2823 cat >>confdefs.h
<<\_ACEOF
2824 #define STDC_HEADERS 1
2829 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2839 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
2840 inttypes.h stdint.h unistd.h
2842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2843 echo "$as_me:$LINENO: checking for $ac_header" >&5
2844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.
$ac_ext <<_ACEOF
2849 #line $LINENO "configure"
2850 #include "confdefs.h"
2851 $ac_includes_default
2853 #include <$ac_header>
2855 rm -f conftest.
$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try
='test -s conftest.$ac_objext'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; }; then
2867 eval "$as_ac_Header=yes"
2869 echo "$as_me: failed program was:" >&5
2870 cat conftest.
$ac_ext >&5
2871 eval "$as_ac_Header=no"
2873 rm -f conftest.
$ac_objext conftest.
$ac_ext
2875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2878 cat >>confdefs.h
<<_ACEOF
2879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2887 echo "$as_me:$LINENO: checking for FILE" >&5
2888 echo $ECHO_N "checking for FILE... $ECHO_C" >&6
2889 if test "${ac_cv_type_FILE+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 cat >conftest.
$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 $ac_includes_default
2896 #ifdef F77_DUMMY_MAIN
2900 int F77_DUMMY_MAIN() { return 1; }
2913 rm -f conftest.
$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); } &&
2919 { ac_try
='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: failed program was:" >&5
2928 cat conftest.
$ac_ext >&5
2931 rm -f conftest.
$ac_objext conftest.
$ac_ext
2933 echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
2934 echo "${ECHO_T}$ac_cv_type_FILE" >&6
2935 if test $ac_cv_type_FILE = yes; then
2937 cat >>confdefs.h
<<_ACEOF
2944 echo "$as_me:$LINENO: checking for intptr_t" >&5
2945 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
2946 if test "${ac_cv_type_intptr_t+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 cat >conftest.
$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 #include "confdefs.h"
2952 $ac_includes_default
2953 #ifdef F77_DUMMY_MAIN
2957 int F77_DUMMY_MAIN() { return 1; }
2964 if (sizeof (intptr_t))
2970 rm -f conftest.
$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try
='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_type_intptr_t
=yes
2984 echo "$as_me: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2986 ac_cv_type_intptr_t
=no
2988 rm -f conftest.
$ac_objext conftest.
$ac_ext
2990 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
2991 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
2992 if test $ac_cv_type_intptr_t = yes; then
2994 cat >>confdefs.h
<<_ACEOF
2995 #define HAVE_INTPTR_T 1
3001 echo "$as_me:$LINENO: checking for time_t" >&5
3002 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
3003 if test "${ac_cv_type_time_t+set}" = set; then
3004 echo $ECHO_N "(cached) $ECHO_C" >&6
3006 cat >conftest.
$ac_ext <<_ACEOF
3007 #line $LINENO "configure"
3008 #include "confdefs.h"
3009 $ac_includes_default
3010 #ifdef F77_DUMMY_MAIN
3014 int F77_DUMMY_MAIN() { return 1; }
3021 if (sizeof (time_t))
3027 rm -f conftest.
$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029 (eval $ac_compile) 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try
='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3039 ac_cv_type_time_t
=yes
3041 echo "$as_me: failed program was:" >&5
3042 cat conftest.
$ac_ext >&5
3043 ac_cv_type_time_t
=no
3045 rm -f conftest.
$ac_objext conftest.
$ac_ext
3047 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
3048 echo "${ECHO_T}$ac_cv_type_time_t" >&6
3049 if test $ac_cv_type_time_t = yes; then
3051 cat >>confdefs.h
<<_ACEOF
3052 #define HAVE_TIME_T 1
3058 echo "$as_me:$LINENO: checking for X" >&5
3059 echo $ECHO_N "checking for X... $ECHO_C" >&6
3062 # Check whether --with-x or --without-x was given.
3063 if test "${with_x+set}" = set; then
3067 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3068 if test "x$with_x" = xno
; then
3069 # The user explicitly disabled X.
3072 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
3073 # Both variables are already set.
3076 if test "${ac_cv_have_x+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 # One or both of the vars are not set, and there is no cached value.
3080 ac_x_includes
=no ac_x_libraries
=no
3082 if mkdir conftest.dir
; then
3084 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3085 cat >Imakefile
<<'_ACEOF'
3087 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3089 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
3090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3091 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3093 for ac_extension
in a so sl
; do
3094 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
3095 test -f $ac_im_libdir/libX11.
$ac_extension; then
3096 ac_im_usrlibdir
=$ac_im_libdir; break
3099 # Screen out bogus values from the imake configuration. They are
3100 # bogus both because they are the default anyway, and because
3101 # using them would break gcc on systems where it needs fixed includes.
3102 case $ac_im_incroot in
3104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
3106 case $ac_im_usrlibdir in
3108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
3115 # Standard set of common directories for X headers.
3116 # Check X11 before X11Rn because it is often a symlink to the current release.
3128 /usr/local/X11/include
3129 /usr/local/X11R6/include
3130 /usr/local/X11R5/include
3131 /usr/local/X11R4/include
3133 /usr/local/include/X11
3134 /usr/local/include/X11R6
3135 /usr/local/include/X11R5
3136 /usr/local/include/X11R4
3140 /usr/XFree86/include/X11
3144 /usr/unsupported/include
3146 /usr/local/x11r5/include
3147 /usr/lpp/Xamples/include
3149 /usr/openwin/include
3150 /usr/openwin/share/include'
3152 if test "$ac_x_includes" = no
; then
3153 # Guess where to find include files, by looking for Intrinsic.h.
3154 # First, try using that file with no special directory specified.
3155 cat >conftest.
$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 #include "confdefs.h"
3158 #include <X11/Intrinsic.h>
3160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3163 egrep -v '^ *\+' conftest.er1
>conftest.err
3165 cat conftest.err
>&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); } >/dev
/null
; then
3168 if test -s conftest.err
; then
3169 ac_cpp_err
=$ac_cxx_preproc_warn_flag
3176 if test -z "$ac_cpp_err"; then
3177 # We can compile using X headers with no special include directory.
3180 echo "$as_me: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3182 for ac_dir
in $ac_x_header_dirs; do
3183 if test -r "$ac_dir/X11/Intrinsic.h"; then
3184 ac_x_includes
=$ac_dir
3189 rm -f conftest.err conftest.
$ac_ext
3190 fi # $ac_x_includes = no
3192 if test "$ac_x_libraries" = no
; then
3193 # Check for the libraries.
3194 # See if we find them without any special options.
3195 # Don't add to $LIBS permanently.
3198 cat >conftest.
$ac_ext <<_ACEOF
3199 #line $LINENO "configure"
3200 #include "confdefs.h"
3201 #include <X11/Intrinsic.h>
3202 #ifdef F77_DUMMY_MAIN
3206 int F77_DUMMY_MAIN() { return 1; }
3216 rm -f conftest.
$ac_objext conftest
$ac_exeext
3217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3218 (eval $ac_link) 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 { ac_try
='test -s conftest$ac_exeext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3229 # We can link X programs with no special library path.
3232 echo "$as_me: failed program was:" >&5
3233 cat conftest.
$ac_ext >&5
3235 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3237 # Don't even attempt the hair of trying to link an X program!
3238 for ac_extension
in a so sl
; do
3239 if test -r $ac_dir/libXt.
$ac_extension; then
3240 ac_x_libraries
=$ac_dir
3246 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3247 fi # $ac_x_libraries = no
3249 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
3250 # Didn't find X anywhere. Cache the known absence of X.
3251 ac_cv_have_x
="have_x=no"
3253 # Record where we found X for the cache.
3254 ac_cv_have_x
="have_x=yes \
3255 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3260 eval "$ac_cv_have_x"
3263 if test "$have_x" != yes; then
3264 echo "$as_me:$LINENO: result: $have_x" >&5
3265 echo "${ECHO_T}$have_x" >&6
3268 # If each of the values was on the command line, it overrides each guess.
3269 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
3270 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
3271 # Update the cache value to reflect the command line values.
3272 ac_cv_have_x
="have_x=yes \
3273 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3274 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3278 if test "$no_x" = yes; then
3279 # Not all programs may use this symbol, but it does not hurt to define it.
3281 cat >>confdefs.h
<<\_ACEOF
3282 #define X_DISPLAY_MISSING 1
3285 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
3287 if test -n "$x_includes"; then
3288 X_CFLAGS
="$X_CFLAGS -I$x_includes"
3291 # It would also be nice to do this for all -L options, not just this one.
3292 if test -n "$x_libraries"; then
3293 X_LIBS
="$X_LIBS -L$x_libraries"
3294 # For Solaris; some versions of Sun CC require a space after -R and
3295 # others require no space. Words are not sufficient . . . .
3296 case `(uname -sr) 2>/dev/null` in
3298 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3299 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3300 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
3301 cat >conftest.
$ac_ext <<_ACEOF
3302 #line $LINENO "configure"
3303 #include "confdefs.h"
3305 #ifdef F77_DUMMY_MAIN
3309 int F77_DUMMY_MAIN() { return 1; }
3319 rm -f conftest.
$ac_objext conftest
$ac_exeext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3321 (eval $ac_link) 2>&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } &&
3325 { ac_try
='test -s conftest$ac_exeext'
3326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); }; }; then
3333 echo "$as_me: failed program was:" >&5
3334 cat conftest.
$ac_ext >&5
3337 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3338 if test $ac_R_nospace = yes; then
3339 echo "$as_me:$LINENO: result: no" >&5
3340 echo "${ECHO_T}no" >&6
3341 X_LIBS
="$X_LIBS -R$x_libraries"
3343 LIBS
="$ac_xsave_LIBS -R $x_libraries"
3344 cat >conftest.
$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 #include "confdefs.h"
3348 #ifdef F77_DUMMY_MAIN
3352 int F77_DUMMY_MAIN() { return 1; }
3362 rm -f conftest.
$ac_objext conftest
$ac_exeext
3363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3364 (eval $ac_link) 2>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -s conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3380 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3381 if test $ac_R_space = yes; then
3382 echo "$as_me:$LINENO: result: yes" >&5
3383 echo "${ECHO_T}yes" >&6
3384 X_LIBS
="$X_LIBS -R $x_libraries"
3386 echo "$as_me:$LINENO: result: neither works" >&5
3387 echo "${ECHO_T}neither works" >&6
3394 # Check for system-dependent libraries X programs must link with.
3395 # Do this before checking for the system-independent R6 libraries
3396 # (-lICE), since we may need -lsocket or whatever for X linking.
3398 if test "$ISC" = yes; then
3399 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
3401 # Martyn Johnson says this is needed for Ultrix, if the X
3402 # libraries were built with DECnet support. And Karl Berry says
3403 # the Alpha needs dnet_stub (dnet does not exist).
3404 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
3405 cat >conftest.
$ac_ext <<_ACEOF
3406 #line $LINENO "configure"
3407 #include "confdefs.h"
3409 /* Override any gcc2 internal prototype to avoid an error. */
3413 /* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415 char XOpenDisplay ();
3416 #ifdef F77_DUMMY_MAIN
3420 int F77_DUMMY_MAIN() { return 1; }
3430 rm -f conftest.
$ac_objext conftest
$ac_exeext
3431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3432 (eval $ac_link) 2>&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } &&
3436 { ac_try
='test -s conftest$ac_exeext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3444 echo "$as_me: failed program was:" >&5
3445 cat conftest.
$ac_ext >&5
3446 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3447 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3448 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 ac_check_lib_save_LIBS
=$LIBS
3453 cat >conftest.
$ac_ext <<_ACEOF
3454 #line $LINENO "configure"
3455 #include "confdefs.h"
3457 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3464 #ifdef F77_DUMMY_MAIN
3468 int F77_DUMMY_MAIN() { return 1; }
3478 rm -f conftest.
$ac_objext conftest
$ac_exeext
3479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3480 (eval $ac_link) 2>&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 { ac_try
='test -s conftest$ac_exeext'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3490 ac_cv_lib_dnet_dnet_ntoa
=yes
3492 echo "$as_me: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3494 ac_cv_lib_dnet_dnet_ntoa
=no
3496 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3497 LIBS
=$ac_check_lib_save_LIBS
3499 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3500 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3501 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3502 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
3505 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
3506 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3507 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3508 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 ac_check_lib_save_LIBS
=$LIBS
3512 LIBS
="-ldnet_stub $LIBS"
3513 cat >conftest.
$ac_ext <<_ACEOF
3514 #line $LINENO "configure"
3515 #include "confdefs.h"
3517 /* Override any gcc2 internal prototype to avoid an error. */
3521 /* We use char because int might match the return type of a gcc2
3522 builtin and then its argument prototype would still apply. */
3524 #ifdef F77_DUMMY_MAIN
3528 int F77_DUMMY_MAIN() { return 1; }
3538 rm -f conftest.
$ac_objext conftest
$ac_exeext
3539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3540 (eval $ac_link) 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try
='test -s conftest$ac_exeext'
3545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3550 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
3552 echo "$as_me: failed program was:" >&5
3553 cat conftest.
$ac_ext >&5
3554 ac_cv_lib_dnet_stub_dnet_ntoa
=no
3556 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3557 LIBS
=$ac_check_lib_save_LIBS
3559 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3560 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3561 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3562 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
3567 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3568 LIBS
="$ac_xsave_LIBS"
3570 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3571 # to get the SysV transport functions.
3572 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3574 # The nsl library prevents programs from opening the X display
3575 # on Irix 5.2, according to T.E. Dickey.
3576 # The functions gethostbyname, getservbyname, and inet_addr are
3577 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3578 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3579 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3580 if test "${ac_cv_func_gethostbyname+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 cat >conftest.
$ac_ext <<_ACEOF
3584 #line $LINENO "configure"
3585 #include "confdefs.h"
3586 /* System header to define __stub macros and hopefully few prototypes,
3587 which can conflict with char gethostbyname (); below. */
3589 /* Override any gcc2 internal prototype to avoid an error. */
3593 /* We use char because int might match the return type of a gcc2
3594 builtin and then its argument prototype would still apply. */
3595 char gethostbyname ();
3598 #ifdef F77_DUMMY_MAIN
3602 int F77_DUMMY_MAIN() { return 1; }
3607 /* The GNU C library defines this for functions which it implements
3608 to always fail with ENOSYS. Some functions are actually named
3609 something starting with __ and the normal name is an alias. */
3610 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3620 rm -f conftest.
$ac_objext conftest
$ac_exeext
3621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622 (eval $ac_link) 2>&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try
='test -s conftest$ac_exeext'
3627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_func_gethostbyname
=yes
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3636 ac_cv_func_gethostbyname
=no
3638 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3640 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3641 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3643 if test $ac_cv_func_gethostbyname = no
; then
3644 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3645 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3646 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 ac_check_lib_save_LIBS
=$LIBS
3651 cat >conftest.
$ac_ext <<_ACEOF
3652 #line $LINENO "configure"
3653 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */
3659 /* We use char because int might match the return type of a gcc2
3660 builtin and then its argument prototype would still apply. */
3661 char gethostbyname ();
3662 #ifdef F77_DUMMY_MAIN
3666 int F77_DUMMY_MAIN() { return 1; }
3676 rm -f conftest.
$ac_objext conftest
$ac_exeext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3678 (eval $ac_link) 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try
='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3688 ac_cv_lib_nsl_gethostbyname
=yes
3690 echo "$as_me: failed program was:" >&5
3691 cat conftest.
$ac_ext >&5
3692 ac_cv_lib_nsl_gethostbyname
=no
3694 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3695 LIBS
=$ac_check_lib_save_LIBS
3697 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3698 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3699 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3700 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
3703 if test $ac_cv_lib_nsl_gethostbyname = no
; then
3704 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3705 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3706 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 ac_check_lib_save_LIBS
=$LIBS
3711 cat >conftest.
$ac_ext <<_ACEOF
3712 #line $LINENO "configure"
3713 #include "confdefs.h"
3715 /* Override any gcc2 internal prototype to avoid an error. */
3719 /* We use char because int might match the return type of a gcc2
3720 builtin and then its argument prototype would still apply. */
3721 char gethostbyname ();
3722 #ifdef F77_DUMMY_MAIN
3726 int F77_DUMMY_MAIN() { return 1; }
3736 rm -f conftest.
$ac_objext conftest
$ac_exeext
3737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try
='test -s conftest$ac_exeext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_lib_bsd_gethostbyname
=yes
3750 echo "$as_me: failed program was:" >&5
3751 cat conftest.
$ac_ext >&5
3752 ac_cv_lib_bsd_gethostbyname
=no
3754 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3755 LIBS
=$ac_check_lib_save_LIBS
3757 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3758 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3759 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3760 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
3766 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3767 # socket/setsockopt and other routines are undefined under SCO ODT
3768 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3769 # on later versions), says Simon Leinen: it contains gethostby*
3770 # variants that don't use the nameserver (or something). -lsocket
3771 # must be given before -lnsl if both are needed. We assume that
3772 # if connect needs -lnsl, so does gethostbyname.
3773 echo "$as_me:$LINENO: checking for connect" >&5
3774 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3775 if test "${ac_cv_func_connect+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 cat >conftest.
$ac_ext <<_ACEOF
3779 #line $LINENO "configure"
3780 #include "confdefs.h"
3781 /* System header to define __stub macros and hopefully few prototypes,
3782 which can conflict with char connect (); below. */
3784 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3793 #ifdef F77_DUMMY_MAIN
3797 int F77_DUMMY_MAIN() { return 1; }
3802 /* The GNU C library defines this for functions which it implements
3803 to always fail with ENOSYS. Some functions are actually named
3804 something starting with __ and the normal name is an alias. */
3805 #if defined (__stub_connect) || defined (__stub___connect)
3815 rm -f conftest.
$ac_objext conftest
$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try
='test -s conftest$ac_exeext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 ac_cv_func_connect
=yes
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3831 ac_cv_func_connect
=no
3833 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3835 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3836 echo "${ECHO_T}$ac_cv_func_connect" >&6
3838 if test $ac_cv_func_connect = no
; then
3839 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3840 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3841 if test "${ac_cv_lib_socket_connect+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 ac_check_lib_save_LIBS
=$LIBS
3845 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
3846 cat >conftest.
$ac_ext <<_ACEOF
3847 #line $LINENO "configure"
3848 #include "confdefs.h"
3850 /* Override any gcc2 internal prototype to avoid an error. */
3854 /* We use char because int might match the return type of a gcc2
3855 builtin and then its argument prototype would still apply. */
3857 #ifdef F77_DUMMY_MAIN
3861 int F77_DUMMY_MAIN() { return 1; }
3871 rm -f conftest.
$ac_objext conftest
$ac_exeext
3872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3873 (eval $ac_link) 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); } &&
3877 { ac_try
='test -s conftest$ac_exeext'
3878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
3883 ac_cv_lib_socket_connect
=yes
3885 echo "$as_me: failed program was:" >&5
3886 cat conftest.
$ac_ext >&5
3887 ac_cv_lib_socket_connect
=no
3889 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3890 LIBS
=$ac_check_lib_save_LIBS
3892 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3893 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3894 if test $ac_cv_lib_socket_connect = yes; then
3895 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
3900 # Guillermo Gomez says -lposix is necessary on A/UX.
3901 echo "$as_me:$LINENO: checking for remove" >&5
3902 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3903 if test "${ac_cv_func_remove+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 cat >conftest.
$ac_ext <<_ACEOF
3907 #line $LINENO "configure"
3908 #include "confdefs.h"
3909 /* System header to define __stub macros and hopefully few prototypes,
3910 which can conflict with char remove (); below. */
3912 /* Override any gcc2 internal prototype to avoid an error. */
3916 /* We use char because int might match the return type of a gcc2
3917 builtin and then its argument prototype would still apply. */
3921 #ifdef F77_DUMMY_MAIN
3925 int F77_DUMMY_MAIN() { return 1; }
3930 /* The GNU C library defines this for functions which it implements
3931 to always fail with ENOSYS. Some functions are actually named
3932 something starting with __ and the normal name is an alias. */
3933 #if defined (__stub_remove) || defined (__stub___remove)
3943 rm -f conftest.
$ac_objext conftest
$ac_exeext
3944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3945 (eval $ac_link) 2>&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
3949 { ac_try
='test -s conftest$ac_exeext'
3950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); }; }; then
3955 ac_cv_func_remove
=yes
3957 echo "$as_me: failed program was:" >&5
3958 cat conftest.
$ac_ext >&5
3959 ac_cv_func_remove
=no
3961 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3963 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3964 echo "${ECHO_T}$ac_cv_func_remove" >&6
3966 if test $ac_cv_func_remove = no
; then
3967 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3968 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3969 if test "${ac_cv_lib_posix_remove+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 ac_check_lib_save_LIBS
=$LIBS
3973 LIBS
="-lposix $LIBS"
3974 cat >conftest.
$ac_ext <<_ACEOF
3975 #line $LINENO "configure"
3976 #include "confdefs.h"
3978 /* Override any gcc2 internal prototype to avoid an error. */
3982 /* We use char because int might match the return type of a gcc2
3983 builtin and then its argument prototype would still apply. */
3985 #ifdef F77_DUMMY_MAIN
3989 int F77_DUMMY_MAIN() { return 1; }
3999 rm -f conftest.
$ac_objext conftest
$ac_exeext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4001 (eval $ac_link) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try
='test -s conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_lib_posix_remove
=yes
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4015 ac_cv_lib_posix_remove
=no
4017 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4018 LIBS
=$ac_check_lib_save_LIBS
4020 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4021 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4022 if test $ac_cv_lib_posix_remove = yes; then
4023 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
4028 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4029 echo "$as_me:$LINENO: checking for shmat" >&5
4030 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4031 if test "${ac_cv_func_shmat+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 cat >conftest.
$ac_ext <<_ACEOF
4035 #line $LINENO "configure"
4036 #include "confdefs.h"
4037 /* System header to define __stub macros and hopefully few prototypes,
4038 which can conflict with char shmat (); below. */
4040 /* Override any gcc2 internal prototype to avoid an error. */
4044 /* We use char because int might match the return type of a gcc2
4045 builtin and then its argument prototype would still apply. */
4049 #ifdef F77_DUMMY_MAIN
4053 int F77_DUMMY_MAIN() { return 1; }
4058 /* The GNU C library defines this for functions which it implements
4059 to always fail with ENOSYS. Some functions are actually named
4060 something starting with __ and the normal name is an alias. */
4061 #if defined (__stub_shmat) || defined (__stub___shmat)
4071 rm -f conftest.
$ac_objext conftest
$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try
='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_func_shmat
=yes
4085 echo "$as_me: failed program was:" >&5
4086 cat conftest.
$ac_ext >&5
4089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4091 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4092 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4094 if test $ac_cv_func_shmat = no
; then
4095 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4096 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4097 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 ac_check_lib_save_LIBS
=$LIBS
4102 cat >conftest.
$ac_ext <<_ACEOF
4103 #line $LINENO "configure"
4104 #include "confdefs.h"
4106 /* Override any gcc2 internal prototype to avoid an error. */
4110 /* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4113 #ifdef F77_DUMMY_MAIN
4117 int F77_DUMMY_MAIN() { return 1; }
4127 rm -f conftest.
$ac_objext conftest
$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try
='test -s conftest$ac_exeext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_cv_lib_ipc_shmat
=yes
4141 echo "$as_me: failed program was:" >&5
4142 cat conftest.
$ac_ext >&5
4143 ac_cv_lib_ipc_shmat
=no
4145 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4146 LIBS
=$ac_check_lib_save_LIBS
4148 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4149 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4150 if test $ac_cv_lib_ipc_shmat = yes; then
4151 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
4157 # Check for libraries that X11R6 Xt/Xaw programs need.
4158 ac_save_LDFLAGS
=$LDFLAGS
4159 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
4160 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4161 # check for ICE first), but we must link in the order -lSM -lICE or
4162 # we get undefined symbols. So assume we have SM if we have ICE.
4163 # These have to be linked with before -lX11, unlike the other
4164 # libraries we check for below, so use a different variable.
4165 # John Interrante, Karl Berry
4166 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4167 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4168 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 ac_check_lib_save_LIBS
=$LIBS
4172 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
4173 cat >conftest.
$ac_ext <<_ACEOF
4174 #line $LINENO "configure"
4175 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4181 /* We use char because int might match the return type of a gcc2
4182 builtin and then its argument prototype would still apply. */
4183 char IceConnectionNumber ();
4184 #ifdef F77_DUMMY_MAIN
4188 int F77_DUMMY_MAIN() { return 1; }
4193 IceConnectionNumber ();
4198 rm -f conftest.
$ac_objext conftest
$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203 (exit $ac_status); } &&
4204 { ac_try
='test -s conftest$ac_exeext'
4205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); }; }; then
4210 ac_cv_lib_ICE_IceConnectionNumber
=yes
4212 echo "$as_me: failed program was:" >&5
4213 cat conftest.
$ac_ext >&5
4214 ac_cv_lib_ICE_IceConnectionNumber
=no
4216 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4217 LIBS
=$ac_check_lib_save_LIBS
4219 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4220 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4221 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4222 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
4225 LDFLAGS
=$ac_save_LDFLAGS
4231 for ac_header
in pty.h util.h
4233 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4235 echo "$as_me:$LINENO: checking for $ac_header" >&5
4236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4243 # Is the header compilable?
4244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4246 cat >conftest.
$ac_ext <<_ACEOF
4247 #line $LINENO "configure"
4248 #include "confdefs.h"
4249 $ac_includes_default
4250 #include <$ac_header>
4252 rm -f conftest.
$ac_objext
4253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try
='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_header_compiler
=yes
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4268 ac_header_compiler
=no
4270 rm -f conftest.
$ac_objext conftest.
$ac_ext
4271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4272 echo "${ECHO_T}$ac_header_compiler" >&6
4274 # Is the header present?
4275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4277 cat >conftest.
$ac_ext <<_ACEOF
4278 #line $LINENO "configure"
4279 #include "confdefs.h"
4280 #include <$ac_header>
4282 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4283 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4285 egrep -v '^ *\+' conftest.er1
>conftest.err
4287 cat conftest.err
>&5
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); } >/dev
/null
; then
4290 if test -s conftest.err
; then
4291 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4298 if test -z "$ac_cpp_err"; then
4299 ac_header_preproc
=yes
4301 echo "$as_me: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4303 ac_header_preproc
=no
4305 rm -f conftest.err conftest.
$ac_ext
4306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4307 echo "${ECHO_T}$ac_header_preproc" >&6
4309 # So? What about this header?
4310 case $ac_header_compiler:$ac_header_preproc in
4312 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4313 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4324 echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 eval "$as_ac_Header=$ac_header_preproc"
4331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4336 cat >>confdefs.h
<<_ACEOF
4337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345 for ac_func
in gettimeofday
4347 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4348 echo "$as_me:$LINENO: checking for $ac_func" >&5
4349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4350 if eval "test \"\${$as_ac_var+set}\" = set"; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 cat >conftest.
$ac_ext <<_ACEOF
4354 #line $LINENO "configure"
4355 #include "confdefs.h"
4356 /* System header to define __stub macros and hopefully few prototypes,
4357 which can conflict with char $ac_func (); below. */
4359 /* Override any gcc2 internal prototype to avoid an error. */
4363 /* We use char because int might match the return type of a gcc2
4364 builtin and then its argument prototype would still apply. */
4368 #ifdef F77_DUMMY_MAIN
4372 int F77_DUMMY_MAIN() { return 1; }
4377 /* The GNU C library defines this for functions which it implements
4378 to always fail with ENOSYS. Some functions are actually named
4379 something starting with __ and the normal name is an alias. */
4380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4390 rm -f conftest.
$ac_objext conftest
$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } &&
4396 { ac_try
='test -s conftest$ac_exeext'
4397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); }; }; then
4402 eval "$as_ac_var=yes"
4404 echo "$as_me: failed program was:" >&5
4405 cat conftest.
$ac_ext >&5
4406 eval "$as_ac_var=no"
4408 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4412 if test `eval echo '${'$as_ac_var'}'` = yes; then
4413 cat >>confdefs.h
<<_ACEOF
4414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4421 #--------------------------------------------------------------------
4422 # Checks for dl library
4423 #--------------------------------------------------------------------
4425 echo "$as_me:$LINENO: checking for dlopen" >&5
4426 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
4427 if test "${ac_cv_func_dlopen+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 cat >conftest.
$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 #include "confdefs.h"
4433 /* System header to define __stub macros and hopefully few prototypes,
4434 which can conflict with char dlopen (); below. */
4436 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */
4445 #ifdef F77_DUMMY_MAIN
4449 int F77_DUMMY_MAIN() { return 1; }
4454 /* The GNU C library defines this for functions which it implements
4455 to always fail with ENOSYS. Some functions are actually named
4456 something starting with __ and the normal name is an alias. */
4457 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4467 rm -f conftest.
$ac_objext conftest
$ac_exeext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4469 (eval $ac_link) 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } &&
4473 { ac_try
='test -s conftest$ac_exeext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_func_dlopen
=yes
4481 echo "$as_me: failed program was:" >&5
4482 cat conftest.
$ac_ext >&5
4483 ac_cv_func_dlopen
=no
4485 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
4488 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
4490 if test "$ac_cv_func_dl" = "yes"; then
4492 cat >>confdefs.h
<<\_ACEOF
4493 #define DYNAMIC_LINKING 1
4498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
4499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
4500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 ac_check_lib_save_LIBS
=$LIBS
4505 cat >conftest.
$ac_ext <<_ACEOF
4506 #line $LINENO "configure"
4507 #include "confdefs.h"
4509 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4516 #ifdef F77_DUMMY_MAIN
4520 int F77_DUMMY_MAIN() { return 1; }
4530 rm -f conftest.
$ac_objext conftest
$ac_exeext
4531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532 (eval $ac_link) 2>&5
4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try
='test -s conftest$ac_exeext'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4542 ac_cv_lib_dl_dlopen
=yes
4544 echo "$as_me: failed program was:" >&5
4545 cat conftest.
$ac_ext >&5
4546 ac_cv_lib_dl_dlopen
=no
4548 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4549 LIBS
=$ac_check_lib_save_LIBS
4551 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
4552 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
4553 if test $ac_cv_lib_dl_dlopen = yes; then
4554 cat >>confdefs.h
<<_ACEOF
4555 #define HAVE_LIBDL 1
4562 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4564 for ac_func
in dlopen
4566 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4567 echo "$as_me:$LINENO: checking for $ac_func" >&5
4568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4569 if eval "test \"\${$as_ac_var+set}\" = set"; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 cat >conftest.
$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below. */
4578 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4587 #ifdef F77_DUMMY_MAIN
4591 int F77_DUMMY_MAIN() { return 1; }
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4609 rm -f conftest.
$ac_objext conftest
$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try
='test -s conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 eval "$as_ac_var=yes"
4623 echo "$as_me: failed program was:" >&5
4624 cat conftest.
$ac_ext >&5
4625 eval "$as_ac_var=no"
4627 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4631 if test `eval echo '${'$as_ac_var'}'` = yes; then
4632 cat >>confdefs.h
<<_ACEOF
4633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4641 cat >>confdefs.h
<<\_ACEOF
4642 #define DYNAMIC_LINKING 1
4647 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
4648 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4649 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 ac_check_lib_save_LIBS
=$LIBS
4654 cat >conftest.
$ac_ext <<_ACEOF
4655 #line $LINENO "configure"
4656 #include "confdefs.h"
4658 /* Override any gcc2 internal prototype to avoid an error. */
4662 /* We use char because int might match the return type of a gcc2
4663 builtin and then its argument prototype would still apply. */
4665 #ifdef F77_DUMMY_MAIN
4669 int F77_DUMMY_MAIN() { return 1; }
4679 rm -f conftest.
$ac_objext conftest
$ac_exeext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4681 (eval $ac_link) 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } &&
4685 { ac_try
='test -s conftest$ac_exeext'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; }; then
4691 ac_cv_lib_dld_dld_link
=yes
4693 echo "$as_me: failed program was:" >&5
4694 cat conftest.
$ac_ext >&5
4695 ac_cv_lib_dld_dld_link
=no
4697 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4698 LIBS
=$ac_check_lib_save_LIBS
4700 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4701 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4702 if test $ac_cv_lib_dld_dld_link = yes; then
4703 cat >>confdefs.h
<<_ACEOF
4704 #define HAVE_LIBDLD 1
4711 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
4714 cat >>confdefs.h
<<\_ACEOF
4715 #define DYNAMIC_LINKING 1
4720 for ac_func
in shl_load
4722 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4723 echo "$as_me:$LINENO: checking for $ac_func" >&5
4724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4725 if eval "test \"\${$as_ac_var+set}\" = set"; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4728 cat >conftest.
$ac_ext <<_ACEOF
4729 #line $LINENO "configure"
4730 #include "confdefs.h"
4731 /* System header to define __stub macros and hopefully few prototypes,
4732 which can conflict with char $ac_func (); below. */
4734 /* Override any gcc2 internal prototype to avoid an error. */
4738 /* We use char because int might match the return type of a gcc2
4739 builtin and then its argument prototype would still apply. */
4743 #ifdef F77_DUMMY_MAIN
4747 int F77_DUMMY_MAIN() { return 1; }
4752 /* The GNU C library defines this for functions which it implements
4753 to always fail with ENOSYS. Some functions are actually named
4754 something starting with __ and the normal name is an alias. */
4755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765 rm -f conftest.
$ac_objext conftest
$ac_exeext
4766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try
='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4777 eval "$as_ac_var=yes"
4779 echo "$as_me: failed program was:" >&5
4780 cat conftest.
$ac_ext >&5
4781 eval "$as_ac_var=no"
4783 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4787 if test `eval echo '${'$as_ac_var'}'` = yes; then
4788 cat >>confdefs.h
<<_ACEOF
4789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4795 if test "$ac_cv_func_shl_load" = "yes"; then
4798 cat >>confdefs.h
<<\_ACEOF
4799 #define DYNAMIC_LINKING 1
4804 for ac_func
in dlopen
4806 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4807 echo "$as_me:$LINENO: checking for $ac_func" >&5
4808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4809 if eval "test \"\${$as_ac_var+set}\" = set"; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 cat >conftest.
$ac_ext <<_ACEOF
4813 #line $LINENO "configure"
4814 #include "confdefs.h"
4815 /* System header to define __stub macros and hopefully few prototypes,
4816 which can conflict with char $ac_func (); below. */
4818 /* Override any gcc2 internal prototype to avoid an error. */
4822 /* We use char because int might match the return type of a gcc2
4823 builtin and then its argument prototype would still apply. */
4827 #ifdef F77_DUMMY_MAIN
4831 int F77_DUMMY_MAIN() { return 1; }
4836 /* The GNU C library defines this for functions which it implements
4837 to always fail with ENOSYS. Some functions are actually named
4838 something starting with __ and the normal name is an alias. */
4839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4849 rm -f conftest.
$ac_objext conftest
$ac_exeext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851 (eval $ac_link) 2>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try
='test -s conftest$ac_exeext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 eval "$as_ac_var=yes"
4863 echo "$as_me: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4865 eval "$as_ac_var=no"
4867 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4871 if test `eval echo '${'$as_ac_var'}'` = yes; then
4872 cat >>confdefs.h
<<_ACEOF
4873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4879 if test "$ac_cv_func_dlopen" = "yes"; then
4881 cat >>confdefs.h
<<\_ACEOF
4882 #define DYNAMIC_LINKING 1
4892 #--------------------------------------------------------------------
4893 # Checks for iconv library
4894 #--------------------------------------------------------------------
4897 # Check whether --with-iconv or --without-iconv was given.
4898 if test "${with_iconv+set}" = set; then
4899 withval
="$with_iconv"
4904 # Modified from GNOME's libxml2 configure.in
4908 ac_cpp
='$CPP $CPPFLAGS'
4909 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4912 # compile C to avoid the 'const char**' problem
4913 SAVE_CPPFLAGS
="$CPPFLAGS"
4914 SAVE_LDFLAGS
="$LDFLAGS"
4916 if test "$with_iconv" = "no" ; then
4917 echo "$as_me:$LINENO: result: disabling iconv support" >&5
4918 echo "${ECHO_T}disabling iconv support" >&6
4920 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
4921 CPPFLAGS
="-I$with_iconv/include" # for AC_TRY_LINK
4922 ICONV_CFLAGS
="-I$with_iconv/include"
4923 ICONV_LDFLAGS
="-L$with_iconv/lib"
4927 ac_cpp
='$CPP $CPPFLAGS'
4928 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4931 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4932 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4933 # On Suns, sometimes $CPP names a directory.
4934 if test -n "$CPP" && test -d "$CPP"; then
4937 if test -z "$CPP"; then
4938 if test "${ac_cv_prog_CPP+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 # Double quotes because CPP needs to be expanded
4942 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945 for ac_c_preproc_warn_flag
in '' yes
4947 # Use a header file that comes with gcc, so configuring glibc
4948 # with a fresh cross-compiler works.
4949 # On the NeXT, cc -E runs the code through the compiler's parser,
4950 # not just through cpp. "Syntax error" is here to catch this case.
4951 cat >conftest.
$ac_ext <<_ACEOF
4952 #line $LINENO "configure"
4953 #include "confdefs.h"
4957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4960 egrep -v '^ *\+' conftest.er1
>conftest.err
4962 cat conftest.err
>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev
/null
; then
4965 if test -s conftest.err
; then
4966 ac_cpp_err
=$ac_c_preproc_warn_flag
4973 if test -z "$ac_cpp_err"; then
4976 echo "$as_me: failed program was:" >&5
4977 cat conftest.
$ac_ext >&5
4978 # Broken: fails on valid input.
4981 rm -f conftest.err conftest.
$ac_ext
4983 # OK, works on sane cases. Now check whether non-existent headers
4984 # can be detected and how.
4985 cat >conftest.
$ac_ext <<_ACEOF
4986 #line $LINENO "configure"
4987 #include "confdefs.h"
4988 #include <ac_nonexistent.h>
4990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4991 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4993 egrep -v '^ *\+' conftest.er1
>conftest.err
4995 cat conftest.err
>&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev
/null
; then
4998 if test -s conftest.err
; then
4999 ac_cpp_err
=$ac_c_preproc_warn_flag
5006 if test -z "$ac_cpp_err"; then
5007 # Broken: success on invalid input.
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.
$ac_ext >&5
5012 # Passes both tests.
5016 rm -f conftest.err conftest.
$ac_ext
5019 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5020 rm -f conftest.err conftest.
$ac_ext
5021 if $ac_preproc_ok; then
5033 echo "$as_me:$LINENO: result: $CPP" >&5
5034 echo "${ECHO_T}$CPP" >&6
5036 for ac_c_preproc_warn_flag
in '' yes
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.
$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 #include "confdefs.h"
5048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5049 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5051 egrep -v '^ *\+' conftest.er1
>conftest.err
5053 cat conftest.err
>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } >/dev
/null
; then
5056 if test -s conftest.err
; then
5057 ac_cpp_err
=$ac_c_preproc_warn_flag
5064 if test -z "$ac_cpp_err"; then
5067 echo "$as_me: failed program was:" >&5
5068 cat conftest.
$ac_ext >&5
5069 # Broken: fails on valid input.
5072 rm -f conftest.err conftest.
$ac_ext
5074 # OK, works on sane cases. Now check whether non-existent headers
5075 # can be detected and how.
5076 cat >conftest.
$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 #include "confdefs.h"
5079 #include <ac_nonexistent.h>
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5084 egrep -v '^ *\+' conftest.er1
>conftest.err
5086 cat conftest.err
>&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } >/dev
/null
; then
5089 if test -s conftest.err
; then
5090 ac_cpp_err
=$ac_c_preproc_warn_flag
5097 if test -z "$ac_cpp_err"; then
5098 # Broken: success on invalid input.
5101 echo "$as_me: failed program was:" >&5
5102 cat conftest.
$ac_ext >&5
5103 # Passes both tests.
5107 rm -f conftest.err conftest.
$ac_ext
5110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5111 rm -f conftest.err conftest.
$ac_ext
5112 if $ac_preproc_ok; then
5115 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
5116 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5117 { (exit 1); exit 1; }; }
5121 ac_cpp
='$CPP $CPPFLAGS'
5122 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5127 if test "${ac_cv_header_iconv_h+set}" = set; then
5128 echo "$as_me:$LINENO: checking for iconv.h" >&5
5129 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
5130 if test "${ac_cv_header_iconv_h+set}" = set; then
5131 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
5134 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
5136 # Is the header compilable?
5137 echo "$as_me:$LINENO: checking iconv.h usability" >&5
5138 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
5139 cat >conftest.
$ac_ext <<_ACEOF
5140 #line $LINENO "configure"
5141 #include "confdefs.h"
5142 $ac_includes_default
5145 rm -f conftest.
$ac_objext
5146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } &&
5151 { ac_try
='test -s conftest.$ac_objext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_header_compiler
=yes
5159 echo "$as_me: failed program was:" >&5
5160 cat conftest.
$ac_ext >&5
5161 ac_header_compiler
=no
5163 rm -f conftest.
$ac_objext conftest.
$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5165 echo "${ECHO_T}$ac_header_compiler" >&6
5167 # Is the header present?
5168 echo "$as_me:$LINENO: checking iconv.h presence" >&5
5169 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
5170 cat >conftest.
$ac_ext <<_ACEOF
5171 #line $LINENO "configure"
5172 #include "confdefs.h"
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5178 egrep -v '^ *\+' conftest.er1
>conftest.err
5180 cat conftest.err
>&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev
/null
; then
5183 if test -s conftest.err
; then
5184 ac_cpp_err
=$ac_c_preproc_warn_flag
5191 if test -z "$ac_cpp_err"; then
5192 ac_header_preproc
=yes
5194 echo "$as_me: failed program was:" >&5
5195 cat conftest.
$ac_ext >&5
5196 ac_header_preproc
=no
5198 rm -f conftest.err conftest.
$ac_ext
5199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5200 echo "${ECHO_T}$ac_header_preproc" >&6
5202 # So? What about this header?
5203 case $ac_header_compiler:$ac_header_preproc in
5205 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
5206 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5207 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
5208 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
5210 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
5211 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
5213 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
5214 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
5215 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
5217 echo "$as_me:$LINENO: checking for iconv.h" >&5
5218 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
5219 if test "${ac_cv_header_iconv_h+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 ac_cv_header_iconv_h
=$ac_header_preproc
5224 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
5225 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
5228 if test $ac_cv_header_iconv_h = yes; then
5229 echo "$as_me:$LINENO: checking for iconv" >&5
5230 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5232 cat >conftest.
$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 #include "confdefs.h"
5239 #ifdef F77_DUMMY_MAIN
5243 int F77_DUMMY_MAIN() { return 1; }
5249 iconv_t cd = iconv_open ("","");
5250 iconv (cd, NULL, NULL, NULL, NULL);
5256 rm -f conftest.
$ac_objext conftest
$ac_exeext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5258 (eval $ac_link) 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try
='test -s conftest$ac_exeext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5269 echo "$as_me:$LINENO: result: yes" >&5
5270 echo "${ECHO_T}yes" >&6
5272 cat >>confdefs.h
<<\_ACEOF
5278 echo "$as_me: failed program was:" >&5
5279 cat conftest.
$ac_ext >&5
5281 echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6
5283 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
5284 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
5285 LDFLAGS
="${ICONV_LDFLAGS}" # for AC_TRY_LINK
5286 LIBS
="-liconv" # for AC_TRY_LINK
5287 cat >conftest.
$ac_ext <<_ACEOF
5288 #line $LINENO "configure"
5289 #include "confdefs.h"
5294 #ifdef F77_DUMMY_MAIN
5298 int F77_DUMMY_MAIN() { return 1; }
5304 iconv_t cd = iconv_open ("","");
5305 iconv (cd, NULL, NULL, NULL, NULL);
5311 rm -f conftest.
$ac_objext conftest
$ac_exeext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313 (eval $ac_link) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try
='test -s conftest$ac_exeext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5324 echo "$as_me:$LINENO: result: yes" >&5
5325 echo "${ECHO_T}yes" >&6
5327 cat >>confdefs.h
<<\_ACEOF
5331 ICONV_LDFLAGS
="${ICONV_LDFLAGS} -liconv"
5334 echo "$as_me: failed program was:" >&5
5335 cat conftest.
$ac_ext >&5
5337 echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6
5339 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
5340 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
5343 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5345 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5351 CPPFLAGS
="$SAVE_CPPFLAGS"
5352 LDFLAGS
="$SAVE_LDFLAGS"
5355 ac_cpp
='$CXXCPP $CPPFLAGS'
5356 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5359 # restore C++ language
5364 #--------------------------------------------------------------------
5365 # Checks for freetype library
5366 #--------------------------------------------------------------------
5369 # Check whether --with-freetype or --without-freetype was given.
5370 if test "${with_freetype+set}" = set; then
5371 withval
="$with_freetype"
5375 SAVE_CPPFLAGS
="$CPPFLAGS"
5376 SAVE_LDFLAGS
="$LDFLAGS"
5378 if test "$with_freetype" = "no" ; then
5379 echo "$as_me:$LINENO: result: disabling freetype support" >&5
5380 echo "${ECHO_T}disabling freetype support" >&6
5382 CPPFLAGS
=`freetype-config --cflags`
5383 LIBS
=`freetype-config --libs`
5384 if test "${ac_cv_header_ft2build_h+set}" = set; then
5385 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5386 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5387 if test "${ac_cv_header_ft2build_h+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5391 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5393 # Is the header compilable?
5394 echo "$as_me:$LINENO: checking ft2build.h usability" >&5
5395 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6
5396 cat >conftest.
$ac_ext <<_ACEOF
5397 #line $LINENO "configure"
5398 #include "confdefs.h"
5399 $ac_includes_default
5400 #include <ft2build.h>
5402 rm -f conftest.
$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try
='test -s conftest.$ac_objext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 ac_header_compiler
=yes
5416 echo "$as_me: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5418 ac_header_compiler
=no
5420 rm -f conftest.
$ac_objext conftest.
$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5422 echo "${ECHO_T}$ac_header_compiler" >&6
5424 # Is the header present?
5425 echo "$as_me:$LINENO: checking ft2build.h presence" >&5
5426 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6
5427 cat >conftest.
$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 #include "confdefs.h"
5430 #include <ft2build.h>
5432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5433 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5435 egrep -v '^ *\+' conftest.er1
>conftest.err
5437 cat conftest.err
>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev
/null
; then
5440 if test -s conftest.err
; then
5441 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5448 if test -z "$ac_cpp_err"; then
5449 ac_header_preproc
=yes
5451 echo "$as_me: failed program was:" >&5
5452 cat conftest.
$ac_ext >&5
5453 ac_header_preproc
=no
5455 rm -f conftest.err conftest.
$ac_ext
5456 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5457 echo "${ECHO_T}$ac_header_preproc" >&6
5459 # So? What about this header?
5460 case $ac_header_compiler:$ac_header_preproc in
5462 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
5463 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5464 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5465 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5467 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5474 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5475 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5476 if test "${ac_cv_header_ft2build_h+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_cv_header_ft2build_h
=$ac_header_preproc
5481 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5482 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5485 if test $ac_cv_header_ft2build_h = yes; then
5486 echo "$as_me:$LINENO: checking for freetype" >&5
5487 echo $ECHO_N "checking for freetype... $ECHO_C" >&6
5488 cat >conftest.
$ac_ext <<_ACEOF
5489 #line $LINENO "configure"
5490 #include "confdefs.h"
5492 #include <ft2build.h>
5493 #include FT_FREETYPE_H
5495 #ifdef F77_DUMMY_MAIN
5499 int F77_DUMMY_MAIN() { return 1; }
5505 FT_Library ft_library;
5506 (void) FT_Init_FreeType (&ft_library);
5512 rm -f conftest.
$ac_objext conftest
$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try
='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6
5528 cat >>confdefs.h
<<\_ACEOF
5529 #define USE_FREETYPE 1
5532 FREETYPE_CFLAGS
="$CPPFLAGS"
5533 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5534 FREETYPE_LDFLAGS
="$LIBS"
5536 cat >>confdefs.h
<<\_ACEOF
5537 #define LINKED_FREETYPE 1
5543 echo "$as_me: failed program was:" >&5
5544 cat conftest.
$ac_ext >&5
5546 echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5549 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5555 CPPFLAGS
="$SAVE_CPPFLAGS"
5556 LDFLAGS
="$SAVE_LDFLAGS"
5562 #--------------------------------------------------------------------
5563 # Checks for Imlib2 library
5564 #--------------------------------------------------------------------
5567 # Check whether --with-imlib2 or --without-imlib2 was given.
5568 if test "${with_imlib2+set}" = set; then
5569 withval
="$with_imlib2"
5573 SAVE_CPPFLAGS
="$CPPFLAGS"
5574 SAVE_LDFLAGS
="$LDFLAGS"
5576 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
5577 echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
5578 echo "${ECHO_T}disabling imlib2 support" >&6
5580 CPPFLAGS
=`imlib2-config --cflags`
5581 LIBS
=`imlib2-config --libs`
5582 if test "${ac_cv_header_ft2build_h+set}" = set; then
5583 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5584 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5585 if test "${ac_cv_header_ft2build_h+set}" = set; then
5586 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5589 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5591 # Is the header compilable?
5592 echo "$as_me:$LINENO: checking ft2build.h usability" >&5
5593 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6
5594 cat >conftest.
$ac_ext <<_ACEOF
5595 #line $LINENO "configure"
5596 #include "confdefs.h"
5597 $ac_includes_default
5598 #include <ft2build.h>
5600 rm -f conftest.
$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try
='test -s conftest.$ac_objext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_header_compiler
=yes
5614 echo "$as_me: failed program was:" >&5
5615 cat conftest.
$ac_ext >&5
5616 ac_header_compiler
=no
5618 rm -f conftest.
$ac_objext conftest.
$ac_ext
5619 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5620 echo "${ECHO_T}$ac_header_compiler" >&6
5622 # Is the header present?
5623 echo "$as_me:$LINENO: checking ft2build.h presence" >&5
5624 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6
5625 cat >conftest.
$ac_ext <<_ACEOF
5626 #line $LINENO "configure"
5627 #include "confdefs.h"
5628 #include <ft2build.h>
5630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5631 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5633 egrep -v '^ *\+' conftest.er1
>conftest.err
5635 cat conftest.err
>&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); } >/dev
/null
; then
5638 if test -s conftest.err
; then
5639 ac_cpp_err
=$ac_cxx_preproc_warn_flag
5646 if test -z "$ac_cpp_err"; then
5647 ac_header_preproc
=yes
5649 echo "$as_me: failed program was:" >&5
5650 cat conftest.
$ac_ext >&5
5651 ac_header_preproc
=no
5653 rm -f conftest.err conftest.
$ac_ext
5654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5655 echo "${ECHO_T}$ac_header_preproc" >&6
5657 # So? What about this header?
5658 case $ac_header_compiler:$ac_header_preproc in
5660 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
5661 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5662 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5663 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5665 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
5666 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
5668 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5670 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5672 echo "$as_me:$LINENO: checking for ft2build.h" >&5
5673 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5674 if test "${ac_cv_header_ft2build_h+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 ac_cv_header_ft2build_h
=$ac_header_preproc
5679 echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5680 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5683 if test $ac_cv_header_ft2build_h = yes; then
5684 echo "$as_me:$LINENO: checking for imlib2" >&5
5685 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6
5686 cat >conftest.
$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5688 #include "confdefs.h"
5690 #include <X11/Xlib.h>
5695 #ifdef F77_DUMMY_MAIN
5699 int F77_DUMMY_MAIN() { return 1; }
5705 Imlib_Image image= imlib_load_image("");
5711 rm -f conftest.
$ac_objext conftest
$ac_exeext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5713 (eval $ac_link) 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } &&
5717 { ac_try
='test -s conftest$ac_exeext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
5724 echo "$as_me:$LINENO: result: yes" >&5
5725 echo "${ECHO_T}yes" >&6
5727 cat >>confdefs.h
<<\_ACEOF
5728 #define USE_IMLIB2 1
5731 IMLIB2_CFLAGS
="$CPPFLAGS"
5732 if test "$with_imlib2" = "linked" ; then
5733 IMLIB2_LDFLAGS
="$LIBS"
5735 cat >>confdefs.h
<<\_ACEOF
5736 #define LINKED_IMLIB2 1
5742 echo "$as_me: failed program was:" >&5
5743 cat conftest.
$ac_ext >&5
5745 echo "$as_me:$LINENO: result: no" >&5
5746 echo "${ECHO_T}no" >&6
5748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5754 CPPFLAGS
="$SAVE_CPPFLAGS"
5755 LDFLAGS
="$SAVE_LDFLAGS"
5761 #--------------------------------------------------------------------
5762 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5763 #--------------------------------------------------------------------
5765 echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
5766 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6
5767 CXXFLAGS
="`guile-config compile`"
5768 cat >conftest.
$ac_ext <<_ACEOF
5769 #line $LINENO "configure"
5770 #include "confdefs.h"
5772 #include <guile/gh.h>
5773 #include <libguile.h>
5774 typedef SCM (*FN)(...);
5775 static SCM identity (SCM x) { return x; }
5776 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
5778 #ifdef F77_DUMMY_MAIN
5782 int F77_DUMMY_MAIN() { return 1; }
5793 rm -f conftest.
$ac_objext
5794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5795 (eval $ac_compile) 2>&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); } &&
5799 { ac_try
='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5807 cat >>confdefs.h
<<\_ACEOF
5811 echo "$as_me:$LINENO: result: yes" >&5
5812 echo "${ECHO_T}yes" >&6
5815 echo "$as_me: failed program was:" >&5
5816 cat conftest.
$ac_ext >&5
5818 echo "$as_me:$LINENO: result: no" >&5
5819 echo "${ECHO_T}no" >&6
5822 rm -f conftest.
$ac_objext conftest.
$ac_ext
5825 echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
5826 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6
5827 CXXFLAGS
="`guile-config compile`"
5828 cat >conftest.
$ac_ext <<_ACEOF
5829 #line $LINENO "configure"
5830 #include "confdefs.h"
5832 #include <guile/gh.h>
5833 #include <libguile.h>
5834 void print_string (SCM s) {
5836 char* r= gh_scm2newstr (s, &len_r); }
5838 #ifdef F77_DUMMY_MAIN
5842 int F77_DUMMY_MAIN() { return 1; }
5853 rm -f conftest.
$ac_objext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5855 (eval $ac_compile) 2>&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } &&
5859 { ac_try
='test -s conftest.$ac_objext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5867 cat >>confdefs.h
<<\_ACEOF
5868 #define guile_str_size_t int
5871 echo "$as_me:$LINENO: result: int" >&5
5872 echo "${ECHO_T}int" >&6
5875 echo "$as_me: failed program was:" >&5
5876 cat conftest.
$ac_ext >&5
5879 cat >>confdefs.h
<<\_ACEOF
5880 #define guile_str_size_t size_t
5883 echo "$as_me:$LINENO: result: size_t" >&5
5884 echo "${ECHO_T}size_t" >&6
5887 rm -f conftest.
$ac_objext conftest.
$ac_ext
5890 echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
5891 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6
5892 CPPFLAGS
="$GUILE_CFLAGS"
5894 LIBS
="$GUILE_LDFLAGS"
5895 cat >conftest.
$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5897 #include "confdefs.h"
5899 #include <guile/gh.h>
5902 #ifdef F77_DUMMY_MAIN
5906 int F77_DUMMY_MAIN() { return 1; }
5913 static void my_main (int argc, char** argv) {}
5914 static void install_guile () {
5916 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5918 gh_enter (0, NULL, my_main);
5922 dummy::install_guile ();
5928 rm -f conftest.
$ac_objext conftest
$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930 (eval $ac_link) 2>&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } &&
5934 { ac_try
='test -s conftest$ac_exeext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 tm_link_guile_static
="yes"
5942 echo "$as_me: failed program was:" >&5
5943 cat conftest.
$ac_ext >&5
5944 tm_link_guile_static
="no"
5946 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5948 echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
5949 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6
5950 if test "$tm_link_guile_static" = "no" ; then
5951 echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
5952 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6
5953 LIBS
="$GUILE_LDFLAGS -lltdl"
5954 cat >conftest.
$ac_ext <<_ACEOF
5955 #line $LINENO "configure"
5956 #include "confdefs.h"
5958 #include <guile/gh.h>
5961 #ifdef F77_DUMMY_MAIN
5965 int F77_DUMMY_MAIN() { return 1; }
5972 static void my_main (int argc, char** argv) {}
5973 static void install_guile () {
5975 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5977 gh_enter (0, NULL, my_main);
5981 dummy::install_guile ();
5987 rm -f conftest.
$ac_objext conftest
$ac_exeext
5988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989 (eval $ac_link) 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
5993 { ac_try
='test -s conftest$ac_exeext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 tm_link_guile_static_ltdl
="yes"
6001 echo "$as_me: failed program was:" >&5
6002 cat conftest.
$ac_ext >&5
6003 tm_link_guile_static_ltdl
="no"
6005 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6007 echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
6008 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6
6009 if test "$tm_link_guile_static_ltdl" = "yes" ; then
6010 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
6012 echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
6013 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6
6014 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
6015 cat >conftest.
$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 #include "confdefs.h"
6019 #include <guile/gh.h>
6022 #ifdef F77_DUMMY_MAIN
6026 int F77_DUMMY_MAIN() { return 1; }
6033 static void my_main (int argc, char** argv) {}
6034 static void install_guile () {
6036 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
6038 gh_enter (0, NULL, my_main);
6042 dummy::install_guile ();
6048 rm -f conftest.
$ac_objext conftest
$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } &&
6054 { ac_try
='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 tm_link_guile_static_ltdl_ldl
="yes"
6062 echo "$as_me: failed program was:" >&5
6063 cat conftest.
$ac_ext >&5
6064 tm_link_guile_static_ltdl_ldl
="no"
6066 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6068 echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
6069 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6
6070 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
6071 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl -ldl"
6073 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
6074 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
6082 #--------------------------------------------------------------------
6083 # Handle different systems case by case
6084 #--------------------------------------------------------------------
6086 CONFIG_OS
="GNU_LINUX"
6087 CONFIG_OS_SUFFIX
="gnu-linux"
6089 CONFIG_CXXTEMPLATE
=""
6090 CONFIG_STD_SETENV
="#define STD_SETENV"
6092 CONFIG_LIB_PATH
="LD_LIBRARY_PATH"
6093 CONFIG_CHMOD
="chmod -f"
6094 CONFIG_CX
="$X_CFLAGS"
6095 CONFIG_CXXOPTIMIZE
="-O2"
6096 CONFIG_BSTATIC
="-Wl,-Bstatic"
6097 CONFIG_BSHARED
="-Wl,-Bdynamic"
6099 CONFIG_BPATH
="-Wl,-rpath,"
6100 CONFIG_BX
="$X_LIBS -lXext -lX11"
6101 CONFIG_WORD_LENGTH
="4"
6102 CONFIG_WORD_LENGTH_INC
="3"
6103 CONFIG_WORD_MASK
="0xfffffffc"
6104 CONFIG_MAX_FAST
="260 // WORD_LENGTH more than power of 2"
6106 echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
6107 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6
6108 if test "$cross_compiling" = yes; then
6109 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
6110 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6111 { (exit 1); exit 1; }; }
6113 cat >conftest.
$ac_ext <<_ACEOF
6114 #line $LINENO "configure"
6115 #include "confdefs.h"
6117 #ifdef F77_DUMMY_MAIN
6121 int F77_DUMMY_MAIN() { return 1; }
6126 return(sizeof(void*))
6131 rm -f conftest
$ac_exeext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6133 (eval $ac_link) 2>&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6144 echo "$as_me: program exited with status $ac_status" >&5
6145 echo "$as_me: failed program was:" >&5
6146 cat conftest.
$ac_ext >&5
6150 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6152 if test "$void_size" = "8"; then
6153 echo "$as_me:$LINENO: result: yes" >&5
6154 echo "${ECHO_T}yes" >&6
6155 CONFIG_WORD_LENGTH
="8"
6156 CONFIG_WORD_LENGTH_INC
="7"
6157 CONFIG_WORD_MASK
="0xfffffffffffffff8"
6158 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6165 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
6166 if test -f $ac_dir/install-sh
; then
6168 ac_install_sh
="$ac_aux_dir/install-sh -c"
6170 elif test -f $ac_dir/install.sh
; then
6172 ac_install_sh
="$ac_aux_dir/install.sh -c"
6174 elif test -f $ac_dir/shtool
; then
6176 ac_install_sh
="$ac_aux_dir/shtool install -c"
6180 if test -z "$ac_aux_dir"; then
6181 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
6182 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
6183 { (exit 1); exit 1; }; }
6185 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
6186 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
6187 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
6189 # Make sure we can run config.sub.
6190 $ac_config_sub sun4
>/dev
/null
2>&1 ||
6191 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
6192 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
6193 { (exit 1); exit 1; }; }
6195 echo "$as_me:$LINENO: checking build system type" >&5
6196 echo $ECHO_N "checking build system type... $ECHO_C" >&6
6197 if test "${ac_cv_build+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 ac_cv_build_alias
=$build_alias
6201 test -z "$ac_cv_build_alias" &&
6202 ac_cv_build_alias
=`$ac_config_guess`
6203 test -z "$ac_cv_build_alias" &&
6204 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6205 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6206 { (exit 1); exit 1; }; }
6207 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
6208 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
6209 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
6210 { (exit 1); exit 1; }; }
6213 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6214 echo "${ECHO_T}$ac_cv_build" >&6
6216 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6217 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6218 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6221 echo "$as_me:$LINENO: checking host system type" >&5
6222 echo $ECHO_N "checking host system type... $ECHO_C" >&6
6223 if test "${ac_cv_host+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_cv_host_alias
=$host_alias
6227 test -z "$ac_cv_host_alias" &&
6228 ac_cv_host_alias
=$ac_cv_build_alias
6229 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
6230 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6231 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6232 { (exit 1); exit 1; }; }
6235 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6236 echo "${ECHO_T}$ac_cv_host" >&6
6238 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6239 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6240 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6244 i
*86-*-linux* | x86_64-
*-linux*)
6245 echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
6246 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6
6247 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6249 i
*86-*-freebsd* | x86_64-
*-freebsd*)
6250 echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
6251 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6
6252 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6255 echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
6256 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6
6257 CONFIG_CXXOPTIMIZE
="-O3"
6258 CONFIG_BPATH
="-Wl,-R,"
6259 CONFIG_BX
="$X_LIBS -lXext -lX11 -lsocket"
6262 echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
6263 echo "${ECHO_T}final adjustments for cygwin host" >&6
6265 CONFIG_BFLAGS
="-Wl,-stack,8388608"
6266 # CXX="export CYGWIN=check_case:strict; $CXX"
6270 echo "$ac_t""final adjustments for a PowerPC/Darwin host" 1>&6
6272 CONFIG_CXXFLAGS
="-I${prefix}/include"
6276 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
6279 echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
6280 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6
6281 CONFIG_OS
="POWERPC_GNU_LINUX"
6282 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6285 echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
6286 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6
6288 CONFIG_OS_SUFFIX
="sun"
6291 CONFIG_BPATH
="-Wl,-R,"
6292 CONFIG_BX
="$X_LIBS -lXext -lX11 -lsocket"
6293 CONFIG_WORD_LENGTH
="8"
6294 CONFIG_WORD_LENGTH_INC
="7"
6295 CONFIG_WORD_MASK
="0xfffffff8"
6296 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
6297 CONFIG_STD_SETENV
=""
6300 echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
6301 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6
6302 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
6303 CONFIG_WORD_LENGTH
="8"
6304 CONFIG_WORD_LENGTH_INC
="7"
6305 CONFIG_WORD_MASK
="0xfffffff8"
6306 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
6307 CONFIG_STD_SETENV
=""
6310 echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
6311 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6
6313 CONFIG_BSHARED
="-shared"
6314 CONFIG_STD_SETENV
=""
6317 echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
6318 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6
6320 CONFIG_BSHARED
="-shared"
6323 echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
6324 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6
6325 CONFIG_STD_SETENV
=""
6328 echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
6329 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6
6331 CONFIG_BSHARED
="-shared"
6334 echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
6335 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6
6336 CONFIG_CXXFLAGS
="$CONFIG_CXXFLAGS -fPIC"
6338 CONFIG_BSHARED
="-shared"
6341 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
6348 CONFIG_BX
="$X_LIBS -lX11"
6349 CONFIG_WORD_MASK
="0xfffffff8"
6350 CONFIG_STD_SETENV
=""
6351 CONFIG_CHMOD
="chmod"
6352 CONFIG_LIB_PATH
="LD_LIBRARYN32_PATH"
6354 m68k-
*-linux* | mips-
*-linux* | mipsel-
*-linux* | arm
*-*-linux*)
6355 echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
6356 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6
6359 echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
6360 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6
6363 echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
6364 echo "${ECHO_T}final adjustments for a generic host" >&6
6368 #--------------------------------------------------------------------
6369 # Temporary fix for link problem
6370 #--------------------------------------------------------------------
6372 case "$GXX_VERSION" in
6374 CONFIG_BSTATIC
="-static"
6375 CONFIG_BSHARED
="-dynamic"
6379 #--------------------------------------------------------------------
6380 # Memory allocation options
6381 #--------------------------------------------------------------------
6383 # Check whether --enable-fastalloc or --disable-fastalloc was given.
6384 if test "${enable_fastalloc+set}" = set; then
6385 enableval
="$enable_fastalloc"
6388 enable_fastalloc
="yes"
6390 case "$enable_fastalloc" in
6394 echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
6395 echo "${ECHO_T}disabling fast allocator for small objects" >&6
6397 cat >>confdefs.h
<<\_ACEOF
6398 #define NO_FAST_ALLOC 1
6403 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
6404 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
6405 { (exit 1); exit 1; }; }
6409 #--------------------------------------------------------------------
6410 # Experimental options
6411 #--------------------------------------------------------------------
6413 # Check whether --enable-experimental or --disable-experimental was given.
6414 if test "${enable_experimental+set}" = set; then
6415 enableval
="$enable_experimental"
6418 enable_experimental
="no"
6420 case "$enable_experimental" in
6422 echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
6423 echo "${ECHO_T}enabling experimental style rewriting code" >&6
6425 cat >>confdefs.h
<<\_ACEOF
6426 #define EXPERIMENTAL 1
6429 CONFIG_EXPERIMENTAL
="Memorizer Environment Evaluate"
6432 echo "$as_me:$LINENO: result: disabling experimental features" >&5
6433 echo "${ECHO_T}disabling experimental features" >&6
6434 CONFIG_EXPERIMENTAL
=""
6437 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
6438 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
6439 { (exit 1); exit 1; }; }
6444 #--------------------------------------------------------------------
6446 #--------------------------------------------------------------------
6448 echo "$as_me:$LINENO: checking if compiler supports -fno-rtti -fno-exceptions" >&5
6449 echo $ECHO_N "checking if compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6450 CXXFLAGS
="-fno-rtti -fno-exceptions"
6451 cat >conftest.
$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 #include "confdefs.h"
6455 int some_variable = 0;
6457 #ifdef F77_DUMMY_MAIN
6461 int F77_DUMMY_MAIN() { return 1; }
6472 rm -f conftest.
$ac_objext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6474 (eval $ac_compile) 2>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try
='test -s conftest.$ac_objext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6485 CONFIG_CXXDIALECT
="-fno-rtti -fno-exceptions"
6486 echo "$as_me:$LINENO: result: yes" >&5
6487 echo "${ECHO_T}yes" >&6
6490 echo "$as_me: failed program was:" >&5
6491 cat conftest.
$ac_ext >&5
6493 CONFIG_CXXDIALECT
=""
6494 echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6
6498 rm -f conftest.
$ac_objext conftest.
$ac_ext
6502 # Check whether --enable-debug or --disable-debug was given.
6503 if test "${enable_debug+set}" = set; then
6504 enableval
="$enable_debug"
6510 if test "$enable_debug" = "yes"; then
6511 if test "$GXX" = "yes"; then
6512 enable_debug
="-ggdb"
6518 if test "$enable_debug" = "no"; then
6519 echo "$as_me:$LINENO: result: disabling debugging" >&5
6520 echo "${ECHO_T}disabling debugging" >&6
6521 CONFIG_STRIP
="strip"
6523 optimize_default
="yes"
6525 echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
6526 echo "${ECHO_T}enabling debugging, $enable_debug" >&6
6528 CONFIG_CXXDEBUG
="$enable_debug"
6529 optimize_default
="no"
6532 #--------------------------------------------------------------------
6534 #--------------------------------------------------------------------
6536 case "$GXX_VERSION" in
6538 CONFIG_CXXWARNING
="";
6541 CONFIG_CXXWARNING
="-Wall -Wno-return-type"
6545 # Check whether --enable-warnings or --disable-warnings was given.
6546 if test "${enable_warnings+set}" = set; then
6547 enableval
="$enable_warnings"
6550 enable_warnings
="yes"
6552 case "$enable_warnings" in
6554 echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
6555 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6 ;;
6557 CONFIG_CXXWARNING
=""
6558 echo "$as_me:$LINENO: result: disabling warning flags" >&5
6559 echo "${ECHO_T}disabling warning flags" >&6 ;;
6561 CONFIG_CXXWARNING
="$enable_warnings"
6562 echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
6563 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6 ;;
6566 #--------------------------------------------------------------------
6567 # Optimization options
6568 #--------------------------------------------------------------------
6570 if test "$optimize_default" = "yes"; then
6571 case "$GXX_VERSION" in
6572 3.3.3 |
3.3.4 |
4.
*)
6574 2.96 |
3.0 |
3.0.
* |
3.1 |
3.1.
* |
3.2 |
3.2.
* |
3.3 |
3.3.
*)
6576 i
*86-*-linux-gnu* | i
*86-*-freebsd*)
6577 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
6578 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
6579 optimize_default
="no-inline"
6582 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
6583 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
6584 optimize_default
="no-inline"
6591 # Check whether --enable-optimize or --disable-optimize was given.
6592 if test "${enable_optimize+set}" = set; then
6593 enableval
="$enable_optimize"
6596 enable_optimize
="$optimize_default"
6599 case "$enable_optimize" in
6601 # keep optimization options
6602 echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
6603 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6 ;;
6605 optimize_no_inline
="-fno-default-inline -fno-inline"
6606 CONFIG_CXXOPTIMIZE
="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
6607 echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
6608 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6 ;;
6610 CONFIG_CXXOPTIMIZE
=""
6611 echo "$as_me:$LINENO: result: disabling optimizations" >&5
6612 echo "${ECHO_T}disabling optimizations" >&6 ;;
6614 CONFIG_CXXOPTIMIZE
="$enable_optimize"
6615 echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
6616 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6 ;;
6619 #--------------------------------------------------------------------
6620 # Substitute TeXmacs specific configuration parameters
6621 #--------------------------------------------------------------------
6646 #--------------------------------------------------------------------
6647 # Default paths for installation
6648 #--------------------------------------------------------------------
6650 if test "$prefix" = ""; then
6653 if test "$prefix" = "NONE"; then
6656 if test "$exec_prefix" = ""; then
6657 exec_prefix
='${prefix}'
6659 if test "$exec_prefix" = "NONE"; then
6660 exec_prefix
='${prefix}'
6662 if test "$exec_prefix" = '${prefix}'; then
6663 exec_prefix
='${prefix}'
6665 if test "$includedir" = ""; then
6666 includedir
='${prefix}/include'
6668 if test "$includedir" = "NONE"; then
6669 includedir
='${prefix}/include'
6671 if test "$includedir" = '${prefix}/include'; then
6672 includedir
='${prefix}/include'
6674 if test "$libdir" = ""; then
6675 libdir
='${exec_prefix}/lib'
6677 if test "$libdir" = "NONE"; then
6678 libdir
='${exec_prefix}/lib'
6680 if test "$libdir" = '${exec_prefix}/lib'; then
6681 libdir
='${exec_prefix}/lib'
6683 if test "$bindir" = ""; then
6684 bindir
='${exec_prefix}/bin'
6686 if test "$bindir" = "NONE"; then
6687 bindir
=${exec_prefix}/bin
6689 if test "$bindir" = '${exec_prefix}/bin'; then
6690 bindir
='${exec_prefix}/bin'
6692 if test "$datadir" = ""; then
6693 datadir
='${prefix}/share'
6695 if test "$datadir" = "NONE"; then
6696 datadir
='${prefix}/share'
6698 if test "$datadir" = '${prefix}/share'; then
6699 datadir
='${prefix}/share'
6701 if test "$mandir" = ""; then
6702 mandir
='${prefix}/man'
6704 if test "$mandir" = "NONE"; then
6705 mandir
='${prefix}/man'
6707 if test "$mandir" = '${prefix}/man'; then
6708 mandir
='${prefix}/man'
6710 if test "$libexecdir" = ""; then
6711 libexecdir
='${exec_prefix}/libexec'
6713 if test "$libexecdir" = "NONE"; then
6714 libexecdir
='${exec_prefix}/libexec'
6716 if test "$libexecdir" = '${exec_prefix}/libexec'; then
6717 libexecdir
='${exec_prefix}/libexec'
6723 tmsrc
=${curdir}/${tmdir}
6724 tmbin
=${libexecdir}/${tmdir}
6725 tmdata
=${datadir}/${tmdir}
6732 if test "$DEVEL_RELEASE" = "1"; then
6733 tmtgz
=${PACKAGE}-${DEVEL_VERSION}
6735 tmtgz
=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
6737 tmrpm
=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
6738 if test "$STABLE_RELEASE" = "1"; then
6739 tmstgz
=${PACKAGE}-${STABLE_VERSION}
6741 tmstgz
=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
6743 tmsrpm
=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
6744 if test "$WINDOWS_RELEASE" = "1"; then
6745 tmwin
=wintexmacs-
${WINDOWS_VERSION}
6747 tmwin
=wintexmacs-
${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
6755 #--------------------------------------------------------------------
6757 #--------------------------------------------------------------------
6759 ac_config_files
="$ac_config_files Makefile:Makefile.in src/makefile:src/makefile.in src/System/tm_configure.hpp:src/System/tm_configure.in misc/admin/admin.makefile:misc/admin/admin.makefile.in misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in misc/man/texmacs.1:misc/man/texmacs.1.in misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in misc/scripts/fig2ps:misc/scripts/fig2ps.in misc/scripts/texmacs:misc/scripts/texmacs.in TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in"
6760 cat >confcache
<<\_ACEOF
6761 # This file is a shell script that caches the results of configure
6762 # tests run on this system so they can be shared between configure
6763 # scripts and configure runs, see configure's option --config-cache.
6764 # It is not useful on other systems. If it contains results you don't
6765 # want to keep, you may remove or edit it.
6767 # config.status only pays attention to the cache file if you give it
6768 # the --recheck option to rerun configure.
6770 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6776 # The following way of writing the cache mishandles newlines in values,
6777 # but we know of no workaround that is simple, portable, and efficient.
6778 # So, don't put newlines in cache variables' values.
6779 # Ultrix sh set writes to stderr and can't be redirected directly,
6780 # and sets the high bit in the cache file unless we assign to the vars.
6783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6785 # `set' does not quote correctly, so add quotes (double-quote
6786 # substitution turns \\\\ into \\, and sed turns \\ into \).
6789 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6792 # `set' quotes correctly as required by POSIX, so do not add quotes.
6794 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6801 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6803 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6805 if cmp -s $cache_file confcache
; then :; else
6806 if test -w $cache_file; then
6807 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6808 cat confcache
>$cache_file
6810 echo "not updating unwritable cache $cache_file"
6815 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6816 # Let make expand exec_prefix.
6817 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6819 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6820 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6821 # trailing colons and then remove the whole line if VPATH becomes empty
6822 # (actually we leave an empty line to preserve line numbers).
6823 if test "x$srcdir" = x.
; then
6824 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
6825 s/:*\$(srcdir):*/:/;
6826 s/:*\${srcdir}:*/:/;
6828 s/^\([^=]*=[ ]*\):*/\1/;
6834 DEFS
=-DHAVE_CONFIG_H
6837 : ${CONFIG_STATUS=./config.status}
6838 ac_clean_files_save
=$ac_clean_files
6839 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6840 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6841 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6842 cat >$CONFIG_STATUS <<_ACEOF
6844 # Generated by $as_me.
6845 # Run this file to recreate the current configuration.
6846 # Compiler output produced by configure, useful for debugging
6847 # configure, is in config.log if it exists.
6850 SHELL=\${CONFIG_SHELL-$SHELL}
6853 cat >>$CONFIG_STATUS <<\_ACEOF
6855 ## --------------------- ##
6856 ## M4sh Initialization. ##
6857 ## --------------------- ##
6859 # Be Bourne compatible
6860 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
6863 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
6868 # Support unset when possible.
6869 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
6875 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
6876 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
6877 { LANG
=C
; export LANG
; }
6878 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6879 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
6880 { LC_ALL
=C
; export LC_ALL
; }
6881 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6882 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
6883 { LC_TIME
=C
; export LC_TIME
; }
6884 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6885 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
6886 { LC_CTYPE
=C
; export LC_CTYPE
; }
6887 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6888 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
6889 { LANGUAGE
=C
; export LANGUAGE
; }
6890 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6891 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
6892 { LC_COLLATE
=C
; export LC_COLLATE
; }
6893 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6894 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
6895 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
6896 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6897 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
6898 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
6901 # Name of the executable.
6902 as_me
=`(basename "$0") 2>/dev/null ||
6903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6904 X"$0" : 'X\(//\)$' \| \
6905 X"$0" : 'X\(/\)$' \| \
6906 . : '\(.\)' 2>/dev/null ||
6908 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6909 /^X\/\(\/\/\)$/{ s//\1/; q; }
6910 /^X\/\(\/\).*/{ s//\1/; q; }
6913 # PATH needs CR, and LINENO needs CR and PATH.
6914 # Avoid depending upon Character Ranges.
6915 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6916 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6917 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6918 as_cr_digits
='0123456789'
6919 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6921 # The user is always right.
6922 if test "${PATH_SEPARATOR+set}" != set; then
6923 echo "#! /bin/sh" >conftest.sh
6924 echo "exit 0" >>conftest.sh
6925 chmod +x conftest.sh
6926 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
6937 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
6938 test "x$as_lineno_1" != "x$as_lineno_2" &&
6939 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
6940 # Find who we are. Look in the path if we contain no path at all
6943 *[\\/]* ) as_myself
=$0 ;;
6944 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir
=.
6949 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
6954 # We did not find ourselves, most probably we were run as `sh COMMAND'
6955 # in which case we are not to be found in the path.
6956 if test "x$as_myself" = x
; then
6959 if test ! -f "$as_myself"; then
6960 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6961 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6962 { (exit 1); exit 1; }; }
6964 case $CONFIG_SHELL in
6966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6967 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
6970 test -z "$as_dir" && as_dir
=.
6971 for as_base
in sh bash ksh sh5
; do
6974 if ("$as_dir/$as_base" -c '
6977 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6978 test "x$as_lineno_1" != "x$as_lineno_2" &&
6979 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
6980 CONFIG_SHELL
=$as_dir/$as_base
6982 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6990 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6991 # uniformly replaced by the line number. The first 'sed' inserts a
6992 # line-number line before each line; the second 'sed' does the real
6993 # work. The second script uses 'N' to pair each line-number line
6994 # with the numbered line, and appends trailing '-' during
6995 # substitution so that $LINENO is not a special case at line end.
6996 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6997 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6998 sed '=' <$as_myself |
7003 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7006 s,^['$as_cr_digits']*\n,,
7008 chmod +x
$as_me.lineno ||
7009 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7010 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7011 { (exit 1); exit 1; }; }
7013 # Don't try to exec as it changes $[0], causing all sort of problems
7014 # (the dirname of $[0] is not the place where we might find the
7015 # original and so on. Autoconf is especially sensible to this).
7017 # Exit status is that of the last command.
7022 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7023 *c
*,-n*) ECHO_N
= ECHO_C
='
7025 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
7026 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
7029 if expr a
: '\(a\)' >/dev
/null
2>&1; then
7035 rm -f conf$$ conf$$.exe conf$$.
file
7037 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7038 # We could just check for DJGPP; but this test a) works b) is more generic
7039 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7040 if test -f conf$$.exe
; then
7041 # Don't use ln at all; we don't have any links
7046 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7051 rm -f conf$$ conf$$.exe conf$$.
file
7053 as_executable_p
="test -f"
7055 # Sed expression to map a string onto a valid CPP name.
7056 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7058 # Sed expression to map a string onto a valid variable name.
7059 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7063 # We need space, tab and new line, in precisely that order.
7069 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
7073 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7074 # report actual input values of CONFIG_FILES etc. instead of their
7075 # values after options handling. Logging --version etc. is OK.
7079 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7080 ## Running $as_me. ##
7085 This file was extended by $as_me, which was
7086 generated by GNU Autoconf 2.53. Invocation command line was
7088 CONFIG_FILES = $CONFIG_FILES
7089 CONFIG_HEADERS = $CONFIG_HEADERS
7090 CONFIG_LINKS = $CONFIG_LINKS
7091 CONFIG_COMMANDS = $CONFIG_COMMANDS
7095 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7099 # Files that config.status was made for.
7100 if test -n "$ac_config_files"; then
7101 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7104 if test -n "$ac_config_headers"; then
7105 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7108 if test -n "$ac_config_links"; then
7109 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7112 if test -n "$ac_config_commands"; then
7113 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7116 cat >>$CONFIG_STATUS <<\_ACEOF
7119 \`$as_me' instantiates files from templates according to the
7120 current configuration.
7122 Usage: $0 [OPTIONS] [FILE]...
7124 -h, --help print this help, then exit
7125 -V, --version print version number, then exit
7126 -d, --debug don't remove temporary files
7127 --recheck update $as_me by reconfiguring in the same conditions
7128 --file=FILE[:TEMPLATE]
7129 instantiate the configuration file FILE
7130 --header=FILE[:TEMPLATE]
7131 instantiate the configuration header FILE
7133 Configuration files:
7136 Configuration headers:
7139 Report bugs to <bug-autoconf@gnu.org>."
7142 cat >>$CONFIG_STATUS <<_ACEOF
7145 configured by $0, generated by GNU Autoconf 2.53,
7146 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7148 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7149 Free Software Foundation, Inc.
7150 This config.status script is free software; the Free Software Foundation
7151 gives unlimited permission to copy, distribute and modify it."
7155 cat >>$CONFIG_STATUS <<\_ACEOF
7156 # If no file are specified by the user, then we need to provide default
7157 # value. By we need to know if files were specified by the user.
7163 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
7164 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
7166 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
7170 *) # This is not an option, so the user has probably given explicit
7172 ac_need_defaults
=false
;;
7176 # Handling of the options.
7178 cat >>$CONFIG_STATUS <<_ACEOF
7179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7180 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7181 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7183 cat >>$CONFIG_STATUS <<\_ACEOF
7184 --version |
--vers* |
-V )
7185 echo "$ac_cs_version"; exit 0 ;;
7187 # Conflict between --help and --header
7188 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7189 Try \`$0 --help' for more information." >&5
7190 echo "$as_me: error: ambiguous option: $1
7191 Try \`$0 --help' for more information." >&2;}
7192 { (exit 1); exit 1; }; };;
7193 --help |
--hel |
-h )
7194 echo "$ac_cs_usage"; exit 0 ;;
7195 --debug |
--d* |
-d )
7197 --file |
--fil |
--fi |
--f )
7199 CONFIG_FILES
="$CONFIG_FILES $1"
7200 ac_need_defaults
=false
;;
7201 --header |
--heade |
--head |
--hea )
7203 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
7204 ac_need_defaults
=false
;;
7207 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7208 Try \`$0 --help' for more information." >&5
7209 echo "$as_me: error: unrecognized option: $1
7210 Try \`$0 --help' for more information." >&2;}
7211 { (exit 1); exit 1; }; } ;;
7213 *) ac_config_targets
="$ac_config_targets $1" ;;
7225 cat >>$CONFIG_STATUS <<\_ACEOF
7226 for ac_config_target
in $ac_config_targets
7228 case "$ac_config_target" in
7229 # Handling of arguments.
7230 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
7231 "src/makefile" ) CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
7232 "src/System/tm_configure.hpp" ) CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
7233 "misc/admin/admin.makefile" ) CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
7234 "misc/doxygen/Doxyfile" ) CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
7235 "misc/man/texmacs.1" ) CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
7236 "misc/rpm/TeXmacs.spec" ) CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
7237 "misc/scripts/fig2ps" ) CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
7238 "misc/scripts/texmacs" ) CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
7239 "TeXmacs/examples/plugins/dynlink/Makefile" ) CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
7240 "src/System/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
7241 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7242 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7243 { (exit 1); exit 1; }; };;
7247 # If the user did not use the arguments to specify the items to instantiate,
7248 # then the envvar interface is used. Set only those that are not.
7249 # We use the long form for the default assignment because of an extremely
7250 # bizarre bug on SunOS 4.1.3.
7251 if $ac_need_defaults; then
7252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7256 # Create a temporary directory, and hook for its removal unless debugging.
7259 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7260 trap '{ (exit 1); exit 1; }' 1 2 13 15
7263 # Create a (secure) tmp directory for tmp files.
7266 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7267 test -n "$tmp" && test -d "$tmp"
7270 tmp
=$TMPDIR/cs$$
-$RANDOM
7271 (umask 077 && mkdir
$tmp)
7274 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7275 { (exit 1); exit 1; }
7280 cat >>$CONFIG_STATUS <<_ACEOF
7283 # CONFIG_FILES section.
7286 # No need to generate the scripts if there are no CONFIG_FILES.
7287 # This happens for instance when ./config.status config.h
7288 if test -n "\$CONFIG_FILES"; then
7289 # Protect against being on the right side of a sed subst in config.status.
7290 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7291 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7292 s,@SHELL@,$SHELL,;t t
7293 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7294 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7295 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7296 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7297 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7298 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7299 s,@exec_prefix@,$exec_prefix,;t t
7300 s,@prefix@,$prefix,;t t
7301 s,@program_transform_name@,$program_transform_name,;t t
7302 s,@bindir@,$bindir,;t t
7303 s,@sbindir@,$sbindir,;t t
7304 s,@libexecdir@,$libexecdir,;t t
7305 s,@datadir@,$datadir,;t t
7306 s,@sysconfdir@,$sysconfdir,;t t
7307 s,@sharedstatedir@,$sharedstatedir,;t t
7308 s,@localstatedir@,$localstatedir,;t t
7309 s,@libdir@,$libdir,;t t
7310 s,@includedir@,$includedir,;t t
7311 s,@oldincludedir@,$oldincludedir,;t t
7312 s,@infodir@,$infodir,;t t
7313 s,@mandir@,$mandir,;t t
7314 s,@build_alias@,$build_alias,;t t
7315 s,@host_alias@,$host_alias,;t t
7316 s,@target_alias@,$target_alias,;t t
7318 s,@ECHO_C@,$ECHO_C,;t t
7319 s,@ECHO_N@,$ECHO_N,;t t
7320 s,@ECHO_T@,$ECHO_T,;t t
7322 s,@PACKAGE@,$PACKAGE,;t t
7323 s,@DEVEL_VERSION@,$DEVEL_VERSION,;t t
7324 s,@DEVEL_RELEASE@,$DEVEL_RELEASE,;t t
7325 s,@STABLE_VERSION@,$STABLE_VERSION,;t t
7326 s,@STABLE_RELEASE@,$STABLE_RELEASE,;t t
7328 s,@CFLAGS@,$CFLAGS,;t t
7329 s,@LDFLAGS@,$LDFLAGS,;t t
7330 s,@CPPFLAGS@,$CPPFLAGS,;t t
7331 s,@ac_ct_CC@,$ac_ct_CC,;t t
7332 s,@EXEEXT@,$EXEEXT,;t t
7333 s,@OBJEXT@,$OBJEXT,;t t
7335 s,@CXXFLAGS@,$CXXFLAGS,;t t
7336 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7337 s,@GUILE_CFLAGS@,$GUILE_CFLAGS,;t t
7338 s,@GUILE_LDFLAGS@,$GUILE_LDFLAGS,;t t
7339 s,@CONFIG_GUILE_SERIAL@,$CONFIG_GUILE_SERIAL,;t t
7340 s,@CXXCPP@,$CXXCPP,;t t
7341 s,@X_CFLAGS@,$X_CFLAGS,;t t
7342 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
7343 s,@X_LIBS@,$X_LIBS,;t t
7344 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
7345 s,@CONFIG_BDL@,$CONFIG_BDL,;t t
7347 s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
7348 s,@ICONV_LDFLAGS@,$ICONV_LDFLAGS,;t t
7349 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
7350 s,@FREETYPE_LDFLAGS@,$FREETYPE_LDFLAGS,;t t
7351 s,@IMLIB2_CFLAGS@,$IMLIB2_CFLAGS,;t t
7352 s,@IMLIB2_LDFLAGS@,$IMLIB2_LDFLAGS,;t t
7353 s,@build@,$build,;t t
7354 s,@build_cpu@,$build_cpu,;t t
7355 s,@build_vendor@,$build_vendor,;t t
7356 s,@build_os@,$build_os,;t t
7358 s,@host_cpu@,$host_cpu,;t t
7359 s,@host_vendor@,$host_vendor,;t t
7360 s,@host_os@,$host_os,;t t
7361 s,@CONFIG_EXPERIMENTAL@,$CONFIG_EXPERIMENTAL,;t t
7362 s,@CONFIG_CXXDIALECT@,$CONFIG_CXXDIALECT,;t t
7363 s,@CONFIG_OS@,$CONFIG_OS,;t t
7364 s,@CONFIG_OS_SUFFIX@,$CONFIG_OS_SUFFIX,;t t
7365 s,@CONFIG_CX@,$CONFIG_CX,;t t
7366 s,@CONFIG_CXXWARNING@,$CONFIG_CXXWARNING,;t t
7367 s,@CONFIG_CXXTEMPLATE@,$CONFIG_CXXTEMPLATE,;t t
7368 s,@CONFIG_CXXOPTIMIZE@,$CONFIG_CXXOPTIMIZE,;t t
7369 s,@CONFIG_CXXDEBUG@,$CONFIG_CXXDEBUG,;t t
7370 s,@CONFIG_BFLAGS@,$CONFIG_BFLAGS,;t t
7371 s,@CONFIG_BSTATIC@,$CONFIG_BSTATIC,;t t
7372 s,@CONFIG_BSHARED@,$CONFIG_BSHARED,;t t
7373 s,@CONFIG_BPATH@,$CONFIG_BPATH,;t t
7374 s,@CONFIG_BX@,$CONFIG_BX,;t t
7375 s,@CONFIG_WORD_LENGTH@,$CONFIG_WORD_LENGTH,;t t
7376 s,@CONFIG_WORD_LENGTH_INC@,$CONFIG_WORD_LENGTH_INC,;t t
7377 s,@CONFIG_WORD_MASK@,$CONFIG_WORD_MASK,;t t
7378 s,@CONFIG_MAX_FAST@,$CONFIG_MAX_FAST,;t t
7379 s,@CONFIG_CXXFLAGS@,$CONFIG_CXXFLAGS,;t t
7380 s,@CONFIG_STD_SETENV@,$CONFIG_STD_SETENV,;t t
7381 s,@CONFIG_SO@,$CONFIG_SO,;t t
7382 s,@CONFIG_LIB_PATH@,$CONFIG_LIB_PATH,;t t
7383 s,@CONFIG_STRIP@,$CONFIG_STRIP,;t t
7384 s,@CONFIG_CHMOD@,$CONFIG_CHMOD,;t t
7385 s,@tmorig@,$tmorig,;t t
7386 s,@tmdir@,$tmdir,;t t
7387 s,@tmsrc@,$tmsrc,;t t
7388 s,@tmbin@,$tmbin,;t t
7389 s,@tmdata@,$tmdata,;t t
7390 s,@tmtgz@,$tmtgz,;t t
7391 s,@tmrpm@,$tmrpm,;t t
7392 s,@tmstgz@,$tmstgz,;t t
7393 s,@tmsrpm@,$tmsrpm,;t t
7394 s,@tmwin@,$tmwin,;t t
7399 cat >>$CONFIG_STATUS <<\_ACEOF
7400 # Split the substitutions into bite-sized pieces for seds with
7401 # small command number limits, like on Digital OSF/1 and HP-UX.
7403 ac_sed_frag
=1 # Number of current file.
7404 ac_beg
=1 # First line for current file.
7405 ac_end
=$ac_max_sed_lines # Line after last line for current file.
7408 while $ac_more_lines; do
7409 if test $ac_beg -gt 1; then
7410 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7412 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
7414 if test ! -s $tmp/subs.frag
; then
7417 # The purpose of the label and of the branching condition is to
7418 # speed up the sed processing (if there are no `@' at all, there
7419 # is no need to browse any of the substitutions).
7420 # These are the two extra sed commands mentioned above.
7422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
7423 if test -z "$ac_sed_cmds"; then
7424 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
7426 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7428 ac_sed_frag
=`expr $ac_sed_frag + 1`
7430 ac_end
=`expr $ac_end + $ac_max_sed_lines`
7433 if test -z "$ac_sed_cmds"; then
7436 fi # test -n "$CONFIG_FILES"
7439 cat >>$CONFIG_STATUS <<\_ACEOF
7440 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
7441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7443 - |
*:- |
*:-:* ) # input from stdin
7445 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7446 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7447 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7448 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7449 * ) ac_file_in
=$ac_file.
in ;;
7452 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7453 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7455 X"$ac_file" : 'X\(//\)[^/]' \| \
7456 X"$ac_file" : 'X\(//\)$' \| \
7457 X"$ac_file" : 'X\(/\)' \| \
7458 . : '\(.\)' 2>/dev/null ||
7460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7462 /^X\(\/\/\)$/{ s//\1/; q; }
7463 /^X\(\/\).*/{ s//\1/; q; }
7466 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7470 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7471 case $as_mkdir_dir in
7472 # Skip DOS drivespec
7473 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7475 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7476 test -d "$as_incr_dir" ||
7477 mkdir
"$as_incr_dir" ||
7478 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7479 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7480 { (exit 1); exit 1; }; }
7487 if test "$ac_dir" != .
; then
7488 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7489 # A "../" for each directory in $ac_dir_suffix.
7490 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7492 ac_dir_suffix
= ac_top_builddir
=
7496 .
) # No --srcdir option. We are building in place.
7498 if test -z "$ac_top_builddir"; then
7501 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
7503 [\\/]* | ?
:[\\/]* ) # Absolute path.
7504 ac_srcdir
=$srcdir$ac_dir_suffix;
7505 ac_top_srcdir
=$srcdir ;;
7507 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
7508 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
7510 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7512 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
7513 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7514 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7515 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7519 if test x
"$ac_file" != x-
; then
7520 { echo "$as_me:$LINENO: creating $ac_file" >&5
7521 echo "$as_me: creating $ac_file" >&6;}
7524 # Let's still pretend it is `configure' which instantiates (i.e., don't
7525 # use $as_me), people would be surprised to read:
7526 # /* config.h. Generated by config.status. */
7527 if test x
"$ac_file" = x-
; then
7530 configure_input
="$ac_file. "
7532 configure_input
=$configure_input"Generated from `echo $ac_file_in |
7533 sed 's,.*/,,'` by configure."
7535 # First look for the input files in the build tree, otherwise in the
7537 ac_file_inputs
=`IFS=:
7538 for f in $ac_file_in; do
7540 -) echo $tmp/stdin ;;
7542 # Absolute (can't be DOS-style, as IFS=:)
7543 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7544 echo "$as_me: error: cannot find input file: $f" >&2;}
7545 { (exit 1); exit 1; }; }
7548 if test -f "$f"; then
7551 elif test -f "$srcdir/$f"; then
7556 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7557 echo "$as_me: error: cannot find input file: $f" >&2;}
7558 { (exit 1); exit 1; }; }
7561 done` ||
{ (exit 1); exit 1; }
7563 cat >>$CONFIG_STATUS <<_ACEOF
7567 cat >>$CONFIG_STATUS <<\_ACEOF
7569 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7570 s
,@configure_input@
,$configure_input,;t t
7571 s
,@srcdir@
,$ac_srcdir,;t t
7572 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
7573 s
,@top_srcdir@
,$ac_top_srcdir,;t t
7574 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
7575 s
,@builddir@
,$ac_builddir,;t t
7576 s
,@abs_builddir@
,$ac_abs_builddir,;t t
7577 s
,@top_builddir@
,$ac_top_builddir,;t t
7578 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
7579 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7581 if test x"$ac_file" != x-; then
7582 mv $tmp/out $ac_file
7590 cat >>$CONFIG_STATUS <<\_ACEOF
7593 # CONFIG_HEADER section.
7596 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
7597 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7599 # ac_d sets the value in "#define NAME VALUE" lines.
7600 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7601 ac_dB
='[ ].*$,\1#\2'
7604 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7605 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7606 ac_uB
='$,\1#\2define\3'
7610 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
7611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7613 - |
*:- |
*:-:* ) # input from stdin
7615 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7616 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7617 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
7618 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
7619 * ) ac_file_in
=$ac_file.
in ;;
7622 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
7623 echo "$as_me: creating $ac_file" >&6;}
7625 # First look for the input files in the build tree, otherwise in the
7627 ac_file_inputs
=`IFS=:
7628 for f in $ac_file_in; do
7630 -) echo $tmp/stdin ;;
7632 # Absolute (can't be DOS-style, as IFS=:)
7633 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7634 echo "$as_me: error: cannot find input file: $f" >&2;}
7635 { (exit 1); exit 1; }; }
7638 if test -f "$f"; then
7641 elif test -f "$srcdir/$f"; then
7646 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7647 echo "$as_me: error: cannot find input file: $f" >&2;}
7648 { (exit 1); exit 1; }; }
7651 done` ||
{ (exit 1); exit 1; }
7652 # Remove the trailing spaces.
7653 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7657 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7658 # `conftest.undefs', that substitutes the proper values into
7659 # config.h.in to produce config.h. The first handles `#define'
7660 # templates, and the second `#undef' templates.
7661 # And first: Protect against being on the right side of a sed subst in
7662 # config.status. Protect against being in an unquoted here document
7664 rm -f conftest.defines conftest.undefs
7665 # Using a here document instead of a string reduces the quoting nightmare.
7666 # Putting comments in sed scripts is not portable.
7668 # `end' is used to avoid that the second main sed command (meant for
7669 # 0-ary CPP macros) applies to n-ary macro definitions.
7670 # See the Autoconf documentation for `clear'.
7671 cat >confdef2sed.
sed <<\_ACEOF
7676 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7678 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7681 # If some macros were called several times there might be several times
7682 # the same #defines, which is useless. Nevertheless, we may not want to
7683 # sort them, since we want the *last* AC-DEFINE to be honored.
7684 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7685 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7686 rm -f confdef2sed.sed
7688 # This sed command replaces #undef with comments. This is necessary, for
7689 # example, in the case of _POSIX_SOURCE, which is predefined and required
7690 # on some systems where configure will not decide to define it.
7691 cat >>conftest.undefs <<\_ACEOF
7692 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7695 # Break up conftest.defines because some shells have a limit on the size
7696 # of here documents, and old seds have small limits too (100 cmds).
7697 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7698 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7699 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7700 echo ' :' >>$CONFIG_STATUS
7702 while grep . conftest.defines >/dev/null
7704 # Write a limited-size here document to $tmp/defines.sed.
7705 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7706 # Speed up: don't consider the non `#define' lines.
7707 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7708 # Work around the forget-to-reset-the-flag bug.
7709 echo 't clr' >>$CONFIG_STATUS
7710 echo ': clr' >>$CONFIG_STATUS
7711 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
7713 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7717 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
7718 rm -f conftest.defines
7719 mv conftest.
tail conftest.defines
7721 rm -f conftest.defines
7722 echo ' fi # egrep' >>$CONFIG_STATUS
7723 echo >>$CONFIG_STATUS
7725 # Break up conftest.undefs because some shells have a limit on the size
7726 # of here documents, and old seds have small limits too (100 cmds).
7727 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7729 while grep . conftest.undefs
>/dev
/null
7731 # Write a limited-size here document to $tmp/undefs.sed.
7732 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7733 # Speed up: don't consider the non
`#undef'
7734 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7735 # Work around the forget-to-reset-the-flag bug.
7736 echo 't clr' >>$CONFIG_STATUS
7737 echo ': clr' >>$CONFIG_STATUS
7738 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7740 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7744 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7745 rm -f conftest.undefs
7746 mv conftest.tail conftest.undefs
7748 rm -f conftest.undefs
7750 cat >>$CONFIG_STATUS <<\_ACEOF
7751 # Let's still pretend it is `configure
' which instantiates (i.e., don't
7752 # use $as_me), people would be surprised to read:
7753 # /* config.h. Generated by config.status. */
7754 if test x
"$ac_file" = x-
; then
7755 echo "/* Generated by configure. */" >$tmp/config.h
7757 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7759 cat $tmp/in >>$tmp/config.h
7761 if test x
"$ac_file" != x-
; then
7762 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
7763 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7764 echo "$as_me: $ac_file is unchanged" >&6;}
7766 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
7767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7768 X"$ac_file" : 'X\(//\)[^/]' \| \
7769 X"$ac_file" : 'X\(//\)$' \| \
7770 X"$ac_file" : 'X\(/\)' \| \
7771 . : '\(.\)' 2>/dev/null ||
7773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7775 /^X\(\/\/\)$/{ s//\1/; q; }
7776 /^X\(\/\).*/{ s//\1/; q; }
7779 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
7783 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7784 case $as_mkdir_dir in
7785 # Skip DOS drivespec
7786 ?
:) as_incr_dir
=$as_mkdir_dir ;;
7788 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
7789 test -d "$as_incr_dir" ||
7790 mkdir
"$as_incr_dir" ||
7791 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7792 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7793 { (exit 1); exit 1; }; }
7799 mv $tmp/config.h
$ac_file
7808 cat >>$CONFIG_STATUS <<\_ACEOF
7810 { (exit 0); exit 0; }
7812 chmod +x
$CONFIG_STATUS
7813 ac_clean_files
=$ac_clean_files_save
7816 # configure is writing to config.log, and then calls config.status.
7817 # config.status does its own redirection, appending to config.log.
7818 # Unfortunately, on DOS this fails, as config.log is still kept open
7819 # by configure, so config.status won't be able to write to it; its
7820 # output is simply discarded. So we exec the FD to /dev/null,
7821 # effectively closing config.log, so it can be properly (re)opened and
7822 # appended to by config.status. When coming back to configure, we
7823 # need to make the FD available again.
7824 if test "$no_create" != yes; then
7827 $SHELL $CONFIG_STATUS || ac_cs_success
=false
7829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7830 # would make configure fail if this is the last instruction.
7831 $ac_cs_success ||
{ (exit 1); exit 1; }