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
737 CONFIG_WORD_LENGTH_INC
760 ac_precious_vars
='build_alias
777 # Initialize some variables set by options.
779 ac_init_version
=false
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
789 program_transform_name
=s
,x
,x
,
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir
='${exec_prefix}/bin'
804 sbindir
='${exec_prefix}/sbin'
805 libexecdir
='${exec_prefix}/libexec'
806 datarootdir
='${prefix}/share'
807 datadir
='${datarootdir}'
808 sysconfdir
='${prefix}/etc'
809 sharedstatedir
='${prefix}/com'
810 localstatedir
='${prefix}/var'
811 includedir
='${prefix}/include'
812 oldincludedir
='/usr/include'
813 docdir
='${datarootdir}/doc/${PACKAGE}'
814 infodir
='${datarootdir}/info'
819 libdir
='${exec_prefix}/lib'
820 localedir
='${datarootdir}/locale'
821 mandir
='${datarootdir}/man'
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\
$ac_option
835 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 # Accept the important Cygnus configure options, so we can diagnose typos.
841 case $ac_dashdash$ac_option in
845 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
847 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
850 -build |
--build |
--buil |
--bui |
--bu)
851 ac_prev
=build_alias
;;
852 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
853 build_alias
=$ac_optarg ;;
855 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
856 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
857 ac_prev
=cache_file
;;
858 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
859 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
860 cache_file
=$ac_optarg ;;
863 cache_file
=config.cache
;;
865 -datadir |
--datadir |
--datadi |
--datad)
867 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
868 datadir
=$ac_optarg ;;
870 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
871 |
--dataroo |
--dataro |
--datar)
872 ac_prev
=datarootdir
;;
873 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
874 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
875 datarootdir
=$ac_optarg ;;
877 -disable-* |
--disable-*)
878 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
881 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
882 { (exit 1); exit 1; }; }
883 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
884 eval enable_
$ac_feature=no
;;
886 -docdir |
--docdir |
--docdi |
--doc |
--do)
888 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
891 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
893 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
896 -enable-* |
--enable-*)
897 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
900 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
901 { (exit 1); exit 1; }; }
902 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
903 eval enable_
$ac_feature=\
$ac_optarg ;;
905 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
906 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
907 |
--exec |
--exe |
--ex)
908 ac_prev
=exec_prefix
;;
909 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
910 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
911 |
--exec=* |
--exe=* |
--ex=*)
912 exec_prefix
=$ac_optarg ;;
914 -gas |
--gas |
--ga |
--g)
915 # Obsolete; use --with-gas.
918 -help |
--help |
--hel |
--he |
-h)
920 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
921 ac_init_help
=recursive
;;
922 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
923 ac_init_help
=short
;;
925 -host |
--host |
--hos |
--ho)
926 ac_prev
=host_alias
;;
927 -host=* |
--host=* |
--hos=* |
--ho=*)
928 host_alias
=$ac_optarg ;;
930 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
932 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
934 htmldir
=$ac_optarg ;;
936 -includedir |
--includedir |
--includedi |
--included |
--include \
937 |
--includ |
--inclu |
--incl |
--inc)
938 ac_prev
=includedir
;;
939 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
940 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
941 includedir
=$ac_optarg ;;
943 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
945 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
946 infodir
=$ac_optarg ;;
948 -libdir |
--libdir |
--libdi |
--libd)
950 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
953 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
954 |
--libexe |
--libex |
--libe)
955 ac_prev
=libexecdir
;;
956 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
957 |
--libexe=* |
--libex=* |
--libe=*)
958 libexecdir
=$ac_optarg ;;
960 -localedir |
--localedir |
--localedi |
--localed |
--locale)
962 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
963 localedir
=$ac_optarg ;;
965 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
966 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
967 ac_prev
=localstatedir
;;
968 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
969 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
970 localstatedir
=$ac_optarg ;;
972 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
974 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
978 # Obsolete; use --without-fp.
981 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
982 |
--no-cr |
--no-c |
-n)
985 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
986 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
989 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
990 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
991 |
--oldin |
--oldi |
--old |
--ol |
--o)
992 ac_prev
=oldincludedir
;;
993 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
994 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
995 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
996 oldincludedir
=$ac_optarg ;;
998 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1000 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1001 prefix
=$ac_optarg ;;
1003 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1004 |
--program-pre |
--program-pr |
--program-p)
1005 ac_prev
=program_prefix
;;
1006 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1007 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1008 program_prefix
=$ac_optarg ;;
1010 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1011 |
--program-suf |
--program-su |
--program-s)
1012 ac_prev
=program_suffix
;;
1013 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1014 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1015 program_suffix
=$ac_optarg ;;
1017 -program-transform-name |
--program-transform-name \
1018 |
--program-transform-nam |
--program-transform-na \
1019 |
--program-transform-n |
--program-transform- \
1020 |
--program-transform |
--program-transfor \
1021 |
--program-transfo |
--program-transf \
1022 |
--program-trans |
--program-tran \
1023 |
--progr-tra |
--program-tr |
--program-t)
1024 ac_prev
=program_transform_name
;;
1025 -program-transform-name=* |
--program-transform-name=* \
1026 |
--program-transform-nam=* |
--program-transform-na=* \
1027 |
--program-transform-n=* |
--program-transform-=* \
1028 |
--program-transform=* |
--program-transfor=* \
1029 |
--program-transfo=* |
--program-transf=* \
1030 |
--program-trans=* |
--program-tran=* \
1031 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1032 program_transform_name
=$ac_optarg ;;
1034 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1036 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1037 pdfdir
=$ac_optarg ;;
1039 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1041 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1044 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1045 |
-silent |
--silent |
--silen |
--sile |
--sil)
1048 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1050 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1052 sbindir
=$ac_optarg ;;
1054 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1055 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1056 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1058 ac_prev
=sharedstatedir
;;
1059 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1060 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1061 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1063 sharedstatedir
=$ac_optarg ;;
1065 -site |
--site |
--sit)
1067 -site=* |
--site=* |
--sit=*)
1070 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1072 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1073 srcdir
=$ac_optarg ;;
1075 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1076 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1077 ac_prev
=sysconfdir
;;
1078 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1079 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1080 sysconfdir
=$ac_optarg ;;
1082 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1083 ac_prev
=target_alias
;;
1084 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1085 target_alias
=$ac_optarg ;;
1087 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1090 -version |
--version |
--versio |
--versi |
--vers |
-V)
1091 ac_init_version
=: ;;
1094 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1097 { echo "$as_me: error: invalid package name: $ac_package" >&2
1098 { (exit 1); exit 1; }; }
1099 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1100 eval with_
$ac_package=\
$ac_optarg ;;
1102 -without-* |
--without-*)
1103 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid package name: $ac_package" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1109 eval with_
$ac_package=no
;;
1112 # Obsolete; use --with-x.
1115 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1116 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1117 ac_prev
=x_includes
;;
1118 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1119 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1120 x_includes
=$ac_optarg ;;
1122 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1123 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1124 ac_prev
=x_libraries
;;
1125 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1126 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1127 x_libraries
=$ac_optarg ;;
1129 -*) { echo "$as_me: error: unrecognized option: $ac_option
1130 Try \`$0 --help' for more information." >&2
1131 { (exit 1); exit 1; }; }
1135 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1138 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1139 { (exit 1); exit 1; }; }
1140 eval $ac_envvar=\
$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1147 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1154 if test -n "$ac_prev"; then
1155 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1156 { echo "$as_me: error: missing argument to $ac_option" >&2
1157 { (exit 1); exit 1; }; }
1160 # Be sure to have absolute directory names.
1161 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val
=\$
$ac_var
1168 [\\/$
]* | ?
:[\\/]* ) continue;;
1169 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1171 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1172 { (exit 1); exit 1; }; }
1175 # There might be people who depend on the old broken behavior: `$host'
1176 # used to hold the argument of --host etc.
1177 # FIXME: To remove some day.
1180 target
=$target_alias
1182 # FIXME: To remove some day.
1183 if test "x$host_alias" != x
; then
1184 if test "x$build_alias" = x
; then
1185 cross_compiling
=maybe
1186 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1187 If a cross compiler is detected then cross compile mode will be used." >&2
1188 elif test "x$build_alias" != "x$host_alias"; then
1194 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1196 test "$silent" = yes && exec 6>/dev
/null
1199 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1200 ac_ls_di
=`ls -di .` &&
1201 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1202 { echo "$as_me: error: Working directory cannot be determined" >&2
1203 { (exit 1); exit 1; }; }
1204 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1205 { echo "$as_me: error: pwd does not report name of working directory" >&2
1206 { (exit 1); exit 1; }; }
1209 # Find the source files, if location was not specified.
1210 if test -z "$srcdir"; then
1211 ac_srcdir_defaulted
=yes
1212 # Try the directory containing this script, then the parent directory.
1213 ac_confdir
=`$as_dirname -- "$0" ||
1214 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1215 X"$0" : 'X\(//\)[^/]' \| \
1216 X"$0" : 'X\(//\)$' \| \
1217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237 if test ! -r "$srcdir/$ac_unique_file"; then
1241 ac_srcdir_defaulted
=no
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1244 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1245 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1246 { (exit 1); exit 1; }; }
1248 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1250 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1251 { (exit 1); exit 1; }; }
1253 # When building in place, set srcdir=.
1254 if test "$ac_abs_confdir" = "$ac_pwd"; then
1257 # Remove unnecessary trailing slashes from srcdir.
1258 # Double slashes in file names in object file debugging info
1259 # mess up M-x gdb in Emacs.
1261 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263 for ac_var
in $ac_precious_vars; do
1264 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1265 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1266 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1267 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1271 # Report the --help message.
1273 if test "$ac_init_help" = "long"; then
1274 # Omit some internal or obsolete options to make the list less imposing.
1275 # This message is too long to be a string in the A/UX 3.1 sh.
1277 \`configure' configures this package to adapt to many kinds of systems.
1279 Usage: $0 [OPTION]... [VAR=VALUE]...
1281 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1282 VAR=VALUE. See below for descriptions of some of the useful variables.
1284 Defaults for the options are specified in brackets.
1287 -h, --help display this help and exit
1288 --help=short display options specific to this package
1289 --help=recursive display the short help of all the included packages
1290 -V, --version display version information and exit
1291 -q, --quiet, --silent do not print \`checking...' messages
1292 --cache-file=FILE cache test results in FILE [disabled]
1293 -C, --config-cache alias for \`--cache-file=config.cache'
1294 -n, --no-create do not create output files
1295 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1297 Installation directories:
1298 --prefix=PREFIX install architecture-independent files in PREFIX
1299 [$ac_default_prefix]
1300 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1303 By default, \`make install' will install all the files in
1304 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1305 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1306 for instance \`--prefix=\$HOME'.
1308 For better control, use the options below.
1310 Fine tuning of the installation directories:
1311 --bindir=DIR user executables [EPREFIX/bin]
1312 --sbindir=DIR system admin executables [EPREFIX/sbin]
1313 --libexecdir=DIR program executables [EPREFIX/libexec]
1314 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1315 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1316 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1317 --libdir=DIR object code libraries [EPREFIX/lib]
1318 --includedir=DIR C header files [PREFIX/include]
1319 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1320 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1321 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1322 --infodir=DIR info documentation [DATAROOTDIR/info]
1323 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1324 --mandir=DIR man documentation [DATAROOTDIR/man]
1325 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1326 --htmldir=DIR html documentation [DOCDIR]
1327 --dvidir=DIR dvi documentation [DOCDIR]
1328 --pdfdir=DIR pdf documentation [DOCDIR]
1329 --psdir=DIR ps documentation [DOCDIR]
1335 --x-includes=DIR X include files are
in DIR
1336 --x-libraries=DIR X library files are
in DIR
1339 --build=BUILD configure
for building on BUILD
[guessed
]
1340 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1344 if test -n "$ac_init_help"; then
1349 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1350 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1351 --disable-fastalloc omit fast allocator
for small objects
1352 --enable-experimental support new style rewriting code
1353 --enable-macosx-extensions support new style rewriting code
1354 --enable-qt replace X11 by Qt interface
1355 --enable-cocoa replace X11 by Cocoa interface
1356 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1357 --enable-assert exit on failed assertions
in code
1358 --enable-warnings print warning messages during compilation
1359 --enable-optimize=ARG compile with optimizations guessed
1362 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1363 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1364 --with-x use the X Window System
1365 --with-iconv=DIR where to
find iconv system
1366 --with-freetype=ARG with freetype support ARG
=linked
1367 --with-cairo=ARG with cairo support ARG
=no
1368 --with-imlib2=ARG with imlib2 support ARG
=no
1369 --with-axel=ARG with axel support ARG
=no
1370 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1372 Some influential environment variables
:
1373 CC C compiler
command
1374 CFLAGS C compiler flags
1375 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1376 nonstandard directory
<lib dir
>
1377 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1378 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1379 you have headers
in a nonstandard directory
<include dir
>
1380 CXX C
++ compiler
command
1381 CXXFLAGS C
++ compiler flags
1382 CXXCPP C
++ preprocessor
1383 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1385 TMPDIR A temporary directory with
write access
[/tmp
]
1387 Use these variables to override the choices made by
`configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1394 if test "$ac_init_help" = "recursive"; then
1395 # If there are subdirs, report their specific --help.
1396 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397 test -d "$ac_dir" || continue
1401 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1404 # A ".." for each directory in $ac_dir_suffix.
1405 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1406 case $ac_top_builddir_sub in
1407 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411 ac_abs_top_builddir=$ac_pwd
1412 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1413 # for backward compatibility:
1414 ac_top_builddir=$ac_top_build_prefix
1417 .) # We are building in place.
1419 ac_top_srcdir=$ac_top_builddir_sub
1420 ac_abs_top_srcdir=$ac_pwd ;;
1421 [\\/]* | ?:[\\/]* ) # Absolute name.
1422 ac_srcdir=$srcdir$ac_dir_suffix;
1423 ac_top_srcdir=$srcdir
1424 ac_abs_top_srcdir=$srcdir ;;
1426 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1427 ac_top_srcdir=$ac_top_build_prefix$srcdir
1428 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1430 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1432 cd "$ac_dir" || { ac_status=$?; continue; }
1433 # Check for guested configure.
1434 if test -f "$ac_srcdir/configure.gnu"; then
1436 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1437 elif test -f "$ac_srcdir/configure"; then
1439 $SHELL "$ac_srcdir/configure" --help=recursive
1441 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443 cd "$ac_pwd" || { ac_status=$?; break; }
1447 test -n "$ac_init_help" && exit $ac_status
1448 if $ac_init_version; then
1451 generated by GNU Autoconf 2.61
1453 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1454 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1455 This configure script is free software; the Free Software Foundation
1456 gives unlimited permission to copy, distribute and modify it.
1460 cat >config.log <<_ACEOF
1461 This file contains any messages produced by compilers while
1462 running configure, to aid debugging if configure makes a mistake.
1464 It was created by $as_me, which was
1465 generated by GNU Autoconf 2.61. Invocation command line was
1477 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1478 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1479 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1480 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1481 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1483 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1484 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1486 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1487 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1488 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1490 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1491 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1492 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 test -z "$as_dir" && as_dir=.
1501 echo "PATH: $as_dir"
1517 # Keep a trace of the command line.
1518 # Strip out --no-create and --no-recursion so they do not pile up.
1519 # Strip out --silent because we don't want to record it for future runs.
1520 # Also quote any args containing shell meta-characters.
1521 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_must_keep_next=false
1531 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1533 | -silent | --silent | --silen | --sile | --sil)
1536 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1539 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1541 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1542 if test $ac_must_keep_next = true; then
1543 ac_must_keep_next=false # Got value, back to normal.
1546 *=* | --config-cache | -C | -disable-* | --disable-* \
1547 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1548 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1549 | -with-* | --with-* | -without-* | --without-* | --x)
1550 case "$ac_configure_args0 " in
1551 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1554 -* ) ac_must_keep_next=true ;;
1557 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1563 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1565 # When interrupted or exit'd, cleanup temporary files, and complete
1566 # config.log. We remove comments because anyway the quotes in there
1567 # would cause problems or look ugly.
1568 # WARNING: Use '\'' to represent an apostrophe within the trap.
1569 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1570 trap 'exit_status=$?
1571 # Save into config.log some information that might help in debugging.
1576 ## ---------------- ##
1577 ## Cache variables. ##
1578 ## ---------------- ##
1581 # The following way of writing the cache mishandles newlines in values,
1583 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1584 eval ac_val=\$$ac_var
1588 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1589 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1592 _ | IFS | as_nl) ;; #(
1593 *) $as_unset $ac_var ;;
1598 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1599 *${as_nl}ac_space=\ *)
1601 "s/'\''/'\''\\\\'\'''\''/g;
1602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1613 ## ----------------- ##
1614 ## Output variables. ##
1615 ## ----------------- ##
1618 for ac_var in $ac_subst_vars
1620 eval ac_val=\$$ac_var
1622 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 echo "$ac_var='\''$ac_val'\''"
1628 if test -n "$ac_subst_files"; then
1630 ## ------------------- ##
1631 ## File substitutions. ##
1632 ## ------------------- ##
1635 for ac_var in $ac_subst_files
1637 eval ac_val=\$$ac_var
1639 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 echo "$ac_var='\''$ac_val'\''"
1646 if test -s confdefs.h; then
1656 test "$ac_signal" != 0 &&
1657 echo "$as_me: caught signal $ac_signal"
1658 echo "$as_me: exit $exit_status"
1660 rm -f core *.core core.conftest.* &&
1661 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1664 for ac_signal in 1 2 13 15; do
1665 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1670 rm -f -r conftest* confdefs.h
1672 # Predefined preprocessor variables.
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 # Let the site file select an alternate cache file if it wants to.
1700 # Prefer explicitly selected file to automatically selected ones.
1701 if test -n "$CONFIG_SITE"; then
1702 set x "$CONFIG_SITE"
1703 elif test "x$prefix" != xNONE; then
1704 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1706 set x "$ac_default_prefix/share/config.site" \
1707 "$ac_default_prefix/etc/config.site"
1712 if test -r "$ac_site_file"; then
1713 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1714 echo "$as_me: loading site script $ac_site_file" >&6;}
1715 sed 's/^/| /' "$ac_site_file" >&5
1720 if test -r "$cache_file"; then
1721 # Some versions of bash will fail to source /dev/null (special
1722 # files actually), so we avoid doing that.
1723 if test -f "$cache_file"; then
1724 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1725 echo "$as_me: loading cache $cache_file" >&6;}
1727 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1728 *) . "./$cache_file";;
1732 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1733 echo "$as_me: creating cache $cache_file" >&6;}
1737 # Check that the precious variables saved in the cache have kept the same
1739 ac_cache_corrupted=false
1740 for ac_var in $ac_precious_vars; do
1741 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1742 eval ac_new_set=\$ac_env_${ac_var}_set
1743 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1744 eval ac_new_val=\$ac_env_${ac_var}_value
1745 case $ac_old_set,$ac_new_set in
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1748 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1751 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1752 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1756 if test "x$ac_old_val" != "x$ac_new_val"; then
1757 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1758 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1759 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1760 echo "$as_me: former value
: $ac_old_val" >&2;}
1761 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1762 echo "$as_me: current value
: $ac_new_val" >&2;}
1763 ac_cache_corrupted=:
1766 # Pass precious variables to config.status.
1767 if test "$ac_new_set" = set; then
1769 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1770 *) ac_arg=$ac_var=$ac_new_val ;;
1772 case " $ac_configure_args " in
1773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1774 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1778 if $ac_cache_corrupted; then
1779 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1780 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1781 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1782 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1783 { (exit 1); exit 1; }; }
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1809 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1813 DEVEL_VERSION="1.0.7.3"
1815 STABLE_VERSION="1.0.7"
1817 WINDOWS_VERSION="1.0.5"
1825 #--------------------------------------------------------------------
1826 # Checks for C++ compiler
1827 #--------------------------------------------------------------------
1830 ac_cpp='$CPP $CPPFLAGS'
1831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1834 if test -n "$ac_tool_prefix"; then
1835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1839 if test "${ac_cv_prog_CC+set}" = set; then
1840 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 if test -n "$CC"; then
1843 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1849 test -z "$as_dir" && as_dir=.
1850 for ac_exec_ext in '' $ac_executable_extensions; do
1851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 if test -n "$CC"; then
1864 { echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6; }
1867 { echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6; }
1873 if test -z "$ac_cv_prog_CC"; then
1875 # Extract the first word of "gcc", so it can be a program name with args.
1876 set dummy gcc; ac_word=$2
1877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1892 ac_cv_prog_ac_ct_CC="gcc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1903 if test -n "$ac_ct_CC"; then
1904 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1905 echo "${ECHO_T}$ac_ct_CC" >&6; }
1907 { echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6; }
1911 if test "x$ac_ct_CC" = x; then
1914 case $cross_compiling:$ac_tool_warned in
1916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1917 whose name does not start with the host triplet. If you think this
1918 configuration is useful to you, please write to autoconf@gnu.org." >&5
1919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1920 whose name does not start with the host triplet. If you think this
1921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1922 ac_tool_warned=yes ;;
1930 if test -z "$CC"; then
1931 if test -n "$ac_tool_prefix"; then
1932 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1933 set dummy ${ac_tool_prefix}cc; ac_word=$2
1934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1936 if test "${ac_cv_prog_CC+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1939 if test -n "$CC"; then
1940 ac_cv_prog_CC="$CC" # Let the user override the test.
1942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1949 ac_cv_prog_CC="${ac_tool_prefix}cc"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1960 if test -n "$CC"; then
1961 { echo "$as_me:$LINENO: result: $CC" >&5
1962 echo "${ECHO_T}$CC" >&6; }
1964 { echo "$as_me:$LINENO: result: no" >&5
1965 echo "${ECHO_T}no" >&6; }
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test $ac_prog_rejected = yes; then
2003 # We found a bogon in the path, so make sure we never use it.
2004 set dummy $ac_cv_prog_CC
2006 if test $# != 0; then
2007 # We chose a different compiler from the bogus one.
2008 # However, it has the same basename, so the bogon will be chosen
2009 # first if we set CC to just the basename; use the full file name.
2011 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2017 if test -n "$CC"; then
2018 { echo "$as_me:$LINENO: result: $CC" >&5
2019 echo "${ECHO_T}$CC" >&6; }
2021 { echo "$as_me:$LINENO: result: no" >&5
2022 echo "${ECHO_T}no" >&6; }
2027 if test -z "$CC"; then
2028 if test -n "$ac_tool_prefix"; then
2029 for ac_prog in cl.exe
2031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$CC"; then
2039 ac_cv_prog_CC="$CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059 if test -n "$CC"; then
2060 { echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6; }
2063 { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2068 test -n "$CC" && break
2071 if test -z "$CC"; then
2073 for ac_prog in cl.exe
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2092 ac_cv_prog_ac_ct_CC="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103 if test -n "$ac_ct_CC"; then
2104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105 echo "${ECHO_T}$ac_ct_CC" >&6; }
2107 { echo "$as_me:$LINENO: result: no" >&5
2108 echo "${ECHO_T}no" >&6; }
2112 test -n "$ac_ct_CC" && break
2115 if test "x$ac_ct_CC" = x; then
2118 case $cross_compiling:$ac_tool_warned in
2120 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&5
2123 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2124 whose name does not start with the host triplet. If you think this
2125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2126 ac_tool_warned=yes ;;
2135 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2136 See \`config.log
' for more details." >&5
2137 echo "$as_me: error: no acceptable C compiler found in \$PATH
2138 See \`config.log' for more details.
" >&2;}
2139 { (exit 1); exit 1; }; }
2141 # Provide some information about the compiler.
2142 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2143 ac_compiler=`set X $ac_compile; echo $2`
2144 { (ac_try="$ac_compiler --version >&5"
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2150 (eval "$ac_compiler --version >&5") 2>&5
2152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2153 (exit $ac_status); }
2154 { (ac_try="$ac_compiler -v >&5"
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2160 (eval "$ac_compiler -v >&5") 2>&5
2162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2163 (exit $ac_status); }
2164 { (ac_try="$ac_compiler -V >&5"
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2170 (eval "$ac_compiler -V >&5") 2>&5
2172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2173 (exit $ac_status); }
2175 cat >conftest.$ac_ext <<_ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2190 ac_clean_files_save=$ac_clean_files
2191 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2192 # Try to create an executable without -o first, disregard a.out.
2193 # It will help us diagnose broken compilers, and finding out an intuition
2195 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2196 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2197 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2199 # List of possible output files, starting from the most likely.
2200 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2201 # only as a last resort. b.out is created by i960 compilers.
2202 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2204 # The IRIX 6 linker writes into existing files which may not be
2205 # executable, retaining their permissions. Remove them first so a
2206 # subsequent execution test works.
2208 for ac_file in $ac_files
2211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2212 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2217 if { (ac_try="$ac_link_default"
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_link_default") 2>&5
2225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2226 (exit $ac_status); }; then
2227 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2228 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2229 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2230 # so that the user can short-circuit this test for compilers unknown to
2232 for ac_file in $ac_files ''
2234 test -f "$ac_file" || continue
2236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2239 # We found the default executable, but exeext='' is most
2243 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2245 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2247 # We set ac_cv_exeext here because the later test for it is not
2248 # safe: cross compilers may not add the suffix if given an `-o'
2249 # argument, so we may need to know it at that point already.
2250 # Even if this section looks crufty: it has the advantage of
2257 test "$ac_cv_exeext" = no && ac_cv_exeext=
2263 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2264 echo "${ECHO_T}$ac_file" >&6; }
2265 if test -z "$ac_file"; then
2266 echo "$as_me: failed program was
:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2269 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2270 See \
`config.log' for more details." >&5
2271 echo "$as_me: error: C compiler cannot create executables
2272 See \`config.log
' for more details." >&2;}
2273 { (exit 77); exit 77; }; }
2276 ac_exeext=$ac_cv_exeext
2278 # Check that the compiler produces executables we can run. If not, either
2279 # the compiler is broken, or we cross compile.
2280 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2281 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2282 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2283 # If not cross compiling, check that we can run a simple program.
2284 if test "$cross_compiling" != yes; then
2285 if { ac_try='.
/$ac_file'
2286 { (case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_try") 2>&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2297 if test "$cross_compiling" = maybe; then
2300 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2301 If you meant to cross compile, use \`--host'.
2302 See \
`config.log' for more details." >&5
2303 echo "$as_me: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details.
" >&2;}
2306 { (exit 1); exit 1; }; }
2310 { echo "$as_me:$LINENO: result
: yes" >&5
2311 echo "${ECHO_T}yes" >&6; }
2313 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2314 ac_clean_files=$ac_clean_files_save
2315 # Check that the compiler produces executables we can run. If not, either
2316 # the compiler is broken, or we cross compile.
2317 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2318 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2319 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2320 echo "${ECHO_T}$cross_compiling" >&6; }
2322 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2323 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2324 if { (ac_try="$ac_link"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2330 (eval "$ac_link") 2>&5
2332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2333 (exit $ac_status); }; then
2334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2336 # work properly (i.e., refer to `conftest.exe'), while it won't with
2338 for ac_file in conftest.exe conftest conftest.*; do
2339 test -f "$ac_file" || continue
2341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2348 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2349 See \
`config.log' for more details." >&5
2350 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2351 See \`config.log
' for more details." >&2;}
2352 { (exit 1); exit 1; }; }
2355 rm -f conftest$ac_cv_exeext
2356 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2357 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2359 rm -f conftest.$ac_ext
2360 EXEEXT=$ac_cv_exeext
2362 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2363 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2364 if test "${ac_cv_objext+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 rm -f conftest.o conftest.obj
2383 if { (ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }; then
2393 for ac_file in conftest.o conftest.obj conftest.*; do
2394 test -f "$ac_file" || continue;
2396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2397 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2402 echo "$as_me: failed program was:" >&5
2403 sed 's
/^
/|
/' conftest.$ac_ext >&5
2405 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2406 See \`config.log' for more details.
" >&5
2407 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2408 See \
`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2412 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2414 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2415 echo "${ECHO_T}$ac_cv_objext" >&6; }
2416 OBJEXT=$ac_cv_objext
2418 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2419 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2420 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2423 cat >conftest.$ac_ext <<_ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2441 rm -f conftest.$ac_objext
2442 if { (ac_try="$ac_compile"
2444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2445 *) ac_try_echo
=$ac_try;;
2447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2448 (eval "$ac_compile") 2>conftest.er1
2450 grep -v '^ *+' conftest.er1
>conftest.err
2452 cat conftest.err
>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); } && {
2455 test -z "$ac_c_werror_flag" ||
2456 test ! -s conftest.err
2457 } && test -s conftest.
$ac_objext; then
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.
$ac_ext >&5
2466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2467 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2470 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2471 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2472 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2473 ac_test_CFLAGS
=${CFLAGS+set}
2474 ac_save_CFLAGS
=$CFLAGS
2475 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2476 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_cc_g+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 ac_save_c_werror_flag
=$ac_c_werror_flag
2481 ac_c_werror_flag
=yes
2484 cat >conftest.
$ac_ext <<_ACEOF
2487 cat confdefs.h
>>conftest.
$ac_ext
2488 cat >>conftest.
$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2499 rm -f conftest.
$ac_objext
2500 if { (ac_try
="$ac_compile"
2502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_compile") 2>conftest.er1
2508 grep -v '^ *+' conftest.er1 >conftest.err
2510 cat conftest.err >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); } && {
2513 test -z "$ac_c_werror_flag" ||
2514 test ! -s conftest.err
2515 } && test -s conftest.$ac_objext; then
2518 echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2522 cat >conftest.$ac_ext <<_ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (ac_try="$ac_compile"
2540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2541 *) ac_try_echo
=$ac_try;;
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544 (eval "$ac_compile") 2>conftest.er1
2546 grep -v '^ *+' conftest.er1
>conftest.err
2548 cat conftest.err
>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } && {
2551 test -z "$ac_c_werror_flag" ||
2552 test ! -s conftest.err
2553 } && test -s conftest.
$ac_objext; then
2556 echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.
$ac_ext >&5
2559 ac_c_werror_flag
=$ac_save_c_werror_flag
2561 cat >conftest.
$ac_ext <<_ACEOF
2564 cat confdefs.h
>>conftest.
$ac_ext
2565 cat >>conftest.
$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 rm -f conftest.
$ac_objext
2577 if { (ac_try
="$ac_compile"
2579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_compile") 2>conftest.er1
2585 grep -v '^ *+' conftest.er1 >conftest.err
2587 cat conftest.err >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); } && {
2590 test -z "$ac_c_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest.$ac_objext; then
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_c_werror_flag=$ac_save_c_werror_flag
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2612 if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614 elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2621 if test "$GCC" = yes; then
2627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_c89+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 ac_cv_prog_cc_c89=no
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2642 #include <sys/types.h>
2643 #include <sys/stat.h>
2644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645 struct buf { int x; };
2646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (p, i)
2653 static char *f (char * (*g) (char **, int), char **p, ...)
2658 s = g (p, va_arg (v,int));
2663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
2666 as 'x'. The following induces an error, until -std is added to get
2667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
2669 that's true only with -std. */
2670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673 inside strings and character constants. */
2675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 CC="$ac_save_CC $ac_arg"
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2699 *) ac_try_echo
=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1
>conftest.err
2706 cat conftest.err
>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } && {
2709 test -z "$ac_c_werror_flag" ||
2710 test ! -s conftest.err
2711 } && test -s conftest.
$ac_objext; then
2712 ac_cv_prog_cc_c89
=$ac_arg
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.
$ac_ext >&5
2720 rm -f core conftest.err conftest.
$ac_objext
2721 test "x$ac_cv_prog_cc_c89" != "xno" && break
2723 rm -f conftest.
$ac_ext
2728 case "x$ac_cv_prog_cc_c89" in
2730 { echo "$as_me:$LINENO: result: none needed" >&5
2731 echo "${ECHO_T}none needed" >&6; } ;;
2733 { echo "$as_me:$LINENO: result: unsupported" >&5
2734 echo "${ECHO_T}unsupported" >&6; } ;;
2736 CC
="$CC $ac_cv_prog_cc_c89"
2737 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2738 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2743 ac_cpp
='$CPP $CPPFLAGS'
2744 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2749 ac_cpp
='$CXXCPP $CPPFLAGS'
2750 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2753 if test -z "$CXX"; then
2754 if test -n "$CCC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2761 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_CXX+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$CXX"; then
2768 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 if test -n "$CXX"; then
2789 { echo "$as_me:$LINENO: result: $CXX" >&5
2790 echo "${ECHO_T}$CXX" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2797 test -n "$CXX" && break
2800 if test -z "$CXX"; then
2802 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy
$ac_prog; ac_word
=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_CXX"; then
2812 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir
=.
2819 for ac_exec_ext
in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2832 if test -n "$ac_ct_CXX"; then
2833 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2834 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2841 test -n "$ac_ct_CXX" && break
2844 if test "x$ac_ct_CXX" = x
; then
2847 case $cross_compiling:$ac_tool_warned in
2849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2850 whose name does not start with the host triplet. If you think this
2851 configuration is useful to you, please write to autoconf@gnu.org." >&5
2852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2853 whose name does not start with the host triplet. If you think this
2854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2855 ac_tool_warned
=yes ;;
2863 # Provide some information about the compiler.
2864 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2865 ac_compiler
=`set X $ac_compile; echo $2`
2866 { (ac_try
="$ac_compiler --version >&5"
2868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_compiler --version >&5") 2>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }
2876 { (ac_try="$ac_compiler -v >&5"
2878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2879 *) ac_try_echo
=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_compiler -v >&5") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }
2886 { (ac_try
="$ac_compiler -V >&5"
2888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler -V >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2897 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2898 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2899 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2900 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2924 *) ac_try_echo
=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_compile") 2>conftest.er1
2929 grep -v '^ *+' conftest.er1
>conftest.err
2931 cat conftest.err
>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } && {
2934 test -z "$ac_cxx_werror_flag" ||
2935 test ! -s conftest.err
2936 } && test -s conftest.
$ac_objext; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.
$ac_ext >&5
2945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2946 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2949 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2950 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2951 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2952 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2953 ac_save_CXXFLAGS
=$CXXFLAGS
2954 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2955 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_cxx_g+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2960 ac_cxx_werror_flag
=yes
2963 cat >conftest.
$ac_ext <<_ACEOF
2966 cat confdefs.h
>>conftest.
$ac_ext
2967 cat >>conftest.
$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2978 rm -f conftest.
$ac_objext
2979 if { (ac_try
="$ac_compile"
2981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_compile") 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } && {
2992 test -z "$ac_cxx_werror_flag" ||
2993 test ! -s conftest.err
2994 } && test -s conftest.$ac_objext; then
2995 ac_cv_prog_cxx_g=yes
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3020 *) ac_try_echo
=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1
>conftest.err
3027 cat conftest.err
>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } && {
3030 test -z "$ac_cxx_werror_flag" ||
3031 test ! -s conftest.err
3032 } && test -s conftest.
$ac_objext; then
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.
$ac_ext >&5
3038 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3040 cat >conftest.
$ac_ext <<_ACEOF
3043 cat confdefs.h
>>conftest.
$ac_ext
3044 cat >>conftest.
$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.
$ac_objext
3056 if { (ac_try
="$ac_compile"
3058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_cxx_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3072 ac_cv_prog_cxx_g=yes
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3089 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3090 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3091 if test "$ac_test_CXXFLAGS" = set; then
3092 CXXFLAGS=$ac_save_CXXFLAGS
3093 elif test $ac_cv_prog_cxx_g = yes; then
3094 if test "$GXX" = yes; then
3100 if test "$GXX" = yes; then
3107 ac_cpp='$CPP $CPPFLAGS'
3108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3113 ac_cpp='$CXXCPP $CPPFLAGS'
3114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3120 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3121 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3124 GCC_VERSION=`$CC -dumpversion`
3125 GXX_VERSION=`$CXX -dumpversion`
3126 { echo "$as_me:$LINENO: result: yes" >&5
3127 echo "${ECHO_T}yes" >&6; }
3128 { echo "$as_me:$LINENO: checking version of gcc" >&5
3129 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3130 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3131 echo "${ECHO_T}$GCC_VERSION" >&6; }
3132 { echo "$as_me:$LINENO: checking version of g++" >&5
3133 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3134 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3135 echo "${ECHO_T}$GXX_VERSION" >&6; }
3136 case "$GXX_VERSION" in
3138 echo "old style GNU compiler"
3139 cat >>confdefs.h <<\_ACEOF
3140 #define OLD_GNU_COMPILER
3149 { echo "$as_me:$LINENO: result: no" >&5
3150 echo "${ECHO_T}no" >&6; }
3151 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3152 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3156 #--------------------------------------------------------------------
3158 #--------------------------------------------------------------------
3160 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3162 ## The GUILE_FLAGS macro.
3163 ## First, let's just see if we can find Guile at all.
3164 { echo "$as_me:$LINENO: checking for Guile" >&5
3165 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3166 guile-config link > /dev/null || {
3167 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3170 GUILE_ORIGINAL_CFLAGS="`guile-config compile
`"
3171 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3172 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3173 GUILE_LDFLAGS="`guile-config link
`"
3174 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir
` -lguile -lreadline -ltermcap"
3177 { echo "$as_me:$LINENO: result: yes" >&5
3178 echo "${ECHO_T}yes" >&6; }
3181 { echo "$as_me:$LINENO: checking version of guile" >&5
3182 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3183 if test -z "$GUILE_VERSION" ; then
3184 GUILE_VERSION=`guile
--version |
grep 'Guile \([0-9]\)' |
sed 's/Guile \([0-9]*\)/\1/'`
3186 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3187 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3189 case "$GUILE_VERSION" in
3190 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3191 CONFIG_GUILE_SERIAL="A"
3194 CONFIG_GUILE_SERIAL="B"
3197 CONFIG_GUILE_SERIAL="C"
3202 #--------------------------------------------------------------------
3203 # Checks for standard functionality
3204 #--------------------------------------------------------------------
3208 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3209 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3210 ac_save_cppflags="$CPPFLAGS"
3211 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3212 cat >conftest.$ac_ext <<_ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #include <X11/Xlib.h>
3219 #include <X11/Xutil.h>
3228 rm -f conftest.$ac_objext
3229 if { (ac_try="$ac_compile"
3231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3232 *) ac_try_echo
=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compile") 2>conftest.er1
3237 grep -v '^ *+' conftest.er1
>conftest.err
3239 cat conftest.err
>&5
3240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 (exit $ac_status); } && {
3242 test -z "$ac_cxx_werror_flag" ||
3243 test ! -s conftest.err
3244 } && test -s conftest.
$ac_objext; then
3247 echo "$as_me: failed program was:" >&5
3248 sed 's/^/| /' conftest.
$ac_ext >&5
3254 /usr
/X11R
6/include \
3255 /usr
/X11R
5/include \
3256 /usr
/X11R
4/include \
3259 /usr
/include
/X11R6 \
3260 /usr
/include
/X11R5 \
3261 /usr
/include
/X11R4 \
3263 /usr
/local
/X11
/include \
3264 /usr
/local
/X11R
6/include \
3265 /usr
/local
/X11R
5/include \
3266 /usr
/local
/X11R
4/include \
3268 /usr
/local
/include
/X11 \
3269 /usr
/local
/include
/X11R6 \
3270 /usr
/local
/include
/X11R5 \
3271 /usr
/local
/include
/X11R4 \
3275 /usr
/XFree86
/include
/X11 \
3278 /usr
/local
/include \
3279 /usr
/unsupported
/include \
3280 /usr
/athena
/include \
3281 /usr
/local
/x11r
5/include \
3282 /usr
/lpp
/Xamples
/include \
3284 /usr
/openwin
/include \
3285 /usr
/openwin
/share
/include \
3288 if test -r "$ac_dir/X11/Xlib.h"; then
3289 tm_x_includes
=$ac_dir
3293 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3294 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3295 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3296 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3297 X_CFLAGS
="-I.. $X_CFLAGS"
3301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3302 CPPFLAGS
="$ac_save_cppflags"
3305 ac_cpp
='$CXXCPP $CPPFLAGS'
3306 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3309 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3310 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3311 if test -z "$CXXCPP"; then
3312 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 # Double quotes because CXXCPP needs to be expanded
3316 for CXXCPP
in "$CXX -E" "/lib/cpp"
3319 for ac_cxx_preproc_warn_flag
in '' yes
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.
$ac_ext <<_ACEOF
3330 cat confdefs.h
>>conftest.
$ac_ext
3331 cat >>conftest.
$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3334 # include <limits.h>
3336 # include <assert.h>
3340 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3348 grep -v '^ *+' conftest.er1 >conftest.err
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3354 test ! -s conftest.err
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3380 *) ac_try_echo
=$ac_try;;
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385 grep -v '^ *+' conftest.er1
>conftest.err
3387 cat conftest.err
>&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev
/null
&& {
3390 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3391 test ! -s conftest.err
3393 # Broken: success on invalid input.
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.
$ac_ext >&5
3399 # Passes both tests.
3404 rm -f conftest.err conftest.
$ac_ext
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.
$ac_ext
3409 if $ac_preproc_ok; then
3414 ac_cv_prog_CXXCPP
=$CXXCPP
3417 CXXCPP
=$ac_cv_prog_CXXCPP
3419 ac_cv_prog_CXXCPP
=$CXXCPP
3421 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3422 echo "${ECHO_T}$CXXCPP" >&6; }
3424 for ac_cxx_preproc_warn_flag
in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.
$ac_ext <<_ACEOF
3435 cat confdefs.h
>>conftest.
$ac_ext
3436 cat >>conftest.
$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3439 # include <limits.h>
3441 # include <assert.h>
3445 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453 grep -v '^ *+' conftest.er1 >conftest.err
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3459 test ! -s conftest.err
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3485 *) ac_try_echo
=$ac_try;;
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1
>conftest.err
3492 cat conftest.err
>&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev
/null
&& {
3495 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3496 test ! -s conftest.err
3498 # Broken: success on invalid input.
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.
$ac_ext >&5
3504 # Passes both tests.
3509 rm -f conftest.err conftest.
$ac_ext
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.
$ac_ext
3514 if $ac_preproc_ok; then
3517 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3525 ac_cpp
='$CXXCPP $CPPFLAGS'
3526 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3531 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3532 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3533 if test "${ac_cv_path_GREP+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 # Extract the first word of "grep ggrep" to use in msg output
3537 if test -z "$GREP"; then
3538 set dummy
grep ggrep
; ac_prog_name
=$2
3539 if test "${ac_cv_path_GREP+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 ac_path_GREP_found
=false
3543 # Loop through the user's path and test for each of PROGNAME-LIST
3544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3545 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3548 test -z "$as_dir" && as_dir
=.
3549 for ac_prog
in grep ggrep
; do
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3553 # Check for GNU ac_path_GREP and select it if it is found.
3554 # Check for GNU $ac_path_GREP
3555 case `"$ac_path_GREP" --version 2>&1` in
3557 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3560 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3563 cat "conftest.in" "conftest.in" >"conftest.tmp"
3564 mv "conftest.tmp" "conftest.in"
3565 cp "conftest.in" "conftest.nl"
3566 echo 'GREP' >> "conftest.nl"
3567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3568 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3569 ac_count
=`expr $ac_count + 1`
3570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3571 # Best one so far, save it but keep looking for a better one
3572 ac_cv_path_GREP
="$ac_path_GREP"
3573 ac_path_GREP_max
=$ac_count
3575 # 10*(2^10) chars as input seems more than enough
3576 test $ac_count -gt 10 && break
3578 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3582 $ac_path_GREP_found && break 3
3592 GREP
="$ac_cv_path_GREP"
3593 if test -z "$GREP"; then
3594 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3595 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3596 { (exit 1); exit 1; }; }
3600 ac_cv_path_GREP
=$GREP
3605 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3606 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3607 GREP
="$ac_cv_path_GREP"
3610 { echo "$as_me:$LINENO: checking for egrep" >&5
3611 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3612 if test "${ac_cv_path_EGREP+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3616 then ac_cv_path_EGREP
="$GREP -E"
3618 # Extract the first word of "egrep" to use in msg output
3619 if test -z "$EGREP"; then
3620 set dummy
egrep; ac_prog_name
=$2
3621 if test "${ac_cv_path_EGREP+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_path_EGREP_found
=false
3625 # Loop through the user's path and test for each of PROGNAME-LIST
3626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3627 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3630 test -z "$as_dir" && as_dir
=.
3631 for ac_prog
in egrep; do
3632 for ac_exec_ext
in '' $ac_executable_extensions; do
3633 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3634 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3635 # Check for GNU ac_path_EGREP and select it if it is found.
3636 # Check for GNU $ac_path_EGREP
3637 case `"$ac_path_EGREP" --version 2>&1` in
3639 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3642 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3645 cat "conftest.in" "conftest.in" >"conftest.tmp"
3646 mv "conftest.tmp" "conftest.in"
3647 cp "conftest.in" "conftest.nl"
3648 echo 'EGREP' >> "conftest.nl"
3649 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3650 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3651 ac_count
=`expr $ac_count + 1`
3652 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3653 # Best one so far, save it but keep looking for a better one
3654 ac_cv_path_EGREP
="$ac_path_EGREP"
3655 ac_path_EGREP_max
=$ac_count
3657 # 10*(2^10) chars as input seems more than enough
3658 test $ac_count -gt 10 && break
3660 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3664 $ac_path_EGREP_found && break 3
3674 EGREP
="$ac_cv_path_EGREP"
3675 if test -z "$EGREP"; then
3676 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3677 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3678 { (exit 1); exit 1; }; }
3682 ac_cv_path_EGREP
=$EGREP
3688 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3689 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3690 EGREP
="$ac_cv_path_EGREP"
3693 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3695 if test "${ac_cv_header_stdc+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 cat >conftest.
$ac_ext <<_ACEOF
3701 cat confdefs.h
>>conftest.
$ac_ext
3702 cat >>conftest.
$ac_ext <<_ACEOF
3703 /* end confdefs.h. */
3717 rm -f conftest.
$ac_objext
3718 if { (ac_try
="$ac_compile"
3720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3726 grep -v '^ *+' conftest.er1 >conftest.err
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_cxx_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3734 ac_cv_header_stdc=yes
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 ac_cv_header_stdc=no
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 if test $ac_cv_header_stdc = yes; then
3745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3746 cat >conftest.$ac_ext <<_ACEOF
3749 cat confdefs.h >>conftest.$ac_ext
3750 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */
3755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3756 $EGREP "memchr" >/dev/null 2>&1; then
3759 ac_cv_header_stdc=no
3765 if test $ac_cv_header_stdc = yes; then
3766 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3767 cat >conftest.$ac_ext <<_ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h. */
3776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3777 $EGREP "free" >/dev/null 2>&1; then
3780 ac_cv_header_stdc=no
3786 if test $ac_cv_header_stdc = yes; then
3787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3788 if test "$cross_compiling" = yes; then
3791 cat >conftest.$ac_ext <<_ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3799 #if ((' ' & 0x0FF) == 0x020)
3800 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3801 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3803 # define ISLOWER(c) \
3804 (('a' <= (c) && (c) <= 'i') \
3805 || ('j' <= (c) && (c) <= 'r') \
3806 || ('s' <= (c) && (c) <= 'z'))
3807 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3810 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3815 for (i = 0; i < 256; i++)
3816 if (XOR (islower (i), ISLOWER (i))
3817 || toupper (i) != TOUPPER (i))
3822 rm -f conftest$ac_exeext
3823 if { (ac_try="$ac_link"
3825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3826 *) ac_try_echo
=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_link") 2>&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3833 { (case "(($ac_try" in
3834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_try") 2>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3844 echo "$as_me: program exited with status $ac_status" >&5
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3849 ac_cv_header_stdc=no
3851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3857 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3858 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3859 if test $ac_cv_header_stdc = yes; then
3861 cat >>confdefs.h <<\_ACEOF
3862 #define STDC_HEADERS 1
3867 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3877 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3878 inttypes.h stdint.h unistd.h
3880 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 $ac_includes_default
3894 #include <$ac_header>
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3900 *) ac_try_echo
=$ac_try;;
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3905 grep -v '^ *+' conftest.er1
>conftest.err
3907 cat conftest.err
>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_cxx_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.
$ac_objext; then
3913 eval "$as_ac_Header=yes"
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 eval "$as_ac_Header=no"
3921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3923 ac_res
=`eval echo '${'$as_ac_Header'}'`
3924 { echo "$as_me:$LINENO: result: $ac_res" >&5
3925 echo "${ECHO_T}$ac_res" >&6; }
3926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3927 cat >>confdefs.h
<<_ACEOF
3928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3936 { echo "$as_me:$LINENO: checking for FILE" >&5
3937 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3938 if test "${ac_cv_type_FILE+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 cat >conftest.
$ac_ext <<_ACEOF
3944 cat confdefs.h
>>conftest.
$ac_ext
3945 cat >>conftest.
$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947 $ac_includes_default
3948 typedef FILE ac__type_new_;
3952 if ((ac__type_new_ *) 0)
3954 if (sizeof (ac__type_new_))
3960 rm -f conftest.
$ac_objext
3961 if { (ac_try
="$ac_compile"
3963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_compile") 2>conftest.er1
3969 grep -v '^ *+' conftest.er1 >conftest.err
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } && {
3974 test -z "$ac_cxx_werror_flag" ||
3975 test ! -s conftest.err
3976 } && test -s conftest.$ac_objext; then
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3988 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3989 if test $ac_cv_type_FILE = yes; then
3991 cat >>confdefs.h <<_ACEOF
3998 { echo "$as_me:$LINENO: checking for intptr_t" >&5
3999 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4000 if test "${ac_cv_type_intptr_t+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 $ac_includes_default
4010 typedef intptr_t ac__type_new_;
4014 if ((ac__type_new_ *) 0)
4016 if (sizeof (ac__type_new_))
4022 rm -f conftest.$ac_objext
4023 if { (ac_try="$ac_compile"
4025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4026 *) ac_try_echo
=$ac_try;;
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_compile") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1
>conftest.err
4033 cat conftest.err
>&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } && {
4036 test -z "$ac_cxx_werror_flag" ||
4037 test ! -s conftest.err
4038 } && test -s conftest.
$ac_objext; then
4039 ac_cv_type_intptr_t
=yes
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.
$ac_ext >&5
4044 ac_cv_type_intptr_t
=no
4047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4049 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4050 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4051 if test $ac_cv_type_intptr_t = yes; then
4053 cat >>confdefs.h
<<_ACEOF
4054 #define HAVE_INTPTR_T 1
4060 { echo "$as_me:$LINENO: checking for time_t" >&5
4061 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4062 if test "${ac_cv_type_time_t+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 cat >conftest.
$ac_ext <<_ACEOF
4068 cat confdefs.h
>>conftest.
$ac_ext
4069 cat >>conftest.
$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 $ac_includes_default
4072 typedef time_t ac__type_new_;
4076 if ((ac__type_new_ *) 0)
4078 if (sizeof (ac__type_new_))
4084 rm -f conftest.
$ac_objext
4085 if { (ac_try
="$ac_compile"
4087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compile") 2>conftest.er1
4093 grep -v '^ *+' conftest.er1 >conftest.err
4095 cat conftest.err >&5
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); } && {
4098 test -z "$ac_cxx_werror_flag" ||
4099 test ! -s conftest.err
4100 } && test -s conftest.$ac_objext; then
4101 ac_cv_type_time_t=yes
4103 echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4106 ac_cv_type_time_t=no
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4112 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4113 if test $ac_cv_type_time_t = yes; then
4115 cat >>confdefs.h <<_ACEOF
4116 #define HAVE_TIME_T 1
4122 { echo "$as_me:$LINENO: checking for X" >&5
4123 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4126 # Check whether --with-x was given.
4127 if test "${with_x+set}" = set; then
4131 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4132 if test "x$with_x" = xno; then
4133 # The user explicitly disabled X.
4136 case $x_includes,$x_libraries in #(
4137 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4138 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4139 { (exit 1); exit 1; }; };; #(
4140 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 # One or both of the vars are not set, and there is no cached value.
4144 ac_x_includes=no ac_x_libraries=no
4145 rm -f -r conftest.dir
4146 if mkdir conftest.dir; then
4148 cat >Imakefile <<'_ACEOF'
4150 @echo incroot='${INCROOT}'
4152 @echo usrlibdir='${USRLIBDIR}'
4154 @echo libdir='${LIBDIR}'
4156 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4157 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4158 for ac_var in incroot usrlibdir libdir; do
4159 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
4161 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4162 for ac_extension in a so sl; do
4163 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4164 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4165 ac_im_usrlibdir=$ac_im_libdir; break
4168 # Screen out bogus values from the imake configuration. They are
4169 # bogus both because they are the default anyway, and because
4170 # using them would break gcc on systems where it needs fixed includes.
4171 case $ac_im_incroot in
4172 /usr/include) ac_x_includes= ;;
4173 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4175 case $ac_im_usrlibdir in
4177 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4181 rm -f -r conftest.dir
4184 # Standard set of common directories for X headers.
4185 # Check X11 before X11Rn because it is often a symlink to the current release.
4197 /usr/local/X11/include
4198 /usr/local/X11R6/include
4199 /usr/local/X11R5/include
4200 /usr/local/X11R4/include
4202 /usr/local/include/X11
4203 /usr/local/include/X11R6
4204 /usr/local/include/X11R5
4205 /usr/local/include/X11R4
4209 /usr/XFree86/include/X11
4213 /usr/unsupported/include
4215 /usr/local/x11r5/include
4216 /usr/lpp/Xamples/include
4218 /usr/openwin/include
4219 /usr/openwin/share/include'
4221 if test "$ac_x_includes" = no; then
4222 # Guess where to find include files, by looking for Xlib.h.
4223 # First, try using that file with no special directory specified.
4224 cat >conftest.$ac_ext <<_ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #include <X11/Xlib.h>
4232 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4235 *) ac_try_echo
=$ac_try;;
4237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240 grep -v '^ *+' conftest.er1
>conftest.err
4242 cat conftest.err
>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } >/dev
/null
&& {
4245 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4246 test ! -s conftest.err
4248 # We can compile using X headers with no special include directory.
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.
$ac_ext >&5
4254 for ac_dir
in $ac_x_header_dirs; do
4255 if test -r "$ac_dir/X11/Xlib.h"; then
4256 ac_x_includes
=$ac_dir
4262 rm -f conftest.err conftest.
$ac_ext
4263 fi # $ac_x_includes = no
4265 if test "$ac_x_libraries" = no
; then
4266 # Check for the libraries.
4267 # See if we find them without any special options.
4268 # Don't add to $LIBS permanently.
4271 cat >conftest.
$ac_ext <<_ACEOF
4274 cat confdefs.h
>>conftest.
$ac_ext
4275 cat >>conftest.
$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277 #include <X11/Xlib.h>
4286 rm -f conftest.
$ac_objext conftest
$ac_exeext
4287 if { (ac_try
="$ac_link"
4289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_link") 2>conftest.er1
4295 grep -v '^ *+' conftest.er1 >conftest.err
4297 cat conftest.err >&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && {
4300 test -z "$ac_cxx_werror_flag" ||
4301 test ! -s conftest.err
4302 } && test -s conftest$ac_exeext &&
4303 $as_test_x conftest$ac_exeext; then
4305 # We can link X programs with no special library path.
4308 echo "$as_me: failed program was:" >&5
4309 sed 's/^/| /' conftest.$ac_ext >&5
4312 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
4314 # Don't even attempt the hair of trying to link an X program!
4315 for ac_extension in a so sl; do
4316 if test -r "$ac_dir/libX11.$ac_extension"; then
4317 ac_x_libraries=$ac_dir
4324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4325 conftest$ac_exeext conftest.$ac_ext
4326 fi # $ac_x_libraries = no
4328 case $ac_x_includes,$ac_x_libraries in #(
4330 # Didn't find X, or a directory has "'" in its name.
4331 ac_cv_have_x="have_x=no";; #(
4333 # Record where we found X for the cache.
4334 ac_cv_have_x="have_x=yes\
4335 ac_x_includes='$ac_x_includes'\
4336 ac_x_libraries='$ac_x_libraries'"
4342 eval "$ac_cv_have_x"
4345 if test "$have_x" != yes; then
4346 { echo "$as_me:$LINENO: result: $have_x" >&5
4347 echo "${ECHO_T}$have_x" >&6; }
4350 # If each of the values was on the command line, it overrides each guess.
4351 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4352 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4353 # Update the cache value to reflect the command line values.
4354 ac_cv_have_x="have_x=yes\
4355 ac_x_includes='$x_includes'\
4356 ac_x_libraries='$x_libraries'"
4357 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4358 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4361 if test "$no_x" = yes; then
4362 # Not all programs may use this symbol, but it does not hurt to define it.
4364 cat >>confdefs.h <<\_ACEOF
4365 #define X_DISPLAY_MISSING 1
4368 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4370 if test -n "$x_includes"; then
4371 X_CFLAGS="$X_CFLAGS -I$x_includes"
4374 # It would also be nice to do this for all -L options, not just this one.
4375 if test -n "$x_libraries"; then
4376 X_LIBS="$X_LIBS -L$x_libraries"
4377 # For Solaris; some versions of Sun CC require a space after -R and
4378 # others require no space. Words are not sufficient . . . .
4379 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4380 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4381 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4382 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4383 ac_cxx_werror_flag=yes
4384 cat >conftest.$ac_ext <<_ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4399 rm -f conftest.$ac_objext conftest$ac_exeext
4400 if { (ac_try="$ac_link"
4402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4403 *) ac_try_echo
=$ac_try;;
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_link") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1
>conftest.err
4410 cat conftest.err
>&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } && {
4413 test -z "$ac_cxx_werror_flag" ||
4414 test ! -s conftest.err
4415 } && test -s conftest
$ac_exeext &&
4416 $as_test_x conftest
$ac_exeext; then
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 X_LIBS
="$X_LIBS -R$x_libraries"
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.
$ac_ext >&5
4424 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4425 cat >conftest.
$ac_ext <<_ACEOF
4428 cat confdefs.h
>>conftest.
$ac_ext
4429 cat >>conftest.
$ac_ext <<_ACEOF
4430 /* end confdefs.h. */
4440 rm -f conftest.
$ac_objext conftest
$ac_exeext
4441 if { (ac_try
="$ac_link"
4443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_link") 2>conftest.er1
4449 grep -v '^ *+' conftest.er1 >conftest.err
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } && {
4454 test -z "$ac_cxx_werror_flag" ||
4455 test ! -s conftest.err
4456 } && test -s conftest$ac_exeext &&
4457 $as_test_x conftest$ac_exeext; then
4458 { echo "$as_me:$LINENO: result: yes" >&5
4459 echo "${ECHO_T}yes" >&6; }
4460 X_LIBS="$X_LIBS -R $x_libraries"
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4465 { echo "$as_me:$LINENO: result: neither works" >&5
4466 echo "${ECHO_T}neither works" >&6; }
4469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4470 conftest$ac_exeext conftest.$ac_ext
4473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4474 conftest$ac_exeext conftest.$ac_ext
4475 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4479 # Check for system-dependent libraries X programs must link with.
4480 # Do this before checking for the system-independent R6 libraries
4481 # (-lICE), since we may need -lsocket or whatever for X linking.
4483 if test "$ISC" = yes; then
4484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4486 # Martyn Johnson says this is needed for Ultrix, if the X
4487 # libraries were built with DECnet support. And Karl Berry says
4488 # the Alpha needs dnet_stub (dnet does not exist).
4489 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4490 cat >conftest.$ac_ext <<_ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h. */
4497 /* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC
4499 builtin and then its argument prototype would still apply. */
4503 char XOpenDisplay ();
4507 return XOpenDisplay ();
4512 rm -f conftest.$ac_objext conftest$ac_exeext
4513 if { (ac_try="$ac_link"
4515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4516 *) ac_try_echo
=$ac_try;;
4518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_link") 2>conftest.er1
4521 grep -v '^ *+' conftest.er1
>conftest.err
4523 cat conftest.err
>&5
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && {
4526 test -z "$ac_cxx_werror_flag" ||
4527 test ! -s conftest.err
4528 } && test -s conftest
$ac_exeext &&
4529 $as_test_x conftest
$ac_exeext; then
4532 echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.
$ac_ext >&5
4535 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4536 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4537 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4540 ac_check_lib_save_LIBS
=$LIBS
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 /* Override any GCC internal prototype to avoid an error.
4550 Use char because int might match the return type of a GCC
4551 builtin and then its argument prototype would still apply. */
4559 return dnet_ntoa ();
4564 rm -f conftest.
$ac_objext conftest
$ac_exeext
4565 if { (ac_try
="$ac_link"
4567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_link") 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_cxx_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest$ac_exeext &&
4581 $as_test_x conftest$ac_exeext; then
4582 ac_cv_lib_dnet_dnet_ntoa=yes
4584 echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4587 ac_cv_lib_dnet_dnet_ntoa=no
4590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4591 conftest$ac_exeext conftest.$ac_ext
4592 LIBS=$ac_check_lib_save_LIBS
4594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4595 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4596 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4600 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4601 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4602 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4603 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 ac_check_lib_save_LIBS=$LIBS
4607 LIBS="-ldnet_stub $LIBS"
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4615 /* Override any GCC internal prototype to avoid an error.
4616 Use char because int might match the return type of a GCC
4617 builtin and then its argument prototype would still apply. */
4625 return dnet_ntoa ();
4630 rm -f conftest.$ac_objext conftest$ac_exeext
4631 if { (ac_try="$ac_link"
4633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4634 *) ac_try_echo
=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_link") 2>conftest.er1
4639 grep -v '^ *+' conftest.er1
>conftest.err
4641 cat conftest.err
>&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } && {
4644 test -z "$ac_cxx_werror_flag" ||
4645 test ! -s conftest.err
4646 } && test -s conftest
$ac_exeext &&
4647 $as_test_x conftest
$ac_exeext; then
4648 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.
$ac_ext >&5
4653 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4656 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4657 conftest
$ac_exeext conftest.
$ac_ext
4658 LIBS
=$ac_check_lib_save_LIBS
4660 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4661 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4662 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4663 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4669 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4670 conftest
$ac_exeext conftest.
$ac_ext
4671 LIBS
="$ac_xsave_LIBS"
4673 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4674 # to get the SysV transport functions.
4675 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4677 # The nsl library prevents programs from opening the X display
4678 # on Irix 5.2, according to T.E. Dickey.
4679 # The functions gethostbyname, getservbyname, and inet_addr are
4680 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4681 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4682 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4683 if test "${ac_cv_func_gethostbyname+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 cat >conftest.
$ac_ext <<_ACEOF
4689 cat confdefs.h
>>conftest.
$ac_ext
4690 cat >>conftest.
$ac_ext <<_ACEOF
4691 /* end confdefs.h. */
4692 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4694 #define gethostbyname innocuous_gethostbyname
4696 /* System header to define __stub macros and hopefully few prototypes,
4697 which can conflict with char gethostbyname (); below.
4698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699 <limits.h> exists even on freestanding compilers. */
4702 # include <limits.h>
4704 # include <assert.h>
4707 #undef gethostbyname
4709 /* Override any GCC internal prototype to avoid an error.
4710 Use char because int might match the return type of a GCC
4711 builtin and then its argument prototype would still apply. */
4715 char gethostbyname ();
4716 /* The GNU C library defines this for functions which it implements
4717 to always fail with ENOSYS. Some functions are actually named
4718 something starting with __ and the normal name is an alias. */
4719 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4726 return gethostbyname ();
4731 rm -f conftest.
$ac_objext conftest
$ac_exeext
4732 if { (ac_try
="$ac_link"
4734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_cxx_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
4749 ac_cv_func_gethostbyname=yes
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_func_gethostbyname=no
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758 conftest$ac_exeext conftest.$ac_ext
4760 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4761 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4763 if test $ac_cv_func_gethostbyname = no; then
4764 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4765 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4766 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 ac_check_lib_save_LIBS=$LIBS
4771 cat >conftest.$ac_ext <<_ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4778 /* Override any GCC internal prototype to avoid an error.
4779 Use char because int might match the return type of a GCC
4780 builtin and then its argument prototype would still apply. */
4784 char gethostbyname ();
4788 return gethostbyname ();
4793 rm -f conftest.$ac_objext conftest$ac_exeext
4794 if { (ac_try="$ac_link"
4796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4797 *) ac_try_echo
=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_link") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1
>conftest.err
4804 cat conftest.err
>&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } && {
4807 test -z "$ac_cxx_werror_flag" ||
4808 test ! -s conftest.err
4809 } && test -s conftest
$ac_exeext &&
4810 $as_test_x conftest
$ac_exeext; then
4811 ac_cv_lib_nsl_gethostbyname
=yes
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.
$ac_ext >&5
4816 ac_cv_lib_nsl_gethostbyname
=no
4819 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4820 conftest
$ac_exeext conftest.
$ac_ext
4821 LIBS
=$ac_check_lib_save_LIBS
4823 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4824 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4825 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4826 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4829 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4830 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4831 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4832 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 ac_check_lib_save_LIBS
=$LIBS
4837 cat >conftest.
$ac_ext <<_ACEOF
4840 cat confdefs.h
>>conftest.
$ac_ext
4841 cat >>conftest.
$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 /* Override any GCC internal prototype to avoid an error.
4845 Use char because int might match the return type of a GCC
4846 builtin and then its argument prototype would still apply. */
4850 char gethostbyname ();
4854 return gethostbyname ();
4859 rm -f conftest.
$ac_objext conftest
$ac_exeext
4860 if { (ac_try
="$ac_link"
4862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_link") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_cxx_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest$ac_exeext &&
4876 $as_test_x conftest$ac_exeext; then
4877 ac_cv_lib_bsd_gethostbyname=yes
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 ac_cv_lib_bsd_gethostbyname=no
4885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4886 conftest$ac_exeext conftest.$ac_ext
4887 LIBS=$ac_check_lib_save_LIBS
4889 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4890 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4891 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4892 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4898 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4899 # socket/setsockopt and other routines are undefined under SCO ODT
4900 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4901 # on later versions), says Simon Leinen: it contains gethostby*
4902 # variants that don't use the name server (or something). -lsocket
4903 # must be given before -lnsl if both are needed. We assume that
4904 # if connect needs -lnsl, so does gethostbyname.
4905 { echo "$as_me:$LINENO: checking for connect" >&5
4906 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4907 if test "${ac_cv_func_connect+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4918 #define connect innocuous_connect
4920 /* System header to define __stub macros and hopefully few prototypes,
4921 which can conflict with char connect (); below.
4922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 <limits.h> exists even on freestanding compilers. */
4926 # include <limits.h>
4928 # include <assert.h>
4933 /* Override any GCC internal prototype to avoid an error.
4934 Use char because int might match the return type of a GCC
4935 builtin and then its argument prototype would still apply. */
4940 /* The GNU C library defines this for functions which it implements
4941 to always fail with ENOSYS. Some functions are actually named
4942 something starting with __ and the normal name is an alias. */
4943 #if defined __stub_connect || defined __stub___connect
4955 rm -f conftest.$ac_objext conftest$ac_exeext
4956 if { (ac_try="$ac_link"
4958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4959 *) ac_try_echo
=$ac_try;;
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_link") 2>conftest.er1
4964 grep -v '^ *+' conftest.er1
>conftest.err
4966 cat conftest.err
>&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } && {
4969 test -z "$ac_cxx_werror_flag" ||
4970 test ! -s conftest.err
4971 } && test -s conftest
$ac_exeext &&
4972 $as_test_x conftest
$ac_exeext; then
4973 ac_cv_func_connect
=yes
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.
$ac_ext >&5
4978 ac_cv_func_connect
=no
4981 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4982 conftest
$ac_exeext conftest.
$ac_ext
4984 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4985 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4987 if test $ac_cv_func_connect = no
; then
4988 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4989 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4990 if test "${ac_cv_lib_socket_connect+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 ac_check_lib_save_LIBS
=$LIBS
4994 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4995 cat >conftest.
$ac_ext <<_ACEOF
4998 cat confdefs.h
>>conftest.
$ac_ext
4999 cat >>conftest.
$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5002 /* Override any GCC internal prototype to avoid an error.
5003 Use char because int might match the return type of a GCC
5004 builtin and then its argument prototype would still apply. */
5017 rm -f conftest.
$ac_objext conftest
$ac_exeext
5018 if { (ac_try
="$ac_link"
5020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_link") 2>conftest.er1
5026 grep -v '^ *+' conftest.er1 >conftest.err
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_cxx_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest$ac_exeext &&
5034 $as_test_x conftest$ac_exeext; then
5035 ac_cv_lib_socket_connect=yes
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 ac_cv_lib_socket_connect=no
5043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5044 conftest$ac_exeext conftest.$ac_ext
5045 LIBS=$ac_check_lib_save_LIBS
5047 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5048 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5049 if test $ac_cv_lib_socket_connect = yes; then
5050 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5055 # Guillermo Gomez says -lposix is necessary on A/UX.
5056 { echo "$as_me:$LINENO: checking for remove" >&5
5057 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5058 if test "${ac_cv_func_remove+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5069 #define remove innocuous_remove
5071 /* System header to define __stub macros and hopefully few prototypes,
5072 which can conflict with char remove (); below.
5073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5074 <limits.h> exists even on freestanding compilers. */
5077 # include <limits.h>
5079 # include <assert.h>
5084 /* Override any GCC internal prototype to avoid an error.
5085 Use char because int might match the return type of a GCC
5086 builtin and then its argument prototype would still apply. */
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined __stub_remove || defined __stub___remove
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (ac_try="$ac_link"
5109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5110 *) ac_try_echo
=$ac_try;;
5112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5113 (eval "$ac_link") 2>conftest.er1
5115 grep -v '^ *+' conftest.er1
>conftest.err
5117 cat conftest.err
>&5
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && {
5120 test -z "$ac_cxx_werror_flag" ||
5121 test ! -s conftest.err
5122 } && test -s conftest
$ac_exeext &&
5123 $as_test_x conftest
$ac_exeext; then
5124 ac_cv_func_remove
=yes
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.
$ac_ext >&5
5129 ac_cv_func_remove
=no
5132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5133 conftest
$ac_exeext conftest.
$ac_ext
5135 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5136 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5138 if test $ac_cv_func_remove = no
; then
5139 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5140 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5141 if test "${ac_cv_lib_posix_remove+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 ac_check_lib_save_LIBS
=$LIBS
5145 LIBS
="-lposix $LIBS"
5146 cat >conftest.
$ac_ext <<_ACEOF
5149 cat confdefs.h
>>conftest.
$ac_ext
5150 cat >>conftest.
$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5153 /* Override any GCC internal prototype to avoid an error.
5154 Use char because int might match the return type of a GCC
5155 builtin and then its argument prototype would still apply. */
5168 rm -f conftest.
$ac_objext conftest
$ac_exeext
5169 if { (ac_try
="$ac_link"
5171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_link") 2>conftest.er1
5177 grep -v '^ *+' conftest.er1 >conftest.err
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } && {
5182 test -z "$ac_cxx_werror_flag" ||
5183 test ! -s conftest.err
5184 } && test -s conftest$ac_exeext &&
5185 $as_test_x conftest$ac_exeext; then
5186 ac_cv_lib_posix_remove=yes
5188 echo "$as_me: failed program was:" >&5
5189 sed 's/^/| /' conftest.$ac_ext >&5
5191 ac_cv_lib_posix_remove=no
5194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5195 conftest$ac_exeext conftest.$ac_ext
5196 LIBS=$ac_check_lib_save_LIBS
5198 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5199 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5200 if test $ac_cv_lib_posix_remove = yes; then
5201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5206 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5207 { echo "$as_me:$LINENO: checking for shmat" >&5
5208 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5209 if test "${ac_cv_func_shmat+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 cat >conftest.$ac_ext <<_ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5220 #define shmat innocuous_shmat
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char shmat (); below.
5224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 <limits.h> exists even on freestanding compilers. */
5228 # include <limits.h>
5230 # include <assert.h>
5235 /* Override any GCC internal prototype to avoid an error.
5236 Use char because int might match the return type of a GCC
5237 builtin and then its argument prototype would still apply. */
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined __stub_shmat || defined __stub___shmat
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5261 *) ac_try_echo
=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>conftest.er1
5266 grep -v '^ *+' conftest.er1
>conftest.err
5268 cat conftest.err
>&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_cxx_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest
$ac_exeext &&
5274 $as_test_x conftest
$ac_exeext; then
5275 ac_cv_func_shmat
=yes
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.
$ac_ext >&5
5283 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5284 conftest
$ac_exeext conftest.
$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5287 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5289 if test $ac_cv_func_shmat = no
; then
5290 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5291 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5292 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 ac_check_lib_save_LIBS
=$LIBS
5297 cat >conftest.
$ac_ext <<_ACEOF
5300 cat confdefs.h
>>conftest.
$ac_ext
5301 cat >>conftest.
$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5304 /* Override any GCC internal prototype to avoid an error.
5305 Use char because int might match the return type of a GCC
5306 builtin and then its argument prototype would still apply. */
5319 rm -f conftest.
$ac_objext conftest
$ac_exeext
5320 if { (ac_try
="$ac_link"
5322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_link") 2>conftest.er1
5328 grep -v '^ *+' conftest.er1 >conftest.err
5330 cat conftest.err >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); } && {
5333 test -z "$ac_cxx_werror_flag" ||
5334 test ! -s conftest.err
5335 } && test -s conftest$ac_exeext &&
5336 $as_test_x conftest$ac_exeext; then
5337 ac_cv_lib_ipc_shmat=yes
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5342 ac_cv_lib_ipc_shmat=no
5345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5346 conftest$ac_exeext conftest.$ac_ext
5347 LIBS=$ac_check_lib_save_LIBS
5349 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5350 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5351 if test $ac_cv_lib_ipc_shmat = yes; then
5352 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5358 # Check for libraries that X11R6 Xt/Xaw programs need.
5359 ac_save_LDFLAGS=$LDFLAGS
5360 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5361 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5362 # check for ICE first), but we must link in the order -lSM -lICE or
5363 # we get undefined symbols. So assume we have SM if we have ICE.
5364 # These have to be linked with before -lX11, unlike the other
5365 # libraries we check for below, so use a different variable.
5366 # John Interrante, Karl Berry
5367 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5368 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5369 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 ac_check_lib_save_LIBS=$LIBS
5373 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5381 /* Override any GCC internal prototype to avoid an error.
5382 Use char because int might match the return type of a GCC
5383 builtin and then its argument prototype would still apply. */
5387 char IceConnectionNumber ();
5391 return IceConnectionNumber ();
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (ac_try="$ac_link"
5399 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5400 *) ac_try_echo
=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_link") 2>conftest.er1
5405 grep -v '^ *+' conftest.er1
>conftest.err
5407 cat conftest.err
>&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_cxx_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest
$ac_exeext &&
5413 $as_test_x conftest
$ac_exeext; then
5414 ac_cv_lib_ICE_IceConnectionNumber
=yes
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.
$ac_ext >&5
5419 ac_cv_lib_ICE_IceConnectionNumber
=no
5422 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5423 conftest
$ac_exeext conftest.
$ac_ext
5424 LIBS
=$ac_check_lib_save_LIBS
5426 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5427 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5428 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5429 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5432 LDFLAGS
=$ac_save_LDFLAGS
5438 for ac_header
in pty.h util.h
5440 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 ac_res
=`eval echo '${'$as_ac_Header'}'`
5448 { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5451 # Is the header compilable?
5452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454 cat >conftest.
$ac_ext <<_ACEOF
5457 cat confdefs.h
>>conftest.
$ac_ext
5458 cat >>conftest.
$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5461 #include <$ac_header>
5463 rm -f conftest.
$ac_objext
5464 if { (ac_try
="$ac_compile"
5466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_cxx_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_header_compiler=yes
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_header_compiler=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490 echo "${ECHO_T}$ac_header_compiler" >&6; }
5492 # Is the header present?
5493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <$ac_header>
5503 if { (ac_try="$ac_cpp conftest.$ac_ext"
5505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5506 *) ac_try_echo
=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1
>conftest.err
5513 cat conftest.err
>&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev
/null
&& {
5516 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5517 test ! -s conftest.err
5519 ac_header_preproc
=yes
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.
$ac_ext >&5
5524 ac_header_preproc
=no
5527 rm -f conftest.err conftest.
$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6; }
5531 # So? What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc
=yes
5541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5558 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 eval "$as_ac_Header=\$ac_header_preproc"
5563 ac_res
=`eval echo '${'$as_ac_Header'}'`
5564 { echo "$as_me:$LINENO: result: $ac_res" >&5
5565 echo "${ECHO_T}$ac_res" >&6; }
5568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5569 cat >>confdefs.h
<<_ACEOF
5570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5578 for ac_func
in gettimeofday
5580 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5583 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5586 cat >conftest.
$ac_ext <<_ACEOF
5589 cat confdefs.h
>>conftest.
$ac_ext
5590 cat >>conftest.
$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5594 #define $ac_func innocuous_$ac_func
5596 /* System header to define __stub macros and hopefully few prototypes,
5597 which can conflict with char $ac_func (); below.
5598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5599 <limits.h> exists even on freestanding compilers. */
5602 # include <limits.h>
5604 # include <assert.h>
5609 /* Override any GCC internal prototype to avoid an error.
5610 Use char because int might match the return type of a GCC
5611 builtin and then its argument prototype would still apply. */
5616 /* The GNU C library defines this for functions which it implements
5617 to always fail with ENOSYS. Some functions are actually named
5618 something starting with __ and the normal name is an alias. */
5619 #if defined __stub_$ac_func || defined __stub___$ac_func
5631 rm -f conftest.
$ac_objext conftest
$ac_exeext
5632 if { (ac_try
="$ac_link"
5634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_link") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_cxx_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest$ac_exeext &&
5648 $as_test_x conftest$ac_exeext; then
5649 eval "$as_ac_var=yes"
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5654 eval "$as_ac_var=no"
5657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5658 conftest$ac_exeext conftest.$ac_ext
5660 ac_res=`eval echo '${'$as_ac_var'}'`
5661 { echo "$as_me:$LINENO: result: $ac_res" >&5
5662 echo "${ECHO_T}$ac_res" >&6; }
5663 if test `eval echo '${'$as_ac_var'}'` = yes; then
5664 cat >>confdefs.h <<_ACEOF
5665 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5672 #--------------------------------------------------------------------
5673 # Checks for dl library
5674 #--------------------------------------------------------------------
5676 { echo "$as_me:$LINENO: checking for dlopen" >&5
5677 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5678 if test "${ac_cv_func_dlopen+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5689 #define dlopen innocuous_dlopen
5691 /* System header to define __stub macros and hopefully few prototypes,
5692 which can conflict with char dlopen (); below.
5693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5694 <limits.h> exists even on freestanding compilers. */
5697 # include <limits.h>
5699 # include <assert.h>
5704 /* Override any GCC internal prototype to avoid an error.
5705 Use char because int might match the return type of a GCC
5706 builtin and then its argument prototype would still apply. */
5711 /* The GNU C library defines this for functions which it implements
5712 to always fail with ENOSYS. Some functions are actually named
5713 something starting with __ and the normal name is an alias. */
5714 #if defined __stub_dlopen || defined __stub___dlopen
5726 rm -f conftest.$ac_objext conftest$ac_exeext
5727 if { (ac_try="$ac_link"
5729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5730 *) ac_try_echo
=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_link") 2>conftest.er1
5735 grep -v '^ *+' conftest.er1
>conftest.err
5737 cat conftest.err
>&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } && {
5740 test -z "$ac_cxx_werror_flag" ||
5741 test ! -s conftest.err
5742 } && test -s conftest
$ac_exeext &&
5743 $as_test_x conftest
$ac_exeext; then
5744 ac_cv_func_dlopen
=yes
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.
$ac_ext >&5
5749 ac_cv_func_dlopen
=no
5752 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5753 conftest
$ac_exeext conftest.
$ac_ext
5755 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5756 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5758 if test "$ac_cv_func_dl" = "yes"; then
5760 cat >>confdefs.h
<<\_ACEOF
5761 #define DYNAMIC_LINKING 1
5766 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 ac_check_lib_save_LIBS
=$LIBS
5773 cat >conftest.
$ac_ext <<_ACEOF
5776 cat confdefs.h
>>conftest.
$ac_ext
5777 cat >>conftest.
$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5780 /* Override any GCC internal prototype to avoid an error.
5781 Use char because int might match the return type of a GCC
5782 builtin and then its argument prototype would still apply. */
5795 rm -f conftest.
$ac_objext conftest
$ac_exeext
5796 if { (ac_try
="$ac_link"
5798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_link") 2>conftest.er1
5804 grep -v '^ *+' conftest.er1 >conftest.err
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_cxx_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest$ac_exeext &&
5812 $as_test_x conftest$ac_exeext; then
5813 ac_cv_lib_dl_dlopen=yes
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5818 ac_cv_lib_dl_dlopen=no
5821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5822 conftest$ac_exeext conftest.$ac_ext
5823 LIBS=$ac_check_lib_save_LIBS
5825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5826 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5827 if test $ac_cv_lib_dl_dlopen = yes; then
5828 cat >>confdefs.h <<_ACEOF
5829 #define HAVE_LIBDL 1
5836 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5838 for ac_func in dlopen
5840 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5854 #define $ac_func innocuous_$ac_func
5856 /* System header to define __stub macros and hopefully few prototypes,
5857 which can conflict with char $ac_func (); below.
5858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5859 <limits.h> exists even on freestanding compilers. */
5862 # include <limits.h>
5864 # include <assert.h>
5869 /* Override any GCC internal prototype to avoid an error.
5870 Use char because int might match the return type of a GCC
5871 builtin and then its argument prototype would still apply. */
5876 /* The GNU C library defines this for functions which it implements
5877 to always fail with ENOSYS. Some functions are actually named
5878 something starting with __ and the normal name is an alias. */
5879 #if defined __stub_$ac_func || defined __stub___$ac_func
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (ac_try="$ac_link"
5894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5895 *) ac_try_echo
=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_link") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1
>conftest.err
5902 cat conftest.err
>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && {
5905 test -z "$ac_cxx_werror_flag" ||
5906 test ! -s conftest.err
5907 } && test -s conftest
$ac_exeext &&
5908 $as_test_x conftest
$ac_exeext; then
5909 eval "$as_ac_var=yes"
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.
$ac_ext >&5
5914 eval "$as_ac_var=no"
5917 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5918 conftest
$ac_exeext conftest.
$ac_ext
5920 ac_res
=`eval echo '${'$as_ac_var'}'`
5921 { echo "$as_me:$LINENO: result: $ac_res" >&5
5922 echo "${ECHO_T}$ac_res" >&6; }
5923 if test `eval echo '${'$as_ac_var'}'` = yes; then
5924 cat >>confdefs.h
<<_ACEOF
5925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5933 cat >>confdefs.h
<<\_ACEOF
5934 #define DYNAMIC_LINKING 1
5939 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5940 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5941 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 ac_check_lib_save_LIBS
=$LIBS
5946 cat >conftest.
$ac_ext <<_ACEOF
5949 cat confdefs.h
>>conftest.
$ac_ext
5950 cat >>conftest.
$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5953 /* Override any GCC internal prototype to avoid an error.
5954 Use char because int might match the return type of a GCC
5955 builtin and then its argument prototype would still apply. */
5968 rm -f conftest.
$ac_objext conftest
$ac_exeext
5969 if { (ac_try
="$ac_link"
5971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5975 (eval "$ac_link") 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_cxx_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest$ac_exeext &&
5985 $as_test_x conftest$ac_exeext; then
5986 ac_cv_lib_dld_dld_link=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_cv_lib_dld_dld_link=no
5994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5995 conftest$ac_exeext conftest.$ac_ext
5996 LIBS=$ac_check_lib_save_LIBS
5998 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
5999 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6000 if test $ac_cv_lib_dld_dld_link = yes; then
6001 cat >>confdefs.h <<_ACEOF
6002 #define HAVE_LIBDLD 1
6009 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6012 cat >>confdefs.h <<\_ACEOF
6013 #define DYNAMIC_LINKING 1
6018 for ac_func in shl_load
6020 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6034 #define $ac_func innocuous_$ac_func
6036 /* System header to define __stub macros and hopefully few prototypes,
6037 which can conflict with char $ac_func (); below.
6038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6039 <limits.h> exists even on freestanding compilers. */
6042 # include <limits.h>
6044 # include <assert.h>
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6056 /* The GNU C library defines this for functions which it implements
6057 to always fail with ENOSYS. Some functions are actually named
6058 something starting with __ and the normal name is an alias. */
6059 #if defined __stub_$ac_func || defined __stub___$ac_func
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6075 *) ac_try_echo
=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_link") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_cxx_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest
$ac_exeext &&
6088 $as_test_x conftest
$ac_exeext; then
6089 eval "$as_ac_var=yes"
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.
$ac_ext >&5
6094 eval "$as_ac_var=no"
6097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6098 conftest
$ac_exeext conftest.
$ac_ext
6100 ac_res
=`eval echo '${'$as_ac_var'}'`
6101 { echo "$as_me:$LINENO: result: $ac_res" >&5
6102 echo "${ECHO_T}$ac_res" >&6; }
6103 if test `eval echo '${'$as_ac_var'}'` = yes; then
6104 cat >>confdefs.h
<<_ACEOF
6105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6111 if test "$ac_cv_func_shl_load" = "yes"; then
6114 cat >>confdefs.h
<<\_ACEOF
6115 #define DYNAMIC_LINKING 1
6120 for ac_func
in dlopen
6122 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6125 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 cat >conftest.
$ac_ext <<_ACEOF
6131 cat confdefs.h
>>conftest.
$ac_ext
6132 cat >>conftest.
$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6136 #define $ac_func innocuous_$ac_func
6138 /* System header to define __stub macros and hopefully few prototypes,
6139 which can conflict with char $ac_func (); below.
6140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6141 <limits.h> exists even on freestanding compilers. */
6144 # include <limits.h>
6146 # include <assert.h>
6151 /* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6158 /* The GNU C library defines this for functions which it implements
6159 to always fail with ENOSYS. Some functions are actually named
6160 something starting with __ and the normal name is an alias. */
6161 #if defined __stub_$ac_func || defined __stub___$ac_func
6173 rm -f conftest.
$ac_objext conftest
$ac_exeext
6174 if { (ac_try
="$ac_link"
6176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_link") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_cxx_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest$ac_exeext &&
6190 $as_test_x conftest$ac_exeext; then
6191 eval "$as_ac_var=yes"
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 eval "$as_ac_var=no"
6199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6200 conftest$ac_exeext conftest.$ac_ext
6202 ac_res=`eval echo '${'$as_ac_var'}'`
6203 { echo "$as_me:$LINENO: result: $ac_res" >&5
6204 echo "${ECHO_T}$ac_res" >&6; }
6205 if test `eval echo '${'$as_ac_var'}'` = yes; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6213 if test "$ac_cv_func_dlopen" = "yes"; then
6215 cat >>confdefs.h <<\_ACEOF
6216 #define DYNAMIC_LINKING 1
6226 #--------------------------------------------------------------------
6227 # Checks for iconv library
6228 #--------------------------------------------------------------------
6231 # Check whether --with-iconv was given.
6232 if test "${with_iconv+set}" = set; then
6233 withval=$with_iconv;
6238 # Modified from GNOME's libxml2 configure.in
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 # compile C to avoid the 'const char**' problem
6247 SAVE_CPPFLAGS="$CPPFLAGS"
6248 SAVE_LDFLAGS="$LDFLAGS"
6250 if test "$with_iconv" = "no" ; then
6251 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6252 echo "${ECHO_T}disabling iconv support" >&6; }
6254 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6255 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6256 LDFLAGS="$ICONV_LDFLAGS"
6258 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6259 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6260 LDFLAGS="-L$with_iconv/lib"
6261 ICONV_CFLAGS="-I$with_iconv/include"
6262 ICONV_LDFLAGS="-L$with_iconv/lib"
6266 ac_cpp='$CPP $CPPFLAGS'
6267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6270 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6272 # On Suns, sometimes $CPP names a directory.
6273 if test -n "$CPP" && test -d "$CPP"; then
6276 if test -z "$CPP"; then
6277 if test "${ac_cv_prog_CPP+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 # Double quotes because CPP needs to be expanded
6281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6284 for ac_c_preproc_warn_flag in '' yes
6286 # Use a header file that comes with gcc, so configuring glibc
6287 # with a fresh cross-compiler works.
6288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6289 # <limits.h> exists even on freestanding compilers.
6290 # On the NeXT, cc -E runs the code through the compiler's parser,
6291 # not just through cpp. "Syntax error" is here to catch this case.
6292 cat >conftest.$ac_ext <<_ACEOF
6295 cat confdefs.h >>conftest.$ac_ext
6296 cat >>conftest.$ac_ext <<_ACEOF
6297 /* end confdefs.h. */
6299 # include <limits.h>
6301 # include <assert.h>
6305 if { (ac_try="$ac_cpp conftest.$ac_ext"
6307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6308 *) ac_try_echo
=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1
>conftest.err
6315 cat conftest.err
>&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } >/dev
/null
&& {
6318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.
$ac_ext >&5
6326 # Broken: fails on valid input.
6330 rm -f conftest.err conftest.
$ac_ext
6332 # OK, works on sane cases. Now check whether nonexistent headers
6333 # can be detected and how.
6334 cat >conftest.
$ac_ext <<_ACEOF
6337 cat confdefs.h
>>conftest.
$ac_ext
6338 cat >>conftest.
$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <ac_nonexistent.h>
6342 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } >/dev/null && {
6355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6356 test ! -s conftest.err
6358 # Broken: success on invalid input.
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6364 # Passes both tests.
6369 rm -f conftest.err conftest.$ac_ext
6372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6373 rm -f conftest.err conftest.
$ac_ext
6374 if $ac_preproc_ok; then
6386 { echo "$as_me:$LINENO: result: $CPP" >&5
6387 echo "${ECHO_T}$CPP" >&6; }
6389 for ac_c_preproc_warn_flag
in '' yes
6391 # Use a header file that comes with gcc, so configuring glibc
6392 # with a fresh cross-compiler works.
6393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6394 # <limits.h> exists even on freestanding compilers.
6395 # On the NeXT, cc -E runs the code through the compiler's parser,
6396 # not just through cpp. "Syntax error" is here to catch this case.
6397 cat >conftest.
$ac_ext <<_ACEOF
6400 cat confdefs.h
>>conftest.
$ac_ext
6401 cat >>conftest.
$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6404 # include <limits.h>
6406 # include <assert.h>
6410 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } >/dev/null && {
6423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 # Broken: fails on valid input.
6435 rm -f conftest.err conftest.$ac_ext
6437 # OK, works on sane cases. Now check whether nonexistent headers
6438 # can be detected and how.
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6445 #include <ac_nonexistent.h>
6447 if { (ac_try="$ac_cpp conftest.$ac_ext"
6449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6450 *) ac_try_echo
=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1
>conftest.err
6457 cat conftest.err
>&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev
/null
&& {
6460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6461 test ! -s conftest.err
6463 # Broken: success on invalid input.
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.
$ac_ext >&5
6469 # Passes both tests.
6474 rm -f conftest.err conftest.
$ac_ext
6477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6478 rm -f conftest.err conftest.
$ac_ext
6479 if $ac_preproc_ok; then
6482 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6483 See \`config.log' for more details." >&5
6484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6485 See \`config.log' for more details." >&2;}
6486 { (exit 1); exit 1; }; }
6490 ac_cpp
='$CPP $CPPFLAGS'
6491 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6492 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6493 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6496 if test "${ac_cv_header_iconv_h+set}" = set; then
6497 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6498 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6499 if test "${ac_cv_header_iconv_h+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6503 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6505 # Is the header compilable?
6506 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6507 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6508 cat >conftest.
$ac_ext <<_ACEOF
6511 cat confdefs.h
>>conftest.
$ac_ext
6512 cat >>conftest.
$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6514 $ac_includes_default
6517 rm -f conftest.
$ac_objext
6518 if { (ac_try
="$ac_compile"
6520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_compile") 2>conftest.er1
6526 grep -v '^ *+' conftest.er1 >conftest.err
6528 cat conftest.err >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); } && {
6531 test -z "$ac_c_werror_flag" ||
6532 test ! -s conftest.err
6533 } && test -s conftest.$ac_objext; then
6534 ac_header_compiler=yes
6536 echo "$as_me: failed program was:" >&5
6537 sed 's/^/| /' conftest.$ac_ext >&5
6539 ac_header_compiler=no
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6544 echo "${ECHO_T}$ac_header_compiler" >&6; }
6546 # Is the header present?
6547 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6548 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6557 if { (ac_try="$ac_cpp conftest.$ac_ext"
6559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6560 *) ac_try_echo
=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1
>conftest.err
6567 cat conftest.err
>&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } >/dev
/null
&& {
6570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6573 ac_header_preproc
=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.
$ac_ext >&5
6578 ac_header_preproc
=no
6581 rm -f conftest.err conftest.
$ac_ext
6582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6583 echo "${ECHO_T}$ac_header_preproc" >&6; }
6585 # So? What about this header?
6586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6588 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6589 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6591 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6592 ac_header_preproc
=yes
6595 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6596 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6598 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6599 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6600 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6601 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6602 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6603 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6604 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6605 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6606 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6610 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6611 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6612 if test "${ac_cv_header_iconv_h+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 ac_cv_header_iconv_h
=$ac_header_preproc
6617 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6618 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6621 if test $ac_cv_header_iconv_h = yes; then
6622 { echo "$as_me:$LINENO: checking for iconv" >&5
6623 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6625 cat >conftest.
$ac_ext <<_ACEOF
6628 cat confdefs.h
>>conftest.
$ac_ext
6629 cat >>conftest.
$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6639 iconv_t cd = iconv_open ("","");
6640 iconv (cd, NULL, NULL, NULL, NULL);
6646 rm -f conftest.
$ac_objext conftest
$ac_exeext
6647 if { (ac_try
="$ac_link"
6649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6650 *) ac_try_echo=$ac_try;;
6652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653 (eval "$ac_link") 2>conftest.er1
6655 grep -v '^ *+' conftest.er1 >conftest.err
6657 cat conftest.err >&5
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } && {
6660 test -z "$ac_c_werror_flag" ||
6661 test ! -s conftest.err
6662 } && test -s conftest$ac_exeext &&
6663 $as_test_x conftest$ac_exeext; then
6665 { echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6; }
6668 cat >>confdefs.h <<\_ACEOF
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6678 { echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6; }
6680 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6681 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6682 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6683 LIBS="-liconv" # for AC_TRY_LINK
6684 cat >conftest.$ac_ext <<_ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6698 iconv_t cd = iconv_open ("","");
6699 iconv (cd, NULL, NULL, NULL, NULL);
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (ac_try="$ac_link"
6708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6709 *) ac_try_echo
=$ac_try;;
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_link") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1
>conftest.err
6716 cat conftest.err
>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest
$ac_exeext &&
6722 $as_test_x conftest
$ac_exeext; then
6724 { echo "$as_me:$LINENO: result: yes" >&5
6725 echo "${ECHO_T}yes" >&6; }
6727 cat >>confdefs.h
<<\_ACEOF
6731 ICONV_LDFLAGS
="${ICONV_LDFLAGS/-liconv} -liconv"
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.
$ac_ext >&5
6738 { echo "$as_me:$LINENO: result: no" >&5
6739 echo "${ECHO_T}no" >&6; }
6740 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6741 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6745 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6746 conftest
$ac_exeext conftest.
$ac_ext
6749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6750 conftest
$ac_exeext conftest.
$ac_ext
6756 CPPFLAGS
="$SAVE_CPPFLAGS"
6757 LDFLAGS
="$SAVE_LDFLAGS"
6760 ac_cpp
='$CXXCPP $CPPFLAGS'
6761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6764 # restore C++ language
6768 #--------------------------------------------------------------------
6769 # Checks for freetype library
6770 #--------------------------------------------------------------------
6773 # Check whether --with-freetype was given.
6774 if test "${with_freetype+set}" = set; then
6775 withval
=$with_freetype;
6779 SAVE_CPPFLAGS
="$CPPFLAGS"
6780 SAVE_LDFLAGS
="$LDFLAGS"
6782 if test "$with_freetype" = "no" ; then
6783 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6784 echo "${ECHO_T}disabling freetype support" >&6; }
6786 if test -z "$FREETYPE_CFLAGS"; then
6787 FREETYPE_CFLAGS
=`freetype-config --cflags`
6789 CPPFLAGS
="$CPPFLAGS $FREETYPE_CFLAGS"
6790 if test -z "$FREETYPE_LDFLAGS"; then
6791 FREETYPE_LDFLAGS
=`freetype-config --libs`
6793 LIBS
="$LDFLAGS $FREETYPE_LDFLAGS"
6794 if test "${ac_cv_header_ft2build_h+set}" = set; then
6795 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6796 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6797 if test "${ac_cv_header_ft2build_h+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6800 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6801 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6803 # Is the header compilable?
6804 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6805 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6806 cat >conftest.
$ac_ext <<_ACEOF
6809 cat confdefs.h
>>conftest.
$ac_ext
6810 cat >>conftest.
$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 $ac_includes_default
6813 #include <ft2build.h>
6815 rm -f conftest.
$ac_objext
6816 if { (ac_try
="$ac_compile"
6818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6822 (eval "$ac_compile") 2>conftest.er1
6824 grep -v '^ *+' conftest.er1 >conftest.err
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } && {
6829 test -z "$ac_cxx_werror_flag" ||
6830 test ! -s conftest.err
6831 } && test -s conftest.$ac_objext; then
6832 ac_header_compiler=yes
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6837 ac_header_compiler=no
6840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6842 echo "${ECHO_T}$ac_header_compiler" >&6; }
6844 # Is the header present?
6845 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6846 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6847 cat >conftest.$ac_ext <<_ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <ft2build.h>
6855 if { (ac_try="$ac_cpp conftest.$ac_ext"
6857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6858 *) ac_try_echo
=$ac_try;;
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6863 grep -v '^ *+' conftest.er1
>conftest.err
6865 cat conftest.err
>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } >/dev
/null
&& {
6868 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6869 test ! -s conftest.err
6871 ac_header_preproc
=yes
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.
$ac_ext >&5
6876 ac_header_preproc
=no
6879 rm -f conftest.err conftest.
$ac_ext
6880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6881 echo "${ECHO_T}$ac_header_preproc" >&6; }
6883 # So? What about this header?
6884 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6886 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6887 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6888 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6889 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6890 ac_header_preproc
=yes
6893 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6894 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6895 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6896 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6898 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6900 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6901 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6902 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6903 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6904 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6908 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6909 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_ft2build_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 ac_cv_header_ft2build_h
=$ac_header_preproc
6915 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6916 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6919 if test $ac_cv_header_ft2build_h = yes; then
6920 { echo "$as_me:$LINENO: checking for freetype" >&5
6921 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6922 cat >conftest.
$ac_ext <<_ACEOF
6925 cat confdefs.h
>>conftest.
$ac_ext
6926 cat >>conftest.
$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6929 #include <ft2build.h>
6930 #include FT_FREETYPE_H
6936 FT_Library ft_library;
6937 (void) FT_Init_FreeType (&ft_library);
6943 rm -f conftest.
$ac_objext conftest
$ac_exeext
6944 if { (ac_try
="$ac_link"
6946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6947 *) ac_try_echo=$ac_try;;
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950 (eval "$ac_link") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_cxx_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest$ac_exeext &&
6960 $as_test_x conftest$ac_exeext; then
6962 { echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6; }
6965 cat >>confdefs.h <<\_ACEOF
6966 #define USE_FREETYPE 1
6969 FREETYPE_CFLAGS="$CPPFLAGS"
6970 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6971 FREETYPE_LDFLAGS="$LIBS"
6973 cat >>confdefs.h <<\_ACEOF
6974 #define LINKED_FREETYPE 1
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6984 { echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6; }
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989 conftest$ac_exeext conftest.$ac_ext
6995 CPPFLAGS="$SAVE_CPPFLAGS"
6996 LDFLAGS="$SAVE_LDFLAGS"
7002 #--------------------------------------------------------------------
7003 # Checks for Cairo library
7004 #--------------------------------------------------------------------
7007 # Check whether --with-cairo was given.
7008 if test "${with_cairo+set}" = set; then
7009 withval=$with_cairo;
7013 SAVE_CPPFLAGS="$CPPFLAGS"
7014 SAVE_LDFLAGS="$LDFLAGS"
7016 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7017 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7018 echo "${ECHO_T}disabling cairo support" >&6; }
7020 CPPFLAGS=`pkg-config
--cflags cairo
`
7021 LIBS=`pkg-config
--libs cairo
`
7022 if test "${ac_cv_header_cairo_h+set}" = set; then
7023 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7024 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7025 if test "${ac_cv_header_cairo_h+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7029 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7031 # Is the header compilable?
7032 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7033 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7034 cat >conftest.$ac_ext <<_ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7047 *) ac_try_echo
=$ac_try;;
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7052 grep -v '^ *+' conftest.er1
>conftest.err
7054 cat conftest.err
>&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_cxx_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.
$ac_objext; then
7060 ac_header_compiler
=yes
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.
$ac_ext >&5
7065 ac_header_compiler
=no
7068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7070 echo "${ECHO_T}$ac_header_compiler" >&6; }
7072 # Is the header present?
7073 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7074 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7075 cat >conftest.
$ac_ext <<_ACEOF
7078 cat confdefs.h
>>conftest.
$ac_ext
7079 cat >>conftest.
$ac_ext <<_ACEOF
7080 /* end confdefs.h. */
7083 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7086 *) ac_try_echo=$ac_try;;
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7091 grep -v '^ *+' conftest.er1 >conftest.err
7093 cat conftest.err >&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } >/dev/null && {
7096 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7097 test ! -s conftest.err
7099 ac_header_preproc=yes
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7104 ac_header_preproc=no
7107 rm -f conftest.err conftest.$ac_ext
7108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7109 echo "${ECHO_T}$ac_header_preproc" >&6; }
7111 # So? What about this header?
7112 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7114 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7115 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7117 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7118 ac_header_preproc=yes
7121 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7122 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7123 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7124 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7125 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7126 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7127 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7128 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7129 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7130 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7131 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7132 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7136 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7137 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7138 if test "${ac_cv_header_cairo_h+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_cv_header_cairo_h=$ac_header_preproc
7143 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7144 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7147 if test $ac_cv_header_cairo_h = yes; then
7148 { echo "$as_me:$LINENO: checking for cairo" >&5
7149 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7150 cat >conftest.$ac_ext <<_ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h. */
7163 cairo_surface_t *surface;
7164 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (ac_try="$ac_link"
7173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7174 *) ac_try_echo
=$ac_try;;
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_link") 2>conftest.er1
7179 grep -v '^ *+' conftest.er1
>conftest.err
7181 cat conftest.err
>&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); } && {
7184 test -z "$ac_cxx_werror_flag" ||
7185 test ! -s conftest.err
7186 } && test -s conftest
$ac_exeext &&
7187 $as_test_x conftest
$ac_exeext; then
7189 { echo "$as_me:$LINENO: result: yes" >&5
7190 echo "${ECHO_T}yes" >&6; }
7192 cat >>confdefs.h
<<\_ACEOF
7196 CAIRO_CFLAGS
="$CPPFLAGS"
7197 if test "$with_cairo" = "linked" ; then
7198 CAIRO_LDFLAGS
="$LIBS"
7200 cat >>confdefs.h
<<\_ACEOF
7201 #define LINKED_CAIRO 1
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.
$ac_ext >&5
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7215 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7216 conftest
$ac_exeext conftest.
$ac_ext
7222 CPPFLAGS
="$SAVE_CPPFLAGS"
7223 LDFLAGS
="$SAVE_LDFLAGS"
7229 #--------------------------------------------------------------------
7230 # Checks for Imlib2 library
7231 #--------------------------------------------------------------------
7234 # Check whether --with-imlib2 was given.
7235 if test "${with_imlib2+set}" = set; then
7236 withval
=$with_imlib2;
7240 SAVE_CPPFLAGS
="$CPPFLAGS"
7241 SAVE_LDFLAGS
="$LDFLAGS"
7243 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7244 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7245 echo "${ECHO_T}disabling imlib2 support" >&6; }
7247 CPPFLAGS
=`imlib2-config --cflags`
7248 LIBS
=`imlib2-config --libs`
7249 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7250 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7251 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7252 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7256 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7258 # Is the header compilable?
7259 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7260 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7261 cat >conftest.
$ac_ext <<_ACEOF
7264 cat confdefs.h
>>conftest.
$ac_ext
7265 cat >>conftest.
$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267 $ac_includes_default
7270 rm -f conftest.
$ac_objext
7271 if { (ac_try
="$ac_compile"
7273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_cxx_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 ac_header_compiler=yes
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 ac_header_compiler=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7297 echo "${ECHO_T}$ac_header_compiler" >&6; }
7299 # Is the header present?
7300 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7301 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7310 if { (ac_try="$ac_cpp conftest.$ac_ext"
7312 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7313 *) ac_try_echo
=$ac_try;;
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7318 grep -v '^ *+' conftest.er1
>conftest.err
7320 cat conftest.err
>&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); } >/dev
/null
&& {
7323 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7324 test ! -s conftest.err
7326 ac_header_preproc
=yes
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.
$ac_ext >&5
7331 ac_header_preproc
=no
7334 rm -f conftest.err conftest.
$ac_ext
7335 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7336 echo "${ECHO_T}$ac_header_preproc" >&6; }
7338 # So? What about this header?
7339 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7341 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7342 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7344 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7345 ac_header_preproc
=yes
7348 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7349 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7350 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7351 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7352 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7353 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7354 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7355 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7356 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7357 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7359 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7363 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7364 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7365 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_header_Imlib2_h
=$ac_header_preproc
7370 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7371 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7374 if test $ac_cv_header_Imlib2_h = yes; then
7375 { echo "$as_me:$LINENO: checking for imlib2" >&5
7376 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7377 cat >conftest.
$ac_ext <<_ACEOF
7380 cat confdefs.h
>>conftest.
$ac_ext
7381 cat >>conftest.
$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 #include <X11/Xlib.h>
7393 Imlib_Image image= imlib_load_image("");
7399 rm -f conftest.
$ac_objext conftest
$ac_exeext
7400 if { (ac_try
="$ac_link"
7402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_link") 2>conftest.er1
7408 grep -v '^ *+' conftest.er1 >conftest.err
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } && {
7413 test -z "$ac_cxx_werror_flag" ||
7414 test ! -s conftest.err
7415 } && test -s conftest$ac_exeext &&
7416 $as_test_x conftest$ac_exeext; then
7418 { echo "$as_me:$LINENO: result: yes" >&5
7419 echo "${ECHO_T}yes" >&6; }
7421 cat >>confdefs.h <<\_ACEOF
7422 #define USE_IMLIB2 1
7425 IMLIB2_CFLAGS="$CPPFLAGS"
7426 if test "$with_imlib2" = "linked" ; then
7427 IMLIB2_LDFLAGS="$LIBS"
7429 cat >>confdefs.h <<\_ACEOF
7430 #define LINKED_IMLIB2 1
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7440 { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7445 conftest$ac_exeext conftest.$ac_ext
7451 CPPFLAGS="$SAVE_CPPFLAGS"
7452 LDFLAGS="$SAVE_LDFLAGS"
7458 #--------------------------------------------------------------------
7459 # Checks for Axel library
7460 #--------------------------------------------------------------------
7463 # Check whether --with-axel was given.
7464 if test "${with_axel+set}" = set; then
7469 SAVE_CPPFLAGS="$CPPFLAGS"
7470 SAVE_LDFLAGS="$LDFLAGS"
7472 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7473 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7474 echo "${ECHO_T}disabling axel support" >&6; }
7476 CPPFLAGS=`axel-config
--cflags`
7477 LIBS=`axel-config
--libs`
7478 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7479 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7480 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7481 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7485 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7487 # Is the header compilable?
7488 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7489 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7490 cat >conftest.$ac_ext <<_ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 $ac_includes_default
7497 #include <QGui/Viewer.h>
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7503 *) ac_try_echo
=$ac_try;;
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7508 grep -v '^ *+' conftest.er1
>conftest.err
7510 cat conftest.err
>&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_cxx_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.
$ac_objext; then
7516 ac_header_compiler
=yes
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.
$ac_ext >&5
7521 ac_header_compiler
=no
7524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7526 echo "${ECHO_T}$ac_header_compiler" >&6; }
7528 # Is the header present?
7529 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7530 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7531 cat >conftest.
$ac_ext <<_ACEOF
7534 cat confdefs.h
>>conftest.
$ac_ext
7535 cat >>conftest.
$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537 #include <QGui/Viewer.h>
7539 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7542 *) ac_try_echo=$ac_try;;
7544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7547 grep -v '^ *+' conftest.er1 >conftest.err
7549 cat conftest.err >&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } >/dev/null && {
7552 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7553 test ! -s conftest.err
7555 ac_header_preproc=yes
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7560 ac_header_preproc=no
7563 rm -f conftest.err conftest.$ac_ext
7564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7565 echo "${ECHO_T}$ac_header_preproc" >&6; }
7567 # So? What about this header?
7568 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7570 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7571 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7573 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7574 ac_header_preproc=yes
7577 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7578 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7579 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7580 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7582 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7584 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7586 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7588 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7592 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7593 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7594 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7597 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7599 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7600 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7603 if test $ac_cv_header_QGui_Viewer_h = yes; then
7604 { echo "$as_me:$LINENO: checking for axel" >&5
7605 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7613 #include <QGui/Viewer.h>
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (ac_try="$ac_link"
7628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7629 *) ac_try_echo
=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_link") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1
>conftest.err
7636 cat conftest.err
>&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_cxx_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest
$ac_exeext &&
7642 $as_test_x conftest
$ac_exeext; then
7644 { echo "$as_me:$LINENO: result: yes" >&5
7645 echo "${ECHO_T}yes" >&6; }
7647 cat >>confdefs.h
<<\_ACEOF
7651 AXEL_CFLAGS
="$CPPFLAGS"
7652 if test "$with_axel" = "linked" ; then
7653 AXEL_LDFLAGS
="$LIBS"
7655 cat >>confdefs.h
<<\_ACEOF
7656 #define LINKED_AXEL 1
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.
$ac_ext >&5
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7670 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7671 conftest
$ac_exeext conftest.
$ac_ext
7677 CPPFLAGS
="$SAVE_CPPFLAGS"
7678 LDFLAGS
="$SAVE_LDFLAGS"
7684 #--------------------------------------------------------------------
7685 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7686 #--------------------------------------------------------------------
7688 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7689 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7690 if test -z "$GUILE_CFLAGS"; then
7691 CXXFLAGS
="`guile-config compile`"
7693 CXXFLAGS
="$GUILE_CFLAGS"
7695 cat >conftest.
$ac_ext <<_ACEOF
7698 cat confdefs.h
>>conftest.
$ac_ext
7699 cat >>conftest.
$ac_ext <<_ACEOF
7700 /* end confdefs.h. */
7702 #include <guile/gh.h>
7703 #include <libguile.h>
7704 typedef SCM (*FN)(...);
7705 static SCM identity (SCM x) { return x; }
7706 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7717 rm -f conftest.
$ac_objext
7718 if { (ac_try
="$ac_compile"
7720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7726 grep -v '^ *+' conftest.er1 >conftest.err
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_cxx_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.$ac_objext; then
7736 cat >>confdefs.h <<\_ACEOF
7740 { echo "$as_me:$LINENO: result: yes" >&5
7741 echo "${ECHO_T}yes" >&6; }
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7757 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7758 if test -z "$GUILE_CFLAGS"; then
7759 CXXFLAGS="`guile-config compile
`"
7761 CXXFLAGS="$GUILE_CFLAGS"
7763 cat >conftest.$ac_ext <<_ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h. */
7770 #include <guile/gh.h>
7771 #include <libguile.h>
7772 void print_string (SCM s) {
7774 char* r= gh_scm2newstr (s, &len_r); }
7785 rm -f conftest.$ac_objext
7786 if { (ac_try="$ac_compile"
7788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7789 *) ac_try_echo
=$ac_try;;
7791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7792 (eval "$ac_compile") 2>conftest.er1
7794 grep -v '^ *+' conftest.er1
>conftest.err
7796 cat conftest.err
>&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); } && {
7799 test -z "$ac_cxx_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.
$ac_objext; then
7804 cat >>confdefs.h
<<\_ACEOF
7805 #define guile_str_size_t int
7808 { echo "$as_me:$LINENO: result: int" >&5
7809 echo "${ECHO_T}int" >&6; }
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.
$ac_ext >&5
7817 cat >>confdefs.h
<<\_ACEOF
7818 #define guile_str_size_t size_t
7821 { echo "$as_me:$LINENO: result: size_t" >&5
7822 echo "${ECHO_T}size_t" >&6; }
7826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7829 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7830 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7831 SAVE_CPPFLAGS
="$CPPFLAGS"
7832 SAVE_LDFLAGS
="$LDFLAGS"
7834 CPPFLAGS
="$GUILE_CFLAGS"
7836 LIBS
="$GUILE_LDFLAGS"
7837 cat >conftest.
$ac_ext <<_ACEOF
7840 cat confdefs.h
>>conftest.
$ac_ext
7841 cat >>conftest.
$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7844 #include <guile/gh.h>
7852 static void my_main (int argc, char** argv) {}
7853 static void install_guile () {
7855 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7857 gh_enter (0, NULL, my_main);
7861 dummy::install_guile ();
7867 rm -f conftest.
$ac_objext conftest
$ac_exeext
7868 if { (ac_try
="$ac_link"
7870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874 (eval "$ac_link") 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } && {
7881 test -z "$ac_cxx_werror_flag" ||
7882 test ! -s conftest.err
7883 } && test -s conftest$ac_exeext &&
7884 $as_test_x conftest$ac_exeext; then
7885 tm_link_guile_static="yes"
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 tm_link_guile_static="no"
7893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7894 conftest$ac_exeext conftest.$ac_ext
7896 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7897 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7898 if test "$tm_link_guile_static" = "no" ; then
7899 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7900 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7901 LIBS="$GUILE_LDFLAGS -lltdl"
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7909 #include <guile/gh.h>
7917 static void my_main (int argc, char** argv) {}
7918 static void install_guile () {
7920 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7922 gh_enter (0, NULL, my_main);
7926 dummy::install_guile ();
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (ac_try="$ac_link"
7935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7936 *) ac_try_echo
=$ac_try;;
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939 (eval "$ac_link") 2>conftest.er1
7941 grep -v '^ *+' conftest.er1
>conftest.err
7943 cat conftest.err
>&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && {
7946 test -z "$ac_cxx_werror_flag" ||
7947 test ! -s conftest.err
7948 } && test -s conftest
$ac_exeext &&
7949 $as_test_x conftest
$ac_exeext; then
7950 tm_link_guile_static_ltdl
="yes"
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.
$ac_ext >&5
7955 tm_link_guile_static_ltdl
="no"
7958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7959 conftest
$ac_exeext conftest.
$ac_ext
7961 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7962 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7963 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7964 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
7966 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7967 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7968 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
7969 cat >conftest.
$ac_ext <<_ACEOF
7972 cat confdefs.h
>>conftest.
$ac_ext
7973 cat >>conftest.
$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7976 #include <guile/gh.h>
7984 static void my_main (int argc, char** argv) {}
7985 static void install_guile () {
7987 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7989 gh_enter (0, NULL, my_main);
7993 dummy::install_guile ();
7999 rm -f conftest.
$ac_objext conftest
$ac_exeext
8000 if { (ac_try
="$ac_link"
8002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_link") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_cxx_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest$ac_exeext &&
8016 $as_test_x conftest$ac_exeext; then
8017 tm_link_guile_static_ltdl_ldl="yes"
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 tm_link_guile_static_ltdl_ldl="no"
8025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8026 conftest$ac_exeext conftest.$ac_ext
8028 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8029 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8030 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8031 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8033 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8034 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8038 CPPFLAGS="$SAVE_CPPFLAGS"
8039 LDFLAGS="$SAVE_LDFLAGS"
8042 #--------------------------------------------------------------------
8043 # Handle different systems case by case
8044 #--------------------------------------------------------------------
8046 CONFIG_OS="GNU_LINUX"
8047 CONFIG_OS_SUFFIX="gnu-linux"
8048 CONFIG_OS_COMPAT="Unix"
8051 CONFIG_CXXTEMPLATE=""
8052 CONFIG_STD_SETENV="#define STD_SETENV"
8054 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8055 CONFIG_CHMOD="chmod -f"
8056 CONFIG_CXXOPTIMIZE="-O2"
8057 CONFIG_BSTATIC="-Wl,-Bstatic"
8058 CONFIG_BSHARED="-Wl,-Bdynamic"
8060 CONFIG_BPATH="-Wl,-rpath,"
8061 CONFIG_WORD_LENGTH="4"
8062 CONFIG_WORD_LENGTH_INC="3"
8063 CONFIG_WORD_MASK="0xfffffffc"
8064 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8066 X11_CFLAGS="$X_CFLAGS"
8067 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8069 { echo "$as_me:$LINENO: checking for void *" >&5
8070 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8071 if test "${ac_cv_type_void_p+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 typedef void * ac__type_new_;
8085 if ((ac__type_new_ *) 0)
8087 if (sizeof (ac__type_new_))
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8097 *) ac_try_echo
=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1
>conftest.err
8104 cat conftest.err
>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_cxx_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.
$ac_objext; then
8110 ac_cv_type_void_p
=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.
$ac_ext >&5
8115 ac_cv_type_void_p
=no
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8121 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8123 # The cast to long int works around a bug in the HP C Compiler
8124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8126 # This bug is HP SR number 8606223364.
8127 { echo "$as_me:$LINENO: checking size of void *" >&5
8128 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8129 if test "${ac_cv_sizeof_void_p+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 if test "$cross_compiling" = yes; then
8133 # Depending upon the size, compute the lo and hi bounds.
8134 cat >conftest.
$ac_ext <<_ACEOF
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 typedef void * ac__type_sizeof_;
8145 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8152 rm -f conftest.
$ac_objext
8153 if { (ac_try
="$ac_compile"
8155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8156 *) ac_try_echo=$ac_try;;
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159 (eval "$ac_compile") 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } && {
8166 test -z "$ac_cxx_werror_flag" ||
8167 test ! -s conftest.err
8168 } && test -s conftest.$ac_objext; then
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef void * ac__type_sizeof_;
8182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8193 *) ac_try_echo
=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8198 grep -v '^ *+' conftest.er1
>conftest.err
8200 cat conftest.err
>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_cxx_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.
$ac_objext; then
8206 ac_hi
=$ac_mid; break
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.
$ac_ext >&5
8211 ac_lo
=`expr $ac_mid + 1`
8212 if test $ac_lo -le $ac_mid; then
8216 ac_mid
=`expr 2 '*' $ac_mid + 1`
8219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.
$ac_ext >&5
8225 cat >conftest.
$ac_ext <<_ACEOF
8228 cat confdefs.h
>>conftest.
$ac_ext
8229 cat >>conftest.
$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 $ac_includes_default
8232 typedef void * ac__type_sizeof_;
8236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8243 rm -f conftest.
$ac_objext
8244 if { (ac_try
="$ac_compile"
8246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8247 *) ac_try_echo=$ac_try;;
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250 (eval "$ac_compile") 2>conftest.er1
8252 grep -v '^ *+' conftest.er1 >conftest.err
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } && {
8257 test -z "$ac_cxx_werror_flag" ||
8258 test ! -s conftest.err
8259 } && test -s conftest.$ac_objext; then
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 typedef void * ac__type_sizeof_;
8273 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8284 *) ac_try_echo
=$ac_try;;
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8289 grep -v '^ *+' conftest.er1
>conftest.err
8291 cat conftest.err
>&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_cxx_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.
$ac_objext; then
8297 ac_lo
=$ac_mid; break
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.
$ac_ext >&5
8302 ac_hi
=`expr '(' $ac_mid ')' - 1`
8303 if test $ac_mid -le $ac_hi; then
8307 ac_mid
=`expr 2 '*' $ac_mid`
8310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.
$ac_ext >&5
8319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8323 # Binary search between lo and hi bounds.
8324 while test "x$ac_lo" != "x$ac_hi"; do
8325 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8326 cat >conftest.
$ac_ext <<_ACEOF
8329 cat confdefs.h
>>conftest.
$ac_ext
8330 cat >>conftest.
$ac_ext <<_ACEOF
8331 /* end confdefs.h. */
8332 $ac_includes_default
8333 typedef void * ac__type_sizeof_;
8337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8344 rm -f conftest.
$ac_objext
8345 if { (ac_try
="$ac_compile"
8347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8348 *) ac_try_echo=$ac_try;;
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351 (eval "$ac_compile") 2>conftest.er1
8353 grep -v '^ *+' conftest.er1 >conftest.err
8355 cat conftest.err >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); } && {
8358 test -z "$ac_cxx_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest.$ac_objext; then
8363 echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8366 ac_lo=`expr '(' $ac_mid ')' + 1`
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8373 '') if test "$ac_cv_type_void_p" = yes; then
8374 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8375 See \`config.log
' for more details." >&5
8376 echo "$as_me: error: cannot compute sizeof (void *)
8377 See \`config.log' for more details.
" >&2;}
8378 { (exit 77); exit 77; }; }
8380 ac_cv_sizeof_void_p=0
8384 cat >conftest.$ac_ext <<_ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 typedef void * ac__type_sizeof_;
8392 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8393 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8400 FILE *f = fopen ("conftest.val
", "w
");
8403 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8405 long int i = longval ();
8406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8408 fprintf (f, "%ld
\n", i);
8412 unsigned long int i = ulongval ();
8413 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8415 fprintf (f, "%lu
\n", i);
8417 return ferror (f) || fclose (f) != 0;
8423 rm -f conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_link") 2>&5
8432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_sizeof_void_p=`cat conftest.val`
8445 echo "$as_me: program exited with status
$ac_status" >&5
8446 echo "$as_me: failed program was
:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8450 if test "$ac_cv_type_void_p" = yes; then
8451 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8452 See \
`config.log' for more details." >&5
8453 echo "$as_me: error: cannot compute sizeof (void *)
8454 See \`config.log
' for more details." >&2;}
8455 { (exit 77); exit 77; }; }
8457 ac_cv_sizeof_void_p=0
8460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8464 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8465 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8469 cat >>confdefs.h <<_ACEOF
8470 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8474 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8475 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8476 if test "$ac_cv_sizeof_void_p" = "8"; then
8477 { echo "$as_me:$LINENO: result: yes" >&5
8478 echo "${ECHO_T}yes" >&6; }
8479 CONFIG_WORD_LENGTH="8"
8480 CONFIG_WORD_LENGTH_INC="7"
8481 CONFIG_WORD_MASK="0xfffffffffffffff8"
8482 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8484 { echo "$as_me:$LINENO: result: no" >&5
8485 echo "${ECHO_T}no" >&6; }
8489 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8490 if test -f "$ac_dir/install-sh"; then
8492 ac_install_sh="$ac_aux_dir/install-sh -c"
8494 elif test -f "$ac_dir/install.sh"; then
8496 ac_install_sh="$ac_aux_dir/install.sh -c"
8498 elif test -f "$ac_dir/shtool"; then
8500 ac_install_sh="$ac_aux_dir/shtool install -c"
8504 if test -z "$ac_aux_dir"; then
8505 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8506 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8507 { (exit 1); exit 1; }; }
8510 # These three variables are undocumented and unsupported,
8511 # and are intended to be withdrawn in a future Autoconf release.
8512 # They can cause serious problems if a builder's
source tree is
in a directory
8513 # whose full name contains unusual characters.
8514 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8515 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8516 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8519 # Make sure we can run config.sub.
8520 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
8521 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8522 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8523 { (exit 1); exit 1; }; }
8525 { echo "$as_me:$LINENO: checking build system type" >&5
8526 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8527 if test "${ac_cv_build+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 ac_build_alias
=$build_alias
8531 test "x$ac_build_alias" = x
&&
8532 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
8533 test "x$ac_build_alias" = x
&&
8534 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8535 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8536 { (exit 1); exit 1; }; }
8537 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8538 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8539 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8540 { (exit 1); exit 1; }; }
8543 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8544 echo "${ECHO_T}$ac_cv_build" >&6; }
8545 case $ac_cv_build in
8547 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8548 echo "$as_me: error: invalid value of canonical build" >&2;}
8549 { (exit 1); exit 1; }; };;
8552 ac_save_IFS
=$IFS; IFS
='-'
8558 # Remember, the first character of IFS is used to create $*,
8559 # except with old shells:
8562 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
8565 { echo "$as_me:$LINENO: checking host system type" >&5
8566 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8567 if test "${ac_cv_host+set}" = set; then
8568 echo $ECHO_N "(cached) $ECHO_C" >&6
8570 if test "x$host_alias" = x
; then
8571 ac_cv_host
=$ac_cv_build
8573 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8574 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8575 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8576 { (exit 1); exit 1; }; }
8580 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8581 echo "${ECHO_T}$ac_cv_host" >&6; }
8584 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8585 echo "$as_me: error: invalid value of canonical host" >&2;}
8586 { (exit 1); exit 1; }; };;
8589 ac_save_IFS
=$IFS; IFS
='-'
8595 # Remember, the first character of IFS is used to create $*,
8596 # except with old shells:
8599 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
8603 i
*86-*-linux* | x86_64-
*-linux*)
8604 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8605 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8606 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8608 i
*86-*-freebsd* | x86_64-
*-freebsd*)
8609 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8610 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8611 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8614 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8615 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8616 CONFIG_CXXOPTIMIZE
="-O3"
8617 CONFIG_BPATH
="-Wl,-R,"
8618 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
8621 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8622 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8623 CONFIG_OS_COMPAT
="Windows"
8624 LDRT
="-lmingw32 -lmingwex"
8627 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8628 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8630 CONFIG_BFLAGS
="-Wl,-stack,8388608"
8631 # CXX="export CYGWIN=check_case:strict; $CXX"
8635 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8637 CONFIG_CXXFLAGS
="-I${prefix}/include"
8639 CONFIG_BFLAGS
="-framework Cocoa"
8642 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
8645 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8646 CONFIG_CXXFLAGS
="-I${prefix}/include"
8650 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
8653 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8654 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8655 CONFIG_OS
="POWERPC_GNU_LINUX"
8656 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8659 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8660 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8662 CONFIG_OS_SUFFIX
="sun"
8665 CONFIG_BPATH
="-Wl,-R,"
8666 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
8667 CONFIG_WORD_LENGTH
="8"
8668 CONFIG_WORD_LENGTH_INC
="7"
8669 CONFIG_WORD_MASK
="0xfffffff8"
8670 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
8671 CONFIG_STD_SETENV
=""
8674 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8675 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8676 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8677 CONFIG_WORD_LENGTH
="8"
8678 CONFIG_WORD_LENGTH_INC
="7"
8679 CONFIG_WORD_MASK
="0xfffffff8"
8680 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
8681 CONFIG_STD_SETENV
=""
8684 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8685 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8687 CONFIG_BSHARED
="-shared"
8688 CONFIG_STD_SETENV
=""
8691 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8692 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8694 CONFIG_BSHARED
="-shared"
8697 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8698 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8699 CONFIG_STD_SETENV
=""
8702 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8703 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8705 CONFIG_BSHARED
="-shared"
8708 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8709 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8710 CONFIG_CXXFLAGS
="$CONFIG_CXXFLAGS -fPIC"
8712 CONFIG_BSHARED
="-shared"
8715 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8722 X11_LDFLAGS
="$X_LIBS -lX11"
8723 CONFIG_WORD_MASK
="0xfffffff8"
8724 CONFIG_STD_SETENV
=""
8725 CONFIG_CHMOD
="chmod"
8726 CONFIG_LIB_PATH
="LD_LIBRARYN32_PATH"
8728 m68k-
*-linux* | mips-
*-linux* | mipsel-
*-linux* | arm
*-*-linux*)
8729 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8730 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8733 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8734 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8737 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8738 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8742 #--------------------------------------------------------------------
8743 # Temporary fix for link problem
8744 #--------------------------------------------------------------------
8746 case "$GXX_VERSION" in
8748 CONFIG_BSTATIC
="-static"
8749 CONFIG_BSHARED
="-dynamic"
8753 #--------------------------------------------------------------------
8754 # Memory allocation options
8755 #--------------------------------------------------------------------
8757 # Check whether --enable-fastalloc was given.
8758 if test "${enable_fastalloc+set}" = set; then
8759 enableval
=$enable_fastalloc;
8761 enable_fastalloc
="yes"
8764 case "$enable_fastalloc" in
8768 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8769 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8771 cat >>confdefs.h
<<\_ACEOF
8772 #define NO_FAST_ALLOC 1
8777 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8778 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8779 { (exit 1); exit 1; }; }
8783 #--------------------------------------------------------------------
8784 # Experimental options
8785 #--------------------------------------------------------------------
8787 # Check whether --enable-experimental was given.
8788 if test "${enable_experimental+set}" = set; then
8789 enableval
=$enable_experimental;
8791 enable_experimental
="no"
8794 case "$enable_experimental" in
8796 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8797 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8799 cat >>confdefs.h
<<\_ACEOF
8800 #define EXPERIMENTAL 1
8803 CONFIG_EXPERIMENTAL
="Memorizer Environment Evaluate"
8806 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8807 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8808 CONFIG_EXPERIMENTAL
=""
8811 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8812 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8813 { (exit 1); exit 1; }; }
8818 #--------------------------------------------------------------------
8819 # MacOS X extensions (spellchecker, image loading)
8820 #--------------------------------------------------------------------
8822 # Check whether --enable-macosx-extensions was given.
8823 if test "${enable_macosx_extensions+set}" = set; then
8824 enableval
=$enable_macosx_extensions;
8826 enable_macosx_extensions
="no"
8829 case "$enable_macosx_extensions" in
8831 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8832 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8834 cat >>confdefs.h
<<\_ACEOF
8835 #define MACOSX_EXTENSIONS 1
8838 CONFIG_MACOS
="MacOS"
8841 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8842 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8846 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8847 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8848 { (exit 1); exit 1; }; }
8853 #--------------------------------------------------------------------
8855 #--------------------------------------------------------------------
8861 # Check whether --enable-qt was given.
8862 if test "${enable_qt+set}" = set; then
8863 enableval
=$enable_qt;
8869 case "$enable_qt" in
8872 if test -r "/c/Qt"; then
8874 qt_bin
="`dirname $MOC`"
8875 qt_home
="`dirname $qt_bin`"
8876 qt_version
="`basename $qt_home`"
8877 qt_parent
="`dirname $qt_home`"
8878 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."
8879 QT_CXXFLAGS
="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8880 QT_LDFLAGS
="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8881 QT_LIBS
="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8882 if test "$qt_parent" != "/c/Qt"; then
8890 test x
"$TROLL" != x
&& echo 'ViM rox emacs.'
8893 # Check whether --with-qt was given.
8894 if test "${with_qt+set}" = set; then
8895 withval
=$with_qt; QT_PATH
=$withval
8902 if test -d /usr
/local
/Trolltech
; then
8903 # Try to find the latest version.
8904 tmp_qt_paths
=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8905 | xargs | sed 's/ */:/g'`
8909 if test -z "$QMAKE"; then
8910 for ac_prog
in qmake
8912 # Extract the first word of "$ac_prog", so it can be a program name with args.
8913 set dummy
$ac_prog; ac_word
=$2
8914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8916 if test "${ac_cv_path_QMAKE+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
8924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8925 as_dummy
="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8926 for as_dir
in $as_dummy
8929 test -z "$as_dir" && as_dir
=.
8930 for ac_exec_ext
in '' $ac_executable_extensions; do
8931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8932 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
8933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 QMAKE
=$ac_cv_path_QMAKE
8944 if test -n "$QMAKE"; then
8945 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8946 echo "${ECHO_T}$QMAKE" >&6; }
8948 { echo "$as_me:$LINENO: result: no" >&5
8949 echo "${ECHO_T}no" >&6; }
8953 test -n "$QMAKE" && break
8955 test -n "$QMAKE" || QMAKE
="missing"
8958 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8959 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8960 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8961 echo "${ECHO_T}$QMAKE" >&6; }
8963 if test x
"$QMAKE" = xmissing
; then
8964 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8965 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8966 { (exit 1); exit 1; }; }
8969 # Find moc (Meta Object Compiler).
8970 if test -z "$MOC"; then
8973 # Extract the first word of "$ac_prog", so it can be a program name with args.
8974 set dummy
$ac_prog; ac_word
=$2
8975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8977 if test "${ac_cv_path_MOC+set}" = set; then
8978 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 ac_cv_path_MOC
="$MOC" # Let the user override the test with a path.
8985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8986 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
8987 for as_dir
in $as_dummy
8990 test -z "$as_dir" && as_dir
=.
8991 for ac_exec_ext
in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_path_MOC
="$as_dir/$ac_word$ac_exec_ext"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 if test -n "$MOC"; then
9006 { echo "$as_me:$LINENO: result: $MOC" >&5
9007 echo "${ECHO_T}$MOC" >&6; }
9009 { echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6; }
9014 test -n "$MOC" && break
9016 test -n "$MOC" || MOC
="missing"
9019 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9020 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9021 { echo "$as_me:$LINENO: result: $MOC" >&5
9022 echo "${ECHO_T}$MOC" >&6; }
9024 if test x
"$MOC" = xmissing
; then
9025 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9026 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9027 { (exit 1); exit 1; }; }
9030 # Find uic (User Interface Compiler).
9031 if test -z "$UIC"; then
9034 # Extract the first word of "$ac_prog", so it can be a program name with args.
9035 set dummy
$ac_prog; ac_word
=$2
9036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9038 if test "${ac_cv_path_UIC+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 ac_cv_path_UIC
="$UIC" # Let the user override the test with a path.
9046 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9047 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9048 for as_dir
in $as_dummy
9051 test -z "$as_dir" && as_dir
=.
9052 for ac_exec_ext
in '' $ac_executable_extensions; do
9053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9054 ac_cv_path_UIC
="$as_dir/$ac_word$ac_exec_ext"
9055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9066 if test -n "$UIC"; then
9067 { echo "$as_me:$LINENO: result: $UIC" >&5
9068 echo "${ECHO_T}$UIC" >&6; }
9070 { echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6; }
9075 test -n "$UIC" && break
9077 test -n "$UIC" || UIC
="missing"
9080 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9081 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9082 { echo "$as_me:$LINENO: result: $UIC" >&5
9083 echo "${ECHO_T}$UIC" >&6; }
9085 if test x
"$UIC" = xmissing
; then
9086 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9087 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9088 { (exit 1); exit 1; }; }
9091 # Find rcc (Qt Resource Compiler).
9094 # Extract the first word of "$ac_prog", so it can be a program name with args.
9095 set dummy
$ac_prog; ac_word
=$2
9096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9098 if test "${ac_cv_path_RCC+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_cv_path_RCC
="$RCC" # Let the user override the test with a path.
9106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9107 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9108 for as_dir
in $as_dummy
9111 test -z "$as_dir" && as_dir
=.
9112 for ac_exec_ext
in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9114 ac_cv_path_RCC
="$as_dir/$ac_word$ac_exec_ext"
9115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 if test -n "$RCC"; then
9127 { echo "$as_me:$LINENO: result: $RCC" >&5
9128 echo "${ECHO_T}$RCC" >&6; }
9130 { echo "$as_me:$LINENO: result: no" >&5
9131 echo "${ECHO_T}no" >&6; }
9135 test -n "$RCC" && break
9137 test -n "$RCC" || RCC
="false"
9139 if test x
"$UIC" = xfalse
; then
9140 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9141 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9144 # If we don't know the path to Qt, guess it from the path to qmake.
9145 if test x
"$QT_PATH" = x
; then
9146 QT_PATH
=`dirname "$QMAKE"`
9148 if test x
"$QT_PATH" = x
; then
9149 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9150 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9151 { (exit 1); exit 1; }; }
9154 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9155 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9156 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9157 echo "${ECHO_T}$QT_PATH" >&6; }
9159 # Get ready to build a test-app with Qt.
9161 # Look for a writable temporary directory.
9163 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
9164 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9166 for i
in /tmp
/var
/tmp
; do
9167 if test -d "$i" && test -w "$i"; then
9170 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9176 # Kludge!! QMake has a very strange behavior. For instance, if you
9177 # install Qt under your $HOME and run QMake somewhere else under your
9178 # $HOME, it will try to be clever and produce Makefiles with relative
9179 # include paths. In order to avoid this, we will test QMake from a
9180 # temporary directory (usually /tmp). Note that this problem was only
9181 # observed with Qt 4.
9182 my_configure_pwd
=`pwd`
9183 my_tmpdir
="$TMPDIR/conftest$$.dir"
9184 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
9185 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9189 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9190 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9191 { (exit 1); exit 1; }; }
9193 cat >conftest.h
<<_ASEOF
9196 class Foo: public QObject
9203 void setValue(int value);
9205 void valueChanged(int newValue);
9211 cat >conftest.cpp
<<_ASEOF
9212 #include "conftest.h"
9216 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9219 void Foo::setValue(int value)
9229 if $QMAKE -project; then :; else
9230 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9231 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9232 { (exit 1); exit 1; }; }
9235 # Find the .pro file generated by qmake.
9236 pro_file
='conftest.dir.pro'
9237 test -f $pro_file || pro_file
=`echo *.pro`
9238 if test -f "$pro_file"; then :; else
9239 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9240 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9241 { (exit 1); exit 1; }; }
9250 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9251 sed 's/^/| /' "$pro_file" >&5
9253 additional_qmake_flags
=""
9256 additional_qmake_flags
="-spec macx-g++"
9260 if $QMAKE ${additional_qmake_flags} ; then :; else
9261 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9262 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9263 { (exit 1); exit 1; }; }
9265 # Try to compile a simple Qt app.
9266 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9267 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9268 if test "${at_cv_qt_build+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 if $MAKE >&5 2>&1; then
9275 at_cv_qt_build
='ok, looks like Qt 4'
9277 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9279 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9280 if $MAKE >&5 2>&1; then
9281 at_cv_qt_build
='ok, looks like Qt 3'
9283 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9284 # installed in debug mode and qmake tries (by default) to build apps in
9285 # debug mode => Try again in release mode.
9286 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9289 # Tweak the value of CONFIG in the .pro file for +release.
9292 for at_mod
in +release
; do
9293 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
9302 echo "$qt_conf" |
sed 1d
>>"$pro_file"
9305 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9306 if $MAKE >&5 2>&1; then
9307 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
9309 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9311 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9312 if $MAKE >&5 2>&1; then
9313 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
9316 echo "$as_me:$LINENO: failed program was:" >&5
9317 sed 's/^/| /' conftest.h
>&5
9318 echo "$as_me:$LINENO: failed program was:" >&5
9319 sed 's/^/| /' conftest.cpp
>&5
9320 fi # if make with Qt3-style #include and release mode forced.
9321 fi # if make with Qt4-style #include and release mode forced.
9322 fi # if make with Qt3-style #include.
9323 fi # if make with Qt4-style #include.
9326 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9327 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9328 if test x
"$at_cv_qt_build" = xko
; then
9329 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9330 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9331 { (exit 1); exit 1; }; }
9333 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9336 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9337 # It starts by removing the beginning of the line, removing references to
9338 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9339 # all variable uses by QT_.
9340 qt_sed_filter
='s///;
9343 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9345 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9346 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9347 # Makefile.Release. The reason is that the main difference is that release
9348 # uses -Os and debug -g. We can override -Os by passing another -O but we
9349 # usually don't override -g.
9350 if test -f Makefile.Release
; then
9351 at_mfile
='Makefile.Release'
9355 if test -f $at_mfile; then :; else
9356 cd "$my_configure_pwd"
9357 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9358 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9359 { (exit 1); exit 1; }; }
9362 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9363 if test -z "$QT_DEFINES"; then
9364 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9365 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9366 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9369 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9371 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9372 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9373 QT_DEFINES
="$at_cv_env_QT_DEFINES"
9376 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9377 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9378 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9379 echo "${ECHO_T}$QT_DEFINES" >&6; }
9381 # Find the CFLAGS of Qt (We can use Qt in C?!)
9382 if test -z "$QT_CFLAGS"; then
9383 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9384 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9385 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9390 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9391 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9392 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
9395 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9396 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9397 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9398 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9400 # Find the CXXFLAGS of Qt.
9401 if test -z "$QT_CXXFLAGS"; then
9402 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9403 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9404 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9409 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9410 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9411 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
9414 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9415 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9416 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9417 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9419 # Find the INCPATH of Qt.
9420 if test -z "$QT_INCPATH"; then
9421 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9422 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9423 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9428 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9429 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9430 QT_INCPATH
="$at_cv_env_QT_INCPATH"
9433 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9434 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9435 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9436 echo "${ECHO_T}$QT_INCPATH" >&6; }
9438 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
9441 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9442 if test -z "$QT_LDFLAGS"; then
9443 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9444 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9445 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9450 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9451 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9452 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
9455 QT_LFLAGS
=$QT_LDFLAGS
9457 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9458 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9459 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9460 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9462 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9463 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9470 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9471 echo "${ECHO_T}$at_darwin" >&6; }
9473 # Find the LIBS of Qt.
9474 if test -z "$QT_LIBS"; then
9475 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9476 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9477 if test "${at_cv_env_QT_LIBS+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9481 if test x
$at_darwin = xyes
; then
9482 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9483 # -F properly. The "bug" has been fixed on 22 October 2006
9484 # by Peter O'Gorman but we provide backward compatibility here.
9485 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
9486 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9490 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9491 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9492 QT_LIBS
="$at_cv_env_QT_LIBS"
9495 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9496 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9497 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9498 echo "${ECHO_T}$QT_LIBS" >&6; }
9500 cd "$my_configure_pwd" ||
echo 'WTF!'
9505 if test x
"$at_cv_qt_build" = xko
; then
9506 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9507 echo "$as_me: error: cannot find Qt!" >&2;}
9508 { (exit 1); exit 1; }; }
9510 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9511 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9516 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9517 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9520 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9521 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9522 { (exit 1); exit 1; }; }
9526 # Check whether --enable-cocoa was given.
9527 if test "${enable_cocoa+set}" = set; then
9528 enableval
=$enable_cocoa;
9533 case "$enable_cocoa" in
9535 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9536 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9538 COCOA_LDFLAGS
="-framework Cocoa"
9542 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9543 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9546 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9547 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9548 { (exit 1); exit 1; }; }
9552 case "$CONFIG_GUI" in
9554 CONFIG_X11
="X11 Widkit Ghostscript"
9555 CONFIG_GUI_DEFINE
="X11TEXMACS"
9556 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9559 CONFIG_COCOA
="Cocoa"
9560 CONFIG_GUI_DEFINE
="AQUATEXMACS"
9561 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9565 CONFIG_GUI_DEFINE
="QTTEXMACS"
9566 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9583 #--------------------------------------------------------------------
9585 #--------------------------------------------------------------------
9587 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
9588 if test "$enable_cocoa" = "yes"; then
9589 STD_DEBUG_FLAGS
="-fno-exceptions"
9592 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9593 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9594 CXXFLAGS
="$STD_DEBUG_FLAGS"
9595 cat >conftest.
$ac_ext <<_ACEOF
9598 cat confdefs.h
>>conftest.
$ac_ext
9599 cat >>conftest.
$ac_ext <<_ACEOF
9600 /* end confdefs.h. */
9602 int some_variable = 0;
9613 rm -f conftest.
$ac_objext
9614 if { (ac_try
="$ac_compile"
9616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_cxx_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9631 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9632 { echo "$as_me:$LINENO: result: yes" >&5
9633 echo "${ECHO_T}yes" >&6; }
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9640 CONFIG_CXXDIALECT=""
9641 { echo "$as_me:$LINENO: result: no" >&5
9642 echo "${ECHO_T}no" >&6; }
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9650 # Check whether --enable-debug was given.
9651 if test "${enable_debug+set}" = set; then
9652 enableval=$enable_debug;
9658 if test "$enable_debug" = "yes"; then
9659 if test "$GXX" = "yes"; then
9660 enable_debug="-ggdb"
9666 if test "$enable_debug" = "no"; then
9667 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9668 echo "${ECHO_T}disabling debugging" >&6; }
9669 CONFIG_STRIP="strip"
9671 optimize_default="yes"
9673 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9674 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9676 CONFIG_CXXDEBUG="$enable_debug"
9677 optimize_default="no"
9680 # Check whether --enable-assert was given.
9681 if test "${enable_assert+set}" = set; then
9682 enableval=$enable_assert;
9688 if test "$enable_assert" = "no"; then
9689 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9690 echo "${ECHO_T}disabling assertion checking" >&6; }
9692 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9693 echo "${ECHO_T}enabling assertion checking" >&6; }
9695 cat >>confdefs.h <<\_ACEOF
9696 #define DEBUG_ASSERT 1
9701 #--------------------------------------------------------------------
9703 #--------------------------------------------------------------------
9705 case "$GXX_VERSION" in
9707 CONFIG_CXXWARNING="";
9710 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9714 # Check whether --enable-warnings was given.
9715 if test "${enable_warnings+set}" = set; then
9716 enableval=$enable_warnings;
9718 enable_warnings="yes"
9721 case "$enable_warnings" in
9723 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9724 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9726 CONFIG_CXXWARNING=""
9727 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9728 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9730 CONFIG_CXXWARNING="$enable_warnings"
9731 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9732 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9735 #--------------------------------------------------------------------
9736 # Optimization options
9737 #--------------------------------------------------------------------
9739 if test "$optimize_default" = "yes"; then
9740 case "$GXX_VERSION" in
9741 3.3.3 | 3.3.4 | 4.*)
9743 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9745 i*86-*-linux-gnu* | i*86-*-freebsd*)
9746 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9747 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9748 optimize_default="no-inline"
9751 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9752 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9753 optimize_default="no-inline"
9760 # Check whether --enable-optimize was given.
9761 if test "${enable_optimize+set}" = set; then
9762 enableval=$enable_optimize;
9764 enable_optimize="$optimize_default"
9768 case "$enable_optimize" in
9770 # keep optimization options
9771 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9772 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9774 optimize_no_inline="-fno-default-inline -fno-inline"
9775 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9776 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9777 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9779 CONFIG_CXXOPTIMIZE=""
9780 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9781 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9783 CONFIG_CXXOPTIMIZE="$enable_optimize"
9784 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9785 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9788 #--------------------------------------------------------------------
9789 # Substitute TeXmacs specific configuration parameters
9790 #--------------------------------------------------------------------
9815 #--------------------------------------------------------------------
9816 # Default paths for installation
9817 #--------------------------------------------------------------------
9819 if test "$prefix" = ""; then
9822 if test "$prefix" = "NONE"; then
9825 if test "$exec_prefix" = ""; then
9826 exec_prefix='${prefix}'
9828 if test "$exec_prefix" = "NONE"; then
9829 exec_prefix='${prefix}'
9831 if test "$exec_prefix" = '${prefix}'; then
9832 exec_prefix='${prefix}'
9834 if test "$includedir" = ""; then
9835 includedir='${prefix}/include'
9837 if test "$includedir" = "NONE"; then
9838 includedir='${prefix}/include'
9840 if test "$includedir" = '${prefix}/include'; then
9841 includedir='${prefix}/include'
9843 if test "$libdir" = ""; then
9844 libdir='${exec_prefix}/lib'
9846 if test "$libdir" = "NONE"; then
9847 libdir='${exec_prefix}/lib'
9849 if test "$libdir" = '${exec_prefix}/lib'; then
9850 libdir='${exec_prefix}/lib'
9852 if test "$bindir" = ""; then
9853 bindir='${exec_prefix}/bin'
9855 if test "$bindir" = "NONE"; then
9856 bindir=${exec_prefix}/bin
9858 if test "$bindir" = '${exec_prefix}/bin'; then
9859 bindir='${exec_prefix}/bin'
9861 if test "$datarootdir" = ""; then
9862 datarootdir='${prefix}/share'
9864 if test "$datarootdir" = "NONE"; then
9865 datarootdir='${prefix}/share'
9867 if test "$datarootdir" = '${prefix}/share'; then
9868 datarootdir='${prefix}/share'
9870 if test "$datadir" = ""; then
9871 datadir='${prefix}/share'
9873 if test "$datadir" = "NONE"; then
9874 datadir='${prefix}/share'
9876 if test "$datadir" = '${prefix}/share'; then
9877 datadir='${prefix}/share'
9879 if test "$mandir" = ""; then
9880 mandir='${datarootdir}/man'
9882 if test "$mandir" = "NONE"; then
9883 mandir='${datarootdir}/man'
9885 if test "$mandir" = '${datarootdir}/man'; then
9886 mandir='${datarootdir}/man'
9888 if test "$libexecdir" = ""; then
9889 libexecdir='${exec_prefix}/libexec'
9891 if test "$libexecdir" = "NONE"; then
9892 libexecdir='${exec_prefix}/libexec'
9894 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9895 libexecdir='${exec_prefix}/libexec'
9901 tmsrc=${curdir}/${tmdir}
9902 tmbin=${libexecdir}/${tmdir}
9903 tmdata=${datadir}/${tmdir}
9910 if test "$DEVEL_RELEASE" = "1"; then
9911 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9913 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9915 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9916 if test "$STABLE_RELEASE" = "1"; then
9917 tmstgz=${PACKAGE}-${STABLE_VERSION}
9919 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9921 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9922 if test "$WINDOWS_RELEASE" = "1"; then
9923 tmwin=wintexmacs-${WINDOWS_VERSION}
9925 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9933 #--------------------------------------------------------------------
9935 #--------------------------------------------------------------------
9937 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"
9939 cat >confcache <<\_ACEOF
9940 # This file is a shell script that caches the results of configure
9941 # tests run on this system so they can be shared between configure
9942 # scripts and configure runs, see configure's option --config-cache.
9943 # It is not useful on other systems. If it contains results you don't
9944 # want to keep, you may remove or edit it.
9946 # config.status only pays attention to the cache file if you give it
9947 # the --recheck option to rerun configure.
9949 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9950 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9955 # The following way of writing the cache mishandles newlines in values,
9956 # but we know of no workaround that is simple, portable, and efficient.
9957 # So, we kill variables containing newlines.
9958 # Ultrix sh set writes to stderr and can't be redirected directly,
9959 # and sets the high bit in the cache file unless we assign to the vars.
9961 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9962 eval ac_val
=\$
$ac_var
9966 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9967 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9970 _ | IFS | as_nl
) ;; #(
9971 *) $as_unset $ac_var ;;
9977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9978 *${as_nl}ac_space
=\
*)
9979 # `set' does not quote correctly, so add quotes (double-quote
9980 # substitution turns \\\\ into \\, and sed turns \\ into \).
9983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9986 # `set' quotes correctly as required by POSIX, so do not add quotes.
9987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10000 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10001 if test -w "$cache_file"; then
10002 test "x$cache_file" != "x/dev/null" &&
10003 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10004 echo "$as_me: updating cache $cache_file" >&6;}
10005 cat confcache
>$cache_file
10007 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10008 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10013 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10014 # Let make expand exec_prefix.
10015 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10017 DEFS
=-DHAVE_CONFIG_H
10021 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10022 # 1. Remove the extension, and $U if already installed.
10023 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10024 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10026 # will be set to the directory where LIBOBJS objects are built.
10027 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10028 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10030 LIBOBJS
=$ac_libobjs
10032 LTLIBOBJS
=$ac_ltlibobjs
10036 : ${CONFIG_STATUS=./config.status}
10037 ac_clean_files_save
=$ac_clean_files
10038 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10039 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10040 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10041 cat >$CONFIG_STATUS <<_ACEOF
10043 # Generated by $as_me.
10044 # Run this file to recreate the current configuration.
10045 # Compiler output produced by configure, useful for debugging
10046 # configure, is in config.log if it exists.
10049 ac_cs_recheck=false
10051 SHELL=\${CONFIG_SHELL-$SHELL}
10054 cat >>$CONFIG_STATUS <<\_ACEOF
10055 ## --------------------- ##
10056 ## M4sh Initialization. ##
10057 ## --------------------- ##
10059 # Be more Bourne compatible
10060 DUALCASE
=1; export DUALCASE
# for MKS sh
10061 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10064 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10065 # is contrary to our usage. Disable this feature.
10066 alias -g '${1+"$@"}'='"$@"'
10067 setopt NO_GLOB_SUBST
10069 case `(set -o) 2>/dev/null` in
10070 *posix
*) set -o posix
;;
10079 # Avoid depending upon Character Ranges.
10080 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10081 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10082 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10083 as_cr_digits
='0123456789'
10084 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10086 # The user is always right.
10087 if test "${PATH_SEPARATOR+set}" != set; then
10088 echo "#! /bin/sh" >conf$$.sh
10089 echo "exit 0" >>conf$$.sh
10091 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10099 # Support unset when possible.
10100 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10108 # We need space, tab and new line, in precisely that order. Quoting is
10109 # there to prevent editors from complaining about space-tab.
10110 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10111 # splitting by setting IFS to empty value.)
10116 # Find who we are. Look in the path if we contain no directory separator.
10118 *[\\/]* ) as_myself
=$0 ;;
10119 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10120 for as_dir
in $PATH
10123 test -z "$as_dir" && as_dir
=.
10124 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10130 # We did not find ourselves, most probably we were run as `sh COMMAND'
10131 # in which case we are not to be found in the path.
10132 if test "x$as_myself" = x
; then
10135 if test ! -f "$as_myself"; then
10136 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10137 { (exit 1); exit 1; }
10140 # Work around bugs in pre-3.0 UWIN ksh.
10141 for as_var
in ENV MAIL MAILPATH
10142 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10150 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10151 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10152 LC_TELEPHONE LC_TIME
10154 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10155 eval $as_var=C
; export $as_var
10157 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10161 # Required to use basename.
10162 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10163 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10169 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10170 as_basename
=basename
10176 # Name of the executable.
10177 as_me
=`$as_basename -- "$0" ||
10178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10179 X"$0" : 'X\(//\)$' \| \
10180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10182 sed '/^.*\/\([^/][^/]*\)\/*$/{
10201 as_lineno_1
=$LINENO
10202 as_lineno_2
=$LINENO
10203 test "x$as_lineno_1" != "x$as_lineno_2" &&
10204 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10206 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10207 # uniformly replaced by the line number. The first 'sed' inserts a
10208 # line-number line after each line using $LINENO; the second 'sed'
10209 # does the real work. The second script uses 'N' to pair each
10210 # line-number line with the line containing $LINENO, and appends
10211 # trailing '-' during substitution so that $LINENO is not a special
10212 # case at line end.
10213 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10214 # scripts with optimization help from Paolo Bonzini. Blame Lee
10215 # E. McMahon (1931-1989) for sed's syntax. :-)
10227 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10230 ' >$as_me.lineno
&&
10231 chmod +x
"$as_me.lineno" ||
10232 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10233 { (exit 1); exit 1; }; }
10235 # Don't try to exec as it changes $[0], causing all sort of problems
10236 # (the dirname of $[0] is not the place where we might find the
10237 # original and so on. Autoconf is especially sensitive to this).
10238 .
"./$as_me.lineno"
10239 # Exit status is that of the last command.
10244 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10250 ECHO_C
= ECHO_N
= ECHO_T
=
10251 case `echo -n x` in
10253 case `echo 'x\c'` in
10254 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10261 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10262 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10268 rm -f conf$$ conf$$.exe conf$$.
file
10269 if test -d conf$$.dir
; then
10270 rm -f conf$$.dir
/conf$$.
file
10276 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10278 # ... but there are two gotchas:
10279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10281 # In both cases, we have to default to `cp -p'.
10282 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10284 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10289 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10290 rmdir conf$$.dir
2>/dev
/null
10292 if mkdir
-p .
2>/dev
/null
; then
10295 test -d .
/-p && rmdir .
/-p
10299 if test -x / >/dev
/null
2>&1; then
10300 as_test_x
='test -x'
10302 if ls -dL / >/dev
/null
2>&1; then
10309 if test -d "$1"; then
10315 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10316 ???[sx]*):;;*)false;;esac;fi
10320 as_executable_p
=$as_test_x
10322 # Sed expression to map a string onto a valid CPP name.
10323 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10325 # Sed expression to map a string onto a valid variable name.
10326 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10331 # Save the log message, to keep $[0] and so on meaningful, and to
10332 # report actual input values of CONFIG_FILES etc. instead of their
10333 # values after options handling.
10335 This file was extended by $as_me, which was
10336 generated by GNU Autoconf 2.61. Invocation command line was
10338 CONFIG_FILES = $CONFIG_FILES
10339 CONFIG_HEADERS = $CONFIG_HEADERS
10340 CONFIG_LINKS = $CONFIG_LINKS
10341 CONFIG_COMMANDS = $CONFIG_COMMANDS
10344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10349 cat >>$CONFIG_STATUS <<_ACEOF
10350 # Files that config.status was made for.
10351 config_files="$ac_config_files"
10352 config_headers="$ac_config_headers"
10356 cat >>$CONFIG_STATUS <<\_ACEOF
10358 \`$as_me' instantiates files from templates according to the
10359 current configuration.
10361 Usage: $0 [OPTIONS] [FILE]...
10363 -h, --help print this help, then exit
10364 -V, --version print version number and configuration settings, then exit
10365 -q, --quiet do not print progress messages
10366 -d, --debug don't remove temporary files
10367 --recheck update $as_me by reconfiguring in the same conditions
10368 --file=FILE[:TEMPLATE]
10369 instantiate the configuration file FILE
10370 --header=FILE[:TEMPLATE]
10371 instantiate the configuration header FILE
10373 Configuration files:
10376 Configuration headers:
10379 Report bugs to <bug-autoconf@gnu.org>."
10382 cat >>$CONFIG_STATUS <<_ACEOF
10385 configured by $0, generated by GNU Autoconf 2.61,
10386 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10388 Copyright (C) 2006 Free Software Foundation, Inc.
10389 This config.status script is free software; the Free Software Foundation
10390 gives unlimited permission to copy, distribute and modify it."
10396 cat >>$CONFIG_STATUS <<\_ACEOF
10397 # If no file are specified by the user, then we need to provide default
10398 # value. By we need to know if files were specified by the user.
10404 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10405 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10416 # Handling of the options.
10417 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10419 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10420 echo "$ac_cs_version"; exit ;;
10421 --debug |
--debu |
--deb |
--de |
--d |
-d )
10423 --file |
--fil |
--fi |
--f )
10425 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10426 ac_need_defaults
=false
;;
10427 --header |
--heade |
--head |
--hea )
10429 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10430 ac_need_defaults
=false
;;
10432 # Conflict between --help and --header
10433 { echo "$as_me: error: ambiguous option: $1
10434 Try \`$0 --help' for more information." >&2
10435 { (exit 1); exit 1; }; };;
10436 --help |
--hel |
-h )
10437 echo "$ac_cs_usage"; exit ;;
10438 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10439 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10442 # This is an error.
10443 -*) { echo "$as_me: error: unrecognized option: $1
10444 Try \`$0 --help' for more information." >&2
10445 { (exit 1); exit 1; }; } ;;
10447 *) ac_config_targets
="$ac_config_targets $1"
10448 ac_need_defaults
=false
;;
10454 ac_configure_extra_args
=
10456 if $ac_cs_silent; then
10458 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10462 cat >>$CONFIG_STATUS <<_ACEOF
10463 if \$ac_cs_recheck; then
10464 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10465 CONFIG_SHELL=$SHELL
10466 export CONFIG_SHELL
10467 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10471 cat >>$CONFIG_STATUS <<\_ACEOF
10475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10476 ## Running $as_me. ##
10482 cat >>$CONFIG_STATUS <<_ACEOF
10485 cat >>$CONFIG_STATUS <<\_ACEOF
10487 # Handling of arguments.
10488 for ac_config_target
in $ac_config_targets
10490 case $ac_config_target in
10491 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10492 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
10493 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10494 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10495 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10496 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10497 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10498 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10499 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10500 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10501 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10502 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10504 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10505 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10506 { (exit 1); exit 1; }; };;
10511 # If the user did not use the arguments to specify the items to instantiate,
10512 # then the envvar interface is used. Set only those that are not.
10513 # We use the long form for the default assignment because of an extremely
10514 # bizarre bug on SunOS 4.1.3.
10515 if $ac_need_defaults; then
10516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10520 # Have a temporary directory for convenience. Make it in the build tree
10521 # simply because there is no reason against having it here, and in addition,
10522 # creating and moving files from /tmp can sometimes cause problems.
10523 # Hook for its removal unless debugging.
10524 # Note that there is a small window in which the directory will not be cleaned:
10525 # after its creation but before its name has been assigned to `$tmp'.
10529 trap 'exit_status=$?
10530 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10532 trap '{ (exit 1); exit 1; }' 1 2 13 15
10534 # Create a (secure) tmp directory for tmp files.
10537 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10538 test -n "$tmp" && test -d "$tmp"
10541 tmp
=.
/conf$$
-$RANDOM
10542 (umask 077 && mkdir
"$tmp")
10545 echo "$me: cannot create a temporary directory in ." >&2
10546 { (exit 1); exit 1; }
10550 # Set up the sed scripts for CONFIG_FILES section.
10553 # No need to generate the scripts if there are no CONFIG_FILES.
10554 # This happens for instance when ./config.status config.h
10555 if test -n "$CONFIG_FILES"; then
10562 for ac_last_try
in false false false false false
:; do
10563 cat >conf$
$subs.
sed <<_ACEOF
10564 SHELL!$SHELL$ac_delim
10565 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10566 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10567 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10568 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10569 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10570 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10571 exec_prefix!$exec_prefix$ac_delim
10572 prefix!$prefix$ac_delim
10573 program_transform_name!$program_transform_name$ac_delim
10574 bindir!$bindir$ac_delim
10575 sbindir!$sbindir$ac_delim
10576 libexecdir!$libexecdir$ac_delim
10577 datarootdir!$datarootdir$ac_delim
10578 datadir!$datadir$ac_delim
10579 sysconfdir!$sysconfdir$ac_delim
10580 sharedstatedir!$sharedstatedir$ac_delim
10581 localstatedir!$localstatedir$ac_delim
10582 includedir!$includedir$ac_delim
10583 oldincludedir!$oldincludedir$ac_delim
10584 docdir!$docdir$ac_delim
10585 infodir!$infodir$ac_delim
10586 htmldir!$htmldir$ac_delim
10587 dvidir!$dvidir$ac_delim
10588 pdfdir!$pdfdir$ac_delim
10589 psdir!$psdir$ac_delim
10590 libdir!$libdir$ac_delim
10591 localedir!$localedir$ac_delim
10592 mandir!$mandir$ac_delim
10593 DEFS!$DEFS$ac_delim
10594 ECHO_C!$ECHO_C$ac_delim
10595 ECHO_N!$ECHO_N$ac_delim
10596 ECHO_T!$ECHO_T$ac_delim
10597 LIBS!$LIBS$ac_delim
10598 build_alias!$build_alias$ac_delim
10599 host_alias!$host_alias$ac_delim
10600 target_alias!$target_alias$ac_delim
10601 PACKAGE!$PACKAGE$ac_delim
10602 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10603 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10604 STABLE_VERSION!$STABLE_VERSION$ac_delim
10605 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10607 CFLAGS!$CFLAGS$ac_delim
10608 LDFLAGS!$LDFLAGS$ac_delim
10609 CPPFLAGS!$CPPFLAGS$ac_delim
10610 ac_ct_CC!$ac_ct_CC$ac_delim
10611 EXEEXT!$EXEEXT$ac_delim
10612 OBJEXT!$OBJEXT$ac_delim
10614 CXXFLAGS!$CXXFLAGS$ac_delim
10615 ac_ct_CXX!$ac_ct_CXX$ac_delim
10616 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10617 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10618 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10619 CXXCPP!$CXXCPP$ac_delim
10620 GREP!$GREP$ac_delim
10621 EGREP!$EGREP$ac_delim
10622 XMKMF!$XMKMF$ac_delim
10623 X_CFLAGS!$X_CFLAGS$ac_delim
10624 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10625 X_LIBS!$X_LIBS$ac_delim
10626 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10627 CONFIG_BDL!$CONFIG_BDL$ac_delim
10629 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10630 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10631 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10632 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10633 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10634 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10635 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10636 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10637 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10638 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10639 build!$build$ac_delim
10640 build_cpu!$build_cpu$ac_delim
10641 build_vendor!$build_vendor$ac_delim
10642 build_os!$build_os$ac_delim
10643 host!$host$ac_delim
10644 host_cpu!$host_cpu$ac_delim
10645 host_vendor!$host_vendor$ac_delim
10646 host_os!$host_os$ac_delim
10647 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10648 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10649 QMAKE!$QMAKE$ac_delim
10653 QT_PATH!$QT_PATH$ac_delim
10654 TMPDIR!$TMPDIR$ac_delim
10655 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10656 QT_DEFINES!$QT_DEFINES$ac_delim
10657 QT_CFLAGS!$QT_CFLAGS$ac_delim
10658 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10659 QT_INCPATH!$QT_INCPATH$ac_delim
10660 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10663 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10665 elif $ac_last_try; then
10666 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10667 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10668 { (exit 1); exit 1; }; }
10670 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10674 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10675 if test -n "$ac_eof"; then
10676 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10677 ac_eof
=`expr $ac_eof + 1`
10680 cat >>$CONFIG_STATUS <<_ACEOF
10681 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10685 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10686 s/^/s,@/; s/!/@,|#_!!_#|/
10689 s/'"$ac_delim"'$/,g/; t
10691 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10692 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10693 rm -f conf$
$subs.
sed
10694 cat >>$CONFIG_STATUS <<_ACEOF
10700 for ac_last_try
in false false false false false
:; do
10701 cat >conf$
$subs.
sed <<_ACEOF
10702 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10703 QT_LFLAGS!$QT_LFLAGS$ac_delim
10704 QT_LIBS!$QT_LIBS$ac_delim
10705 X11_CFLAGS!$X11_CFLAGS$ac_delim
10706 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10707 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10708 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10709 CONFIG_X11!$CONFIG_X11$ac_delim
10710 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10711 CONFIG_QT!$CONFIG_QT$ac_delim
10712 CONFIG_GUI!$CONFIG_GUI$ac_delim
10713 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10714 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10715 CONFIG_OS!$CONFIG_OS$ac_delim
10716 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10717 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10718 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10719 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10720 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10721 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10722 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10723 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10724 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10725 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10726 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10727 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10728 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10729 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10730 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10731 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10732 CONFIG_SO!$CONFIG_SO$ac_delim
10733 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10734 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10735 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10736 LDRT!$LDRT$ac_delim
10737 tmorig!$tmorig$ac_delim
10738 tmdir!$tmdir$ac_delim
10739 tmsrc!$tmsrc$ac_delim
10740 tmbin!$tmbin$ac_delim
10741 tmdata!$tmdata$ac_delim
10742 tmtgz!$tmtgz$ac_delim
10743 tmrpm!$tmrpm$ac_delim
10744 tmstgz!$tmstgz$ac_delim
10745 tmsrpm!$tmsrpm$ac_delim
10746 tmwin!$tmwin$ac_delim
10747 LIBOBJS!$LIBOBJS$ac_delim
10748 LTLIBOBJS!$LTLIBOBJS$ac_delim
10751 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then
10753 elif $ac_last_try; then
10754 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10755 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10756 { (exit 1); exit 1; }; }
10758 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10762 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10763 if test -n "$ac_eof"; then
10764 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10765 ac_eof
=`expr $ac_eof + 1`
10768 cat >>$CONFIG_STATUS <<_ACEOF
10769 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10773 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10774 s/^/s,@/; s/!/@,|#_!!_#|/
10777 s/'"$ac_delim"'$/,g/; t
10779 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10780 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10781 rm -f conf$
$subs.
sed
10782 cat >>$CONFIG_STATUS <<_ACEOF
10789 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10790 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10791 # trailing colons and then remove the whole line if VPATH becomes empty
10792 # (actually we leave an empty line to preserve line numbers).
10793 if test "x$srcdir" = x.
; then
10794 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10795 s/:*\$(srcdir):*/:/
10796 s/:*\${srcdir}:*/:/
10798 s/^\([^=]*=[ ]*\):*/\1/
10804 cat >>$CONFIG_STATUS <<\_ACEOF
10805 fi # test -n "$CONFIG_FILES"
10808 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
10811 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10813 case $ac_mode$ac_tag in
10815 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10816 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10817 { (exit 1); exit 1; }; };;
10818 :[FH
]-) ac_tag
=-:-;;
10819 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10836 -) ac_f
="$tmp/stdin";;
10837 *) # Look for the file first in the build tree, then in the source tree
10838 # (if the path is not absolute). The absolute path cannot be DOS-style,
10839 # because $ac_f cannot contain `:'.
10843 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10845 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10846 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10847 { (exit 1); exit 1; }; };;
10849 ac_file_inputs
="$ac_file_inputs $ac_f"
10852 # Let's still pretend it is `configure' which instantiates (i.e., don't
10853 # use $as_me), people would be surprised to read:
10854 # /* config.h. Generated by config.status. */
10855 configure_input
="Generated from "`IFS=:
10856 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10857 if test x
"$ac_file" != x-
; then
10858 configure_input
="$ac_file. $configure_input"
10859 { echo "$as_me:$LINENO: creating $ac_file" >&5
10860 echo "$as_me: creating $ac_file" >&6;}
10864 *:-:* |
*:-) cat >"$tmp/stdin";;
10869 ac_dir
=`$as_dirname -- "$ac_file" ||
10870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10871 X"$ac_file" : 'X\(//\)[^/]' \| \
10872 X"$ac_file" : 'X\(//\)$' \| \
10873 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10879 /^X\(\/\/\)[^/].*/{
10894 -*) as_dir
=.
/$as_dir;;
10896 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
10900 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10901 *) as_qdir
=$as_dir;;
10903 as_dirs
="'$as_qdir' $as_dirs"
10904 as_dir
=`$as_dirname -- "$as_dir" ||
10905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10906 X"$as_dir" : 'X\(//\)[^/]' \| \
10907 X"$as_dir" : 'X\(//\)$' \| \
10908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10914 /^X\(\/\/\)[^/].*/{
10927 test -d "$as_dir" && break
10929 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10930 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10931 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10932 { (exit 1); exit 1; }; }; }
10936 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10938 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10939 # A ".." for each directory in $ac_dir_suffix.
10940 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10941 case $ac_top_builddir_sub in
10942 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10943 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10946 ac_abs_top_builddir
=$ac_pwd
10947 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10948 # for backward compatibility:
10949 ac_top_builddir
=$ac_top_build_prefix
10952 .
) # We are building in place.
10954 ac_top_srcdir
=$ac_top_builddir_sub
10955 ac_abs_top_srcdir
=$ac_pwd ;;
10956 [\\/]* | ?
:[\\/]* ) # Absolute name.
10957 ac_srcdir
=$srcdir$ac_dir_suffix;
10958 ac_top_srcdir
=$srcdir
10959 ac_abs_top_srcdir
=$srcdir ;;
10960 *) # Relative name.
10961 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10962 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10963 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10965 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10976 cat >>$CONFIG_STATUS <<\_ACEOF
10977 # If the template does not know about datarootdir, expand it.
10978 # FIXME: This hack should be removed a few years after 2.60.
10979 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10981 case `sed -n '/datarootdir/ {
10990 ' $ac_file_inputs` in
10991 *datarootdir
*) ac_datarootdir_seen
=yes;;
10992 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
10993 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10994 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10996 cat >>$CONFIG_STATUS <<_ACEOF
10997 ac_datarootdir_hack='
10998 s&@datadir@&$datadir&g
10999 s&@docdir@&$docdir&g
11000 s&@infodir@&$infodir&g
11001 s&@localedir@&$localedir&g
11002 s&@mandir@&$mandir&g
11003 s&\\\${datarootdir}&$datarootdir&g' ;;
11007 # Neutralize VPATH when `$srcdir' = `.'.
11008 # Shell code in configure.ac might set extrasub.
11009 # FIXME: do we really want to maintain this feature?
11010 cat >>$CONFIG_STATUS <<_ACEOF
11014 cat >>$CONFIG_STATUS <<\_ACEOF
11016 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11017 s
&@configure_input@
&$configure_input&;t t
11018 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11019 s
&@srcdir@
&$ac_srcdir&;t t
11020 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11021 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11022 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11023 s
&@builddir@
&$ac_builddir&;t t
11024 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11025 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11026 $ac_datarootdir_hack
11027 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
11029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11030 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11031 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11032 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11033 which seems to be undefined. Please make sure it is defined." >&5
11034 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11035 which seems to be undefined. Please make sure it is defined." >&2;}
11039 -) cat "$tmp/out"; rm -f "$tmp/out";;
11040 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11049 # Transform confdefs.h into a sed script `conftest.defines', that
11050 # substitutes the proper values into config.h.in to produce config.h.
11051 rm -f conftest.defines conftest.
tail
11052 # First, append a space to every undef/define line, to ease matching.
11053 echo 's/$/ /' >conftest.defines
11054 # Then, protect against being on the right side of a sed subst, or in
11055 # an unquoted here document, in config.status. If some macros were
11056 # called several times there might be several #defines for the same
11057 # symbol, which is useless. But do not sort them, since the last
11058 # AC_DEFINE must be honored.
11059 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11060 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11061 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11062 # PARAMS is the parameter list in the macro definition--in most cases, it's
11063 # just an empty string.
11064 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11065 ac_dB
='\\)[ (].*,\\1define\\2'
11073 s/^[ ]*#[ ]*define[ ][ ]*//
11078 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11079 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11080 ' >>conftest.defines
11082 # Remove the space that was appended to ease matching.
11083 # Then replace #undef with comments. This is necessary, for
11084 # example, in the case of _POSIX_SOURCE, which is predefined and required
11085 # on some systems where configure will not decide to define it.
11086 # (The regexp can be short, since the line contains either #define or #undef.)
11088 s,^[ #]*u.*,/* & */,' >>conftest.defines
11090 # Break up conftest.defines:
11091 ac_max_sed_lines
=50
11093 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11094 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11095 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11097 ac_in
='$ac_file_inputs'
11098 ac_out
='"$tmp/out1"'
11099 ac_nxt
='"$tmp/out2"'
11103 # Write a here document:
11104 cat >>$CONFIG_STATUS <<_ACEOF
11105 # First, check the format of the line:
11106 cat >"\$tmp/defines.sed" <<\\CEOF
11107 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11108 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11112 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11114 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11115 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11116 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11117 grep . conftest.
tail >/dev
/null ||
break
11118 rm -f conftest.defines
11119 mv conftest.
tail conftest.defines
11121 rm -f conftest.defines conftest.
tail
11123 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11124 cat >>$CONFIG_STATUS <<\_ACEOF
11125 if test x
"$ac_file" != x-
; then
11126 echo "/* $configure_input */" >"$tmp/config.h"
11127 cat "$ac_result" >>"$tmp/config.h"
11128 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11129 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11130 echo "$as_me: $ac_file is unchanged" >&6;}
11133 mv "$tmp/config.h" $ac_file
11136 echo "/* $configure_input */"
11148 { (exit 0); exit 0; }
11150 chmod +x
$CONFIG_STATUS
11151 ac_clean_files
=$ac_clean_files_save
11154 # configure is writing to config.log, and then calls config.status.
11155 # config.status does its own redirection, appending to config.log.
11156 # Unfortunately, on DOS this fails, as config.log is still kept open
11157 # by configure, so config.status won't be able to write to it; its
11158 # output is simply discarded. So we exec the FD to /dev/null,
11159 # effectively closing config.log, so it can be properly (re)opened and
11160 # appended to by config.status. When coming back to configure, we
11161 # need to make the FD available again.
11162 if test "$no_create" != yes; then
11164 ac_config_status_args
=
11165 test "$silent" = yes &&
11166 ac_config_status_args
="$ac_config_status_args --quiet"
11168 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11170 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11171 # would make configure fail if this is the last instruction.
11172 $ac_cs_success ||
{ (exit 1); exit 1; }