2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 # Factoring default headers for most tests.
580 ac_includes_default
="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
624 program_transform_name
735 CONFIG_WORD_LENGTH_INC
758 ac_precious_vars
='build_alias
775 # Initialize some variables set by options.
777 ac_init_version
=false
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name
=s
,x
,x
,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir
='${exec_prefix}/bin'
802 sbindir
='${exec_prefix}/sbin'
803 libexecdir
='${exec_prefix}/libexec'
804 datarootdir
='${prefix}/share'
805 datadir
='${datarootdir}'
806 sysconfdir
='${prefix}/etc'
807 sharedstatedir
='${prefix}/com'
808 localstatedir
='${prefix}/var'
809 includedir
='${prefix}/include'
810 oldincludedir
='/usr/include'
811 docdir
='${datarootdir}/doc/${PACKAGE}'
812 infodir
='${datarootdir}/info'
817 libdir
='${exec_prefix}/lib'
818 localedir
='${datarootdir}/locale'
819 mandir
='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\
$ac_option
833 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
845 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
848 -build |
--build |
--buil |
--bui |
--bu)
849 ac_prev
=build_alias
;;
850 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
851 build_alias
=$ac_optarg ;;
853 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
854 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
855 ac_prev
=cache_file
;;
856 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
857 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
858 cache_file
=$ac_optarg ;;
861 cache_file
=config.cache
;;
863 -datadir |
--datadir |
--datadi |
--datad)
865 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
866 datadir
=$ac_optarg ;;
868 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
869 |
--dataroo |
--dataro |
--datar)
870 ac_prev
=datarootdir
;;
871 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
872 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
873 datarootdir
=$ac_optarg ;;
875 -disable-* |
--disable-*)
876 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
879 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
880 { (exit 1); exit 1; }; }
881 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
882 eval enable_
$ac_feature=no
;;
884 -docdir |
--docdir |
--docdi |
--doc |
--do)
886 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
889 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
891 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
894 -enable-* |
--enable-*)
895 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
900 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
901 eval enable_
$ac_feature=\
$ac_optarg ;;
903 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
904 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
905 |
--exec |
--exe |
--ex)
906 ac_prev
=exec_prefix
;;
907 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
908 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
909 |
--exec=* |
--exe=* |
--ex=*)
910 exec_prefix
=$ac_optarg ;;
912 -gas |
--gas |
--ga |
--g)
913 # Obsolete; use --with-gas.
916 -help |
--help |
--hel |
--he |
-h)
918 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
919 ac_init_help
=recursive
;;
920 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
921 ac_init_help
=short
;;
923 -host |
--host |
--hos |
--ho)
924 ac_prev
=host_alias
;;
925 -host=* |
--host=* |
--hos=* |
--ho=*)
926 host_alias
=$ac_optarg ;;
928 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
930 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
932 htmldir
=$ac_optarg ;;
934 -includedir |
--includedir |
--includedi |
--included |
--include \
935 |
--includ |
--inclu |
--incl |
--inc)
936 ac_prev
=includedir
;;
937 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
938 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
939 includedir
=$ac_optarg ;;
941 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
943 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
944 infodir
=$ac_optarg ;;
946 -libdir |
--libdir |
--libdi |
--libd)
948 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
951 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
952 |
--libexe |
--libex |
--libe)
953 ac_prev
=libexecdir
;;
954 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
955 |
--libexe=* |
--libex=* |
--libe=*)
956 libexecdir
=$ac_optarg ;;
958 -localedir |
--localedir |
--localedi |
--localed |
--locale)
960 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
961 localedir
=$ac_optarg ;;
963 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
964 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
965 ac_prev
=localstatedir
;;
966 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
967 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
968 localstatedir
=$ac_optarg ;;
970 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
972 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
976 # Obsolete; use --without-fp.
979 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
980 |
--no-cr |
--no-c |
-n)
983 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
984 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
987 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
988 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
989 |
--oldin |
--oldi |
--old |
--ol |
--o)
990 ac_prev
=oldincludedir
;;
991 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
992 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
993 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
994 oldincludedir
=$ac_optarg ;;
996 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
998 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1001 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1002 |
--program-pre |
--program-pr |
--program-p)
1003 ac_prev
=program_prefix
;;
1004 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1005 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1006 program_prefix
=$ac_optarg ;;
1008 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1009 |
--program-suf |
--program-su |
--program-s)
1010 ac_prev
=program_suffix
;;
1011 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1012 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1013 program_suffix
=$ac_optarg ;;
1015 -program-transform-name |
--program-transform-name \
1016 |
--program-transform-nam |
--program-transform-na \
1017 |
--program-transform-n |
--program-transform- \
1018 |
--program-transform |
--program-transfor \
1019 |
--program-transfo |
--program-transf \
1020 |
--program-trans |
--program-tran \
1021 |
--progr-tra |
--program-tr |
--program-t)
1022 ac_prev
=program_transform_name
;;
1023 -program-transform-name=* |
--program-transform-name=* \
1024 |
--program-transform-nam=* |
--program-transform-na=* \
1025 |
--program-transform-n=* |
--program-transform-=* \
1026 |
--program-transform=* |
--program-transfor=* \
1027 |
--program-transfo=* |
--program-transf=* \
1028 |
--program-trans=* |
--program-tran=* \
1029 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1030 program_transform_name
=$ac_optarg ;;
1032 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1034 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1035 pdfdir
=$ac_optarg ;;
1037 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1039 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1042 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1043 |
-silent |
--silent |
--silen |
--sile |
--sil)
1046 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1048 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1050 sbindir
=$ac_optarg ;;
1052 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1053 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1054 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1056 ac_prev
=sharedstatedir
;;
1057 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1058 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1059 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1061 sharedstatedir
=$ac_optarg ;;
1063 -site |
--site |
--sit)
1065 -site=* |
--site=* |
--sit=*)
1068 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1070 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1071 srcdir
=$ac_optarg ;;
1073 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1074 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1075 ac_prev
=sysconfdir
;;
1076 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1077 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1078 sysconfdir
=$ac_optarg ;;
1080 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1081 ac_prev
=target_alias
;;
1082 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1083 target_alias
=$ac_optarg ;;
1085 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1088 -version |
--version |
--versio |
--versi |
--vers |
-V)
1089 ac_init_version
=: ;;
1092 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1095 { echo "$as_me: error: invalid package name: $ac_package" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1098 eval with_
$ac_package=\
$ac_optarg ;;
1100 -without-* |
--without-*)
1101 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1104 { echo "$as_me: error: invalid package name: $ac_package" >&2
1105 { (exit 1); exit 1; }; }
1106 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1107 eval with_
$ac_package=no
;;
1110 # Obsolete; use --with-x.
1113 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1114 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1115 ac_prev
=x_includes
;;
1116 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1117 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1118 x_includes
=$ac_optarg ;;
1120 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1121 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1122 ac_prev
=x_libraries
;;
1123 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1124 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1125 x_libraries
=$ac_optarg ;;
1127 -*) { echo "$as_me: error: unrecognized option: $ac_option
1128 Try \`$0 --help' for more information." >&2
1129 { (exit 1); exit 1; }; }
1133 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1136 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1137 { (exit 1); exit 1; }; }
1138 eval $ac_envvar=\
$ac_optarg
1139 export $ac_envvar ;;
1142 # FIXME: should be removed in autoconf 3.0.
1143 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1145 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152 if test -n "$ac_prev"; then
1153 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1154 { echo "$as_me: error: missing argument to $ac_option" >&2
1155 { (exit 1); exit 1; }; }
1158 # Be sure to have absolute directory names.
1159 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1160 datadir sysconfdir sharedstatedir localstatedir includedir \
1161 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1162 libdir localedir mandir
1164 eval ac_val
=\$
$ac_var
1166 [\\/$
]* | ?
:[\\/]* ) continue;;
1167 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1169 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1170 { (exit 1); exit 1; }; }
1173 # There might be people who depend on the old broken behavior: `$host'
1174 # used to hold the argument of --host etc.
1175 # FIXME: To remove some day.
1178 target
=$target_alias
1180 # FIXME: To remove some day.
1181 if test "x$host_alias" != x
; then
1182 if test "x$build_alias" = x
; then
1183 cross_compiling
=maybe
1184 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1185 If a cross compiler is detected then cross compile mode will be used." >&2
1186 elif test "x$build_alias" != "x$host_alias"; then
1192 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1194 test "$silent" = yes && exec 6>/dev
/null
1197 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1198 ac_ls_di
=`ls -di .` &&
1199 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1200 { echo "$as_me: error: Working directory cannot be determined" >&2
1201 { (exit 1); exit 1; }; }
1202 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 { echo "$as_me: error: pwd does not report name of working directory" >&2
1204 { (exit 1); exit 1; }; }
1207 # Find the source files, if location was not specified.
1208 if test -z "$srcdir"; then
1209 ac_srcdir_defaulted
=yes
1210 # Try the directory containing this script, then the parent directory.
1211 ac_confdir
=`$as_dirname -- "$0" ||
1212 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1213 X"$0" : 'X\(//\)[^/]' \| \
1214 X"$0" : 'X\(//\)$' \| \
1215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1239 ac_srcdir_defaulted
=no
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1242 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1243 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1244 { (exit 1); exit 1; }; }
1246 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1248 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1249 { (exit 1); exit 1; }; }
1251 # When building in place, set srcdir=.
1252 if test "$ac_abs_confdir" = "$ac_pwd"; then
1255 # Remove unnecessary trailing slashes from srcdir.
1256 # Double slashes in file names in object file debugging info
1257 # mess up M-x gdb in Emacs.
1259 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1261 for ac_var
in $ac_precious_vars; do
1262 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1263 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1264 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1265 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1269 # Report the --help message.
1271 if test "$ac_init_help" = "long"; then
1272 # Omit some internal or obsolete options to make the list less imposing.
1273 # This message is too long to be a string in the A/UX 3.1 sh.
1275 \`configure' configures this package to adapt to many kinds of systems.
1277 Usage: $0 [OPTION]... [VAR=VALUE]...
1279 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1280 VAR=VALUE. See below for descriptions of some of the useful variables.
1282 Defaults for the options are specified in brackets.
1285 -h, --help display this help and exit
1286 --help=short display options specific to this package
1287 --help=recursive display the short help of all the included packages
1288 -V, --version display version information and exit
1289 -q, --quiet, --silent do not print \`checking...' messages
1290 --cache-file=FILE cache test results in FILE [disabled]
1291 -C, --config-cache alias for \`--cache-file=config.cache'
1292 -n, --no-create do not create output files
1293 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1295 Installation directories:
1296 --prefix=PREFIX install architecture-independent files in PREFIX
1297 [$ac_default_prefix]
1298 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1301 By default, \`make install' will install all the files in
1302 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1303 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1304 for instance \`--prefix=\$HOME'.
1306 For better control, use the options below.
1308 Fine tuning of the installation directories:
1309 --bindir=DIR user executables [EPREFIX/bin]
1310 --sbindir=DIR system admin executables [EPREFIX/sbin]
1311 --libexecdir=DIR program executables [EPREFIX/libexec]
1312 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1313 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1314 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1315 --libdir=DIR object code libraries [EPREFIX/lib]
1316 --includedir=DIR C header files [PREFIX/include]
1317 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1318 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1319 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1320 --infodir=DIR info documentation [DATAROOTDIR/info]
1321 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1322 --mandir=DIR man documentation [DATAROOTDIR/man]
1323 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1324 --htmldir=DIR html documentation [DOCDIR]
1325 --dvidir=DIR dvi documentation [DOCDIR]
1326 --pdfdir=DIR pdf documentation [DOCDIR]
1327 --psdir=DIR ps documentation [DOCDIR]
1333 --x-includes=DIR X include files are
in DIR
1334 --x-libraries=DIR X library files are
in DIR
1337 --build=BUILD configure
for building on BUILD
[guessed
]
1338 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1342 if test -n "$ac_init_help"; then
1347 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1348 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1349 --disable-fastalloc omit fast allocator
for small objects
1350 --enable-experimental support new style rewriting code
1351 --enable-macosx-extensions support new style rewriting code
1352 --enable-qt replace X11 by Qt interface
1353 --enable-cocoa replace X11 by Cocoa interface
1354 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1355 --enable-assert exit on failed assertions
in code
1356 --enable-warnings print warning messages during compilation
1357 --enable-optimize=ARG compile with optimizations guessed
1360 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1361 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1362 --with-x use the X Window System
1363 --with-iconv=DIR where to
find iconv system
1364 --with-freetype=ARG with freetype support ARG
=linked
1365 --with-cairo=ARG with cairo support ARG
=no
1366 --with-imlib2=ARG with imlib2 support ARG
=no
1367 --with-axel=ARG with axel support ARG
=no
1368 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1370 Some influential environment variables
:
1371 CC C compiler
command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1374 nonstandard directory
<lib dir
>
1375 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1376 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1377 you have headers
in a nonstandard directory
<include dir
>
1378 CXX C
++ compiler
command
1379 CXXFLAGS C
++ compiler flags
1380 CXXCPP C
++ preprocessor
1381 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1383 TMPDIR A temporary directory with
write access
[/tmp
]
1385 Use these variables to override the choices made by
`configure' or to help
1386 it to find libraries and programs with nonstandard names/locations.
1392 if test "$ac_init_help" = "recursive"; then
1393 # If there are subdirs, report their specific --help.
1394 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1395 test -d "$ac_dir" || continue
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1415 .) # We are building in place.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1439 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1449 generated by GNU Autoconf 2.61
1451 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1452 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1453 This configure script is free software; the Free Software Foundation
1454 gives unlimited permission to copy, distribute and modify it.
1458 cat >config.log <<_ACEOF
1459 This file contains any messages produced by compilers while
1460 running configure, to aid debugging if configure makes a mistake.
1462 It was created by $as_me, which was
1463 generated by GNU Autoconf 2.61. Invocation command line was
1475 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1476 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1477 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1478 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1479 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1481 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1482 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1484 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1486 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1487 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1488 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1490 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498 test -z "$as_dir" && as_dir=.
1499 echo "PATH: $as_dir"
1515 # Keep a trace of the command line.
1516 # Strip out --no-create and --no-recursion so they do not pile up.
1517 # Strip out --silent because we don't want to record it for future runs.
1518 # Also quote any args containing shell meta-characters.
1519 # Make two passes to allow for proper duplicate-argument suppression.
1523 ac_must_keep_next=false
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1534 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1552 -* ) ac_must_keep_next=true ;;
1555 ac_configure_args="$ac_configure_args '$ac_arg'"
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1579 # The following way of writing the cache mishandles newlines in values,
1581 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1582 eval ac_val=\$$ac_var
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1596 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
1599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1611 ## ----------------- ##
1612 ## Output variables. ##
1613 ## ----------------- ##
1616 for ac_var in $ac_subst_vars
1618 eval ac_val=\$$ac_var
1620 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 echo "$ac_var='\''$ac_val'\''"
1626 if test -n "$ac_subst_files"; then
1628 ## ------------------- ##
1629 ## File substitutions. ##
1630 ## ------------------- ##
1633 for ac_var in $ac_subst_files
1635 eval ac_val=\$$ac_var
1637 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 echo "$ac_var='\''$ac_val'\''"
1644 if test -s confdefs.h; then
1654 test "$ac_signal" != 0 &&
1655 echo "$as_me: caught signal $ac_signal"
1656 echo "$as_me: exit $exit_status"
1658 rm -f core *.core core.conftest.* &&
1659 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1662 for ac_signal in 1 2 13 15; do
1663 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1667 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1668 rm -f -r conftest* confdefs.h
1670 # Predefined preprocessor variables.
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_NAME "$PACKAGE_NAME"
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_STRING "$PACKAGE_STRING"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1697 # Let the site file select an alternate cache file if it wants to.
1698 # Prefer explicitly selected file to automatically selected ones.
1699 if test -n "$CONFIG_SITE"; then
1700 set x "$CONFIG_SITE"
1701 elif test "x$prefix" != xNONE; then
1702 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1704 set x "$ac_default_prefix/share/config.site" \
1705 "$ac_default_prefix/etc/config.site"
1710 if test -r "$ac_site_file"; then
1711 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1712 echo "$as_me: loading site script $ac_site_file" >&6;}
1713 sed 's/^/| /' "$ac_site_file" >&5
1718 if test -r "$cache_file"; then
1719 # Some versions of bash will fail to source /dev/null (special
1720 # files actually), so we avoid doing that.
1721 if test -f "$cache_file"; then
1722 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1723 echo "$as_me: loading cache $cache_file" >&6;}
1725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726 *) . "./$cache_file";;
1730 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1731 echo "$as_me: creating cache $cache_file" >&6;}
1735 # Check that the precious variables saved in the cache have kept the same
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740 eval ac_new_set=\$ac_env_${ac_var}_set
1741 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742 eval ac_new_val=\$ac_env_${ac_var}_value
1743 case $ac_old_set,$ac_new_set in
1745 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1746 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1749 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1750 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1754 if test "x$ac_old_val" != "x$ac_new_val"; then
1755 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1757 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1758 echo "$as_me: former value
: $ac_old_val" >&2;}
1759 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1760 echo "$as_me: current value
: $ac_new_val" >&2;}
1761 ac_cache_corrupted=:
1764 # Pass precious variables to config.status.
1765 if test "$ac_new_set" = set; then
1767 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1768 *) ac_arg=$ac_var=$ac_new_val ;;
1770 case " $ac_configure_args " in
1771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1772 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1776 if $ac_cache_corrupted; then
1777 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1778 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1779 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1780 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1781 { (exit 1); exit 1; }; }
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1811 DEVEL_VERSION="1.0.7.2"
1813 STABLE_VERSION="1.0.7"
1815 WINDOWS_VERSION="1.0.5"
1823 #--------------------------------------------------------------------
1824 # Checks for C++ compiler
1825 #--------------------------------------------------------------------
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$CC"; then
1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1850 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861 if test -n "$CC"; then
1862 { echo "$as_me:$LINENO: result: $CC" >&5
1863 echo "${ECHO_T}$CC" >&6; }
1865 { echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6; }
1871 if test -z "$ac_cv_prog_CC"; then
1873 # Extract the first word of "gcc", so it can be a program name with args.
1874 set dummy gcc; ac_word=$2
1875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 if test -n "$ac_ct_CC"; then
1881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 test -z "$as_dir" && as_dir=.
1888 for ac_exec_ext in '' $ac_executable_extensions; do
1889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1890 ac_cv_prog_ac_ct_CC="gcc"
1891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6; }
1905 { echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6; }
1909 if test "x$ac_ct_CC" = x; then
1912 case $cross_compiling:$ac_tool_warned in
1914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1915 whose name does not start with the host triplet. If you think this
1916 configuration is useful to you, please write to autoconf@gnu.org." >&5
1917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1918 whose name does not start with the host triplet. If you think this
1919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1920 ac_tool_warned=yes ;;
1928 if test -z "$CC"; then
1929 if test -n "$ac_tool_prefix"; then
1930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}cc; ac_word=$2
1932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1947 ac_cv_prog_CC="${ac_tool_prefix}cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 if test -n "$CC"; then
1959 { echo "$as_me:$LINENO: result: $CC" >&5
1960 echo "${ECHO_T}$CC" >&6; }
1962 { echo "$as_me:$LINENO: result: no" >&5
1963 echo "${ECHO_T}no" >&6; }
1969 if test -z "$CC"; then
1970 # Extract the first word of "cc", so it can be a program name with args.
1971 set dummy cc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1989 ac_prog_rejected=yes
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 if test $ac_prog_rejected = yes; then
2001 # We found a bogon in the path, so make sure we never use it.
2002 set dummy $ac_cv_prog_CC
2004 if test $# != 0; then
2005 # We chose a different compiler from the bogus one.
2006 # However, it has the same basename, so the bogon will be chosen
2007 # first if we set CC to just the basename; use the full file name.
2009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 if test -n "$CC"; then
2016 { echo "$as_me:$LINENO: result: $CC" >&5
2017 echo "${ECHO_T}$CC" >&6; }
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 for ac_prog in cl.exe
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 if test -n "$CC"; then
2058 { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2066 test -n "$CC" && break
2069 if test -z "$CC"; then
2071 for ac_prog in cl.exe
2073 # Extract the first word of "$ac_prog", so it can be a program name with args.
2074 set dummy $ac_prog; ac_word=$2
2075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$ac_ct_CC"; then
2081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090 ac_cv_prog_ac_ct_CC="$ac_prog"
2091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2101 if test -n "$ac_ct_CC"; then
2102 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2103 echo "${ECHO_T}$ac_ct_CC" >&6; }
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2110 test -n "$ac_ct_CC" && break
2113 if test "x$ac_ct_CC" = x; then
2116 case $cross_compiling:$ac_tool_warned in
2118 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2119 whose name does not start with the host triplet. If you think this
2120 configuration is useful to you, please write to autoconf@gnu.org." >&5
2121 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2122 whose name does not start with the host triplet. If you think this
2123 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2124 ac_tool_warned=yes ;;
2133 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2134 See \`config.log
' for more details." >&5
2135 echo "$as_me: error: no acceptable C compiler found in \$PATH
2136 See \`config.log' for more details.
" >&2;}
2137 { (exit 1); exit 1; }; }
2139 # Provide some information about the compiler.
2140 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2141 ac_compiler=`set X $ac_compile; echo $2`
2142 { (ac_try="$ac_compiler --version >&5"
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2148 (eval "$ac_compiler --version >&5") 2>&5
2150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2151 (exit $ac_status); }
2152 { (ac_try="$ac_compiler -v >&5"
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2158 (eval "$ac_compiler -v >&5") 2>&5
2160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2161 (exit $ac_status); }
2162 { (ac_try="$ac_compiler -V >&5"
2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165 *) ac_try_echo=$ac_try;;
2167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2168 (eval "$ac_compiler -V >&5") 2>&5
2170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2171 (exit $ac_status); }
2173 cat >conftest.$ac_ext <<_ACEOF
2176 cat confdefs.h >>conftest.$ac_ext
2177 cat >>conftest.$ac_ext <<_ACEOF
2178 /* end confdefs.h. */
2188 ac_clean_files_save=$ac_clean_files
2189 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2190 # Try to create an executable without -o first, disregard a.out.
2191 # It will help us diagnose broken compilers, and finding out an intuition
2193 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2194 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2195 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2197 # List of possible output files, starting from the most likely.
2198 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2199 # only as a last resort. b.out is created by i960 compilers.
2200 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2202 # The IRIX 6 linker writes into existing files which may not be
2203 # executable, retaining their permissions. Remove them first so a
2204 # subsequent execution test works.
2206 for ac_file in $ac_files
2209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2210 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2215 if { (ac_try="$ac_link_default"
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_link_default") 2>&5
2223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2224 (exit $ac_status); }; then
2225 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2226 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2227 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2228 # so that the user can short-circuit this test for compilers unknown to
2230 for ac_file in $ac_files ''
2232 test -f "$ac_file" || continue
2234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2237 # We found the default executable, but exeext='' is most
2241 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2243 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2245 # We set ac_cv_exeext here because the later test for it is not
2246 # safe: cross compilers may not add the suffix if given an `-o'
2247 # argument, so we may need to know it at that point already.
2248 # Even if this section looks crufty: it has the advantage of
2255 test "$ac_cv_exeext" = no && ac_cv_exeext=
2261 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2263 if test -z "$ac_file"; then
2264 echo "$as_me: failed program was
:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2267 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2268 See \
`config.log' for more details." >&5
2269 echo "$as_me: error: C compiler cannot create executables
2270 See \`config.log
' for more details." >&2;}
2271 { (exit 77); exit 77; }; }
2274 ac_exeext=$ac_cv_exeext
2276 # Check that the compiler produces executables we can run. If not, either
2277 # the compiler is broken, or we cross compile.
2278 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2280 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281 # If not cross compiling, check that we can run a simple program.
2282 if test "$cross_compiling" != yes; then
2283 if { ac_try='.
/$ac_file'
2284 { (case "(($ac_try" in
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289 (eval "$ac_try") 2>&5
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2295 if test "$cross_compiling" = maybe; then
2298 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2299 If you meant to cross compile, use \`--host'.
2300 See \
`config.log' for more details." >&5
2301 echo "$as_me: error: cannot run C compiled programs.
2302 If you meant to cross compile, use \`--host'.
2303 See \`config.log' for more details.
" >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result
: yes" >&5
2309 echo "${ECHO_T}yes" >&6; }
2311 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2312 ac_clean_files=$ac_clean_files_save
2313 # Check that the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2316 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2317 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2318 echo "${ECHO_T}$cross_compiling" >&6; }
2320 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2321 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2322 if { (ac_try="$ac_link"
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2328 (eval "$ac_link") 2>&5
2330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2331 (exit $ac_status); }; then
2332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2336 for ac_file in conftest.exe conftest conftest.*; do
2337 test -f "$ac_file" || continue
2339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2347 See \
`config.log' for more details." >&5
2348 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2349 See \`config.log
' for more details." >&2;}
2350 { (exit 1); exit 1; }; }
2353 rm -f conftest$ac_cv_exeext
2354 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2355 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2357 rm -f conftest.$ac_ext
2358 EXEEXT=$ac_cv_exeext
2360 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2361 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2362 if test "${ac_cv_objext+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 cat >conftest.$ac_ext <<_ACEOF
2368 cat confdefs.h >>conftest.$ac_ext
2369 cat >>conftest.$ac_ext <<_ACEOF
2370 /* end confdefs.h. */
2380 rm -f conftest.o conftest.obj
2381 if { (ac_try="$ac_compile"
2383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2384 *) ac_try_echo=$ac_try;;
2386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2387 (eval "$ac_compile") 2>&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; then
2391 for ac_file in conftest.o conftest.obj conftest.*; do
2392 test -f "$ac_file" || continue;
2394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2395 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2400 echo "$as_me: failed program was:" >&5
2401 sed 's
/^
/|
/' conftest.$ac_ext >&5
2403 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2404 See \`config.log' for more details.
" >&5
2405 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2406 See \
`config.log' for more details." >&2;}
2407 { (exit 1); exit 1; }; }
2410 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2412 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2413 echo "${ECHO_T}$ac_cv_objext" >&6; }
2414 OBJEXT=$ac_cv_objext
2416 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2417 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2418 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 cat >conftest.$ac_ext <<_ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h. */
2439 rm -f conftest.$ac_objext
2440 if { (ac_try="$ac_compile"
2442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2443 *) ac_try_echo
=$ac_try;;
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446 (eval "$ac_compile") 2>conftest.er1
2448 grep -v '^ *+' conftest.er1
>conftest.err
2450 cat conftest.err
>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } && {
2453 test -z "$ac_c_werror_flag" ||
2454 test ! -s conftest.err
2455 } && test -s conftest.
$ac_objext; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.
$ac_ext >&5
2464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2465 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2468 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2470 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS
=${CFLAGS+set}
2472 ac_save_CFLAGS
=$CFLAGS
2473 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_save_c_werror_flag
=$ac_c_werror_flag
2479 ac_c_werror_flag
=yes
2482 cat >conftest.
$ac_ext <<_ACEOF
2485 cat confdefs.h
>>conftest.
$ac_ext
2486 cat >>conftest.
$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2497 rm -f conftest.
$ac_objext
2498 if { (ac_try
="$ac_compile"
2500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>conftest.er1
2506 grep -v '^ *+' conftest.er1 >conftest.err
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } && {
2511 test -z "$ac_c_werror_flag" ||
2512 test ! -s conftest.err
2513 } && test -s conftest.$ac_objext; then
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2520 cat >conftest.$ac_ext <<_ACEOF
2523 cat confdefs.h >>conftest.$ac_ext
2524 cat >>conftest.$ac_ext <<_ACEOF
2525 /* end confdefs.h. */
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2539 *) ac_try_echo
=$ac_try;;
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542 (eval "$ac_compile") 2>conftest.er1
2544 grep -v '^ *+' conftest.er1
>conftest.err
2546 cat conftest.err
>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } && {
2549 test -z "$ac_c_werror_flag" ||
2550 test ! -s conftest.err
2551 } && test -s conftest.
$ac_objext; then
2554 echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.
$ac_ext >&5
2557 ac_c_werror_flag
=$ac_save_c_werror_flag
2559 cat >conftest.
$ac_ext <<_ACEOF
2562 cat confdefs.h
>>conftest.
$ac_ext
2563 cat >>conftest.
$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.
$ac_objext
2575 if { (ac_try
="$ac_compile"
2577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>conftest.er1
2583 grep -v '^ *+' conftest.er1 >conftest.err
2585 cat conftest.err >&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } && {
2588 test -z "$ac_c_werror_flag" ||
2589 test ! -s conftest.err
2590 } && test -s conftest.$ac_objext; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2619 if test "$GCC" = yes; then
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_cv_prog_cc_c89=no
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2656 s = g (p, va_arg (v,int));
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
2664 as 'x'. The following induces an error, until -std is added to get
2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
2667 that's true only with -std. */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2697 *) ac_try_echo
=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1
>conftest.err
2704 cat conftest.err
>&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.
$ac_objext; then
2710 ac_cv_prog_cc_c89
=$ac_arg
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.
$ac_ext >&5
2718 rm -f core conftest.err conftest.
$ac_objext
2719 test "x$ac_cv_prog_cc_c89" != "xno" && break
2721 rm -f conftest.
$ac_ext
2726 case "x$ac_cv_prog_cc_c89" in
2728 { echo "$as_me:$LINENO: result: none needed" >&5
2729 echo "${ECHO_T}none needed" >&6; } ;;
2731 { echo "$as_me:$LINENO: result: unsupported" >&5
2732 echo "${ECHO_T}unsupported" >&6; } ;;
2734 CC
="$CC $ac_cv_prog_cc_c89"
2735 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2736 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2741 ac_cpp
='$CPP $CPPFLAGS'
2742 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2747 ac_cpp
='$CXXCPP $CPPFLAGS'
2748 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2751 if test -z "$CXX"; then
2752 if test -n "$CCC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_CXX+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$CXX"; then
2766 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test -n "$CXX"; then
2787 { echo "$as_me:$LINENO: result: $CXX" >&5
2788 echo "${ECHO_T}$CXX" >&6; }
2790 { echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6; }
2795 test -n "$CXX" && break
2798 if test -z "$CXX"; then
2800 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy
$ac_prog; ac_word
=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$ac_ct_CXX"; then
2810 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir
=.
2817 for ac_exec_ext
in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2830 if test -n "$ac_ct_CXX"; then
2831 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2832 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2839 test -n "$ac_ct_CXX" && break
2842 if test "x$ac_ct_CXX" = x
; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2848 whose name does not start with the host triplet. If you think this
2849 configuration is useful to you, please write to autoconf@gnu.org." >&5
2850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2851 whose name does not start with the host triplet. If you think this
2852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2853 ac_tool_warned
=yes ;;
2861 # Provide some information about the compiler.
2862 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2863 ac_compiler
=`set X $ac_compile; echo $2`
2864 { (ac_try
="$ac_compiler --version >&5"
2866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_compiler --version >&5") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (ac_try="$ac_compiler -v >&5"
2876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2877 *) ac_try_echo
=$ac_try;;
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_compiler -v >&5") 2>&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try
="$ac_compiler -V >&5"
2886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890 (eval "$ac_compiler -V >&5") 2>&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }
2895 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2896 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2897 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2918 rm -f conftest.$ac_objext
2919 if { (ac_try="$ac_compile"
2921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2922 *) ac_try_echo
=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compile") 2>conftest.er1
2927 grep -v '^ *+' conftest.er1
>conftest.err
2929 cat conftest.err
>&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } && {
2932 test -z "$ac_cxx_werror_flag" ||
2933 test ! -s conftest.err
2934 } && test -s conftest.
$ac_objext; then
2937 echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.
$ac_ext >&5
2943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2944 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2947 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2948 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2949 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2950 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2951 ac_save_CXXFLAGS
=$CXXFLAGS
2952 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2953 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2954 if test "${ac_cv_prog_cxx_g+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2958 ac_cxx_werror_flag
=yes
2961 cat >conftest.
$ac_ext <<_ACEOF
2964 cat confdefs.h
>>conftest.
$ac_ext
2965 cat >>conftest.
$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.
$ac_objext
2977 if { (ac_try
="$ac_compile"
2979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } && {
2990 test -z "$ac_cxx_werror_flag" ||
2991 test ! -s conftest.err
2992 } && test -s conftest.$ac_objext; then
2993 ac_cv_prog_cxx_g=yes
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3014 rm -f conftest.$ac_objext
3015 if { (ac_try="$ac_compile"
3017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3018 *) ac_try_echo
=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compile") 2>conftest.er1
3023 grep -v '^ *+' conftest.er1
>conftest.err
3025 cat conftest.err
>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); } && {
3028 test -z "$ac_cxx_werror_flag" ||
3029 test ! -s conftest.err
3030 } && test -s conftest.
$ac_objext; then
3033 echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.
$ac_ext >&5
3036 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3038 cat >conftest.
$ac_ext <<_ACEOF
3041 cat confdefs.h
>>conftest.
$ac_ext
3042 cat >>conftest.
$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3053 rm -f conftest.
$ac_objext
3054 if { (ac_try
="$ac_compile"
3056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_compile") 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } && {
3067 test -z "$ac_cxx_werror_flag" ||
3068 test ! -s conftest.err
3069 } && test -s conftest.$ac_objext; then
3070 ac_cv_prog_cxx_g=yes
3072 echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3087 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3088 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3089 if test "$ac_test_CXXFLAGS" = set; then
3090 CXXFLAGS=$ac_save_CXXFLAGS
3091 elif test $ac_cv_prog_cxx_g = yes; then
3092 if test "$GXX" = yes; then
3098 if test "$GXX" = yes; then
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 ac_cpp='$CXXCPP $CPPFLAGS'
3112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3118 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3119 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3122 GCC_VERSION=`$CC -dumpversion`
3123 GXX_VERSION=`$CXX -dumpversion`
3124 { echo "$as_me:$LINENO: result: yes" >&5
3125 echo "${ECHO_T}yes" >&6; }
3126 { echo "$as_me:$LINENO: checking version of gcc" >&5
3127 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3128 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3129 echo "${ECHO_T}$GCC_VERSION" >&6; }
3130 { echo "$as_me:$LINENO: checking version of g++" >&5
3131 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3132 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3133 echo "${ECHO_T}$GXX_VERSION" >&6; }
3134 case "$GXX_VERSION" in
3136 echo "old style GNU compiler"
3137 cat >>confdefs.h <<\_ACEOF
3138 #define OLD_GNU_COMPILER
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3149 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3150 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3154 #--------------------------------------------------------------------
3156 #--------------------------------------------------------------------
3158 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3160 ## The GUILE_FLAGS macro.
3161 ## First, let's just see if we can find Guile at all.
3162 { echo "$as_me:$LINENO: checking for Guile" >&5
3163 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3164 guile-config link > /dev/null || {
3165 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3168 GUILE_ORIGINAL_CFLAGS="`guile-config compile
`"
3169 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3170 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3171 GUILE_LDFLAGS="`guile-config link
`"
3172 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir
` -lguile -lreadline -ltermcap"
3175 { echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6; }
3179 { echo "$as_me:$LINENO: checking version of guile" >&5
3180 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3181 if test -z "$GUILE_VERSION" ; then
3182 GUILE_VERSION=`guile
--version |
grep 'Guile \([0-9]\)' |
sed 's/Guile \([0-9]*\)/\1/'`
3184 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3185 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3187 case "$GUILE_VERSION" in
3188 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3189 CONFIG_GUILE_SERIAL="A"
3192 CONFIG_GUILE_SERIAL="B"
3195 CONFIG_GUILE_SERIAL="C"
3200 #--------------------------------------------------------------------
3201 # Checks for standard functionality
3202 #--------------------------------------------------------------------
3206 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3207 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3208 ac_save_cppflags="$CPPFLAGS"
3209 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216 #include <X11/Xlib.h>
3217 #include <X11/Xutil.h>
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3230 *) ac_try_echo
=$ac_try;;
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1
>conftest.err
3237 cat conftest.err
>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_cxx_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.
$ac_objext; then
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.
$ac_ext >&5
3252 /usr
/X11R
6/include \
3253 /usr
/X11R
5/include \
3254 /usr
/X11R
4/include \
3257 /usr
/include
/X11R6 \
3258 /usr
/include
/X11R5 \
3259 /usr
/include
/X11R4 \
3261 /usr
/local
/X11
/include \
3262 /usr
/local
/X11R
6/include \
3263 /usr
/local
/X11R
5/include \
3264 /usr
/local
/X11R
4/include \
3266 /usr
/local
/include
/X11 \
3267 /usr
/local
/include
/X11R6 \
3268 /usr
/local
/include
/X11R5 \
3269 /usr
/local
/include
/X11R4 \
3273 /usr
/XFree86
/include
/X11 \
3276 /usr
/local
/include \
3277 /usr
/unsupported
/include \
3278 /usr
/athena
/include \
3279 /usr
/local
/x11r
5/include \
3280 /usr
/lpp
/Xamples
/include \
3282 /usr
/openwin
/include \
3283 /usr
/openwin
/share
/include \
3286 if test -r "$ac_dir/X11/Xlib.h"; then
3287 tm_x_includes
=$ac_dir
3291 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3292 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3293 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3294 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3295 X_CFLAGS
="-I.. $X_CFLAGS"
3299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3300 CPPFLAGS
="$ac_save_cppflags"
3303 ac_cpp
='$CXXCPP $CPPFLAGS'
3304 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3307 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3308 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3309 if test -z "$CXXCPP"; then
3310 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 # Double quotes because CXXCPP needs to be expanded
3314 for CXXCPP
in "$CXX -E" "/lib/cpp"
3317 for ac_cxx_preproc_warn_flag
in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.
$ac_ext <<_ACEOF
3328 cat confdefs.h
>>conftest.
$ac_ext
3329 cat >>conftest.
$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3332 # include <limits.h>
3334 # include <assert.h>
3338 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null && {
3351 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3352 test ! -s conftest.err
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Broken: fails on valid input.
3363 rm -f conftest.err conftest.$ac_ext
3365 # OK, works on sane cases. Now check whether nonexistent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3378 *) ac_try_echo
=$ac_try;;
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 grep -v '^ *+' conftest.er1
>conftest.err
3385 cat conftest.err
>&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev
/null
&& {
3388 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3389 test ! -s conftest.err
3391 # Broken: success on invalid input.
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.
$ac_ext >&5
3397 # Passes both tests.
3402 rm -f conftest.err conftest.
$ac_ext
3405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 rm -f conftest.err conftest.
$ac_ext
3407 if $ac_preproc_ok; then
3412 ac_cv_prog_CXXCPP
=$CXXCPP
3415 CXXCPP
=$ac_cv_prog_CXXCPP
3417 ac_cv_prog_CXXCPP
=$CXXCPP
3419 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3420 echo "${ECHO_T}$CXXCPP" >&6; }
3422 for ac_cxx_preproc_warn_flag
in '' yes
3424 # Use a header file that comes with gcc, so configuring glibc
3425 # with a fresh cross-compiler works.
3426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3427 # <limits.h> exists even on freestanding compilers.
3428 # On the NeXT, cc -E runs the code through the compiler's parser,
3429 # not just through cpp. "Syntax error" is here to catch this case.
3430 cat >conftest.
$ac_ext <<_ACEOF
3433 cat confdefs.h
>>conftest.
$ac_ext
3434 cat >>conftest.
$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3437 # include <limits.h>
3439 # include <assert.h>
3443 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null && {
3456 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3457 test ! -s conftest.err
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 # Broken: fails on valid input.
3468 rm -f conftest.err conftest.$ac_ext
3470 # OK, works on sane cases. Now check whether nonexistent headers
3471 # can be detected and how.
3472 cat >conftest.$ac_ext <<_ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <ac_nonexistent.h>
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3483 *) ac_try_echo
=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 grep -v '^ *+' conftest.er1
>conftest.err
3490 cat conftest.err
>&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev
/null
&& {
3493 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3494 test ! -s conftest.err
3496 # Broken: success on invalid input.
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.
$ac_ext >&5
3502 # Passes both tests.
3507 rm -f conftest.err conftest.
$ac_ext
3510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511 rm -f conftest.err conftest.
$ac_ext
3512 if $ac_preproc_ok; then
3515 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516 See \`config.log' for more details." >&5
3517 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3523 ac_cpp
='$CXXCPP $CPPFLAGS'
3524 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3529 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3530 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3531 if test "${ac_cv_path_GREP+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3534 # Extract the first word of "grep ggrep" to use in msg output
3535 if test -z "$GREP"; then
3536 set dummy
grep ggrep
; ac_prog_name
=$2
3537 if test "${ac_cv_path_GREP+set}" = set; then
3538 echo $ECHO_N "(cached) $ECHO_C" >&6
3540 ac_path_GREP_found
=false
3541 # Loop through the user's path and test for each of PROGNAME-LIST
3542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3543 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3546 test -z "$as_dir" && as_dir
=.
3547 for ac_prog
in grep ggrep
; do
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3550 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3551 # Check for GNU ac_path_GREP and select it if it is found.
3552 # Check for GNU $ac_path_GREP
3553 case `"$ac_path_GREP" --version 2>&1` in
3555 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3558 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3561 cat "conftest.in" "conftest.in" >"conftest.tmp"
3562 mv "conftest.tmp" "conftest.in"
3563 cp "conftest.in" "conftest.nl"
3564 echo 'GREP' >> "conftest.nl"
3565 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3566 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3567 ac_count
=`expr $ac_count + 1`
3568 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3569 # Best one so far, save it but keep looking for a better one
3570 ac_cv_path_GREP
="$ac_path_GREP"
3571 ac_path_GREP_max
=$ac_count
3573 # 10*(2^10) chars as input seems more than enough
3574 test $ac_count -gt 10 && break
3576 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3580 $ac_path_GREP_found && break 3
3590 GREP
="$ac_cv_path_GREP"
3591 if test -z "$GREP"; then
3592 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3593 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3594 { (exit 1); exit 1; }; }
3598 ac_cv_path_GREP
=$GREP
3603 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3604 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3605 GREP
="$ac_cv_path_GREP"
3608 { echo "$as_me:$LINENO: checking for egrep" >&5
3609 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3610 if test "${ac_cv_path_EGREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3614 then ac_cv_path_EGREP
="$GREP -E"
3616 # Extract the first word of "egrep" to use in msg output
3617 if test -z "$EGREP"; then
3618 set dummy
egrep; ac_prog_name
=$2
3619 if test "${ac_cv_path_EGREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 ac_path_EGREP_found
=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3625 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_prog
in egrep; do
3630 for ac_exec_ext
in '' $ac_executable_extensions; do
3631 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3633 # Check for GNU ac_path_EGREP and select it if it is found.
3634 # Check for GNU $ac_path_EGREP
3635 case `"$ac_path_EGREP" --version 2>&1` in
3637 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3640 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 echo 'EGREP' >> "conftest.nl"
3647 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3648 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3649 ac_count
=`expr $ac_count + 1`
3650 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_EGREP
="$ac_path_EGREP"
3653 ac_path_EGREP_max
=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3658 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3662 $ac_path_EGREP_found && break 3
3672 EGREP
="$ac_cv_path_EGREP"
3673 if test -z "$EGREP"; then
3674 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3675 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3676 { (exit 1); exit 1; }; }
3680 ac_cv_path_EGREP
=$EGREP
3686 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3687 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3688 EGREP
="$ac_cv_path_EGREP"
3691 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3692 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3693 if test "${ac_cv_header_stdc+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 cat >conftest.
$ac_ext <<_ACEOF
3699 cat confdefs.h
>>conftest.
$ac_ext
3700 cat >>conftest.
$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3715 rm -f conftest.
$ac_objext
3716 if { (ac_try
="$ac_compile"
3718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722 (eval "$ac_compile") 2>conftest.er1
3724 grep -v '^ *+' conftest.er1 >conftest.err
3726 cat conftest.err >&5
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); } && {
3729 test -z "$ac_cxx_werror_flag" ||
3730 test ! -s conftest.err
3731 } && test -s conftest.$ac_objext; then
3732 ac_cv_header_stdc=yes
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_cv_header_stdc=no
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 if test $ac_cv_header_stdc = yes; then
3743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3744 cat >conftest.$ac_ext <<_ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 $EGREP "memchr" >/dev/null 2>&1; then
3757 ac_cv_header_stdc=no
3763 if test $ac_cv_header_stdc = yes; then
3764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "free" >/dev/null 2>&1; then
3778 ac_cv_header_stdc=no
3784 if test $ac_cv_header_stdc = yes; then
3785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3786 if test "$cross_compiling" = yes; then
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3797 #if ((' ' & 0x0FF) == 0x020)
3798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3801 # define ISLOWER(c) \
3802 (('a' <= (c) && (c) <= 'i') \
3803 || ('j' <= (c) && (c) <= 'r') \
3804 || ('s' <= (c) && (c) <= 'z'))
3805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3813 for (i = 0; i < 256; i++)
3814 if (XOR (islower (i), ISLOWER (i))
3815 || toupper (i) != TOUPPER (i))
3820 rm -f conftest$ac_exeext
3821 if { (ac_try="$ac_link"
3823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3824 *) ac_try_echo
=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_link") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3831 { (case "(($ac_try" in
3832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_try") 2>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3842 echo "$as_me: program exited with status $ac_status" >&5
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3847 ac_cv_header_stdc=no
3849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3855 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3856 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3857 if test $ac_cv_header_stdc = yes; then
3859 cat >>confdefs.h <<\_ACEOF
3860 #define STDC_HEADERS 1
3865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3875 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3876 inttypes.h stdint.h unistd.h
3878 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3890 $ac_includes_default
3892 #include <$ac_header>
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3898 *) ac_try_echo
=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1
>conftest.err
3905 cat conftest.err
>&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_cxx_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.
$ac_objext; then
3911 eval "$as_ac_Header=yes"
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.
$ac_ext >&5
3916 eval "$as_ac_Header=no"
3919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3921 ac_res
=`eval echo '${'$as_ac_Header'}'`
3922 { echo "$as_me:$LINENO: result: $ac_res" >&5
3923 echo "${ECHO_T}$ac_res" >&6; }
3924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3925 cat >>confdefs.h
<<_ACEOF
3926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3934 { echo "$as_me:$LINENO: checking for FILE" >&5
3935 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3936 if test "${ac_cv_type_FILE+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 cat >conftest.
$ac_ext <<_ACEOF
3942 cat confdefs.h
>>conftest.
$ac_ext
3943 cat >>conftest.
$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3945 $ac_includes_default
3946 typedef FILE ac__type_new_;
3950 if ((ac__type_new_ *) 0)
3952 if (sizeof (ac__type_new_))
3958 rm -f conftest.
$ac_objext
3959 if { (ac_try
="$ac_compile"
3961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_compile") 2>conftest.er1
3967 grep -v '^ *+' conftest.er1 >conftest.err
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && {
3972 test -z "$ac_cxx_werror_flag" ||
3973 test ! -s conftest.err
3974 } && test -s conftest.$ac_objext; then
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3986 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3987 if test $ac_cv_type_FILE = yes; then
3989 cat >>confdefs.h <<_ACEOF
3996 { echo "$as_me:$LINENO: checking for intptr_t" >&5
3997 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
3998 if test "${ac_cv_type_intptr_t+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4001 cat >conftest.$ac_ext <<_ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007 $ac_includes_default
4008 typedef intptr_t ac__type_new_;
4012 if ((ac__type_new_ *) 0)
4014 if (sizeof (ac__type_new_))
4020 rm -f conftest.$ac_objext
4021 if { (ac_try="$ac_compile"
4023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4024 *) ac_try_echo
=$ac_try;;
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4029 grep -v '^ *+' conftest.er1
>conftest.err
4031 cat conftest.err
>&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && {
4034 test -z "$ac_cxx_werror_flag" ||
4035 test ! -s conftest.err
4036 } && test -s conftest.
$ac_objext; then
4037 ac_cv_type_intptr_t
=yes
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.
$ac_ext >&5
4042 ac_cv_type_intptr_t
=no
4045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4047 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4048 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4049 if test $ac_cv_type_intptr_t = yes; then
4051 cat >>confdefs.h
<<_ACEOF
4052 #define HAVE_INTPTR_T 1
4058 { echo "$as_me:$LINENO: checking for time_t" >&5
4059 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4060 if test "${ac_cv_type_time_t+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 cat >conftest.
$ac_ext <<_ACEOF
4066 cat confdefs.h
>>conftest.
$ac_ext
4067 cat >>conftest.
$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4070 typedef time_t ac__type_new_;
4074 if ((ac__type_new_ *) 0)
4076 if (sizeof (ac__type_new_))
4082 rm -f conftest.
$ac_objext
4083 if { (ac_try
="$ac_compile"
4085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4091 grep -v '^ *+' conftest.er1 >conftest.err
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } && {
4096 test -z "$ac_cxx_werror_flag" ||
4097 test ! -s conftest.err
4098 } && test -s conftest.$ac_objext; then
4099 ac_cv_type_time_t=yes
4101 echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4104 ac_cv_type_time_t=no
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4110 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4111 if test $ac_cv_type_time_t = yes; then
4113 cat >>confdefs.h <<_ACEOF
4114 #define HAVE_TIME_T 1
4120 { echo "$as_me:$LINENO: checking for X" >&5
4121 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4124 # Check whether --with-x was given.
4125 if test "${with_x+set}" = set; then
4129 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4130 if test "x$with_x" = xno; then
4131 # The user explicitly disabled X.
4134 case $x_includes,$x_libraries in #(
4135 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4136 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4137 { (exit 1); exit 1; }; };; #(
4138 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 # One or both of the vars are not set, and there is no cached value.
4142 ac_x_includes=no ac_x_libraries=no
4143 rm -f -r conftest.dir
4144 if mkdir conftest.dir; then
4146 cat >Imakefile <<'_ACEOF'
4148 @echo incroot='${INCROOT}'
4150 @echo usrlibdir='${USRLIBDIR}'
4152 @echo libdir='${LIBDIR}'
4154 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4155 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4156 for ac_var in incroot usrlibdir libdir; do
4157 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
4159 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4160 for ac_extension in a so sl; do
4161 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4162 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4163 ac_im_usrlibdir=$ac_im_libdir; break
4166 # Screen out bogus values from the imake configuration. They are
4167 # bogus both because they are the default anyway, and because
4168 # using them would break gcc on systems where it needs fixed includes.
4169 case $ac_im_incroot in
4170 /usr/include) ac_x_includes= ;;
4171 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4173 case $ac_im_usrlibdir in
4175 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4179 rm -f -r conftest.dir
4182 # Standard set of common directories for X headers.
4183 # Check X11 before X11Rn because it is often a symlink to the current release.
4195 /usr/local/X11/include
4196 /usr/local/X11R6/include
4197 /usr/local/X11R5/include
4198 /usr/local/X11R4/include
4200 /usr/local/include/X11
4201 /usr/local/include/X11R6
4202 /usr/local/include/X11R5
4203 /usr/local/include/X11R4
4207 /usr/XFree86/include/X11
4211 /usr/unsupported/include
4213 /usr/local/x11r5/include
4214 /usr/lpp/Xamples/include
4216 /usr/openwin/include
4217 /usr/openwin/share/include'
4219 if test "$ac_x_includes" = no; then
4220 # Guess where to find include files, by looking for Xlib.h.
4221 # First, try using that file with no special directory specified.
4222 cat >conftest.$ac_ext <<_ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h. */
4228 #include <X11/Xlib.h>
4230 if { (ac_try="$ac_cpp conftest.$ac_ext"
4232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4233 *) ac_try_echo
=$ac_try;;
4235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4238 grep -v '^ *+' conftest.er1
>conftest.err
4240 cat conftest.err
>&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); } >/dev
/null
&& {
4243 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4244 test ! -s conftest.err
4246 # We can compile using X headers with no special include directory.
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.
$ac_ext >&5
4252 for ac_dir
in $ac_x_header_dirs; do
4253 if test -r "$ac_dir/X11/Xlib.h"; then
4254 ac_x_includes
=$ac_dir
4260 rm -f conftest.err conftest.
$ac_ext
4261 fi # $ac_x_includes = no
4263 if test "$ac_x_libraries" = no
; then
4264 # Check for the libraries.
4265 # See if we find them without any special options.
4266 # Don't add to $LIBS permanently.
4269 cat >conftest.
$ac_ext <<_ACEOF
4272 cat confdefs.h
>>conftest.
$ac_ext
4273 cat >>conftest.
$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 #include <X11/Xlib.h>
4284 rm -f conftest.
$ac_objext conftest
$ac_exeext
4285 if { (ac_try
="$ac_link"
4287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_link") 2>conftest.er1
4293 grep -v '^ *+' conftest.er1 >conftest.err
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); } && {
4298 test -z "$ac_cxx_werror_flag" ||
4299 test ! -s conftest.err
4300 } && test -s conftest$ac_exeext &&
4301 $as_test_x conftest$ac_exeext; then
4303 # We can link X programs with no special library path.
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4310 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
4312 # Don't even attempt the hair of trying to link an X program!
4313 for ac_extension in a so sl; do
4314 if test -r "$ac_dir/libX11.$ac_extension"; then
4315 ac_x_libraries=$ac_dir
4322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4323 conftest$ac_exeext conftest.$ac_ext
4324 fi # $ac_x_libraries = no
4326 case $ac_x_includes,$ac_x_libraries in #(
4328 # Didn't find X, or a directory has "'" in its name.
4329 ac_cv_have_x="have_x=no";; #(
4331 # Record where we found X for the cache.
4332 ac_cv_have_x="have_x=yes\
4333 ac_x_includes='$ac_x_includes'\
4334 ac_x_libraries='$ac_x_libraries'"
4340 eval "$ac_cv_have_x"
4343 if test "$have_x" != yes; then
4344 { echo "$as_me:$LINENO: result: $have_x" >&5
4345 echo "${ECHO_T}$have_x" >&6; }
4348 # If each of the values was on the command line, it overrides each guess.
4349 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4350 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4351 # Update the cache value to reflect the command line values.
4352 ac_cv_have_x="have_x=yes\
4353 ac_x_includes='$x_includes'\
4354 ac_x_libraries='$x_libraries'"
4355 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4359 if test "$no_x" = yes; then
4360 # Not all programs may use this symbol, but it does not hurt to define it.
4362 cat >>confdefs.h <<\_ACEOF
4363 #define X_DISPLAY_MISSING 1
4366 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4368 if test -n "$x_includes"; then
4369 X_CFLAGS="$X_CFLAGS -I$x_includes"
4372 # It would also be nice to do this for all -L options, not just this one.
4373 if test -n "$x_libraries"; then
4374 X_LIBS="$X_LIBS -L$x_libraries"
4375 # For Solaris; some versions of Sun CC require a space after -R and
4376 # others require no space. Words are not sufficient . . . .
4377 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4378 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4379 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4380 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4397 rm -f conftest.$ac_objext conftest$ac_exeext
4398 if { (ac_try="$ac_link"
4400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4401 *) ac_try_echo
=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_link") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1
>conftest.err
4408 cat conftest.err
>&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } && {
4411 test -z "$ac_cxx_werror_flag" ||
4412 test ! -s conftest.err
4413 } && test -s conftest
$ac_exeext &&
4414 $as_test_x conftest
$ac_exeext; then
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4417 X_LIBS
="$X_LIBS -R$x_libraries"
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.
$ac_ext >&5
4422 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4423 cat >conftest.
$ac_ext <<_ACEOF
4426 cat confdefs.h
>>conftest.
$ac_ext
4427 cat >>conftest.
$ac_ext <<_ACEOF
4428 /* end confdefs.h. */
4438 rm -f conftest.
$ac_objext conftest
$ac_exeext
4439 if { (ac_try
="$ac_link"
4441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_link") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_cxx_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest$ac_exeext &&
4455 $as_test_x conftest$ac_exeext; then
4456 { echo "$as_me:$LINENO: result: yes" >&5
4457 echo "${ECHO_T}yes" >&6; }
4458 X_LIBS="$X_LIBS -R $x_libraries"
4460 echo "$as_me: failed program was:" >&5
4461 sed 's/^/| /' conftest.$ac_ext >&5
4463 { echo "$as_me:$LINENO: result: neither works" >&5
4464 echo "${ECHO_T}neither works" >&6; }
4467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4468 conftest$ac_exeext conftest.$ac_ext
4471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4472 conftest$ac_exeext conftest.$ac_ext
4473 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4477 # Check for system-dependent libraries X programs must link with.
4478 # Do this before checking for the system-independent R6 libraries
4479 # (-lICE), since we may need -lsocket or whatever for X linking.
4481 if test "$ISC" = yes; then
4482 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4484 # Martyn Johnson says this is needed for Ultrix, if the X
4485 # libraries were built with DECnet support. And Karl Berry says
4486 # the Alpha needs dnet_stub (dnet does not exist).
4487 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4495 /* Override any GCC internal prototype to avoid an error.
4496 Use char because int might match the return type of a GCC
4497 builtin and then its argument prototype would still apply. */
4501 char XOpenDisplay ();
4505 return XOpenDisplay ();
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (ac_try="$ac_link"
4513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4514 *) ac_try_echo
=$ac_try;;
4516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4517 (eval "$ac_link") 2>conftest.er1
4519 grep -v '^ *+' conftest.er1
>conftest.err
4521 cat conftest.err
>&5
4522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523 (exit $ac_status); } && {
4524 test -z "$ac_cxx_werror_flag" ||
4525 test ! -s conftest.err
4526 } && test -s conftest
$ac_exeext &&
4527 $as_test_x conftest
$ac_exeext; then
4530 echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.
$ac_ext >&5
4533 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4534 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4535 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_check_lib_save_LIBS
=$LIBS
4540 cat >conftest.
$ac_ext <<_ACEOF
4543 cat confdefs.h
>>conftest.
$ac_ext
4544 cat >>conftest.
$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4547 /* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
4557 return dnet_ntoa ();
4562 rm -f conftest.
$ac_objext conftest
$ac_exeext
4563 if { (ac_try
="$ac_link"
4565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_link") 2>conftest.er1
4571 grep -v '^ *+' conftest.er1 >conftest.err
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_cxx_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest$ac_exeext &&
4579 $as_test_x conftest$ac_exeext; then
4580 ac_cv_lib_dnet_dnet_ntoa=yes
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4585 ac_cv_lib_dnet_dnet_ntoa=no
4588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4589 conftest$ac_exeext conftest.$ac_ext
4590 LIBS=$ac_check_lib_save_LIBS
4592 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4593 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4594 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4599 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4600 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4601 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4602 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 ac_check_lib_save_LIBS=$LIBS
4605 LIBS="-ldnet_stub $LIBS"
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4613 /* Override any GCC internal prototype to avoid an error.
4614 Use char because int might match the return type of a GCC
4615 builtin and then its argument prototype would still apply. */
4623 return dnet_ntoa ();
4628 rm -f conftest.$ac_objext conftest$ac_exeext
4629 if { (ac_try="$ac_link"
4631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4632 *) ac_try_echo
=$ac_try;;
4634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4635 (eval "$ac_link") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1
>conftest.err
4639 cat conftest.err
>&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_cxx_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest
$ac_exeext &&
4645 $as_test_x conftest
$ac_exeext; then
4646 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.
$ac_ext >&5
4651 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4654 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4655 conftest
$ac_exeext conftest.
$ac_ext
4656 LIBS
=$ac_check_lib_save_LIBS
4658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4659 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4660 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4661 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4667 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4668 conftest
$ac_exeext conftest.
$ac_ext
4669 LIBS
="$ac_xsave_LIBS"
4671 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4672 # to get the SysV transport functions.
4673 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4675 # The nsl library prevents programs from opening the X display
4676 # on Irix 5.2, according to T.E. Dickey.
4677 # The functions gethostbyname, getservbyname, and inet_addr are
4678 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4679 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4680 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4681 if test "${ac_cv_func_gethostbyname+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 cat >conftest.
$ac_ext <<_ACEOF
4687 cat confdefs.h
>>conftest.
$ac_ext
4688 cat >>conftest.
$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4690 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4692 #define gethostbyname innocuous_gethostbyname
4694 /* System header to define __stub macros and hopefully few prototypes,
4695 which can conflict with char gethostbyname (); below.
4696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4697 <limits.h> exists even on freestanding compilers. */
4700 # include <limits.h>
4702 # include <assert.h>
4705 #undef gethostbyname
4707 /* Override any GCC internal prototype to avoid an error.
4708 Use char because int might match the return type of a GCC
4709 builtin and then its argument prototype would still apply. */
4713 char gethostbyname ();
4714 /* The GNU C library defines this for functions which it implements
4715 to always fail with ENOSYS. Some functions are actually named
4716 something starting with __ and the normal name is an alias. */
4717 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4724 return gethostbyname ();
4729 rm -f conftest.
$ac_objext conftest
$ac_exeext
4730 if { (ac_try
="$ac_link"
4732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_link") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } && {
4743 test -z "$ac_cxx_werror_flag" ||
4744 test ! -s conftest.err
4745 } && test -s conftest$ac_exeext &&
4746 $as_test_x conftest$ac_exeext; then
4747 ac_cv_func_gethostbyname=yes
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 ac_cv_func_gethostbyname=no
4755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4756 conftest$ac_exeext conftest.$ac_ext
4758 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4759 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4761 if test $ac_cv_func_gethostbyname = no; then
4762 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4763 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4764 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 ac_check_lib_save_LIBS=$LIBS
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4776 /* Override any GCC internal prototype to avoid an error.
4777 Use char because int might match the return type of a GCC
4778 builtin and then its argument prototype would still apply. */
4782 char gethostbyname ();
4786 return gethostbyname ();
4791 rm -f conftest.$ac_objext conftest$ac_exeext
4792 if { (ac_try="$ac_link"
4794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4795 *) ac_try_echo
=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_link") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1
>conftest.err
4802 cat conftest.err
>&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_cxx_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest
$ac_exeext &&
4808 $as_test_x conftest
$ac_exeext; then
4809 ac_cv_lib_nsl_gethostbyname
=yes
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.
$ac_ext >&5
4814 ac_cv_lib_nsl_gethostbyname
=no
4817 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4818 conftest
$ac_exeext conftest.
$ac_ext
4819 LIBS
=$ac_check_lib_save_LIBS
4821 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4822 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4823 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4824 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4827 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4828 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4829 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4830 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4831 echo $ECHO_N "(cached) $ECHO_C" >&6
4833 ac_check_lib_save_LIBS
=$LIBS
4835 cat >conftest.
$ac_ext <<_ACEOF
4838 cat confdefs.h
>>conftest.
$ac_ext
4839 cat >>conftest.
$ac_ext <<_ACEOF
4840 /* end confdefs.h. */
4842 /* Override any GCC internal prototype to avoid an error.
4843 Use char because int might match the return type of a GCC
4844 builtin and then its argument prototype would still apply. */
4848 char gethostbyname ();
4852 return gethostbyname ();
4857 rm -f conftest.
$ac_objext conftest
$ac_exeext
4858 if { (ac_try
="$ac_link"
4860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864 (eval "$ac_link") 2>conftest.er1
4866 grep -v '^ *+' conftest.er1 >conftest.err
4868 cat conftest.err >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && {
4871 test -z "$ac_cxx_werror_flag" ||
4872 test ! -s conftest.err
4873 } && test -s conftest$ac_exeext &&
4874 $as_test_x conftest$ac_exeext; then
4875 ac_cv_lib_bsd_gethostbyname=yes
4877 echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4880 ac_cv_lib_bsd_gethostbyname=no
4883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4884 conftest$ac_exeext conftest.$ac_ext
4885 LIBS=$ac_check_lib_save_LIBS
4887 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4888 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4889 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4896 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4897 # socket/setsockopt and other routines are undefined under SCO ODT
4898 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4899 # on later versions), says Simon Leinen: it contains gethostby*
4900 # variants that don't use the name server (or something). -lsocket
4901 # must be given before -lnsl if both are needed. We assume that
4902 # if connect needs -lnsl, so does gethostbyname.
4903 { echo "$as_me:$LINENO: checking for connect" >&5
4904 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4905 if test "${ac_cv_func_connect+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4916 #define connect innocuous_connect
4918 /* System header to define __stub macros and hopefully few prototypes,
4919 which can conflict with char connect (); below.
4920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 <limits.h> exists even on freestanding compilers. */
4924 # include <limits.h>
4926 # include <assert.h>
4931 /* Override any GCC internal prototype to avoid an error.
4932 Use char because int might match the return type of a GCC
4933 builtin and then its argument prototype would still apply. */
4938 /* The GNU C library defines this for functions which it implements
4939 to always fail with ENOSYS. Some functions are actually named
4940 something starting with __ and the normal name is an alias. */
4941 #if defined __stub_connect || defined __stub___connect
4953 rm -f conftest.$ac_objext conftest$ac_exeext
4954 if { (ac_try="$ac_link"
4956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4957 *) ac_try_echo
=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_link") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1
>conftest.err
4964 cat conftest.err
>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_cxx_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest
$ac_exeext &&
4970 $as_test_x conftest
$ac_exeext; then
4971 ac_cv_func_connect
=yes
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4976 ac_cv_func_connect
=no
4979 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4980 conftest
$ac_exeext conftest.
$ac_ext
4982 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4983 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4985 if test $ac_cv_func_connect = no
; then
4986 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4987 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4988 if test "${ac_cv_lib_socket_connect+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 ac_check_lib_save_LIBS
=$LIBS
4992 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4993 cat >conftest.
$ac_ext <<_ACEOF
4996 cat confdefs.h
>>conftest.
$ac_ext
4997 cat >>conftest.
$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 /* Override any GCC internal prototype to avoid an error.
5001 Use char because int might match the return type of a GCC
5002 builtin and then its argument prototype would still apply. */
5015 rm -f conftest.
$ac_objext conftest
$ac_exeext
5016 if { (ac_try
="$ac_link"
5018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_link") 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_cxx_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest$ac_exeext &&
5032 $as_test_x conftest$ac_exeext; then
5033 ac_cv_lib_socket_connect=yes
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5038 ac_cv_lib_socket_connect=no
5041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5042 conftest$ac_exeext conftest.$ac_ext
5043 LIBS=$ac_check_lib_save_LIBS
5045 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5046 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5047 if test $ac_cv_lib_socket_connect = yes; then
5048 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5053 # Guillermo Gomez says -lposix is necessary on A/UX.
5054 { echo "$as_me:$LINENO: checking for remove" >&5
5055 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5056 if test "${ac_cv_func_remove+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5067 #define remove innocuous_remove
5069 /* System header to define __stub macros and hopefully few prototypes,
5070 which can conflict with char remove (); below.
5071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 <limits.h> exists even on freestanding compilers. */
5075 # include <limits.h>
5077 # include <assert.h>
5082 /* Override any GCC internal prototype to avoid an error.
5083 Use char because int might match the return type of a GCC
5084 builtin and then its argument prototype would still apply. */
5089 /* The GNU C library defines this for functions which it implements
5090 to always fail with ENOSYS. Some functions are actually named
5091 something starting with __ and the normal name is an alias. */
5092 #if defined __stub_remove || defined __stub___remove
5104 rm -f conftest.$ac_objext conftest$ac_exeext
5105 if { (ac_try="$ac_link"
5107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5108 *) ac_try_echo
=$ac_try;;
5110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_link") 2>conftest.er1
5113 grep -v '^ *+' conftest.er1
>conftest.err
5115 cat conftest.err
>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } && {
5118 test -z "$ac_cxx_werror_flag" ||
5119 test ! -s conftest.err
5120 } && test -s conftest
$ac_exeext &&
5121 $as_test_x conftest
$ac_exeext; then
5122 ac_cv_func_remove
=yes
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.
$ac_ext >&5
5127 ac_cv_func_remove
=no
5130 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5131 conftest
$ac_exeext conftest.
$ac_ext
5133 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5134 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5136 if test $ac_cv_func_remove = no
; then
5137 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5138 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5139 if test "${ac_cv_lib_posix_remove+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 ac_check_lib_save_LIBS
=$LIBS
5143 LIBS
="-lposix $LIBS"
5144 cat >conftest.
$ac_ext <<_ACEOF
5147 cat confdefs.h
>>conftest.
$ac_ext
5148 cat >>conftest.
$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5151 /* Override any GCC internal prototype to avoid an error.
5152 Use char because int might match the return type of a GCC
5153 builtin and then its argument prototype would still apply. */
5166 rm -f conftest.
$ac_objext conftest
$ac_exeext
5167 if { (ac_try
="$ac_link"
5169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_link") 2>conftest.er1
5175 grep -v '^ *+' conftest.er1 >conftest.err
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } && {
5180 test -z "$ac_cxx_werror_flag" ||
5181 test ! -s conftest.err
5182 } && test -s conftest$ac_exeext &&
5183 $as_test_x conftest$ac_exeext; then
5184 ac_cv_lib_posix_remove=yes
5186 echo "$as_me: failed program was:" >&5
5187 sed 's/^/| /' conftest.$ac_ext >&5
5189 ac_cv_lib_posix_remove=no
5192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5193 conftest$ac_exeext conftest.$ac_ext
5194 LIBS=$ac_check_lib_save_LIBS
5196 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5197 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5198 if test $ac_cv_lib_posix_remove = yes; then
5199 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5204 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5205 { echo "$as_me:$LINENO: checking for shmat" >&5
5206 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5207 if test "${ac_cv_func_shmat+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5213 cat confdefs.h >>conftest.$ac_ext
5214 cat >>conftest.$ac_ext <<_ACEOF
5215 /* end confdefs.h. */
5216 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5218 #define shmat innocuous_shmat
5220 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char shmat (); below.
5222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 <limits.h> exists even on freestanding compilers. */
5226 # include <limits.h>
5228 # include <assert.h>
5233 /* Override any GCC internal prototype to avoid an error.
5234 Use char because int might match the return type of a GCC
5235 builtin and then its argument prototype would still apply. */
5240 /* The GNU C library defines this for functions which it implements
5241 to always fail with ENOSYS. Some functions are actually named
5242 something starting with __ and the normal name is an alias. */
5243 #if defined __stub_shmat || defined __stub___shmat
5255 rm -f conftest.$ac_objext conftest$ac_exeext
5256 if { (ac_try="$ac_link"
5258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5259 *) ac_try_echo
=$ac_try;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_link") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1
>conftest.err
5266 cat conftest.err
>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_cxx_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest
$ac_exeext &&
5272 $as_test_x conftest
$ac_exeext; then
5273 ac_cv_func_shmat
=yes
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.
$ac_ext >&5
5281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5282 conftest
$ac_exeext conftest.
$ac_ext
5284 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5285 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5287 if test $ac_cv_func_shmat = no
; then
5288 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5289 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5290 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 ac_check_lib_save_LIBS
=$LIBS
5295 cat >conftest.
$ac_ext <<_ACEOF
5298 cat confdefs.h
>>conftest.
$ac_ext
5299 cat >>conftest.
$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5317 rm -f conftest.
$ac_objext conftest
$ac_exeext
5318 if { (ac_try
="$ac_link"
5320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_link") 2>conftest.er1
5326 grep -v '^ *+' conftest.er1 >conftest.err
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); } && {
5331 test -z "$ac_cxx_werror_flag" ||
5332 test ! -s conftest.err
5333 } && test -s conftest$ac_exeext &&
5334 $as_test_x conftest$ac_exeext; then
5335 ac_cv_lib_ipc_shmat=yes
5337 echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5340 ac_cv_lib_ipc_shmat=no
5343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5344 conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5348 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5349 if test $ac_cv_lib_ipc_shmat = yes; then
5350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5356 # Check for libraries that X11R6 Xt/Xaw programs need.
5357 ac_save_LDFLAGS=$LDFLAGS
5358 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5359 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5360 # check for ICE first), but we must link in the order -lSM -lICE or
5361 # we get undefined symbols. So assume we have SM if we have ICE.
5362 # These have to be linked with before -lX11, unlike the other
5363 # libraries we check for below, so use a different variable.
5364 # John Interrante, Karl Berry
5365 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5366 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5367 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5370 ac_check_lib_save_LIBS=$LIBS
5371 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5379 /* Override any GCC internal prototype to avoid an error.
5380 Use char because int might match the return type of a GCC
5381 builtin and then its argument prototype would still apply. */
5385 char IceConnectionNumber ();
5389 return IceConnectionNumber ();
5394 rm -f conftest.$ac_objext conftest$ac_exeext
5395 if { (ac_try="$ac_link"
5397 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5398 *) ac_try_echo
=$ac_try;;
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_link") 2>conftest.er1
5403 grep -v '^ *+' conftest.er1
>conftest.err
5405 cat conftest.err
>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_cxx_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest
$ac_exeext &&
5411 $as_test_x conftest
$ac_exeext; then
5412 ac_cv_lib_ICE_IceConnectionNumber
=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.
$ac_ext >&5
5417 ac_cv_lib_ICE_IceConnectionNumber
=no
5420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5421 conftest
$ac_exeext conftest.
$ac_ext
5422 LIBS
=$ac_check_lib_save_LIBS
5424 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5425 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5426 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5427 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5430 LDFLAGS
=$ac_save_LDFLAGS
5436 for ac_header
in pty.h util.h
5438 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5439 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5442 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 ac_res
=`eval echo '${'$as_ac_Header'}'`
5446 { echo "$as_me:$LINENO: result: $ac_res" >&5
5447 echo "${ECHO_T}$ac_res" >&6; }
5449 # Is the header compilable?
5450 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5452 cat >conftest.
$ac_ext <<_ACEOF
5455 cat confdefs.h
>>conftest.
$ac_ext
5456 cat >>conftest.
$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 $ac_includes_default
5459 #include <$ac_header>
5461 rm -f conftest.
$ac_objext
5462 if { (ac_try
="$ac_compile"
5464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1 >conftest.err
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_cxx_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 ac_header_compiler=yes
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 ac_header_compiler=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488 echo "${ECHO_T}$ac_header_compiler" >&6; }
5490 # Is the header present?
5491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5493 cat >conftest.$ac_ext <<_ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <$ac_header>
5501 if { (ac_try="$ac_cpp conftest.$ac_ext"
5503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5504 *) ac_try_echo
=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 grep -v '^ *+' conftest.er1
>conftest.err
5511 cat conftest.err
>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } >/dev
/null
&& {
5514 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5515 test ! -s conftest.err
5517 ac_header_preproc
=yes
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.
$ac_ext >&5
5522 ac_header_preproc
=no
5525 rm -f conftest.err conftest.
$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5527 echo "${ECHO_T}$ac_header_preproc" >&6; }
5529 # So? What about this header?
5530 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5536 ac_header_preproc
=yes
5539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5556 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 eval "$as_ac_Header=\$ac_header_preproc"
5561 ac_res
=`eval echo '${'$as_ac_Header'}'`
5562 { echo "$as_me:$LINENO: result: $ac_res" >&5
5563 echo "${ECHO_T}$ac_res" >&6; }
5566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5567 cat >>confdefs.h
<<_ACEOF
5568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576 for ac_func
in gettimeofday
5578 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5581 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 cat >conftest.
$ac_ext <<_ACEOF
5587 cat confdefs.h
>>conftest.
$ac_ext
5588 cat >>conftest.
$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5592 #define $ac_func innocuous_$ac_func
5594 /* System header to define __stub macros and hopefully few prototypes,
5595 which can conflict with char $ac_func (); below.
5596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5597 <limits.h> exists even on freestanding compilers. */
5600 # include <limits.h>
5602 # include <assert.h>
5607 /* Override any GCC internal prototype to avoid an error.
5608 Use char because int might match the return type of a GCC
5609 builtin and then its argument prototype would still apply. */
5614 /* The GNU C library defines this for functions which it implements
5615 to always fail with ENOSYS. Some functions are actually named
5616 something starting with __ and the normal name is an alias. */
5617 #if defined __stub_$ac_func || defined __stub___$ac_func
5629 rm -f conftest.
$ac_objext conftest
$ac_exeext
5630 if { (ac_try
="$ac_link"
5632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_link") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_cxx_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest$ac_exeext &&
5646 $as_test_x conftest$ac_exeext; then
5647 eval "$as_ac_var=yes"
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5652 eval "$as_ac_var=no"
5655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5656 conftest$ac_exeext conftest.$ac_ext
5658 ac_res=`eval echo '${'$as_ac_var'}'`
5659 { echo "$as_me:$LINENO: result: $ac_res" >&5
5660 echo "${ECHO_T}$ac_res" >&6; }
5661 if test `eval echo '${'$as_ac_var'}'` = yes; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5670 #--------------------------------------------------------------------
5671 # Checks for dl library
5672 #--------------------------------------------------------------------
5674 { echo "$as_me:$LINENO: checking for dlopen" >&5
5675 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5676 if test "${ac_cv_func_dlopen+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.$ac_ext <<_ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5687 #define dlopen innocuous_dlopen
5689 /* System header to define __stub macros and hopefully few prototypes,
5690 which can conflict with char dlopen (); below.
5691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5692 <limits.h> exists even on freestanding compilers. */
5695 # include <limits.h>
5697 # include <assert.h>
5702 /* Override any GCC internal prototype to avoid an error.
5703 Use char because int might match the return type of a GCC
5704 builtin and then its argument prototype would still apply. */
5709 /* The GNU C library defines this for functions which it implements
5710 to always fail with ENOSYS. Some functions are actually named
5711 something starting with __ and the normal name is an alias. */
5712 #if defined __stub_dlopen || defined __stub___dlopen
5724 rm -f conftest.$ac_objext conftest$ac_exeext
5725 if { (ac_try="$ac_link"
5727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5728 *) ac_try_echo
=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_link") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1
>conftest.err
5735 cat conftest.err
>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_cxx_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest
$ac_exeext &&
5741 $as_test_x conftest
$ac_exeext; then
5742 ac_cv_func_dlopen
=yes
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.
$ac_ext >&5
5747 ac_cv_func_dlopen
=no
5750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5751 conftest
$ac_exeext conftest.
$ac_ext
5753 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5754 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5756 if test "$ac_cv_func_dl" = "yes"; then
5758 cat >>confdefs.h
<<\_ACEOF
5759 #define DYNAMIC_LINKING 1
5764 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_check_lib_save_LIBS
=$LIBS
5771 cat >conftest.
$ac_ext <<_ACEOF
5774 cat confdefs.h
>>conftest.
$ac_ext
5775 cat >>conftest.
$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5778 /* Override any GCC internal prototype to avoid an error.
5779 Use char because int might match the return type of a GCC
5780 builtin and then its argument prototype would still apply. */
5793 rm -f conftest.
$ac_objext conftest
$ac_exeext
5794 if { (ac_try
="$ac_link"
5796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_link") 2>conftest.er1
5802 grep -v '^ *+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_cxx_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest$ac_exeext &&
5810 $as_test_x conftest$ac_exeext; then
5811 ac_cv_lib_dl_dlopen=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 ac_cv_lib_dl_dlopen=no
5819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5820 conftest$ac_exeext conftest.$ac_ext
5821 LIBS=$ac_check_lib_save_LIBS
5823 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5824 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5825 if test $ac_cv_lib_dl_dlopen = yes; then
5826 cat >>confdefs.h <<_ACEOF
5827 #define HAVE_LIBDL 1
5834 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5836 for ac_func in dlopen
5838 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5852 #define $ac_func innocuous_$ac_func
5854 /* System header to define __stub macros and hopefully few prototypes,
5855 which can conflict with char $ac_func (); below.
5856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5857 <limits.h> exists even on freestanding compilers. */
5860 # include <limits.h>
5862 # include <assert.h>
5867 /* Override any GCC internal prototype to avoid an error.
5868 Use char because int might match the return type of a GCC
5869 builtin and then its argument prototype would still apply. */
5874 /* The GNU C library defines this for functions which it implements
5875 to always fail with ENOSYS. Some functions are actually named
5876 something starting with __ and the normal name is an alias. */
5877 #if defined __stub_$ac_func || defined __stub___$ac_func
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (ac_try="$ac_link"
5892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5893 *) ac_try_echo
=$ac_try;;
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_link") 2>conftest.er1
5898 grep -v '^ *+' conftest.er1
>conftest.err
5900 cat conftest.err
>&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_cxx_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest
$ac_exeext &&
5906 $as_test_x conftest
$ac_exeext; then
5907 eval "$as_ac_var=yes"
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.
$ac_ext >&5
5912 eval "$as_ac_var=no"
5915 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5916 conftest
$ac_exeext conftest.
$ac_ext
5918 ac_res
=`eval echo '${'$as_ac_var'}'`
5919 { echo "$as_me:$LINENO: result: $ac_res" >&5
5920 echo "${ECHO_T}$ac_res" >&6; }
5921 if test `eval echo '${'$as_ac_var'}'` = yes; then
5922 cat >>confdefs.h
<<_ACEOF
5923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5931 cat >>confdefs.h
<<\_ACEOF
5932 #define DYNAMIC_LINKING 1
5937 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5938 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5940 echo $ECHO_N "(cached) $ECHO_C" >&6
5942 ac_check_lib_save_LIBS
=$LIBS
5944 cat >conftest.
$ac_ext <<_ACEOF
5947 cat confdefs.h
>>conftest.
$ac_ext
5948 cat >>conftest.
$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5951 /* Override any GCC internal prototype to avoid an error.
5952 Use char because int might match the return type of a GCC
5953 builtin and then its argument prototype would still apply. */
5966 rm -f conftest.
$ac_objext conftest
$ac_exeext
5967 if { (ac_try
="$ac_link"
5969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973 (eval "$ac_link") 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && {
5980 test -z "$ac_cxx_werror_flag" ||
5981 test ! -s conftest.err
5982 } && test -s conftest$ac_exeext &&
5983 $as_test_x conftest$ac_exeext; then
5984 ac_cv_lib_dld_dld_link=yes
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5989 ac_cv_lib_dld_dld_link=no
5992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5993 conftest$ac_exeext conftest.$ac_ext
5994 LIBS=$ac_check_lib_save_LIBS
5996 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5997 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
5998 if test $ac_cv_lib_dld_dld_link = yes; then
5999 cat >>confdefs.h <<_ACEOF
6000 #define HAVE_LIBDLD 1
6007 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6010 cat >>confdefs.h <<\_ACEOF
6011 #define DYNAMIC_LINKING 1
6016 for ac_func in shl_load
6018 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6032 #define $ac_func innocuous_$ac_func
6034 /* System header to define __stub macros and hopefully few prototypes,
6035 which can conflict with char $ac_func (); below.
6036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 <limits.h> exists even on freestanding compilers. */
6040 # include <limits.h>
6042 # include <assert.h>
6047 /* Override any GCC internal prototype to avoid an error.
6048 Use char because int might match the return type of a GCC
6049 builtin and then its argument prototype would still apply. */
6054 /* The GNU C library defines this for functions which it implements
6055 to always fail with ENOSYS. Some functions are actually named
6056 something starting with __ and the normal name is an alias. */
6057 #if defined __stub_$ac_func || defined __stub___$ac_func
6069 rm -f conftest.$ac_objext conftest$ac_exeext
6070 if { (ac_try="$ac_link"
6072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6073 *) ac_try_echo
=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_link") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
6080 cat conftest.err
>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_cxx_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest
$ac_exeext &&
6086 $as_test_x conftest
$ac_exeext; then
6087 eval "$as_ac_var=yes"
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.
$ac_ext >&5
6092 eval "$as_ac_var=no"
6095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6096 conftest
$ac_exeext conftest.
$ac_ext
6098 ac_res
=`eval echo '${'$as_ac_var'}'`
6099 { echo "$as_me:$LINENO: result: $ac_res" >&5
6100 echo "${ECHO_T}$ac_res" >&6; }
6101 if test `eval echo '${'$as_ac_var'}'` = yes; then
6102 cat >>confdefs.h
<<_ACEOF
6103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6109 if test "$ac_cv_func_shl_load" = "yes"; then
6112 cat >>confdefs.h
<<\_ACEOF
6113 #define DYNAMIC_LINKING 1
6118 for ac_func
in dlopen
6120 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6123 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.
$ac_ext <<_ACEOF
6129 cat confdefs.h
>>conftest.
$ac_ext
6130 cat >>conftest.
$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6134 #define $ac_func innocuous_$ac_func
6136 /* System header to define __stub macros and hopefully few prototypes,
6137 which can conflict with char $ac_func (); below.
6138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6139 <limits.h> exists even on freestanding compilers. */
6142 # include <limits.h>
6144 # include <assert.h>
6149 /* Override any GCC internal prototype to avoid an error.
6150 Use char because int might match the return type of a GCC
6151 builtin and then its argument prototype would still apply. */
6156 /* The GNU C library defines this for functions which it implements
6157 to always fail with ENOSYS. Some functions are actually named
6158 something starting with __ and the normal name is an alias. */
6159 #if defined __stub_$ac_func || defined __stub___$ac_func
6171 rm -f conftest.
$ac_objext conftest
$ac_exeext
6172 if { (ac_try
="$ac_link"
6174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_link") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } && {
6185 test -z "$ac_cxx_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest$ac_exeext &&
6188 $as_test_x conftest$ac_exeext; then
6189 eval "$as_ac_var=yes"
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 eval "$as_ac_var=no"
6197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6198 conftest$ac_exeext conftest.$ac_ext
6200 ac_res=`eval echo '${'$as_ac_var'}'`
6201 { echo "$as_me:$LINENO: result: $ac_res" >&5
6202 echo "${ECHO_T}$ac_res" >&6; }
6203 if test `eval echo '${'$as_ac_var'}'` = yes; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6211 if test "$ac_cv_func_dlopen" = "yes"; then
6213 cat >>confdefs.h <<\_ACEOF
6214 #define DYNAMIC_LINKING 1
6224 #--------------------------------------------------------------------
6225 # Checks for iconv library
6226 #--------------------------------------------------------------------
6229 # Check whether --with-iconv was given.
6230 if test "${with_iconv+set}" = set; then
6231 withval=$with_iconv;
6236 # Modified from GNOME's libxml2 configure.in
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243 # compile C to avoid the 'const char**' problem
6244 SAVE_CPPFLAGS="$CPPFLAGS"
6245 SAVE_LDFLAGS="$LDFLAGS"
6247 if test "$with_iconv" = "no" ; then
6248 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6249 echo "${ECHO_T}disabling iconv support" >&6; }
6251 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6252 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6254 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6255 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6256 ICONV_CFLAGS="-I$with_iconv/include"
6257 ICONV_LDFLAGS="-L$with_iconv/lib"
6261 ac_cpp='$CPP $CPPFLAGS'
6262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6265 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6266 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6267 # On Suns, sometimes $CPP names a directory.
6268 if test -n "$CPP" && test -d "$CPP"; then
6271 if test -z "$CPP"; then
6272 if test "${ac_cv_prog_CPP+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 # Double quotes because CPP needs to be expanded
6276 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6279 for ac_c_preproc_warn_flag in '' yes
6281 # Use a header file that comes with gcc, so configuring glibc
6282 # with a fresh cross-compiler works.
6283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6284 # <limits.h> exists even on freestanding compilers.
6285 # On the NeXT, cc -E runs the code through the compiler's parser,
6286 # not just through cpp. "Syntax error" is here to catch this case.
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6294 # include <limits.h>
6296 # include <assert.h>
6300 if { (ac_try="$ac_cpp conftest.$ac_ext"
6302 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6303 *) ac_try_echo
=$ac_try;;
6305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6308 grep -v '^ *+' conftest.er1
>conftest.err
6310 cat conftest.err
>&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } >/dev
/null
&& {
6313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6318 echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.
$ac_ext >&5
6321 # Broken: fails on valid input.
6325 rm -f conftest.err conftest.
$ac_ext
6327 # OK, works on sane cases. Now check whether nonexistent headers
6328 # can be detected and how.
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <ac_nonexistent.h>
6337 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } >/dev/null && {
6350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6353 # Broken: success on invalid input.
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 # Passes both tests.
6364 rm -f conftest.err conftest.$ac_ext
6367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6368 rm -f conftest.err conftest.
$ac_ext
6369 if $ac_preproc_ok; then
6381 { echo "$as_me:$LINENO: result: $CPP" >&5
6382 echo "${ECHO_T}$CPP" >&6; }
6384 for ac_c_preproc_warn_flag
in '' yes
6386 # Use a header file that comes with gcc, so configuring glibc
6387 # with a fresh cross-compiler works.
6388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6389 # <limits.h> exists even on freestanding compilers.
6390 # On the NeXT, cc -E runs the code through the compiler's parser,
6391 # not just through cpp. "Syntax error" is here to catch this case.
6392 cat >conftest.
$ac_ext <<_ACEOF
6395 cat confdefs.h
>>conftest.
$ac_ext
6396 cat >>conftest.
$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6399 # include <limits.h>
6401 # include <assert.h>
6405 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1 >conftest.err
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } >/dev/null && {
6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6423 echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6426 # Broken: fails on valid input.
6430 rm -f conftest.err conftest.$ac_ext
6432 # OK, works on sane cases. Now check whether nonexistent headers
6433 # can be detected and how.
6434 cat >conftest.$ac_ext <<_ACEOF
6437 cat confdefs.h >>conftest.$ac_ext
6438 cat >>conftest.$ac_ext <<_ACEOF
6439 /* end confdefs.h. */
6440 #include <ac_nonexistent.h>
6442 if { (ac_try="$ac_cpp conftest.$ac_ext"
6444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6445 *) ac_try_echo
=$ac_try;;
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6450 grep -v '^ *+' conftest.er1
>conftest.err
6452 cat conftest.err
>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } >/dev
/null
&& {
6455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6456 test ! -s conftest.err
6458 # Broken: success on invalid input.
6461 echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.
$ac_ext >&5
6464 # Passes both tests.
6469 rm -f conftest.err conftest.
$ac_ext
6472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6473 rm -f conftest.err conftest.
$ac_ext
6474 if $ac_preproc_ok; then
6477 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6480 See \`config.log' for more details." >&2;}
6481 { (exit 1); exit 1; }; }
6485 ac_cpp
='$CPP $CPPFLAGS'
6486 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6491 if test "${ac_cv_header_iconv_h+set}" = set; then
6492 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6493 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6494 if test "${ac_cv_header_iconv_h+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6498 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6500 # Is the header compilable?
6501 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6502 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6503 cat >conftest.
$ac_ext <<_ACEOF
6506 cat confdefs.h
>>conftest.
$ac_ext
6507 cat >>conftest.
$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 $ac_includes_default
6512 rm -f conftest.
$ac_objext
6513 if { (ac_try
="$ac_compile"
6515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_compile") 2>conftest.er1
6521 grep -v '^ *+' conftest.er1 >conftest.err
6523 cat conftest.err >&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && {
6526 test -z "$ac_c_werror_flag" ||
6527 test ! -s conftest.err
6528 } && test -s conftest.$ac_objext; then
6529 ac_header_compiler=yes
6531 echo "$as_me: failed program was:" >&5
6532 sed 's/^/| /' conftest.$ac_ext >&5
6534 ac_header_compiler=no
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6539 echo "${ECHO_T}$ac_header_compiler" >&6; }
6541 # Is the header present?
6542 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6543 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6544 cat >conftest.$ac_ext <<_ACEOF
6547 cat confdefs.h >>conftest.$ac_ext
6548 cat >>conftest.$ac_ext <<_ACEOF
6549 /* end confdefs.h. */
6552 if { (ac_try="$ac_cpp conftest.$ac_ext"
6554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6555 *) ac_try_echo
=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1
>conftest.err
6562 cat conftest.err
>&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } >/dev
/null
&& {
6565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6568 ac_header_preproc
=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.
$ac_ext >&5
6573 ac_header_preproc
=no
6576 rm -f conftest.err conftest.
$ac_ext
6577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6578 echo "${ECHO_T}$ac_header_preproc" >&6; }
6580 # So? What about this header?
6581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6583 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6584 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6585 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6586 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6587 ac_header_preproc
=yes
6590 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6591 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6593 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6595 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6597 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6599 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6601 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6605 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6606 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6607 if test "${ac_cv_header_iconv_h+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6610 ac_cv_header_iconv_h
=$ac_header_preproc
6612 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6613 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6616 if test $ac_cv_header_iconv_h = yes; then
6617 { echo "$as_me:$LINENO: checking for iconv" >&5
6618 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6620 cat >conftest.
$ac_ext <<_ACEOF
6623 cat confdefs.h
>>conftest.
$ac_ext
6624 cat >>conftest.
$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6634 iconv_t cd = iconv_open ("","");
6635 iconv (cd, NULL, NULL, NULL, NULL);
6641 rm -f conftest.
$ac_objext conftest
$ac_exeext
6642 if { (ac_try
="$ac_link"
6644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_link") 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest$ac_exeext &&
6658 $as_test_x conftest$ac_exeext; then
6660 { echo "$as_me:$LINENO: result: yes" >&5
6661 echo "${ECHO_T}yes" >&6; }
6663 cat >>confdefs.h <<\_ACEOF
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6673 { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6676 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6677 LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6678 LIBS="-liconv" # for AC_TRY_LINK
6679 cat >conftest.$ac_ext <<_ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6693 iconv_t cd = iconv_open ("","");
6694 iconv (cd, NULL, NULL, NULL, NULL);
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6704 *) ac_try_echo
=$ac_try;;
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707 (eval "$ac_link") 2>conftest.er1
6709 grep -v '^ *+' conftest.er1
>conftest.err
6711 cat conftest.err
>&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } && {
6714 test -z "$ac_c_werror_flag" ||
6715 test ! -s conftest.err
6716 } && test -s conftest
$ac_exeext &&
6717 $as_test_x conftest
$ac_exeext; then
6719 { echo "$as_me:$LINENO: result: yes" >&5
6720 echo "${ECHO_T}yes" >&6; }
6722 cat >>confdefs.h
<<\_ACEOF
6726 ICONV_LDFLAGS
="${ICONV_LDFLAGS/-liconv} -liconv"
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.
$ac_ext >&5
6733 { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6736 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6740 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6741 conftest
$ac_exeext conftest.
$ac_ext
6744 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6745 conftest
$ac_exeext conftest.
$ac_ext
6751 CPPFLAGS
="$SAVE_CPPFLAGS"
6752 LDFLAGS
="$SAVE_LDFLAGS"
6755 ac_cpp
='$CXXCPP $CPPFLAGS'
6756 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6759 # restore C++ language
6763 #--------------------------------------------------------------------
6764 # Checks for freetype library
6765 #--------------------------------------------------------------------
6768 # Check whether --with-freetype was given.
6769 if test "${with_freetype+set}" = set; then
6770 withval
=$with_freetype;
6774 SAVE_CPPFLAGS
="$CPPFLAGS"
6775 SAVE_LDFLAGS
="$LDFLAGS"
6777 if test "$with_freetype" = "no" ; then
6778 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6779 echo "${ECHO_T}disabling freetype support" >&6; }
6781 if test -z "$FREETYPE_CFLAGS"; then
6782 FREETYPE_CFLAGS
=`freetype-config --cflags`
6784 CPPFLAGS
="$FREETYPE_CFLAGS"
6785 if test -z "$FREETYPE_LDFLAGS"; then
6786 FREETYPE_LDFLAGS
=`freetype-config --libs`
6788 LIBS
="$FREETYPE_LDFLAGS"
6789 if test "${ac_cv_header_ft2build_h+set}" = set; then
6790 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6791 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6792 if test "${ac_cv_header_ft2build_h+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6795 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6796 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6798 # Is the header compilable?
6799 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6800 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 $ac_includes_default
6808 #include <ft2build.h>
6810 rm -f conftest.
$ac_objext
6811 if { (ac_try
="$ac_compile"
6813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6814 *) ac_try_echo=$ac_try;;
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817 (eval "$ac_compile") 2>conftest.er1
6819 grep -v '^ *+' conftest.er1 >conftest.err
6821 cat conftest.err >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); } && {
6824 test -z "$ac_cxx_werror_flag" ||
6825 test ! -s conftest.err
6826 } && test -s conftest.$ac_objext; then
6827 ac_header_compiler=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_header_compiler=no
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6837 echo "${ECHO_T}$ac_header_compiler" >&6; }
6839 # Is the header present?
6840 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6841 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 #include <ft2build.h>
6850 if { (ac_try="$ac_cpp conftest.$ac_ext"
6852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6853 *) ac_try_echo
=$ac_try;;
6855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6858 grep -v '^ *+' conftest.er1
>conftest.err
6860 cat conftest.err
>&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev
/null
&& {
6863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6864 test ! -s conftest.err
6866 ac_header_preproc
=yes
6868 echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.
$ac_ext >&5
6871 ac_header_preproc
=no
6874 rm -f conftest.err conftest.
$ac_ext
6875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6876 echo "${ECHO_T}$ac_header_preproc" >&6; }
6878 # So? What about this header?
6879 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6881 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6882 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6883 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6884 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6885 ac_header_preproc
=yes
6888 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6889 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6890 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6891 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6892 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6893 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6894 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6895 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6897 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6899 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6903 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6904 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6905 if test "${ac_cv_header_ft2build_h+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_header_ft2build_h
=$ac_header_preproc
6910 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6911 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6914 if test $ac_cv_header_ft2build_h = yes; then
6915 { echo "$as_me:$LINENO: checking for freetype" >&5
6916 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6917 cat >conftest.
$ac_ext <<_ACEOF
6920 cat confdefs.h
>>conftest.
$ac_ext
6921 cat >>conftest.
$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6924 #include <ft2build.h>
6925 #include FT_FREETYPE_H
6931 FT_Library ft_library;
6932 (void) FT_Init_FreeType (&ft_library);
6938 rm -f conftest.
$ac_objext conftest
$ac_exeext
6939 if { (ac_try
="$ac_link"
6941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_link") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_cxx_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest$ac_exeext &&
6955 $as_test_x conftest$ac_exeext; then
6957 { echo "$as_me:$LINENO: result: yes" >&5
6958 echo "${ECHO_T}yes" >&6; }
6960 cat >>confdefs.h <<\_ACEOF
6961 #define USE_FREETYPE 1
6964 FREETYPE_CFLAGS="$CPPFLAGS"
6965 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6966 FREETYPE_LDFLAGS="$LIBS"
6968 cat >>confdefs.h <<\_ACEOF
6969 #define LINKED_FREETYPE 1
6975 echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6979 { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6984 conftest$ac_exeext conftest.$ac_ext
6990 CPPFLAGS="$SAVE_CPPFLAGS"
6991 LDFLAGS="$SAVE_LDFLAGS"
6997 #--------------------------------------------------------------------
6998 # Checks for Cairo library
6999 #--------------------------------------------------------------------
7002 # Check whether --with-cairo was given.
7003 if test "${with_cairo+set}" = set; then
7004 withval=$with_cairo;
7008 SAVE_CPPFLAGS="$CPPFLAGS"
7009 SAVE_LDFLAGS="$LDFLAGS"
7011 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7012 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7013 echo "${ECHO_T}disabling cairo support" >&6; }
7015 CPPFLAGS=`pkg-config
--cflags cairo
`
7016 LIBS=`pkg-config
--libs cairo
`
7017 if test "${ac_cv_header_cairo_h+set}" = set; then
7018 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7019 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7020 if test "${ac_cv_header_cairo_h+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7024 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7026 # Is the header compilable?
7027 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7028 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 $ac_includes_default
7038 rm -f conftest.$ac_objext
7039 if { (ac_try="$ac_compile"
7041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7042 *) ac_try_echo
=$ac_try;;
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7047 grep -v '^ *+' conftest.er1
>conftest.err
7049 cat conftest.err
>&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_cxx_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.
$ac_objext; then
7055 ac_header_compiler
=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.
$ac_ext >&5
7060 ac_header_compiler
=no
7063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7065 echo "${ECHO_T}$ac_header_compiler" >&6; }
7067 # Is the header present?
7068 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7069 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7070 cat >conftest.
$ac_ext <<_ACEOF
7073 cat confdefs.h
>>conftest.
$ac_ext
7074 cat >>conftest.
$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7078 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } >/dev/null && {
7091 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7092 test ! -s conftest.err
7094 ac_header_preproc=yes
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_header_preproc=no
7102 rm -f conftest.err conftest.$ac_ext
7103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7104 echo "${ECHO_T}$ac_header_preproc" >&6; }
7106 # So? What about this header?
7107 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7109 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7110 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7111 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7112 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7113 ac_header_preproc=yes
7116 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7117 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7119 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7121 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7123 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7125 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7127 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7131 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7132 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7133 if test "${ac_cv_header_cairo_h+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7136 ac_cv_header_cairo_h=$ac_header_preproc
7138 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7139 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7142 if test $ac_cv_header_cairo_h = yes; then
7143 { echo "$as_me:$LINENO: checking for cairo" >&5
7144 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7158 cairo_surface_t *surface;
7159 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7165 rm -f conftest.$ac_objext conftest$ac_exeext
7166 if { (ac_try="$ac_link"
7168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7169 *) ac_try_echo
=$ac_try;;
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_link") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1
>conftest.err
7176 cat conftest.err
>&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_cxx_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest
$ac_exeext &&
7182 $as_test_x conftest
$ac_exeext; then
7184 { echo "$as_me:$LINENO: result: yes" >&5
7185 echo "${ECHO_T}yes" >&6; }
7187 cat >>confdefs.h
<<\_ACEOF
7191 CAIRO_CFLAGS
="$CPPFLAGS"
7192 if test "$with_cairo" = "linked" ; then
7193 CAIRO_LDFLAGS
="$LIBS"
7195 cat >>confdefs.h
<<\_ACEOF
7196 #define LINKED_CAIRO 1
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.
$ac_ext >&5
7206 { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7210 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7211 conftest
$ac_exeext conftest.
$ac_ext
7217 CPPFLAGS
="$SAVE_CPPFLAGS"
7218 LDFLAGS
="$SAVE_LDFLAGS"
7224 #--------------------------------------------------------------------
7225 # Checks for Imlib2 library
7226 #--------------------------------------------------------------------
7229 # Check whether --with-imlib2 was given.
7230 if test "${with_imlib2+set}" = set; then
7231 withval
=$with_imlib2;
7235 SAVE_CPPFLAGS
="$CPPFLAGS"
7236 SAVE_LDFLAGS
="$LDFLAGS"
7238 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7239 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7240 echo "${ECHO_T}disabling imlib2 support" >&6; }
7242 CPPFLAGS
=`imlib2-config --cflags`
7243 LIBS
=`imlib2-config --libs`
7244 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7245 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7246 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7247 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7251 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7253 # Is the header compilable?
7254 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7255 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7256 cat >conftest.
$ac_ext <<_ACEOF
7259 cat confdefs.h
>>conftest.
$ac_ext
7260 cat >>conftest.
$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7265 rm -f conftest.
$ac_objext
7266 if { (ac_try
="$ac_compile"
7268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_cxx_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_header_compiler=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_header_compiler=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7292 echo "${ECHO_T}$ac_header_compiler" >&6; }
7294 # Is the header present?
7295 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7296 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7297 cat >conftest.$ac_ext <<_ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7305 if { (ac_try="$ac_cpp conftest.$ac_ext"
7307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7308 *) ac_try_echo
=$ac_try;;
7310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7313 grep -v '^ *+' conftest.er1
>conftest.err
7315 cat conftest.err
>&5
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); } >/dev
/null
&& {
7318 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7319 test ! -s conftest.err
7321 ac_header_preproc
=yes
7323 echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.
$ac_ext >&5
7326 ac_header_preproc
=no
7329 rm -f conftest.err conftest.
$ac_ext
7330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7331 echo "${ECHO_T}$ac_header_preproc" >&6; }
7333 # So? What about this header?
7334 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7336 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7337 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7338 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7339 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7340 ac_header_preproc
=yes
7343 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7344 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7346 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7348 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7350 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7354 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7358 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7359 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7360 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 ac_cv_header_Imlib2_h
=$ac_header_preproc
7365 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7366 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7369 if test $ac_cv_header_Imlib2_h = yes; then
7370 { echo "$as_me:$LINENO: checking for imlib2" >&5
7371 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7372 cat >conftest.
$ac_ext <<_ACEOF
7375 cat confdefs.h
>>conftest.
$ac_ext
7376 cat >>conftest.
$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7379 #include <X11/Xlib.h>
7388 Imlib_Image image= imlib_load_image("");
7394 rm -f conftest.
$ac_objext conftest
$ac_exeext
7395 if { (ac_try
="$ac_link"
7397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_link") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_cxx_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest$ac_exeext &&
7411 $as_test_x conftest$ac_exeext; then
7413 { echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6; }
7416 cat >>confdefs.h <<\_ACEOF
7417 #define USE_IMLIB2 1
7420 IMLIB2_CFLAGS="$CPPFLAGS"
7421 if test "$with_imlib2" = "linked" ; then
7422 IMLIB2_LDFLAGS="$LIBS"
7424 cat >>confdefs.h <<\_ACEOF
7425 #define LINKED_IMLIB2 1
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7435 { echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6; }
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7446 CPPFLAGS="$SAVE_CPPFLAGS"
7447 LDFLAGS="$SAVE_LDFLAGS"
7453 #--------------------------------------------------------------------
7454 # Checks for Axel library
7455 #--------------------------------------------------------------------
7458 # Check whether --with-axel was given.
7459 if test "${with_axel+set}" = set; then
7464 SAVE_CPPFLAGS="$CPPFLAGS"
7465 SAVE_LDFLAGS="$LDFLAGS"
7467 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7468 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7469 echo "${ECHO_T}disabling axel support" >&6; }
7471 CPPFLAGS=`axel-config
--cflags`
7472 LIBS=`axel-config
--libs`
7473 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7474 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7475 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7476 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7480 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7482 # Is the header compilable?
7483 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7484 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7492 #include <QGui/Viewer.h>
7494 rm -f conftest.$ac_objext
7495 if { (ac_try="$ac_compile"
7497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7498 *) ac_try_echo
=$ac_try;;
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_compile") 2>conftest.er1
7503 grep -v '^ *+' conftest.er1
>conftest.err
7505 cat conftest.err
>&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_cxx_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest.
$ac_objext; then
7511 ac_header_compiler
=yes
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.
$ac_ext >&5
7516 ac_header_compiler
=no
7519 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7521 echo "${ECHO_T}$ac_header_compiler" >&6; }
7523 # Is the header present?
7524 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7525 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7526 cat >conftest.
$ac_ext <<_ACEOF
7529 cat confdefs.h
>>conftest.
$ac_ext
7530 cat >>conftest.
$ac_ext <<_ACEOF
7531 /* end confdefs.h. */
7532 #include <QGui/Viewer.h>
7534 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1 >conftest.err
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } >/dev/null && {
7547 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7548 test ! -s conftest.err
7550 ac_header_preproc=yes
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_header_preproc=no
7558 rm -f conftest.err conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7560 echo "${ECHO_T}$ac_header_preproc" >&6; }
7562 # So? What about this header?
7563 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7565 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7566 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7567 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7568 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7569 ac_header_preproc=yes
7572 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7573 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7575 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7577 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7579 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7581 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7583 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7587 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7588 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7589 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7594 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7595 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7598 if test $ac_cv_header_QGui_Viewer_h = yes; then
7599 { echo "$as_me:$LINENO: checking for axel" >&5
7600 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7601 cat >conftest.$ac_ext <<_ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7608 #include <QGui/Viewer.h>
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7624 *) ac_try_echo
=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1
>conftest.err
7631 cat conftest.err
>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_cxx_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest
$ac_exeext &&
7637 $as_test_x conftest
$ac_exeext; then
7639 { echo "$as_me:$LINENO: result: yes" >&5
7640 echo "${ECHO_T}yes" >&6; }
7642 cat >>confdefs.h
<<\_ACEOF
7646 AXEL_CFLAGS
="$CPPFLAGS"
7647 if test "$with_axel" = "linked" ; then
7648 AXEL_LDFLAGS
="$LIBS"
7650 cat >>confdefs.h
<<\_ACEOF
7651 #define LINKED_AXEL 1
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.
$ac_ext >&5
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7665 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7666 conftest
$ac_exeext conftest.
$ac_ext
7672 CPPFLAGS
="$SAVE_CPPFLAGS"
7673 LDFLAGS
="$SAVE_LDFLAGS"
7679 #--------------------------------------------------------------------
7680 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7681 #--------------------------------------------------------------------
7683 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7684 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7685 if test -z "$GUILE_CFLAGS"; then
7686 CXXFLAGS
="`guile-config compile`"
7688 CXXFLAGS
="$GUILE_CFLAGS"
7690 cat >conftest.
$ac_ext <<_ACEOF
7693 cat confdefs.h
>>conftest.
$ac_ext
7694 cat >>conftest.
$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7697 #include <guile/gh.h>
7698 #include <libguile.h>
7699 typedef SCM (*FN)(...);
7700 static SCM identity (SCM x) { return x; }
7701 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7712 rm -f conftest.
$ac_objext
7713 if { (ac_try
="$ac_compile"
7715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_cxx_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.$ac_objext; then
7731 cat >>confdefs.h <<\_ACEOF
7735 { echo "$as_me:$LINENO: result: yes" >&5
7736 echo "${ECHO_T}yes" >&6; }
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7743 { echo "$as_me:$LINENO: result: no" >&5
7744 echo "${ECHO_T}no" >&6; }
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7752 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7753 if test -z "$GUILE_CFLAGS"; then
7754 CXXFLAGS="`guile-config compile
`"
7756 CXXFLAGS="$GUILE_CFLAGS"
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7765 #include <guile/gh.h>
7766 #include <libguile.h>
7767 void print_string (SCM s) {
7769 char* r= gh_scm2newstr (s, &len_r); }
7780 rm -f conftest.$ac_objext
7781 if { (ac_try="$ac_compile"
7783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7784 *) ac_try_echo
=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_compile") 2>conftest.er1
7789 grep -v '^ *+' conftest.er1
>conftest.err
7791 cat conftest.err
>&5
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } && {
7794 test -z "$ac_cxx_werror_flag" ||
7795 test ! -s conftest.err
7796 } && test -s conftest.
$ac_objext; then
7799 cat >>confdefs.h
<<\_ACEOF
7800 #define guile_str_size_t int
7803 { echo "$as_me:$LINENO: result: int" >&5
7804 echo "${ECHO_T}int" >&6; }
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.
$ac_ext >&5
7812 cat >>confdefs.h
<<\_ACEOF
7813 #define guile_str_size_t size_t
7816 { echo "$as_me:$LINENO: result: size_t" >&5
7817 echo "${ECHO_T}size_t" >&6; }
7821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7824 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7825 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7826 SAVE_CPPFLAGS
="$CPPFLAGS"
7827 SAVE_LDFLAGS
="$LDFLAGS"
7829 CPPFLAGS
="$GUILE_CFLAGS"
7831 LIBS
="$GUILE_LDFLAGS"
7832 cat >conftest.
$ac_ext <<_ACEOF
7835 cat confdefs.h
>>conftest.
$ac_ext
7836 cat >>conftest.
$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7839 #include <guile/gh.h>
7847 static void my_main (int argc, char** argv) {}
7848 static void install_guile () {
7850 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7852 gh_enter (0, NULL, my_main);
7856 dummy::install_guile ();
7862 rm -f conftest.
$ac_objext conftest
$ac_exeext
7863 if { (ac_try
="$ac_link"
7865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_cxx_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest$ac_exeext &&
7879 $as_test_x conftest$ac_exeext; then
7880 tm_link_guile_static="yes"
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 tm_link_guile_static="no"
7888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7889 conftest$ac_exeext conftest.$ac_ext
7891 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7892 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7893 if test "$tm_link_guile_static" = "no" ; then
7894 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7895 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7896 LIBS="$GUILE_LDFLAGS -lltdl"
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7904 #include <guile/gh.h>
7912 static void my_main (int argc, char** argv) {}
7913 static void install_guile () {
7915 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7917 gh_enter (0, NULL, my_main);
7921 dummy::install_guile ();
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (ac_try="$ac_link"
7930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7931 *) ac_try_echo
=$ac_try;;
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_link") 2>conftest.er1
7936 grep -v '^ *+' conftest.er1
>conftest.err
7938 cat conftest.err
>&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_cxx_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest
$ac_exeext &&
7944 $as_test_x conftest
$ac_exeext; then
7945 tm_link_guile_static_ltdl
="yes"
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.
$ac_ext >&5
7950 tm_link_guile_static_ltdl
="no"
7953 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7954 conftest
$ac_exeext conftest.
$ac_ext
7956 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7957 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7958 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7959 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
7961 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7962 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7963 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
7964 cat >conftest.
$ac_ext <<_ACEOF
7967 cat confdefs.h
>>conftest.
$ac_ext
7968 cat >>conftest.
$ac_ext <<_ACEOF
7969 /* end confdefs.h. */
7971 #include <guile/gh.h>
7979 static void my_main (int argc, char** argv) {}
7980 static void install_guile () {
7982 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7984 gh_enter (0, NULL, my_main);
7988 dummy::install_guile ();
7994 rm -f conftest.
$ac_objext conftest
$ac_exeext
7995 if { (ac_try
="$ac_link"
7997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_link") 2>conftest.er1
8003 grep -v '^ *+' conftest.er1 >conftest.err
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } && {
8008 test -z "$ac_cxx_werror_flag" ||
8009 test ! -s conftest.err
8010 } && test -s conftest$ac_exeext &&
8011 $as_test_x conftest$ac_exeext; then
8012 tm_link_guile_static_ltdl_ldl="yes"
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8017 tm_link_guile_static_ltdl_ldl="no"
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 conftest$ac_exeext conftest.$ac_ext
8023 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8024 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8025 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8026 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8028 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8029 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8033 CPPFLAGS="$SAVE_CPFLAGS"
8034 LDFLAGS="$SAVE_LDFLAGS"
8037 #--------------------------------------------------------------------
8038 # Handle different systems case by case
8039 #--------------------------------------------------------------------
8041 CONFIG_OS="GNU_LINUX"
8042 CONFIG_OS_SUFFIX="gnu-linux"
8045 CONFIG_CXXTEMPLATE=""
8046 CONFIG_STD_SETENV="#define STD_SETENV"
8048 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8049 CONFIG_CHMOD="chmod -f"
8050 CONFIG_CXXOPTIMIZE="-O2"
8051 CONFIG_BSTATIC="-Wl,-Bstatic"
8052 CONFIG_BSHARED="-Wl,-Bdynamic"
8054 CONFIG_BPATH="-Wl,-rpath,"
8055 CONFIG_WORD_LENGTH="4"
8056 CONFIG_WORD_LENGTH_INC="3"
8057 CONFIG_WORD_MASK="0xfffffffc"
8058 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8060 X11_CFLAGS="$X_CFLAGS"
8061 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8063 { echo "$as_me:$LINENO: checking for void *" >&5
8064 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8065 if test "${ac_cv_type_void_p+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 $ac_includes_default
8075 typedef void * ac__type_new_;
8079 if ((ac__type_new_ *) 0)
8081 if (sizeof (ac__type_new_))
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8091 *) ac_try_echo
=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_compile") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1
>conftest.err
8098 cat conftest.err
>&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_cxx_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest.
$ac_objext; then
8104 ac_cv_type_void_p
=yes
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.
$ac_ext >&5
8109 ac_cv_type_void_p
=no
8112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8114 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8115 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8117 # The cast to long int works around a bug in the HP C Compiler
8118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8120 # This bug is HP SR number 8606223364.
8121 { echo "$as_me:$LINENO: checking size of void *" >&5
8122 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8123 if test "${ac_cv_sizeof_void_p+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 if test "$cross_compiling" = yes; then
8127 # Depending upon the size, compute the lo and hi bounds.
8128 cat >conftest.
$ac_ext <<_ACEOF
8131 cat confdefs.h
>>conftest.
$ac_ext
8132 cat >>conftest.
$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8134 $ac_includes_default
8135 typedef void * ac__type_sizeof_;
8139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8146 rm -f conftest.
$ac_objext
8147 if { (ac_try
="$ac_compile"
8149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_cxx_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8172 typedef void * ac__type_sizeof_;
8176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8187 *) ac_try_echo
=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_compile") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1
>conftest.err
8194 cat conftest.err
>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_cxx_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest.
$ac_objext; then
8200 ac_hi
=$ac_mid; break
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.
$ac_ext >&5
8205 ac_lo
=`expr $ac_mid + 1`
8206 if test $ac_lo -le $ac_mid; then
8210 ac_mid
=`expr 2 '*' $ac_mid + 1`
8213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.
$ac_ext >&5
8219 cat >conftest.
$ac_ext <<_ACEOF
8222 cat confdefs.h
>>conftest.
$ac_ext
8223 cat >>conftest.
$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 $ac_includes_default
8226 typedef void * ac__type_sizeof_;
8230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8237 rm -f conftest.
$ac_objext
8238 if { (ac_try
="$ac_compile"
8240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8244 (eval "$ac_compile") 2>conftest.er1
8246 grep -v '^ *+' conftest.er1 >conftest.err
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); } && {
8251 test -z "$ac_cxx_werror_flag" ||
8252 test ! -s conftest.err
8253 } && test -s conftest.$ac_objext; then
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 typedef void * ac__type_sizeof_;
8267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8278 *) ac_try_echo
=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_cxx_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.
$ac_objext; then
8291 ac_lo
=$ac_mid; break
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_hi
=`expr '(' $ac_mid ')' - 1`
8297 if test $ac_mid -le $ac_hi; then
8301 ac_mid
=`expr 2 '*' $ac_mid`
8304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.
$ac_ext >&5
8313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 # Binary search between lo and hi bounds.
8318 while test "x$ac_lo" != "x$ac_hi"; do
8319 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8320 cat >conftest.
$ac_ext <<_ACEOF
8323 cat confdefs.h
>>conftest.
$ac_ext
8324 cat >>conftest.
$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 $ac_includes_default
8327 typedef void * ac__type_sizeof_;
8331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8338 rm -f conftest.
$ac_objext
8339 if { (ac_try
="$ac_compile"
8341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_cxx_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.$ac_objext; then
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 ac_lo=`expr '(' $ac_mid ')' + 1`
8363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8367 '') if test "$ac_cv_type_void_p" = yes; then
8368 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8369 See \`config.log
' for more details." >&5
8370 echo "$as_me: error: cannot compute sizeof (void *)
8371 See \`config.log' for more details.
" >&2;}
8372 { (exit 77); exit 77; }; }
8374 ac_cv_sizeof_void_p=0
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 typedef void * ac__type_sizeof_;
8386 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8387 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8394 FILE *f = fopen ("conftest.val
", "w
");
8397 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8399 long int i = longval ();
8400 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8402 fprintf (f, "%ld
\n", i);
8406 unsigned long int i = ulongval ();
8407 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8409 fprintf (f, "%lu
\n", i);
8411 return ferror (f) || fclose (f) != 0;
8417 rm -f conftest$ac_exeext
8418 if { (ac_try="$ac_link"
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_link") 2>&5
8426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8428 { (case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_try") 2>&5
8435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8436 (exit $ac_status); }; }; then
8437 ac_cv_sizeof_void_p=`cat conftest.val`
8439 echo "$as_me: program exited with status
$ac_status" >&5
8440 echo "$as_me: failed program was
:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8444 if test "$ac_cv_type_void_p" = yes; then
8445 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8446 See \
`config.log' for more details." >&5
8447 echo "$as_me: error: cannot compute sizeof (void *)
8448 See \`config.log
' for more details." >&2;}
8449 { (exit 77); exit 77; }; }
8451 ac_cv_sizeof_void_p=0
8454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8458 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8459 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8463 cat >>confdefs.h <<_ACEOF
8464 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8468 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8469 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8470 if test "$ac_cv_sizeof_void_p" = "8"; then
8471 { echo "$as_me:$LINENO: result: yes" >&5
8472 echo "${ECHO_T}yes" >&6; }
8473 CONFIG_WORD_LENGTH="8"
8474 CONFIG_WORD_LENGTH_INC="7"
8475 CONFIG_WORD_MASK="0xfffffffffffffff8"
8476 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8478 { echo "$as_me:$LINENO: result: no" >&5
8479 echo "${ECHO_T}no" >&6; }
8483 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8484 if test -f "$ac_dir/install-sh"; then
8486 ac_install_sh="$ac_aux_dir/install-sh -c"
8488 elif test -f "$ac_dir/install.sh"; then
8490 ac_install_sh="$ac_aux_dir/install.sh -c"
8492 elif test -f "$ac_dir/shtool"; then
8494 ac_install_sh="$ac_aux_dir/shtool install -c"
8498 if test -z "$ac_aux_dir"; then
8499 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8500 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8501 { (exit 1); exit 1; }; }
8504 # These three variables are undocumented and unsupported,
8505 # and are intended to be withdrawn in a future Autoconf release.
8506 # They can cause serious problems if a builder's
source tree is
in a directory
8507 # whose full name contains unusual characters.
8508 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8509 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8510 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8513 # Make sure we can run config.sub.
8514 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
8515 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8516 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8517 { (exit 1); exit 1; }; }
8519 { echo "$as_me:$LINENO: checking build system type" >&5
8520 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8521 if test "${ac_cv_build+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 ac_build_alias
=$build_alias
8525 test "x$ac_build_alias" = x
&&
8526 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
8527 test "x$ac_build_alias" = x
&&
8528 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8529 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8530 { (exit 1); exit 1; }; }
8531 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8532 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8533 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8534 { (exit 1); exit 1; }; }
8537 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8538 echo "${ECHO_T}$ac_cv_build" >&6; }
8539 case $ac_cv_build in
8541 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8542 echo "$as_me: error: invalid value of canonical build" >&2;}
8543 { (exit 1); exit 1; }; };;
8546 ac_save_IFS
=$IFS; IFS
='-'
8552 # Remember, the first character of IFS is used to create $*,
8553 # except with old shells:
8556 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
8559 { echo "$as_me:$LINENO: checking host system type" >&5
8560 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8561 if test "${ac_cv_host+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8564 if test "x$host_alias" = x
; then
8565 ac_cv_host
=$ac_cv_build
8567 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8568 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8569 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8570 { (exit 1); exit 1; }; }
8574 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8575 echo "${ECHO_T}$ac_cv_host" >&6; }
8578 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8579 echo "$as_me: error: invalid value of canonical host" >&2;}
8580 { (exit 1); exit 1; }; };;
8583 ac_save_IFS
=$IFS; IFS
='-'
8589 # Remember, the first character of IFS is used to create $*,
8590 # except with old shells:
8593 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
8597 i
*86-*-linux* | x86_64-
*-linux*)
8598 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8599 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8600 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8602 i
*86-*-freebsd* | x86_64-
*-freebsd*)
8603 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8604 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8605 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8608 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8609 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8610 CONFIG_CXXOPTIMIZE
="-O3"
8611 CONFIG_BPATH
="-Wl,-R,"
8612 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
8615 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8616 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8620 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8621 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8623 CONFIG_BFLAGS
="-Wl,-stack,8388608"
8624 # CXX="export CYGWIN=check_case:strict; $CXX"
8628 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8630 CONFIG_CXXFLAGS
="-I${prefix}/include"
8632 CONFIG_BFLAGS
="-framework Cocoa"
8635 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
8638 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8639 CONFIG_CXXFLAGS
="-I${prefix}/include"
8643 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
8646 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8647 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8648 CONFIG_OS
="POWERPC_GNU_LINUX"
8649 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8652 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8653 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8655 CONFIG_OS_SUFFIX
="sun"
8658 CONFIG_BPATH
="-Wl,-R,"
8659 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
8660 CONFIG_WORD_LENGTH
="8"
8661 CONFIG_WORD_LENGTH_INC
="7"
8662 CONFIG_WORD_MASK
="0xfffffff8"
8663 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
8664 CONFIG_STD_SETENV
=""
8667 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8668 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8669 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8670 CONFIG_WORD_LENGTH
="8"
8671 CONFIG_WORD_LENGTH_INC
="7"
8672 CONFIG_WORD_MASK
="0xfffffff8"
8673 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
8674 CONFIG_STD_SETENV
=""
8677 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8678 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8680 CONFIG_BSHARED
="-shared"
8681 CONFIG_STD_SETENV
=""
8684 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8685 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8687 CONFIG_BSHARED
="-shared"
8690 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8691 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8692 CONFIG_STD_SETENV
=""
8695 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8696 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8698 CONFIG_BSHARED
="-shared"
8701 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8702 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8703 CONFIG_CXXFLAGS
="$CONFIG_CXXFLAGS -fPIC"
8705 CONFIG_BSHARED
="-shared"
8708 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8715 X11_LDFLAGS
="$X_LIBS -lX11"
8716 CONFIG_WORD_MASK
="0xfffffff8"
8717 CONFIG_STD_SETENV
=""
8718 CONFIG_CHMOD
="chmod"
8719 CONFIG_LIB_PATH
="LD_LIBRARYN32_PATH"
8721 m68k-
*-linux* | mips-
*-linux* | mipsel-
*-linux* | arm
*-*-linux*)
8722 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8723 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8726 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8727 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8730 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8731 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8735 #--------------------------------------------------------------------
8736 # Temporary fix for link problem
8737 #--------------------------------------------------------------------
8739 case "$GXX_VERSION" in
8741 CONFIG_BSTATIC
="-static"
8742 CONFIG_BSHARED
="-dynamic"
8746 #--------------------------------------------------------------------
8747 # Memory allocation options
8748 #--------------------------------------------------------------------
8750 # Check whether --enable-fastalloc was given.
8751 if test "${enable_fastalloc+set}" = set; then
8752 enableval
=$enable_fastalloc;
8754 enable_fastalloc
="yes"
8757 case "$enable_fastalloc" in
8761 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8762 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8764 cat >>confdefs.h
<<\_ACEOF
8765 #define NO_FAST_ALLOC 1
8770 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8771 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8772 { (exit 1); exit 1; }; }
8776 #--------------------------------------------------------------------
8777 # Experimental options
8778 #--------------------------------------------------------------------
8780 # Check whether --enable-experimental was given.
8781 if test "${enable_experimental+set}" = set; then
8782 enableval
=$enable_experimental;
8784 enable_experimental
="no"
8787 case "$enable_experimental" in
8789 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8790 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8792 cat >>confdefs.h
<<\_ACEOF
8793 #define EXPERIMENTAL 1
8796 CONFIG_EXPERIMENTAL
="Memorizer Environment Evaluate"
8799 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8800 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8801 CONFIG_EXPERIMENTAL
=""
8804 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8805 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8806 { (exit 1); exit 1; }; }
8811 #--------------------------------------------------------------------
8812 # MacOS X extensions (spellchecker, image loading)
8813 #--------------------------------------------------------------------
8815 # Check whether --enable-macosx-extensions was given.
8816 if test "${enable_macosx_extensions+set}" = set; then
8817 enableval
=$enable_macosx_extensions;
8819 enable_macosx_extensions
="no"
8822 case "$enable_macosx_extensions" in
8824 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8825 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8827 cat >>confdefs.h
<<\_ACEOF
8828 #define MACOSX_EXTENSIONS 1
8831 CONFIG_MACOS
="MacOS"
8834 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8835 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8839 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8840 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8841 { (exit 1); exit 1; }; }
8846 #--------------------------------------------------------------------
8848 #--------------------------------------------------------------------
8854 # Check whether --enable-qt was given.
8855 if test "${enable_qt+set}" = set; then
8856 enableval
=$enable_qt;
8862 case "$enable_qt" in
8865 if test -r "/c/Qt"; then
8867 qt_bin
="`dirname $MOC`"
8868 qt_home
="`dirname $qt_bin`"
8869 qt_version
="`basename $qt_home`"
8870 qt_parent
="`dirname $qt_home`"
8871 QT_CPPFLAGS
="-I$qt_home/mkspecs/macx-g++ -I$qt_home/include/QtCore -I$qt_home/include/QtGui -I$qt_home/include -I/$qt_home/include/ActiveQt -I."
8872 QT_CXXFLAGS
="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8873 QT_LDFLAGS
="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8874 QT_LIBS
="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8875 if test "$qt_parent" != "/c/Qt"; then
8883 test x
"$TROLL" != x
&& echo 'ViM rox emacs.'
8886 # Check whether --with-qt was given.
8887 if test "${with_qt+set}" = set; then
8888 withval
=$with_qt; QT_PATH
=$withval
8895 if test -d /usr
/local
/Trolltech
; then
8896 # Try to find the latest version.
8897 tmp_qt_paths
=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8898 | xargs | sed 's/ */:/g'`
8902 if test -z "$QMAKE"; then
8903 for ac_prog
in qmake
8905 # Extract the first word of "$ac_prog", so it can be a program name with args.
8906 set dummy
$ac_prog; ac_word
=$2
8907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8909 if test "${ac_cv_path_QMAKE+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8914 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
8917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8918 as_dummy
="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8919 for as_dir
in $as_dummy
8922 test -z "$as_dir" && as_dir
=.
8923 for ac_exec_ext
in '' $ac_executable_extensions; do
8924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
8926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8936 QMAKE
=$ac_cv_path_QMAKE
8937 if test -n "$QMAKE"; then
8938 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8939 echo "${ECHO_T}$QMAKE" >&6; }
8941 { echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6; }
8946 test -n "$QMAKE" && break
8948 test -n "$QMAKE" || QMAKE
="missing"
8951 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8952 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8953 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8954 echo "${ECHO_T}$QMAKE" >&6; }
8956 if test x
"$QMAKE" = xmissing
; then
8957 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8958 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8959 { (exit 1); exit 1; }; }
8962 # Find moc (Meta Object Compiler).
8963 if test -z "$MOC"; then
8966 # Extract the first word of "$ac_prog", so it can be a program name with args.
8967 set dummy
$ac_prog; ac_word
=$2
8968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8970 if test "${ac_cv_path_MOC+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_cv_path_MOC
="$MOC" # Let the user override the test with a path.
8978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8979 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
8980 for as_dir
in $as_dummy
8983 test -z "$as_dir" && as_dir
=.
8984 for ac_exec_ext
in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_path_MOC
="$as_dir/$ac_word$ac_exec_ext"
8987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 if test -n "$MOC"; then
8999 { echo "$as_me:$LINENO: result: $MOC" >&5
9000 echo "${ECHO_T}$MOC" >&6; }
9002 { echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6; }
9007 test -n "$MOC" && break
9009 test -n "$MOC" || MOC
="missing"
9012 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9013 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9014 { echo "$as_me:$LINENO: result: $MOC" >&5
9015 echo "${ECHO_T}$MOC" >&6; }
9017 if test x
"$MOC" = xmissing
; then
9018 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9019 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9020 { (exit 1); exit 1; }; }
9023 # Find uic (User Interface Compiler).
9024 if test -z "$UIC"; then
9027 # Extract the first word of "$ac_prog", so it can be a program name with args.
9028 set dummy
$ac_prog; ac_word
=$2
9029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9031 if test "${ac_cv_path_UIC+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_cv_path_UIC
="$UIC" # Let the user override the test with a path.
9039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9040 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9041 for as_dir
in $as_dummy
9044 test -z "$as_dir" && as_dir
=.
9045 for ac_exec_ext
in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9047 ac_cv_path_UIC
="$as_dir/$ac_word$ac_exec_ext"
9048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 if test -n "$UIC"; then
9060 { echo "$as_me:$LINENO: result: $UIC" >&5
9061 echo "${ECHO_T}$UIC" >&6; }
9063 { echo "$as_me:$LINENO: result: no" >&5
9064 echo "${ECHO_T}no" >&6; }
9068 test -n "$UIC" && break
9070 test -n "$UIC" || UIC
="missing"
9073 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9074 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9075 { echo "$as_me:$LINENO: result: $UIC" >&5
9076 echo "${ECHO_T}$UIC" >&6; }
9078 if test x
"$UIC" = xmissing
; then
9079 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9080 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9081 { (exit 1); exit 1; }; }
9084 # Find rcc (Qt Resource Compiler).
9087 # Extract the first word of "$ac_prog", so it can be a program name with args.
9088 set dummy
$ac_prog; ac_word
=$2
9089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9091 if test "${ac_cv_path_RCC+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 ac_cv_path_RCC
="$RCC" # Let the user override the test with a path.
9099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9100 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9101 for as_dir
in $as_dummy
9104 test -z "$as_dir" && as_dir
=.
9105 for ac_exec_ext
in '' $ac_executable_extensions; do
9106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107 ac_cv_path_RCC
="$as_dir/$ac_word$ac_exec_ext"
9108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 if test -n "$RCC"; then
9120 { echo "$as_me:$LINENO: result: $RCC" >&5
9121 echo "${ECHO_T}$RCC" >&6; }
9123 { echo "$as_me:$LINENO: result: no" >&5
9124 echo "${ECHO_T}no" >&6; }
9128 test -n "$RCC" && break
9130 test -n "$RCC" || RCC
="false"
9132 if test x
"$UIC" = xfalse
; then
9133 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9134 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9137 # If we don't know the path to Qt, guess it from the path to qmake.
9138 if test x
"$QT_PATH" = x
; then
9139 QT_PATH
=`dirname "$QMAKE"`
9141 if test x
"$QT_PATH" = x
; then
9142 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9143 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9144 { (exit 1); exit 1; }; }
9147 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9148 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9149 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9150 echo "${ECHO_T}$QT_PATH" >&6; }
9152 # Get ready to build a test-app with Qt.
9154 # Look for a writable temporary directory.
9156 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
9157 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9159 for i
in /tmp
/var
/tmp
; do
9160 if test -d "$i" && test -w "$i"; then
9163 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9169 # Kludge!! QMake has a very strange behavior. For instance, if you
9170 # install Qt under your $HOME and run QMake somewhere else under your
9171 # $HOME, it will try to be clever and produce Makefiles with relative
9172 # include paths. In order to avoid this, we will test QMake from a
9173 # temporary directory (usually /tmp). Note that this problem was only
9174 # observed with Qt 4.
9175 my_configure_pwd
=`pwd`
9176 my_tmpdir
="$TMPDIR/conftest$$.dir"
9177 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
9178 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9182 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9183 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9184 { (exit 1); exit 1; }; }
9186 cat >conftest.h
<<_ASEOF
9189 class Foo: public QObject
9196 void setValue(int value);
9198 void valueChanged(int newValue);
9204 cat >conftest.cpp
<<_ASEOF
9205 #include "conftest.h"
9209 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9212 void Foo::setValue(int value)
9222 if $QMAKE -project; then :; else
9223 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9224 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9225 { (exit 1); exit 1; }; }
9228 # Find the .pro file generated by qmake.
9229 pro_file
='conftest.dir.pro'
9230 test -f $pro_file || pro_file
=`echo *.pro`
9231 if test -f "$pro_file"; then :; else
9232 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9233 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9234 { (exit 1); exit 1; }; }
9243 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9244 sed 's/^/| /' "$pro_file" >&5
9246 additional_qmake_flags
=""
9249 additional_qmake_flags
="-spec macx-g++"
9253 if $QMAKE ${additional_qmake_flags} ; then :; else
9254 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9255 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9256 { (exit 1); exit 1; }; }
9258 # Try to compile a simple Qt app.
9259 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9260 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9261 if test "${at_cv_qt_build+set}" = set; then
9262 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 if $MAKE >&5 2>&1; then
9268 at_cv_qt_build
='ok, looks like Qt 4'
9270 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9272 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9273 if $MAKE >&5 2>&1; then
9274 at_cv_qt_build
='ok, looks like Qt 3'
9276 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9277 # installed in debug mode and qmake tries (by default) to build apps in
9278 # debug mode => Try again in release mode.
9279 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9282 # Tweak the value of CONFIG in the .pro file for +release.
9285 for at_mod
in +release
; do
9286 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
9295 echo "$qt_conf" |
sed 1d
>>"$pro_file"
9298 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9299 if $MAKE >&5 2>&1; then
9300 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
9302 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9304 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9305 if $MAKE >&5 2>&1; then
9306 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
9309 echo "$as_me:$LINENO: failed program was:" >&5
9310 sed 's/^/| /' conftest.h
>&5
9311 echo "$as_me:$LINENO: failed program was:" >&5
9312 sed 's/^/| /' conftest.cpp
>&5
9313 fi # if make with Qt3-style #include and release mode forced.
9314 fi # if make with Qt4-style #include and release mode forced.
9315 fi # if make with Qt3-style #include.
9316 fi # if make with Qt4-style #include.
9319 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9320 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9321 if test x
"$at_cv_qt_build" = xko
; then
9322 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9323 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9324 { (exit 1); exit 1; }; }
9326 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9329 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9330 # It starts by removing the beginning of the line, removing references to
9331 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9332 # all variable uses by QT_.
9333 qt_sed_filter
='s///;
9336 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9338 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9339 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9340 # Makefile.Release. The reason is that the main difference is that release
9341 # uses -Os and debug -g. We can override -Os by passing another -O but we
9342 # usually don't override -g.
9343 if test -f Makefile.Release
; then
9344 at_mfile
='Makefile.Release'
9348 if test -f $at_mfile; then :; else
9349 cd "$my_configure_pwd"
9350 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9351 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9352 { (exit 1); exit 1; }; }
9355 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9356 if test -z "$QT_DEFINES"; then
9357 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9358 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9359 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9364 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9365 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9366 QT_DEFINES
="$at_cv_env_QT_DEFINES"
9369 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9370 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9371 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9372 echo "${ECHO_T}$QT_DEFINES" >&6; }
9374 # Find the CFLAGS of Qt (We can use Qt in C?!)
9375 if test -z "$QT_CFLAGS"; then
9376 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9377 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9378 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9379 echo $ECHO_N "(cached) $ECHO_C" >&6
9381 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9383 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9384 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9385 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
9388 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9389 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9390 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9391 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9393 # Find the CXXFLAGS of Qt.
9394 if test -z "$QT_CXXFLAGS"; then
9395 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9396 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9397 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9402 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9403 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9404 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
9407 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9408 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9409 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9410 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9412 # Find the INCPATH of Qt.
9413 if test -z "$QT_INCPATH"; then
9414 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9415 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9416 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9421 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9422 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9423 QT_INCPATH
="$at_cv_env_QT_INCPATH"
9426 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9427 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9428 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9429 echo "${ECHO_T}$QT_INCPATH" >&6; }
9431 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
9434 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9435 if test -z "$QT_LDFLAGS"; then
9436 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9437 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9438 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9441 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9443 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9444 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9445 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
9448 QT_LFLAGS
=$QT_LDFLAGS
9450 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9451 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9452 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9453 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9455 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9456 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9463 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9464 echo "${ECHO_T}$at_darwin" >&6; }
9466 # Find the LIBS of Qt.
9467 if test -z "$QT_LIBS"; then
9468 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9469 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9470 if test "${at_cv_env_QT_LIBS+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9474 if test x
$at_darwin = xyes
; then
9475 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9476 # -F properly. The "bug" has been fixed on 22 October 2006
9477 # by Peter O'Gorman but we provide backward compatibility here.
9478 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
9479 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9483 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9484 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9485 QT_LIBS
="$at_cv_env_QT_LIBS"
9488 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9489 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9490 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9491 echo "${ECHO_T}$QT_LIBS" >&6; }
9493 cd "$my_configure_pwd" ||
echo 'WTF!'
9498 if test x
"$at_cv_qt_build" = xko
; then
9499 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9500 echo "$as_me: error: cannot find Qt!" >&2;}
9501 { (exit 1); exit 1; }; }
9503 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9504 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9509 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9510 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9513 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9514 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9515 { (exit 1); exit 1; }; }
9519 # Check whether --enable-cocoa was given.
9520 if test "${enable_cocoa+set}" = set; then
9521 enableval
=$enable_cocoa;
9526 case "$enable_cocoa" in
9528 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9529 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9531 COCOA_LDFLAGS
="-framework Cocoa"
9535 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9536 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9539 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9540 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9541 { (exit 1); exit 1; }; }
9545 case "$CONFIG_GUI" in
9547 CONFIG_X11
="X11 Widkit Ghostscript"
9549 cat >>confdefs.h
<<\_ACEOF
9550 #define X11TEXMACS 1
9555 CONFIG_COCOA
="Cocoa"
9557 cat >>confdefs.h
<<\_ACEOF
9558 #define AQUATEXMACS 1
9565 cat >>confdefs.h
<<\_ACEOF
9582 #--------------------------------------------------------------------
9584 #--------------------------------------------------------------------
9586 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
9587 if test "$enable_cocoa" = "yes"; then
9588 STD_DEBUG_FLAGS
="-fno-exceptions"
9591 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9592 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9593 CXXFLAGS
="$STD_DEBUG_FLAGS"
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 int some_variable = 0;
9612 rm -f conftest.
$ac_objext
9613 if { (ac_try
="$ac_compile"
9615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_cxx_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.$ac_objext; then
9630 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9631 { echo "$as_me:$LINENO: result: yes" >&5
9632 echo "${ECHO_T}yes" >&6; }
9635 echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9639 CONFIG_CXXDIALECT=""
9640 { echo "$as_me:$LINENO: result: no" >&5
9641 echo "${ECHO_T}no" >&6; }
9645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 # Check whether --enable-debug was given.
9650 if test "${enable_debug+set}" = set; then
9651 enableval=$enable_debug;
9657 if test "$enable_debug" = "yes"; then
9658 if test "$GXX" = "yes"; then
9659 enable_debug="-ggdb"
9665 if test "$enable_debug" = "no"; then
9666 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9667 echo "${ECHO_T}disabling debugging" >&6; }
9668 CONFIG_STRIP="strip"
9670 optimize_default="yes"
9672 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9673 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9675 CONFIG_CXXDEBUG="$enable_debug"
9676 optimize_default="no"
9679 # Check whether --enable-assert was given.
9680 if test "${enable_assert+set}" = set; then
9681 enableval=$enable_assert;
9687 if test "$enable_assert" = "no"; then
9688 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9689 echo "${ECHO_T}disabling assertion checking" >&6; }
9691 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9692 echo "${ECHO_T}enabling assertion checking" >&6; }
9694 cat >>confdefs.h <<\_ACEOF
9695 #define DEBUG_ASSERT 1
9700 #--------------------------------------------------------------------
9702 #--------------------------------------------------------------------
9704 case "$GXX_VERSION" in
9706 CONFIG_CXXWARNING="";
9709 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9713 # Check whether --enable-warnings was given.
9714 if test "${enable_warnings+set}" = set; then
9715 enableval=$enable_warnings;
9717 enable_warnings="yes"
9720 case "$enable_warnings" in
9722 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9723 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9725 CONFIG_CXXWARNING=""
9726 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9727 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9729 CONFIG_CXXWARNING="$enable_warnings"
9730 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9731 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9734 #--------------------------------------------------------------------
9735 # Optimization options
9736 #--------------------------------------------------------------------
9738 if test "$optimize_default" = "yes"; then
9739 case "$GXX_VERSION" in
9740 3.3.3 | 3.3.4 | 4.*)
9742 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9744 i*86-*-linux-gnu* | i*86-*-freebsd*)
9745 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9746 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9747 optimize_default="no-inline"
9750 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9751 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9752 optimize_default="no-inline"
9759 # Check whether --enable-optimize was given.
9760 if test "${enable_optimize+set}" = set; then
9761 enableval=$enable_optimize;
9763 enable_optimize="$optimize_default"
9767 case "$enable_optimize" in
9769 # keep optimization options
9770 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9771 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9773 optimize_no_inline="-fno-default-inline -fno-inline"
9774 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9775 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9776 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9778 CONFIG_CXXOPTIMIZE=""
9779 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9780 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9782 CONFIG_CXXOPTIMIZE="$enable_optimize"
9783 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9784 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9787 #--------------------------------------------------------------------
9788 # Substitute TeXmacs specific configuration parameters
9789 #--------------------------------------------------------------------
9813 #--------------------------------------------------------------------
9814 # Default paths for installation
9815 #--------------------------------------------------------------------
9817 if test "$prefix" = ""; then
9820 if test "$prefix" = "NONE"; then
9823 if test "$exec_prefix" = ""; then
9824 exec_prefix='${prefix}'
9826 if test "$exec_prefix" = "NONE"; then
9827 exec_prefix='${prefix}'
9829 if test "$exec_prefix" = '${prefix}'; then
9830 exec_prefix='${prefix}'
9832 if test "$includedir" = ""; then
9833 includedir='${prefix}/include'
9835 if test "$includedir" = "NONE"; then
9836 includedir='${prefix}/include'
9838 if test "$includedir" = '${prefix}/include'; then
9839 includedir='${prefix}/include'
9841 if test "$libdir" = ""; then
9842 libdir='${exec_prefix}/lib'
9844 if test "$libdir" = "NONE"; then
9845 libdir='${exec_prefix}/lib'
9847 if test "$libdir" = '${exec_prefix}/lib'; then
9848 libdir='${exec_prefix}/lib'
9850 if test "$bindir" = ""; then
9851 bindir='${exec_prefix}/bin'
9853 if test "$bindir" = "NONE"; then
9854 bindir=${exec_prefix}/bin
9856 if test "$bindir" = '${exec_prefix}/bin'; then
9857 bindir='${exec_prefix}/bin'
9859 if test "$datarootdir" = ""; then
9860 datarootdir='${prefix}/share'
9862 if test "$datarootdir" = "NONE"; then
9863 datarootdir='${prefix}/share'
9865 if test "$datarootdir" = '${prefix}/share'; then
9866 datarootdir='${prefix}/share'
9868 if test "$datadir" = ""; then
9869 datadir='${prefix}/share'
9871 if test "$datadir" = "NONE"; then
9872 datadir='${prefix}/share'
9874 if test "$datadir" = '${prefix}/share'; then
9875 datadir='${prefix}/share'
9877 if test "$mandir" = ""; then
9878 mandir='${datarootdir}/man'
9880 if test "$mandir" = "NONE"; then
9881 mandir='${datarootdir}/man'
9883 if test "$mandir" = '${datarootdir}/man'; then
9884 mandir='${datarootdir}/man'
9886 if test "$libexecdir" = ""; then
9887 libexecdir='${exec_prefix}/libexec'
9889 if test "$libexecdir" = "NONE"; then
9890 libexecdir='${exec_prefix}/libexec'
9892 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9893 libexecdir='${exec_prefix}/libexec'
9899 tmsrc=${curdir}/${tmdir}
9900 tmbin=${libexecdir}/${tmdir}
9901 tmdata=${datadir}/${tmdir}
9908 if test "$DEVEL_RELEASE" = "1"; then
9909 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9911 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9913 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9914 if test "$STABLE_RELEASE" = "1"; then
9915 tmstgz=${PACKAGE}-${STABLE_VERSION}
9917 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9919 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9920 if test "$WINDOWS_RELEASE" = "1"; then
9921 tmwin=wintexmacs-${WINDOWS_VERSION}
9923 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9931 #--------------------------------------------------------------------
9933 #--------------------------------------------------------------------
9935 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 misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in"
9937 cat >confcache <<\_ACEOF
9938 # This file is a shell script that caches the results of configure
9939 # tests run on this system so they can be shared between configure
9940 # scripts and configure runs, see configure's option --config-cache.
9941 # It is not useful on other systems. If it contains results you don't
9942 # want to keep, you may remove or edit it.
9944 # config.status only pays attention to the cache file if you give it
9945 # the --recheck option to rerun configure.
9947 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9953 # The following way of writing the cache mishandles newlines in values,
9954 # but we know of no workaround that is simple, portable, and efficient.
9955 # So, we kill variables containing newlines.
9956 # Ultrix sh set writes to stderr and can't be redirected directly,
9957 # and sets the high bit in the cache file unless we assign to the vars.
9959 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9960 eval ac_val
=\$
$ac_var
9964 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9965 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9968 _ | IFS | as_nl
) ;; #(
9969 *) $as_unset $ac_var ;;
9975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9976 *${as_nl}ac_space
=\
*)
9977 # `set' does not quote correctly, so add quotes (double-quote
9978 # substitution turns \\\\ into \\, and sed turns \\ into \).
9981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9984 # `set' quotes correctly as required by POSIX, so do not add quotes.
9985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9998 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9999 if test -w "$cache_file"; then
10000 test "x$cache_file" != "x/dev/null" &&
10001 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10002 echo "$as_me: updating cache $cache_file" >&6;}
10003 cat confcache
>$cache_file
10005 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10006 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10011 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10012 # Let make expand exec_prefix.
10013 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10015 DEFS
=-DHAVE_CONFIG_H
10019 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10020 # 1. Remove the extension, and $U if already installed.
10021 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10022 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10023 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10024 # will be set to the directory where LIBOBJS objects are built.
10025 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10026 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10028 LIBOBJS
=$ac_libobjs
10030 LTLIBOBJS
=$ac_ltlibobjs
10034 : ${CONFIG_STATUS=./config.status}
10035 ac_clean_files_save
=$ac_clean_files
10036 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10037 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10038 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10039 cat >$CONFIG_STATUS <<_ACEOF
10041 # Generated by $as_me.
10042 # Run this file to recreate the current configuration.
10043 # Compiler output produced by configure, useful for debugging
10044 # configure, is in config.log if it exists.
10047 ac_cs_recheck=false
10049 SHELL=\${CONFIG_SHELL-$SHELL}
10052 cat >>$CONFIG_STATUS <<\_ACEOF
10053 ## --------------------- ##
10054 ## M4sh Initialization. ##
10055 ## --------------------- ##
10057 # Be more Bourne compatible
10058 DUALCASE
=1; export DUALCASE
# for MKS sh
10059 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10063 # is contrary to our usage. Disable this feature.
10064 alias -g '${1+"$@"}'='"$@"'
10065 setopt NO_GLOB_SUBST
10067 case `(set -o) 2>/dev/null` in
10068 *posix
*) set -o posix
;;
10077 # Avoid depending upon Character Ranges.
10078 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10079 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10080 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10081 as_cr_digits
='0123456789'
10082 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10084 # The user is always right.
10085 if test "${PATH_SEPARATOR+set}" != set; then
10086 echo "#! /bin/sh" >conf$$.sh
10087 echo "exit 0" >>conf$$.sh
10089 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10097 # Support unset when possible.
10098 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10106 # We need space, tab and new line, in precisely that order. Quoting is
10107 # there to prevent editors from complaining about space-tab.
10108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10109 # splitting by setting IFS to empty value.)
10114 # Find who we are. Look in the path if we contain no directory separator.
10116 *[\\/]* ) as_myself
=$0 ;;
10117 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10118 for as_dir
in $PATH
10121 test -z "$as_dir" && as_dir
=.
10122 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10128 # We did not find ourselves, most probably we were run as `sh COMMAND'
10129 # in which case we are not to be found in the path.
10130 if test "x$as_myself" = x
; then
10133 if test ! -f "$as_myself"; then
10134 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10135 { (exit 1); exit 1; }
10138 # Work around bugs in pre-3.0 UWIN ksh.
10139 for as_var
in ENV MAIL MAILPATH
10140 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10148 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10149 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10150 LC_TELEPHONE LC_TIME
10152 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10153 eval $as_var=C
; export $as_var
10155 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10159 # Required to use basename.
10160 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10161 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10167 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10168 as_basename
=basename
10174 # Name of the executable.
10175 as_me
=`$as_basename -- "$0" ||
10176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10177 X"$0" : 'X\(//\)$' \| \
10178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10180 sed '/^.*\/\([^/][^/]*\)\/*$/{
10199 as_lineno_1
=$LINENO
10200 as_lineno_2
=$LINENO
10201 test "x$as_lineno_1" != "x$as_lineno_2" &&
10202 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10204 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10205 # uniformly replaced by the line number. The first 'sed' inserts a
10206 # line-number line after each line using $LINENO; the second 'sed'
10207 # does the real work. The second script uses 'N' to pair each
10208 # line-number line with the line containing $LINENO, and appends
10209 # trailing '-' during substitution so that $LINENO is not a special
10210 # case at line end.
10211 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10212 # scripts with optimization help from Paolo Bonzini. Blame Lee
10213 # E. McMahon (1931-1989) for sed's syntax. :-)
10225 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10228 ' >$as_me.lineno
&&
10229 chmod +x
"$as_me.lineno" ||
10230 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10231 { (exit 1); exit 1; }; }
10233 # Don't try to exec as it changes $[0], causing all sort of problems
10234 # (the dirname of $[0] is not the place where we might find the
10235 # original and so on. Autoconf is especially sensitive to this).
10236 .
"./$as_me.lineno"
10237 # Exit status is that of the last command.
10242 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10248 ECHO_C
= ECHO_N
= ECHO_T
=
10249 case `echo -n x` in
10251 case `echo 'x\c'` in
10252 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10259 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10260 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10266 rm -f conf$$ conf$$.exe conf$$.
file
10267 if test -d conf$$.dir
; then
10268 rm -f conf$$.dir
/conf$$.
file
10274 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10276 # ... but there are two gotchas:
10277 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10278 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10279 # In both cases, we have to default to `cp -p'.
10280 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10282 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10287 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10288 rmdir conf$$.dir
2>/dev
/null
10290 if mkdir
-p .
2>/dev
/null
; then
10293 test -d .
/-p && rmdir .
/-p
10297 if test -x / >/dev
/null
2>&1; then
10298 as_test_x
='test -x'
10300 if ls -dL / >/dev
/null
2>&1; then
10307 if test -d "$1"; then
10313 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10314 ???[sx]*):;;*)false;;esac;fi
10318 as_executable_p
=$as_test_x
10320 # Sed expression to map a string onto a valid CPP name.
10321 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10323 # Sed expression to map a string onto a valid variable name.
10324 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10329 # Save the log message, to keep $[0] and so on meaningful, and to
10330 # report actual input values of CONFIG_FILES etc. instead of their
10331 # values after options handling.
10333 This file was extended by $as_me, which was
10334 generated by GNU Autoconf 2.61. Invocation command line was
10336 CONFIG_FILES = $CONFIG_FILES
10337 CONFIG_HEADERS = $CONFIG_HEADERS
10338 CONFIG_LINKS = $CONFIG_LINKS
10339 CONFIG_COMMANDS = $CONFIG_COMMANDS
10342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10347 cat >>$CONFIG_STATUS <<_ACEOF
10348 # Files that config.status was made for.
10349 config_files="$ac_config_files"
10350 config_headers="$ac_config_headers"
10354 cat >>$CONFIG_STATUS <<\_ACEOF
10356 \`$as_me' instantiates files from templates according to the
10357 current configuration.
10359 Usage: $0 [OPTIONS] [FILE]...
10361 -h, --help print this help, then exit
10362 -V, --version print version number and configuration settings, then exit
10363 -q, --quiet do not print progress messages
10364 -d, --debug don't remove temporary files
10365 --recheck update $as_me by reconfiguring in the same conditions
10366 --file=FILE[:TEMPLATE]
10367 instantiate the configuration file FILE
10368 --header=FILE[:TEMPLATE]
10369 instantiate the configuration header FILE
10371 Configuration files:
10374 Configuration headers:
10377 Report bugs to <bug-autoconf@gnu.org>."
10380 cat >>$CONFIG_STATUS <<_ACEOF
10383 configured by $0, generated by GNU Autoconf 2.61,
10384 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10386 Copyright (C) 2006 Free Software Foundation, Inc.
10387 This config.status script is free software; the Free Software Foundation
10388 gives unlimited permission to copy, distribute and modify it."
10394 cat >>$CONFIG_STATUS <<\_ACEOF
10395 # If no file are specified by the user, then we need to provide default
10396 # value. By we need to know if files were specified by the user.
10402 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10403 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10414 # Handling of the options.
10415 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10417 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10418 echo "$ac_cs_version"; exit ;;
10419 --debug |
--debu |
--deb |
--de |
--d |
-d )
10421 --file |
--fil |
--fi |
--f )
10423 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10424 ac_need_defaults
=false
;;
10425 --header |
--heade |
--head |
--hea )
10427 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10428 ac_need_defaults
=false
;;
10430 # Conflict between --help and --header
10431 { echo "$as_me: error: ambiguous option: $1
10432 Try \`$0 --help' for more information." >&2
10433 { (exit 1); exit 1; }; };;
10434 --help |
--hel |
-h )
10435 echo "$ac_cs_usage"; exit ;;
10436 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10437 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10440 # This is an error.
10441 -*) { echo "$as_me: error: unrecognized option: $1
10442 Try \`$0 --help' for more information." >&2
10443 { (exit 1); exit 1; }; } ;;
10445 *) ac_config_targets
="$ac_config_targets $1"
10446 ac_need_defaults
=false
;;
10452 ac_configure_extra_args
=
10454 if $ac_cs_silent; then
10456 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10460 cat >>$CONFIG_STATUS <<_ACEOF
10461 if \$ac_cs_recheck; then
10462 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10463 CONFIG_SHELL=$SHELL
10464 export CONFIG_SHELL
10465 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10469 cat >>$CONFIG_STATUS <<\_ACEOF
10473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10474 ## Running $as_me. ##
10480 cat >>$CONFIG_STATUS <<_ACEOF
10483 cat >>$CONFIG_STATUS <<\_ACEOF
10485 # Handling of arguments.
10486 for ac_config_target
in $ac_config_targets
10488 case $ac_config_target in
10489 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10490 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
10491 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10492 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10493 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10494 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10495 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10496 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10497 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10498 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10499 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10500 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10504 { (exit 1); exit 1; }; };;
10509 # If the user did not use the arguments to specify the items to instantiate,
10510 # then the envvar interface is used. Set only those that are not.
10511 # We use the long form for the default assignment because of an extremely
10512 # bizarre bug on SunOS 4.1.3.
10513 if $ac_need_defaults; then
10514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10518 # Have a temporary directory for convenience. Make it in the build tree
10519 # simply because there is no reason against having it here, and in addition,
10520 # creating and moving files from /tmp can sometimes cause problems.
10521 # Hook for its removal unless debugging.
10522 # Note that there is a small window in which the directory will not be cleaned:
10523 # after its creation but before its name has been assigned to `$tmp'.
10527 trap 'exit_status=$?
10528 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10530 trap '{ (exit 1); exit 1; }' 1 2 13 15
10532 # Create a (secure) tmp directory for tmp files.
10535 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10536 test -n "$tmp" && test -d "$tmp"
10539 tmp
=.
/conf$$
-$RANDOM
10540 (umask 077 && mkdir
"$tmp")
10543 echo "$me: cannot create a temporary directory in ." >&2
10544 { (exit 1); exit 1; }
10548 # Set up the sed scripts for CONFIG_FILES section.
10551 # No need to generate the scripts if there are no CONFIG_FILES.
10552 # This happens for instance when ./config.status config.h
10553 if test -n "$CONFIG_FILES"; then
10560 for ac_last_try
in false false false false false
:; do
10561 cat >conf$
$subs.
sed <<_ACEOF
10562 SHELL!$SHELL$ac_delim
10563 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10564 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10565 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10566 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10567 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10568 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10569 exec_prefix!$exec_prefix$ac_delim
10570 prefix!$prefix$ac_delim
10571 program_transform_name!$program_transform_name$ac_delim
10572 bindir!$bindir$ac_delim
10573 sbindir!$sbindir$ac_delim
10574 libexecdir!$libexecdir$ac_delim
10575 datarootdir!$datarootdir$ac_delim
10576 datadir!$datadir$ac_delim
10577 sysconfdir!$sysconfdir$ac_delim
10578 sharedstatedir!$sharedstatedir$ac_delim
10579 localstatedir!$localstatedir$ac_delim
10580 includedir!$includedir$ac_delim
10581 oldincludedir!$oldincludedir$ac_delim
10582 docdir!$docdir$ac_delim
10583 infodir!$infodir$ac_delim
10584 htmldir!$htmldir$ac_delim
10585 dvidir!$dvidir$ac_delim
10586 pdfdir!$pdfdir$ac_delim
10587 psdir!$psdir$ac_delim
10588 libdir!$libdir$ac_delim
10589 localedir!$localedir$ac_delim
10590 mandir!$mandir$ac_delim
10591 DEFS!$DEFS$ac_delim
10592 ECHO_C!$ECHO_C$ac_delim
10593 ECHO_N!$ECHO_N$ac_delim
10594 ECHO_T!$ECHO_T$ac_delim
10595 LIBS!$LIBS$ac_delim
10596 build_alias!$build_alias$ac_delim
10597 host_alias!$host_alias$ac_delim
10598 target_alias!$target_alias$ac_delim
10599 PACKAGE!$PACKAGE$ac_delim
10600 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10601 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10602 STABLE_VERSION!$STABLE_VERSION$ac_delim
10603 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10605 CFLAGS!$CFLAGS$ac_delim
10606 LDFLAGS!$LDFLAGS$ac_delim
10607 CPPFLAGS!$CPPFLAGS$ac_delim
10608 ac_ct_CC!$ac_ct_CC$ac_delim
10609 EXEEXT!$EXEEXT$ac_delim
10610 OBJEXT!$OBJEXT$ac_delim
10612 CXXFLAGS!$CXXFLAGS$ac_delim
10613 ac_ct_CXX!$ac_ct_CXX$ac_delim
10614 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10615 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10616 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10617 CXXCPP!$CXXCPP$ac_delim
10618 GREP!$GREP$ac_delim
10619 EGREP!$EGREP$ac_delim
10620 XMKMF!$XMKMF$ac_delim
10621 X_CFLAGS!$X_CFLAGS$ac_delim
10622 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10623 X_LIBS!$X_LIBS$ac_delim
10624 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10625 CONFIG_BDL!$CONFIG_BDL$ac_delim
10627 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10628 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10629 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10630 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10631 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10632 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10633 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10634 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10635 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10636 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10637 build!$build$ac_delim
10638 build_cpu!$build_cpu$ac_delim
10639 build_vendor!$build_vendor$ac_delim
10640 build_os!$build_os$ac_delim
10641 host!$host$ac_delim
10642 host_cpu!$host_cpu$ac_delim
10643 host_vendor!$host_vendor$ac_delim
10644 host_os!$host_os$ac_delim
10645 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10646 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10647 QMAKE!$QMAKE$ac_delim
10651 QT_PATH!$QT_PATH$ac_delim
10652 TMPDIR!$TMPDIR$ac_delim
10653 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10654 QT_DEFINES!$QT_DEFINES$ac_delim
10655 QT_CFLAGS!$QT_CFLAGS$ac_delim
10656 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10657 QT_INCPATH!$QT_INCPATH$ac_delim
10658 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10661 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10663 elif $ac_last_try; then
10664 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10665 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10666 { (exit 1); exit 1; }; }
10668 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10672 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10673 if test -n "$ac_eof"; then
10674 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10675 ac_eof
=`expr $ac_eof + 1`
10678 cat >>$CONFIG_STATUS <<_ACEOF
10679 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10680 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10683 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10684 s/^/s,@/; s/!/@,|#_!!_#|/
10687 s/'"$ac_delim"'$/,g/; t
10689 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10690 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10691 rm -f conf$
$subs.
sed
10692 cat >>$CONFIG_STATUS <<_ACEOF
10698 for ac_last_try
in false false false false false
:; do
10699 cat >conf$
$subs.
sed <<_ACEOF
10700 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10701 QT_LFLAGS!$QT_LFLAGS$ac_delim
10702 QT_LIBS!$QT_LIBS$ac_delim
10703 X11_CFLAGS!$X11_CFLAGS$ac_delim
10704 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10705 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10706 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10707 CONFIG_X11!$CONFIG_X11$ac_delim
10708 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10709 CONFIG_QT!$CONFIG_QT$ac_delim
10710 CONFIG_GUI!$CONFIG_GUI$ac_delim
10711 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10712 CONFIG_OS!$CONFIG_OS$ac_delim
10713 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10714 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10715 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10716 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10717 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10718 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10719 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10720 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10721 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10722 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10723 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10724 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10725 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10726 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10727 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10728 CONFIG_SO!$CONFIG_SO$ac_delim
10729 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10730 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10731 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10732 LDRT!$LDRT$ac_delim
10733 tmorig!$tmorig$ac_delim
10734 tmdir!$tmdir$ac_delim
10735 tmsrc!$tmsrc$ac_delim
10736 tmbin!$tmbin$ac_delim
10737 tmdata!$tmdata$ac_delim
10738 tmtgz!$tmtgz$ac_delim
10739 tmrpm!$tmrpm$ac_delim
10740 tmstgz!$tmstgz$ac_delim
10741 tmsrpm!$tmsrpm$ac_delim
10742 tmwin!$tmwin$ac_delim
10743 LIBOBJS!$LIBOBJS$ac_delim
10744 LTLIBOBJS!$LTLIBOBJS$ac_delim
10747 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
10749 elif $ac_last_try; then
10750 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10751 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10752 { (exit 1); exit 1; }; }
10754 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10758 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10759 if test -n "$ac_eof"; then
10760 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10761 ac_eof
=`expr $ac_eof + 1`
10764 cat >>$CONFIG_STATUS <<_ACEOF
10765 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10770 s/^/s,@/; s/!/@,|#_!!_#|/
10773 s/'"$ac_delim"'$/,g/; t
10775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10776 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10777 rm -f conf$
$subs.
sed
10778 cat >>$CONFIG_STATUS <<_ACEOF
10785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10787 # trailing colons and then remove the whole line if VPATH becomes empty
10788 # (actually we leave an empty line to preserve line numbers).
10789 if test "x$srcdir" = x.
; then
10790 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10791 s/:*\$(srcdir):*/:/
10792 s/:*\${srcdir}:*/:/
10794 s/^\([^=]*=[ ]*\):*/\1/
10800 cat >>$CONFIG_STATUS <<\_ACEOF
10801 fi # test -n "$CONFIG_FILES"
10804 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
10807 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10809 case $ac_mode$ac_tag in
10811 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10812 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10813 { (exit 1); exit 1; }; };;
10814 :[FH
]-) ac_tag
=-:-;;
10815 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10832 -) ac_f
="$tmp/stdin";;
10833 *) # Look for the file first in the build tree, then in the source tree
10834 # (if the path is not absolute). The absolute path cannot be DOS-style,
10835 # because $ac_f cannot contain `:'.
10839 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10841 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10842 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10843 { (exit 1); exit 1; }; };;
10845 ac_file_inputs
="$ac_file_inputs $ac_f"
10848 # Let's still pretend it is `configure' which instantiates (i.e., don't
10849 # use $as_me), people would be surprised to read:
10850 # /* config.h. Generated by config.status. */
10851 configure_input
="Generated from "`IFS=:
10852 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10853 if test x
"$ac_file" != x-
; then
10854 configure_input
="$ac_file. $configure_input"
10855 { echo "$as_me:$LINENO: creating $ac_file" >&5
10856 echo "$as_me: creating $ac_file" >&6;}
10860 *:-:* |
*:-) cat >"$tmp/stdin";;
10865 ac_dir
=`$as_dirname -- "$ac_file" ||
10866 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10867 X"$ac_file" : 'X\(//\)[^/]' \| \
10868 X"$ac_file" : 'X\(//\)$' \| \
10869 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10875 /^X\(\/\/\)[^/].*/{
10890 -*) as_dir
=.
/$as_dir;;
10892 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
10896 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10897 *) as_qdir
=$as_dir;;
10899 as_dirs
="'$as_qdir' $as_dirs"
10900 as_dir
=`$as_dirname -- "$as_dir" ||
10901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10902 X"$as_dir" : 'X\(//\)[^/]' \| \
10903 X"$as_dir" : 'X\(//\)$' \| \
10904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10910 /^X\(\/\/\)[^/].*/{
10923 test -d "$as_dir" && break
10925 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10926 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10927 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10928 { (exit 1); exit 1; }; }; }
10932 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10934 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10935 # A ".." for each directory in $ac_dir_suffix.
10936 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10937 case $ac_top_builddir_sub in
10938 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10939 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10942 ac_abs_top_builddir
=$ac_pwd
10943 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10944 # for backward compatibility:
10945 ac_top_builddir
=$ac_top_build_prefix
10948 .
) # We are building in place.
10950 ac_top_srcdir
=$ac_top_builddir_sub
10951 ac_abs_top_srcdir
=$ac_pwd ;;
10952 [\\/]* | ?
:[\\/]* ) # Absolute name.
10953 ac_srcdir
=$srcdir$ac_dir_suffix;
10954 ac_top_srcdir
=$srcdir
10955 ac_abs_top_srcdir
=$srcdir ;;
10956 *) # Relative name.
10957 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10958 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10959 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10961 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10972 cat >>$CONFIG_STATUS <<\_ACEOF
10973 # If the template does not know about datarootdir, expand it.
10974 # FIXME: This hack should be removed a few years after 2.60.
10975 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10977 case `sed -n '/datarootdir/ {
10986 ' $ac_file_inputs` in
10987 *datarootdir
*) ac_datarootdir_seen
=yes;;
10988 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10989 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10990 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10992 cat >>$CONFIG_STATUS <<_ACEOF
10993 ac_datarootdir_hack='
10994 s&@datadir@&$datadir&g
10995 s&@docdir@&$docdir&g
10996 s&@infodir@&$infodir&g
10997 s&@localedir@&$localedir&g
10998 s&@mandir@&$mandir&g
10999 s&\\\${datarootdir}&$datarootdir&g' ;;
11003 # Neutralize VPATH when `$srcdir' = `.'.
11004 # Shell code in configure.ac might set extrasub.
11005 # FIXME: do we really want to maintain this feature?
11006 cat >>$CONFIG_STATUS <<_ACEOF
11010 cat >>$CONFIG_STATUS <<\_ACEOF
11012 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11013 s
&@configure_input@
&$configure_input&;t t
11014 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11015 s
&@srcdir@
&$ac_srcdir&;t t
11016 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11017 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11018 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11019 s
&@builddir@
&$ac_builddir&;t t
11020 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11021 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11022 $ac_datarootdir_hack
11023 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
11025 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11026 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11028 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11029 which seems to be undefined. Please make sure it is defined." >&5
11030 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11031 which seems to be undefined. Please make sure it is defined." >&2;}
11035 -) cat "$tmp/out"; rm -f "$tmp/out";;
11036 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11045 # Transform confdefs.h into a sed script `conftest.defines', that
11046 # substitutes the proper values into config.h.in to produce config.h.
11047 rm -f conftest.defines conftest.
tail
11048 # First, append a space to every undef/define line, to ease matching.
11049 echo 's/$/ /' >conftest.defines
11050 # Then, protect against being on the right side of a sed subst, or in
11051 # an unquoted here document, in config.status. If some macros were
11052 # called several times there might be several #defines for the same
11053 # symbol, which is useless. But do not sort them, since the last
11054 # AC_DEFINE must be honored.
11055 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11056 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11057 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11058 # PARAMS is the parameter list in the macro definition--in most cases, it's
11059 # just an empty string.
11060 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11061 ac_dB
='\\)[ (].*,\\1define\\2'
11069 s/^[ ]*#[ ]*define[ ][ ]*//
11074 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11075 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11076 ' >>conftest.defines
11078 # Remove the space that was appended to ease matching.
11079 # Then replace #undef with comments. This is necessary, for
11080 # example, in the case of _POSIX_SOURCE, which is predefined and required
11081 # on some systems where configure will not decide to define it.
11082 # (The regexp can be short, since the line contains either #define or #undef.)
11084 s,^[ #]*u.*,/* & */,' >>conftest.defines
11086 # Break up conftest.defines:
11087 ac_max_sed_lines
=50
11089 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11090 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11091 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11093 ac_in
='$ac_file_inputs'
11094 ac_out
='"$tmp/out1"'
11095 ac_nxt
='"$tmp/out2"'
11099 # Write a here document:
11100 cat >>$CONFIG_STATUS <<_ACEOF
11101 # First, check the format of the line:
11102 cat >"\$tmp/defines.sed" <<\\CEOF
11103 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11104 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11108 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11110 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11111 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11112 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11113 grep . conftest.
tail >/dev
/null ||
break
11114 rm -f conftest.defines
11115 mv conftest.
tail conftest.defines
11117 rm -f conftest.defines conftest.
tail
11119 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11120 cat >>$CONFIG_STATUS <<\_ACEOF
11121 if test x
"$ac_file" != x-
; then
11122 echo "/* $configure_input */" >"$tmp/config.h"
11123 cat "$ac_result" >>"$tmp/config.h"
11124 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11125 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11126 echo "$as_me: $ac_file is unchanged" >&6;}
11129 mv "$tmp/config.h" $ac_file
11132 echo "/* $configure_input */"
11144 { (exit 0); exit 0; }
11146 chmod +x
$CONFIG_STATUS
11147 ac_clean_files
=$ac_clean_files_save
11150 # configure is writing to config.log, and then calls config.status.
11151 # config.status does its own redirection, appending to config.log.
11152 # Unfortunately, on DOS this fails, as config.log is still kept open
11153 # by configure, so config.status won't be able to write to it; its
11154 # output is simply discarded. So we exec the FD to /dev/null,
11155 # effectively closing config.log, so it can be properly (re)opened and
11156 # appended to by config.status. When coming back to configure, we
11157 # need to make the FD available again.
11158 if test "$no_create" != yes; then
11160 ac_config_status_args
=
11161 test "$silent" = yes &&
11162 ac_config_status_args
="$ac_config_status_args --quiet"
11164 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11166 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11167 # would make configure fail if this is the last instruction.
11168 $ac_cs_success ||
{ (exit 1); exit 1; }