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
747 CONFIG_NATIVE_ARCH_TAG
761 ac_precious_vars
='build_alias
778 # Initialize some variables set by options.
780 ac_init_version
=false
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name
=s
,x
,x
,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir
='${exec_prefix}/bin'
805 sbindir
='${exec_prefix}/sbin'
806 libexecdir
='${exec_prefix}/libexec'
807 datarootdir
='${prefix}/share'
808 datadir
='${datarootdir}'
809 sysconfdir
='${prefix}/etc'
810 sharedstatedir
='${prefix}/com'
811 localstatedir
='${prefix}/var'
812 includedir
='${prefix}/include'
813 oldincludedir
='/usr/include'
814 docdir
='${datarootdir}/doc/${PACKAGE}'
815 infodir
='${datarootdir}/info'
820 libdir
='${exec_prefix}/lib'
821 localedir
='${datarootdir}/locale'
822 mandir
='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\
$ac_option
836 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
846 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
848 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
851 -build |
--build |
--buil |
--bui |
--bu)
852 ac_prev
=build_alias
;;
853 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
854 build_alias
=$ac_optarg ;;
856 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
857 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
858 ac_prev
=cache_file
;;
859 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
860 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
861 cache_file
=$ac_optarg ;;
864 cache_file
=config.cache
;;
866 -datadir |
--datadir |
--datadi |
--datad)
868 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
869 datadir
=$ac_optarg ;;
871 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
872 |
--dataroo |
--dataro |
--datar)
873 ac_prev
=datarootdir
;;
874 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
875 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
876 datarootdir
=$ac_optarg ;;
878 -disable-* |
--disable-*)
879 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_
$ac_feature=no
;;
887 -docdir |
--docdir |
--docdi |
--doc |
--do)
889 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
892 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
894 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
897 -enable-* |
--enable-*)
898 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
901 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902 { (exit 1); exit 1; }; }
903 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
904 eval enable_
$ac_feature=\
$ac_optarg ;;
906 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
907 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
908 |
--exec |
--exe |
--ex)
909 ac_prev
=exec_prefix
;;
910 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
911 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
912 |
--exec=* |
--exe=* |
--ex=*)
913 exec_prefix
=$ac_optarg ;;
915 -gas |
--gas |
--ga |
--g)
916 # Obsolete; use --with-gas.
919 -help |
--help |
--hel |
--he |
-h)
921 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
922 ac_init_help
=recursive
;;
923 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
924 ac_init_help
=short
;;
926 -host |
--host |
--hos |
--ho)
927 ac_prev
=host_alias
;;
928 -host=* |
--host=* |
--hos=* |
--ho=*)
929 host_alias
=$ac_optarg ;;
931 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
933 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
935 htmldir
=$ac_optarg ;;
937 -includedir |
--includedir |
--includedi |
--included |
--include \
938 |
--includ |
--inclu |
--incl |
--inc)
939 ac_prev
=includedir
;;
940 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
941 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
942 includedir
=$ac_optarg ;;
944 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
946 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
947 infodir
=$ac_optarg ;;
949 -libdir |
--libdir |
--libdi |
--libd)
951 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
954 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
955 |
--libexe |
--libex |
--libe)
956 ac_prev
=libexecdir
;;
957 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
958 |
--libexe=* |
--libex=* |
--libe=*)
959 libexecdir
=$ac_optarg ;;
961 -localedir |
--localedir |
--localedi |
--localed |
--locale)
963 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
964 localedir
=$ac_optarg ;;
966 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
967 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
968 ac_prev
=localstatedir
;;
969 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
970 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
971 localstatedir
=$ac_optarg ;;
973 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
975 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
979 # Obsolete; use --without-fp.
982 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
983 |
--no-cr |
--no-c |
-n)
986 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
987 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
990 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
991 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
992 |
--oldin |
--oldi |
--old |
--ol |
--o)
993 ac_prev
=oldincludedir
;;
994 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
995 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
996 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
997 oldincludedir
=$ac_optarg ;;
999 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1001 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1002 prefix
=$ac_optarg ;;
1004 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1005 |
--program-pre |
--program-pr |
--program-p)
1006 ac_prev
=program_prefix
;;
1007 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1008 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1009 program_prefix
=$ac_optarg ;;
1011 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1012 |
--program-suf |
--program-su |
--program-s)
1013 ac_prev
=program_suffix
;;
1014 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1015 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1016 program_suffix
=$ac_optarg ;;
1018 -program-transform-name |
--program-transform-name \
1019 |
--program-transform-nam |
--program-transform-na \
1020 |
--program-transform-n |
--program-transform- \
1021 |
--program-transform |
--program-transfor \
1022 |
--program-transfo |
--program-transf \
1023 |
--program-trans |
--program-tran \
1024 |
--progr-tra |
--program-tr |
--program-t)
1025 ac_prev
=program_transform_name
;;
1026 -program-transform-name=* |
--program-transform-name=* \
1027 |
--program-transform-nam=* |
--program-transform-na=* \
1028 |
--program-transform-n=* |
--program-transform-=* \
1029 |
--program-transform=* |
--program-transfor=* \
1030 |
--program-transfo=* |
--program-transf=* \
1031 |
--program-trans=* |
--program-tran=* \
1032 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1033 program_transform_name
=$ac_optarg ;;
1035 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1037 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1038 pdfdir
=$ac_optarg ;;
1040 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1042 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1045 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1046 |
-silent |
--silent |
--silen |
--sile |
--sil)
1049 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1051 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1053 sbindir
=$ac_optarg ;;
1055 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1056 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1057 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1059 ac_prev
=sharedstatedir
;;
1060 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1061 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1062 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1064 sharedstatedir
=$ac_optarg ;;
1066 -site |
--site |
--sit)
1068 -site=* |
--site=* |
--sit=*)
1071 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1073 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1074 srcdir
=$ac_optarg ;;
1076 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1077 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1078 ac_prev
=sysconfdir
;;
1079 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1080 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1081 sysconfdir
=$ac_optarg ;;
1083 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1084 ac_prev
=target_alias
;;
1085 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1086 target_alias
=$ac_optarg ;;
1088 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1091 -version |
--version |
--versio |
--versi |
--vers |
-V)
1092 ac_init_version
=: ;;
1095 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_
$ac_package=\
$ac_optarg ;;
1103 -without-* |
--without-*)
1104 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1107 { echo "$as_me: error: invalid package name: $ac_package" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1110 eval with_
$ac_package=no
;;
1113 # Obsolete; use --with-x.
1116 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1117 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1118 ac_prev
=x_includes
;;
1119 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1120 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1121 x_includes
=$ac_optarg ;;
1123 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1124 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1125 ac_prev
=x_libraries
;;
1126 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1127 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1128 x_libraries
=$ac_optarg ;;
1130 -*) { echo "$as_me: error: unrecognized option: $ac_option
1131 Try \`$0 --help' for more information." >&2
1132 { (exit 1); exit 1; }; }
1136 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1139 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1140 { (exit 1); exit 1; }; }
1141 eval $ac_envvar=\
$ac_optarg
1142 export $ac_envvar ;;
1145 # FIXME: should be removed in autoconf 3.0.
1146 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1148 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 if test -n "$ac_prev"; then
1156 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1157 { echo "$as_me: error: missing argument to $ac_option" >&2
1158 { (exit 1); exit 1; }; }
1161 # Be sure to have absolute directory names.
1162 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163 datadir sysconfdir sharedstatedir localstatedir includedir \
1164 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165 libdir localedir mandir
1167 eval ac_val
=\$
$ac_var
1169 [\\/$
]* | ?
:[\\/]* ) continue;;
1170 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1172 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1173 { (exit 1); exit 1; }; }
1176 # There might be people who depend on the old broken behavior: `$host'
1177 # used to hold the argument of --host etc.
1178 # FIXME: To remove some day.
1181 target
=$target_alias
1183 # FIXME: To remove some day.
1184 if test "x$host_alias" != x
; then
1185 if test "x$build_alias" = x
; then
1186 cross_compiling
=maybe
1187 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1188 If a cross compiler is detected then cross compile mode will be used." >&2
1189 elif test "x$build_alias" != "x$host_alias"; then
1195 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1197 test "$silent" = yes && exec 6>/dev
/null
1200 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1201 ac_ls_di
=`ls -di .` &&
1202 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1203 { echo "$as_me: error: Working directory cannot be determined" >&2
1204 { (exit 1); exit 1; }; }
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 { echo "$as_me: error: pwd does not report name of working directory" >&2
1207 { (exit 1); exit 1; }; }
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted
=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir
=`$as_dirname -- "$0" ||
1215 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$0" : 'X\(//\)[^/]' \| \
1217 X"$0" : 'X\(//\)$' \| \
1218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1242 ac_srcdir_defaulted
=no
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1246 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1247 { (exit 1); exit 1; }; }
1249 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1252 { (exit 1); exit 1; }; }
1254 # When building in place, set srcdir=.
1255 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 # Remove unnecessary trailing slashes from srcdir.
1259 # Double slashes in file names in object file debugging info
1260 # mess up M-x gdb in Emacs.
1262 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 for ac_var
in $ac_precious_vars; do
1265 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1266 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1267 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1268 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1272 # Report the --help message.
1274 if test "$ac_init_help" = "long"; then
1275 # Omit some internal or obsolete options to make the list less imposing.
1276 # This message is too long to be a string in the A/UX 3.1 sh.
1278 \`configure' configures this package to adapt to many kinds of systems.
1280 Usage: $0 [OPTION]... [VAR=VALUE]...
1282 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283 VAR=VALUE. See below for descriptions of some of the useful variables.
1285 Defaults for the options are specified in brackets.
1288 -h, --help display this help and exit
1289 --help=short display options specific to this package
1290 --help=recursive display the short help of all the included packages
1291 -V, --version display version information and exit
1292 -q, --quiet, --silent do not print \`checking...' messages
1293 --cache-file=FILE cache test results in FILE [disabled]
1294 -C, --config-cache alias for \`--cache-file=config.cache'
1295 -n, --no-create do not create output files
1296 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298 Installation directories:
1299 --prefix=PREFIX install architecture-independent files in PREFIX
1300 [$ac_default_prefix]
1301 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 By default, \`make install' will install all the files in
1305 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1306 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307 for instance \`--prefix=\$HOME'.
1309 For better control, use the options below.
1311 Fine tuning of the installation directories:
1312 --bindir=DIR user executables [EPREFIX/bin]
1313 --sbindir=DIR system admin executables [EPREFIX/sbin]
1314 --libexecdir=DIR program executables [EPREFIX/libexec]
1315 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1316 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1317 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
1326 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
1336 --x-includes=DIR X include files are
in DIR
1337 --x-libraries=DIR X library files are
in DIR
1340 --build=BUILD configure
for building on BUILD
[guessed
]
1341 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1345 if test -n "$ac_init_help"; then
1350 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1351 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1352 --disable-fastalloc omit fast allocator
for small objects
1353 --enable-experimental support new style rewriting code
1354 --enable-macosx-extensions support new style rewriting code
1355 --enable-qt replace X11 by Qt interface
1356 --enable-cocoa replace X11 by Cocoa interface
1357 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1358 --enable-assert exit on failed assertions
in code
1359 --enable-warnings print warning messages during compilation
1360 --enable-optimize=ARG compile with optimizations guessed
1363 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1364 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1365 --with-x use the X Window System
1366 --with-iconv=DIR where to
find iconv system
1367 --with-freetype=ARG with freetype support ARG
=linked
1368 --with-cairo=ARG with cairo support ARG
=no
1369 --with-imlib2=ARG with imlib2 support ARG
=no
1370 --with-axel=ARG with axel support ARG
=no
1371 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1373 Some influential environment variables
:
1374 CC C compiler
command
1375 CFLAGS C compiler flags
1376 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1377 nonstandard directory
<lib dir
>
1378 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1379 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1380 you have headers
in a nonstandard directory
<include dir
>
1381 CXX C
++ compiler
command
1382 CXXFLAGS C
++ compiler flags
1383 CXXCPP C
++ preprocessor
1384 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1386 TMPDIR A temporary directory with
write access
[/tmp
]
1388 Use these variables to override the choices made by
`configure' or to help
1389 it to find libraries and programs with nonstandard names/locations.
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" || continue
1402 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1405 # A ".." for each directory in $ac_dir_suffix.
1406 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1407 case $ac_top_builddir_sub in
1408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 ac_abs_top_builddir=$ac_pwd
1413 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1414 # for backward compatibility:
1415 ac_top_builddir=$ac_top_build_prefix
1418 .) # We are building in place.
1420 ac_top_srcdir=$ac_top_builddir_sub
1421 ac_abs_top_srcdir=$ac_pwd ;;
1422 [\\/]* | ?:[\\/]* ) # Absolute name.
1423 ac_srcdir=$srcdir$ac_dir_suffix;
1424 ac_top_srcdir=$srcdir
1425 ac_abs_top_srcdir=$srcdir ;;
1427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428 ac_top_srcdir=$ac_top_build_prefix$srcdir
1429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433 cd "$ac_dir" || { ac_status=$?; continue; }
1434 # Check for guested configure.
1435 if test -f "$ac_srcdir/configure.gnu"; then
1437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438 elif test -f "$ac_srcdir/configure"; then
1440 $SHELL "$ac_srcdir/configure" --help=recursive
1442 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444 cd "$ac_pwd" || { ac_status=$?; break; }
1448 test -n "$ac_init_help" && exit $ac_status
1449 if $ac_init_version; then
1452 generated by GNU Autoconf 2.61
1454 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1455 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1456 This configure script is free software; the Free Software Foundation
1457 gives unlimited permission to copy, distribute and modify it.
1461 cat >config.log <<_ACEOF
1462 This file contains any messages produced by compilers while
1463 running configure, to aid debugging if configure makes a mistake.
1465 It was created by $as_me, which was
1466 generated by GNU Autoconf 2.61. Invocation command line was
1478 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1479 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1480 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1481 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1482 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1484 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1485 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1487 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1488 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1489 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1490 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1491 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1493 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 test -z "$as_dir" && as_dir=.
1502 echo "PATH: $as_dir"
1518 # Keep a trace of the command line.
1519 # Strip out --no-create and --no-recursion so they do not pile up.
1520 # Strip out --silent because we don't want to record it for future runs.
1521 # Also quote any args containing shell meta-characters.
1522 # Make two passes to allow for proper duplicate-argument suppression.
1526 ac_must_keep_next=false
1532 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil)
1537 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1540 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1542 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1543 if test $ac_must_keep_next = true; then
1544 ac_must_keep_next=false # Got value, back to normal.
1547 *=* | --config-cache | -C | -disable-* | --disable-* \
1548 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1549 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1550 | -with-* | --with-* | -without-* | --without-* | --x)
1551 case "$ac_configure_args0 " in
1552 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 -* ) ac_must_keep_next=true ;;
1558 ac_configure_args="$ac_configure_args '$ac_arg'"
1563 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1564 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1566 # When interrupted or exit'd, cleanup temporary files, and complete
1567 # config.log. We remove comments because anyway the quotes in there
1568 # would cause problems or look ugly.
1569 # WARNING: Use '\'' to represent an apostrophe within the trap.
1570 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1571 trap 'exit_status=$?
1572 # Save into config.log some information that might help in debugging.
1577 ## ---------------- ##
1578 ## Cache variables. ##
1579 ## ---------------- ##
1582 # The following way of writing the cache mishandles newlines in values,
1584 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1585 eval ac_val=\$$ac_var
1589 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1590 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 _ | IFS | as_nl) ;; #(
1594 *) $as_unset $ac_var ;;
1599 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1600 *${as_nl}ac_space=\ *)
1602 "s/'\''/'\''\\\\'\'''\''/g;
1603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1614 ## ----------------- ##
1615 ## Output variables. ##
1616 ## ----------------- ##
1619 for ac_var in $ac_subst_vars
1621 eval ac_val=\$$ac_var
1623 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 echo "$ac_var='\''$ac_val'\''"
1629 if test -n "$ac_subst_files"; then
1631 ## ------------------- ##
1632 ## File substitutions. ##
1633 ## ------------------- ##
1636 for ac_var in $ac_subst_files
1638 eval ac_val=\$$ac_var
1640 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 echo "$ac_var='\''$ac_val'\''"
1647 if test -s confdefs.h; then
1657 test "$ac_signal" != 0 &&
1658 echo "$as_me: caught signal $ac_signal"
1659 echo "$as_me: exit $exit_status"
1661 rm -f core *.core core.conftest.* &&
1662 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 for ac_signal in 1 2 13 15; do
1666 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1671 rm -f -r conftest* confdefs.h
1673 # Predefined preprocessor variables.
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_NAME "$PACKAGE_NAME"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_STRING "$PACKAGE_STRING"
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700 # Let the site file select an alternate cache file if it wants to.
1701 # Prefer explicitly selected file to automatically selected ones.
1702 if test -n "$CONFIG_SITE"; then
1703 set x "$CONFIG_SITE"
1704 elif test "x$prefix" != xNONE; then
1705 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1707 set x "$ac_default_prefix/share/config.site" \
1708 "$ac_default_prefix/etc/config.site"
1713 if test -r "$ac_site_file"; then
1714 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1715 echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5
1721 if test -r "$cache_file"; then
1722 # Some versions of bash will fail to source /dev/null (special
1723 # files actually), so we avoid doing that.
1724 if test -f "$cache_file"; then
1725 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1726 echo "$as_me: loading cache $cache_file" >&6;}
1728 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1729 *) . "./$cache_file";;
1733 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1734 echo "$as_me: creating cache $cache_file" >&6;}
1738 # Check that the precious variables saved in the cache have kept the same
1740 ac_cache_corrupted=false
1741 for ac_var in $ac_precious_vars; do
1742 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1743 eval ac_new_set=\$ac_env_${ac_var}_set
1744 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1745 eval ac_new_val=\$ac_env_${ac_var}_value
1746 case $ac_old_set,$ac_new_set in
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1749 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1750 ac_cache_corrupted=: ;;
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1753 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1757 if test "x$ac_old_val" != "x$ac_new_val"; then
1758 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1759 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1760 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1761 echo "$as_me: former value
: $ac_old_val" >&2;}
1762 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1763 echo "$as_me: current value
: $ac_new_val" >&2;}
1764 ac_cache_corrupted=:
1767 # Pass precious variables to config.status.
1768 if test "$ac_new_set" = set; then
1770 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1771 *) ac_arg=$ac_var=$ac_new_val ;;
1773 case " $ac_configure_args " in
1774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1775 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1779 if $ac_cache_corrupted; then
1780 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1781 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1782 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1783 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1784 { (exit 1); exit 1; }; }
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1814 DEVEL_VERSION="1.0.7.3"
1816 STABLE_VERSION="1.0.7"
1818 WINDOWS_VERSION="1.0.5"
1826 #--------------------------------------------------------------------
1827 # Checks for C++ compiler
1828 #--------------------------------------------------------------------
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1853 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 if test -n "$CC"; then
1865 { echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6; }
1868 { echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6; }
1874 if test -z "$ac_cv_prog_CC"; then
1876 # Extract the first word of "gcc", so it can be a program name with args.
1877 set dummy gcc; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1883 if test -n "$ac_ct_CC"; then
1884 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_ac_ct_CC="gcc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1904 if test -n "$ac_ct_CC"; then
1905 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1906 echo "${ECHO_T}$ac_ct_CC" >&6; }
1908 { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1912 if test "x$ac_ct_CC" = x; then
1915 case $cross_compiling:$ac_tool_warned in
1917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1918 whose name does not start with the host triplet. If you think this
1919 configuration is useful to you, please write to autoconf@gnu.org." >&5
1920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1921 whose name does not start with the host triplet. If you think this
1922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1923 ac_tool_warned=yes ;;
1931 if test -z "$CC"; then
1932 if test -n "$ac_tool_prefix"; then
1933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}cc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 if test -n "$CC"; then
1941 ac_cv_prog_CC="$CC" # Let the user override the test.
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1950 ac_cv_prog_CC="${ac_tool_prefix}cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 if test -n "$CC"; then
1962 { echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6; }
1965 { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1972 if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1992 ac_prog_rejected=yes
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test $ac_prog_rejected = yes; then
2004 # We found a bogon in the path, so make sure we never use it.
2005 set dummy $ac_cv_prog_CC
2007 if test $# != 0; then
2008 # We chose a different compiler from the bogus one.
2009 # However, it has the same basename, so the bogon will be chosen
2010 # first if we set CC to just the basename; use the full file name.
2012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2018 if test -n "$CC"; then
2019 { echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6; }
2022 { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2028 if test -z "$CC"; then
2029 if test -n "$ac_tool_prefix"; then
2030 for ac_prog in cl.exe
2032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_CC+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 if test -n "$CC"; then
2040 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 if test -n "$CC"; then
2061 { echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6; }
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2069 test -n "$CC" && break
2072 if test -z "$CC"; then
2074 for ac_prog in cl.exe
2076 # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_ac_ct_CC="$ac_prog"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2113 test -n "$ac_ct_CC" && break
2116 if test "x$ac_ct_CC" = x; then
2119 case $cross_compiling:$ac_tool_warned in
2121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2122 whose name does not start with the host triplet. If you think this
2123 configuration is useful to you, please write to autoconf@gnu.org." >&5
2124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2125 whose name does not start with the host triplet. If you think this
2126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2127 ac_tool_warned=yes ;;
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log
' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details.
" >&2;}
2140 { (exit 1); exit 1; }; }
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2144 ac_compiler=`set X $ac_compile; echo $2`
2145 { (ac_try="$ac_compiler --version >&5"
2147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148 *) ac_try_echo=$ac_try;;
2150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2151 (eval "$ac_compiler --version >&5") 2>&5
2153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2154 (exit $ac_status); }
2155 { (ac_try="$ac_compiler -v >&5"
2157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158 *) ac_try_echo=$ac_try;;
2160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2161 (eval "$ac_compiler -v >&5") 2>&5
2163 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2164 (exit $ac_status); }
2165 { (ac_try="$ac_compiler -V >&5"
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2171 (eval "$ac_compiler -V >&5") 2>&5
2173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2174 (exit $ac_status); }
2176 cat >conftest.$ac_ext <<_ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2191 ac_clean_files_save=$ac_clean_files
2192 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2193 # Try to create an executable without -o first, disregard a.out.
2194 # It will help us diagnose broken compilers, and finding out an intuition
2196 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2197 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2200 # List of possible output files, starting from the most likely.
2201 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2202 # only as a last resort. b.out is created by i960 compilers.
2203 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2205 # The IRIX 6 linker writes into existing files which may not be
2206 # executable, retaining their permissions. Remove them first so a
2207 # subsequent execution test works.
2209 for ac_file in $ac_files
2212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2213 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2218 if { (ac_try="$ac_link_default"
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2224 (eval "$ac_link_default") 2>&5
2226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2227 (exit $ac_status); }; then
2228 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2230 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2231 # so that the user can short-circuit this test for compilers unknown to
2233 for ac_file in $ac_files ''
2235 test -f "$ac_file" || continue
2237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2240 # We found the default executable, but exeext='' is most
2244 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2246 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2248 # We set ac_cv_exeext here because the later test for it is not
2249 # safe: cross compilers may not add the suffix if given an `-o'
2250 # argument, so we may need to know it at that point already.
2251 # Even if this section looks crufty: it has the advantage of
2258 test "$ac_cv_exeext" = no && ac_cv_exeext=
2264 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2265 echo "${ECHO_T}$ac_file" >&6; }
2266 if test -z "$ac_file"; then
2267 echo "$as_me: failed program was
:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2271 See \
`config.log' for more details." >&5
2272 echo "$as_me: error: C compiler cannot create executables
2273 See \`config.log
' for more details." >&2;}
2274 { (exit 77); exit 77; }; }
2277 ac_exeext=$ac_cv_exeext
2279 # Check that the compiler produces executables we can run. If not, either
2280 # the compiler is broken, or we cross compile.
2281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2284 # If not cross compiling, check that we can run a simple program.
2285 if test "$cross_compiling" != yes; then
2286 if { ac_try='.
/$ac_file'
2287 { (case "(($ac_try" in
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_try") 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; }; then
2298 if test "$cross_compiling" = maybe; then
2301 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2302 If you meant to cross compile, use \`--host'.
2303 See \
`config.log' for more details." >&5
2304 echo "$as_me: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details.
" >&2;}
2307 { (exit 1); exit 1; }; }
2311 { echo "$as_me:$LINENO: result
: yes" >&5
2312 echo "${ECHO_T}yes" >&6; }
2314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2315 ac_clean_files=$ac_clean_files_save
2316 # Check that the compiler produces executables we can run. If not, either
2317 # the compiler is broken, or we cross compile.
2318 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2319 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2320 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2321 echo "${ECHO_T}$cross_compiling" >&6; }
2323 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2324 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2325 if { (ac_try="$ac_link"
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2331 (eval "$ac_link") 2>&5
2333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2334 (exit $ac_status); }; then
2335 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2336 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2337 # work properly (i.e., refer to `conftest.exe'), while it won't with
2339 for ac_file in conftest.exe conftest conftest.*; do
2340 test -f "$ac_file" || continue
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2350 See \
`config.log' for more details." >&5
2351 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2352 See \`config.log
' for more details." >&2;}
2353 { (exit 1); exit 1; }; }
2356 rm -f conftest$ac_cv_exeext
2357 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2358 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2360 rm -f conftest.$ac_ext
2361 EXEEXT=$ac_cv_exeext
2363 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2364 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2365 if test "${ac_cv_objext+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2368 cat >conftest.$ac_ext <<_ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2383 rm -f conftest.o conftest.obj
2384 if { (ac_try="$ac_compile"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2390 (eval "$ac_compile") 2>&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); }; then
2394 for ac_file in conftest.o conftest.obj conftest.*; do
2395 test -f "$ac_file" || continue;
2397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2398 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2403 echo "$as_me: failed program was:" >&5
2404 sed 's
/^
/|
/' conftest.$ac_ext >&5
2406 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2407 See \`config.log' for more details.
" >&5
2408 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2409 See \
`config.log' for more details." >&2;}
2410 { (exit 1); exit 1; }; }
2413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2415 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2416 echo "${ECHO_T}$ac_cv_objext" >&6; }
2417 OBJEXT=$ac_cv_objext
2419 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 cat >conftest.$ac_ext <<_ACEOF
2427 cat confdefs.h >>conftest.$ac_ext
2428 cat >>conftest.$ac_ext <<_ACEOF
2429 /* end confdefs.h. */
2442 rm -f conftest.$ac_objext
2443 if { (ac_try="$ac_compile"
2445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2446 *) ac_try_echo
=$ac_try;;
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_compile") 2>conftest.er1
2451 grep -v '^ *+' conftest.er1
>conftest.err
2453 cat conftest.err
>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } && {
2456 test -z "$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2458 } && test -s conftest.
$ac_objext; then
2461 echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.
$ac_ext >&5
2467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2468 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2473 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2474 ac_test_CFLAGS
=${CFLAGS+set}
2475 ac_save_CFLAGS
=$CFLAGS
2476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_cc_g+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 ac_save_c_werror_flag
=$ac_c_werror_flag
2482 ac_c_werror_flag
=yes
2485 cat >conftest.
$ac_ext <<_ACEOF
2488 cat confdefs.h
>>conftest.
$ac_ext
2489 cat >>conftest.
$ac_ext <<_ACEOF
2490 /* end confdefs.h. */
2500 rm -f conftest.
$ac_objext
2501 if { (ac_try
="$ac_compile"
2503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2504 *) ac_try_echo=$ac_try;;
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507 (eval "$ac_compile") 2>conftest.er1
2509 grep -v '^ *+' conftest.er1 >conftest.err
2511 cat conftest.err >&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); } && {
2514 test -z "$ac_c_werror_flag" ||
2515 test ! -s conftest.err
2516 } && test -s conftest.$ac_objext; then
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2523 cat >conftest.$ac_ext <<_ACEOF
2526 cat confdefs.h >>conftest.$ac_ext
2527 cat >>conftest.$ac_ext <<_ACEOF
2528 /* end confdefs.h. */
2538 rm -f conftest.$ac_objext
2539 if { (ac_try="$ac_compile"
2541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2542 *) ac_try_echo
=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_compile") 2>conftest.er1
2547 grep -v '^ *+' conftest.er1
>conftest.err
2549 cat conftest.err
>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); } && {
2552 test -z "$ac_c_werror_flag" ||
2553 test ! -s conftest.err
2554 } && test -s conftest.
$ac_objext; then
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.
$ac_ext >&5
2560 ac_c_werror_flag
=$ac_save_c_werror_flag
2562 cat >conftest.
$ac_ext <<_ACEOF
2565 cat confdefs.h
>>conftest.
$ac_ext
2566 cat >>conftest.
$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2577 rm -f conftest.
$ac_objext
2578 if { (ac_try
="$ac_compile"
2580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } && {
2591 test -z "$ac_c_werror_flag" ||
2592 test ! -s conftest.err
2593 } && test -s conftest.$ac_objext; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ac_c_werror_flag=$ac_save_c_werror_flag
2611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2613 if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615 elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2622 if test "$GCC" = yes; then
2628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2630 if test "${ac_cv_prog_cc_c89+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 ac_cv_prog_cc_c89=no
2635 cat >conftest.$ac_ext <<_ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h. */
2643 #include <sys/types.h>
2644 #include <sys/stat.h>
2645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646 struct buf { int x; };
2647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648 static char *e (p, i)
2654 static char *f (char * (*g) (char **, int), char **p, ...)
2659 s = g (p, va_arg (v,int));
2664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
2667 as 'x'. The following induces an error, until -std is added to get
2668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
2670 that's true only with -std. */
2671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2674 inside strings and character constants. */
2676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2678 int test (int i, double x);
2679 struct s1 {int (*f) (int a);};
2680 struct s2 {int (*f) (double a);};
2681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2693 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2700 *) ac_try_echo
=$ac_try;;
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1
>conftest.err
2707 cat conftest.err
>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.
$ac_objext; then
2713 ac_cv_prog_cc_c89
=$ac_arg
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.
$ac_ext >&5
2721 rm -f core conftest.err conftest.
$ac_objext
2722 test "x$ac_cv_prog_cc_c89" != "xno" && break
2724 rm -f conftest.
$ac_ext
2729 case "x$ac_cv_prog_cc_c89" in
2731 { echo "$as_me:$LINENO: result: none needed" >&5
2732 echo "${ECHO_T}none needed" >&6; } ;;
2734 { echo "$as_me:$LINENO: result: unsupported" >&5
2735 echo "${ECHO_T}unsupported" >&6; } ;;
2737 CC
="$CC $ac_cv_prog_cc_c89"
2738 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2744 ac_cpp
='$CPP $CPPFLAGS'
2745 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2750 ac_cpp
='$CXXCPP $CPPFLAGS'
2751 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2754 if test -z "$CXX"; then
2755 if test -n "$CCC"; then
2758 if test -n "$ac_tool_prefix"; then
2759 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_CXX+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 if test -n "$CXX"; then
2769 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir
=.
2776 for ac_exec_ext
in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 if test -n "$CXX"; then
2790 { echo "$as_me:$LINENO: result: $CXX" >&5
2791 echo "${ECHO_T}$CXX" >&6; }
2793 { echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6; }
2798 test -n "$CXX" && break
2801 if test -z "$CXX"; then
2803 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy
$ac_prog; ac_word
=$2
2807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2809 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$ac_ct_CXX"; then
2813 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir
=.
2820 for ac_exec_ext
in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2833 if test -n "$ac_ct_CXX"; then
2834 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2835 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2837 { echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6; }
2842 test -n "$ac_ct_CXX" && break
2845 if test "x$ac_ct_CXX" = x
; then
2848 case $cross_compiling:$ac_tool_warned in
2850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2851 whose name does not start with the host triplet. If you think this
2852 configuration is useful to you, please write to autoconf@gnu.org." >&5
2853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2854 whose name does not start with the host triplet. If you think this
2855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2856 ac_tool_warned
=yes ;;
2864 # Provide some information about the compiler.
2865 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2866 ac_compiler
=`set X $ac_compile; echo $2`
2867 { (ac_try
="$ac_compiler --version >&5"
2869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873 (eval "$ac_compiler --version >&5") 2>&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }
2877 { (ac_try="$ac_compiler -v >&5"
2879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2880 *) ac_try_echo
=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compiler -v >&5") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }
2887 { (ac_try
="$ac_compiler -V >&5"
2889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler -V >&5") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2898 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2899 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2900 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 cat >conftest.$ac_ext <<_ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2921 rm -f conftest.$ac_objext
2922 if { (ac_try="$ac_compile"
2924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2925 *) ac_try_echo
=$ac_try;;
2927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1
>conftest.err
2932 cat conftest.err
>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_cxx_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.
$ac_objext; then
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.
$ac_ext >&5
2946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2947 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
2950 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2951 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2952 GXX
=`test $ac_compiler_gnu = yes && echo yes`
2953 ac_test_CXXFLAGS
=${CXXFLAGS+set}
2954 ac_save_CXXFLAGS
=$CXXFLAGS
2955 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2956 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_cxx_g+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
2961 ac_cxx_werror_flag
=yes
2964 cat >conftest.
$ac_ext <<_ACEOF
2967 cat confdefs.h
>>conftest.
$ac_ext
2968 cat >>conftest.
$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.
$ac_objext
2980 if { (ac_try
="$ac_compile"
2982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } && {
2993 test -z "$ac_cxx_werror_flag" ||
2994 test ! -s conftest.err
2995 } && test -s conftest.$ac_objext; then
2996 ac_cv_prog_cxx_g=yes
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3021 *) ac_try_echo
=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1
>conftest.err
3028 cat conftest.err
>&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } && {
3031 test -z "$ac_cxx_werror_flag" ||
3032 test ! -s conftest.err
3033 } && test -s conftest.
$ac_objext; then
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.
$ac_ext >&5
3039 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3041 cat >conftest.
$ac_ext <<_ACEOF
3044 cat confdefs.h
>>conftest.
$ac_ext
3045 cat >>conftest.
$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3056 rm -f conftest.
$ac_objext
3057 if { (ac_try
="$ac_compile"
3059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compile") 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } && {
3070 test -z "$ac_cxx_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
3073 ac_cv_prog_cxx_g=yes
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3090 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3091 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3092 if test "$ac_test_CXXFLAGS" = set; then
3093 CXXFLAGS=$ac_save_CXXFLAGS
3094 elif test $ac_cv_prog_cxx_g = yes; then
3095 if test "$GXX" = yes; then
3101 if test "$GXX" = yes; then
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 ac_cpp='$CXXCPP $CPPFLAGS'
3115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3121 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3122 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3125 GCC_VERSION=`$CC -dumpversion`
3126 GXX_VERSION=`$CXX -dumpversion`
3127 { echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6; }
3129 { echo "$as_me:$LINENO: checking version of gcc" >&5
3130 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3131 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3132 echo "${ECHO_T}$GCC_VERSION" >&6; }
3133 { echo "$as_me:$LINENO: checking version of g++" >&5
3134 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3135 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3136 echo "${ECHO_T}$GXX_VERSION" >&6; }
3137 case "$GXX_VERSION" in
3139 echo "old style GNU compiler"
3140 cat >>confdefs.h <<\_ACEOF
3141 #define OLD_GNU_COMPILER
3150 { echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6; }
3152 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3153 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3157 #--------------------------------------------------------------------
3159 #--------------------------------------------------------------------
3161 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3163 ## The GUILE_FLAGS macro.
3164 ## First, let's just see if we can find Guile at all.
3165 { echo "$as_me:$LINENO: checking for Guile" >&5
3166 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3167 guile-config link > /dev/null || {
3168 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3171 GUILE_ORIGINAL_CFLAGS="`guile-config compile
`"
3172 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3173 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3174 GUILE_LDFLAGS="`guile-config link
`"
3175 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir
` -lguile -lreadline -ltermcap"
3178 { echo "$as_me:$LINENO: result: yes" >&5
3179 echo "${ECHO_T}yes" >&6; }
3182 { echo "$as_me:$LINENO: checking version of guile" >&5
3183 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3184 if test -z "$GUILE_VERSION" ; then
3185 GUILE_VERSION=`guile
--version |
grep 'Guile \([0-9]\)' |
sed 's/Guile \([0-9]*\)/\1/'`
3187 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3188 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3190 case "$GUILE_VERSION" in
3191 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3192 CONFIG_GUILE_SERIAL="A"
3195 CONFIG_GUILE_SERIAL="B"
3198 CONFIG_GUILE_SERIAL="C"
3203 #--------------------------------------------------------------------
3204 # Checks for standard functionality
3205 #--------------------------------------------------------------------
3209 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3210 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3211 ac_save_cppflags="$CPPFLAGS"
3212 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3219 #include <X11/Xlib.h>
3220 #include <X11/Xutil.h>
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3233 *) ac_try_echo
=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_compile") 2>conftest.er1
3238 grep -v '^ *+' conftest.er1
>conftest.err
3240 cat conftest.err
>&5
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } && {
3243 test -z "$ac_cxx_werror_flag" ||
3244 test ! -s conftest.err
3245 } && test -s conftest.
$ac_objext; then
3248 echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.
$ac_ext >&5
3255 /usr
/X11R
6/include \
3256 /usr
/X11R
5/include \
3257 /usr
/X11R
4/include \
3260 /usr
/include
/X11R6 \
3261 /usr
/include
/X11R5 \
3262 /usr
/include
/X11R4 \
3264 /usr
/local
/X11
/include \
3265 /usr
/local
/X11R
6/include \
3266 /usr
/local
/X11R
5/include \
3267 /usr
/local
/X11R
4/include \
3269 /usr
/local
/include
/X11 \
3270 /usr
/local
/include
/X11R6 \
3271 /usr
/local
/include
/X11R5 \
3272 /usr
/local
/include
/X11R4 \
3276 /usr
/XFree86
/include
/X11 \
3279 /usr
/local
/include \
3280 /usr
/unsupported
/include \
3281 /usr
/athena
/include \
3282 /usr
/local
/x11r
5/include \
3283 /usr
/lpp
/Xamples
/include \
3285 /usr
/openwin
/include \
3286 /usr
/openwin
/share
/include \
3289 if test -r "$ac_dir/X11/Xlib.h"; then
3290 tm_x_includes
=$ac_dir
3294 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3295 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3296 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3297 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3298 X_CFLAGS
="-I.. $X_CFLAGS"
3302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3303 CPPFLAGS
="$ac_save_cppflags"
3306 ac_cpp
='$CXXCPP $CPPFLAGS'
3307 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3310 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3311 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3312 if test -z "$CXXCPP"; then
3313 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 # Double quotes because CXXCPP needs to be expanded
3317 for CXXCPP
in "$CXX -E" "/lib/cpp"
3320 for ac_cxx_preproc_warn_flag
in '' yes
3322 # Use a header file that comes with gcc, so configuring glibc
3323 # with a fresh cross-compiler works.
3324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325 # <limits.h> exists even on freestanding compilers.
3326 # On the NeXT, cc -E runs the code through the compiler's parser,
3327 # not just through cpp. "Syntax error" is here to catch this case.
3328 cat >conftest.
$ac_ext <<_ACEOF
3331 cat confdefs.h
>>conftest.
$ac_ext
3332 cat >>conftest.
$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3335 # include <limits.h>
3337 # include <assert.h>
3341 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3343 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3349 grep -v '^ *+' conftest.er1 >conftest.err
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); } >/dev/null && {
3354 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3355 test ! -s conftest.err
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 # Broken: fails on valid input.
3366 rm -f conftest.err conftest.$ac_ext
3368 # OK, works on sane cases. Now check whether nonexistent headers
3369 # can be detected and how.
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3376 #include <ac_nonexistent.h>
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3381 *) ac_try_echo
=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1
>conftest.err
3388 cat conftest.err
>&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev
/null
&& {
3391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3392 test ! -s conftest.err
3394 # Broken: success on invalid input.
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.
$ac_ext >&5
3400 # Passes both tests.
3405 rm -f conftest.err conftest.
$ac_ext
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.err conftest.
$ac_ext
3410 if $ac_preproc_ok; then
3415 ac_cv_prog_CXXCPP
=$CXXCPP
3418 CXXCPP
=$ac_cv_prog_CXXCPP
3420 ac_cv_prog_CXXCPP
=$CXXCPP
3422 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3423 echo "${ECHO_T}$CXXCPP" >&6; }
3425 for ac_cxx_preproc_warn_flag
in '' yes
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat >conftest.
$ac_ext <<_ACEOF
3436 cat confdefs.h
>>conftest.
$ac_ext
3437 cat >>conftest.
$ac_ext <<_ACEOF
3438 /* end confdefs.h. */
3440 # include <limits.h>
3442 # include <assert.h>
3446 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null && {
3459 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3460 test ! -s conftest.err
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 # Broken: fails on valid input.
3471 rm -f conftest.err conftest.$ac_ext
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3481 #include <ac_nonexistent.h>
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3486 *) ac_try_echo
=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1
>conftest.err
3493 cat conftest.err
>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } >/dev
/null
&& {
3496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3497 test ! -s conftest.err
3499 # Broken: success on invalid input.
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.
$ac_ext >&5
3505 # Passes both tests.
3510 rm -f conftest.err conftest.
$ac_ext
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.
$ac_ext
3515 if $ac_preproc_ok; then
3518 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3519 See \`config.log' for more details." >&5
3520 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3521 See \`config.log' for more details." >&2;}
3522 { (exit 1); exit 1; }; }
3526 ac_cpp
='$CXXCPP $CPPFLAGS'
3527 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3532 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3533 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3534 if test "${ac_cv_path_GREP+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 # Extract the first word of "grep ggrep" to use in msg output
3538 if test -z "$GREP"; then
3539 set dummy
grep ggrep
; ac_prog_name
=$2
3540 if test "${ac_cv_path_GREP+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 ac_path_GREP_found
=false
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3546 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_prog
in grep ggrep
; do
3551 for ac_exec_ext
in '' $ac_executable_extensions; do
3552 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3553 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3554 # Check for GNU ac_path_GREP and select it if it is found.
3555 # Check for GNU $ac_path_GREP
3556 case `"$ac_path_GREP" --version 2>&1` in
3558 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3561 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
3567 echo 'GREP' >> "conftest.nl"
3568 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3569 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3570 ac_count
=`expr $ac_count + 1`
3571 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_GREP
="$ac_path_GREP"
3574 ac_path_GREP_max
=$ac_count
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3579 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3583 $ac_path_GREP_found && break 3
3593 GREP
="$ac_cv_path_GREP"
3594 if test -z "$GREP"; then
3595 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3596 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3597 { (exit 1); exit 1; }; }
3601 ac_cv_path_GREP
=$GREP
3606 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3607 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3608 GREP
="$ac_cv_path_GREP"
3611 { echo "$as_me:$LINENO: checking for egrep" >&5
3612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3613 if test "${ac_cv_path_EGREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3617 then ac_cv_path_EGREP
="$GREP -E"
3619 # Extract the first word of "egrep" to use in msg output
3620 if test -z "$EGREP"; then
3621 set dummy
egrep; ac_prog_name
=$2
3622 if test "${ac_cv_path_EGREP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 ac_path_EGREP_found
=false
3626 # Loop through the user's path and test for each of PROGNAME-LIST
3627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3628 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3631 test -z "$as_dir" && as_dir
=.
3632 for ac_prog
in egrep; do
3633 for ac_exec_ext
in '' $ac_executable_extensions; do
3634 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3635 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3636 # Check for GNU ac_path_EGREP and select it if it is found.
3637 # Check for GNU $ac_path_EGREP
3638 case `"$ac_path_EGREP" --version 2>&1` in
3640 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3643 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 echo 'EGREP' >> "conftest.nl"
3650 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3651 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3652 ac_count
=`expr $ac_count + 1`
3653 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_EGREP
="$ac_path_EGREP"
3656 ac_path_EGREP_max
=$ac_count
3658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3661 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3665 $ac_path_EGREP_found && break 3
3675 EGREP
="$ac_cv_path_EGREP"
3676 if test -z "$EGREP"; then
3677 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3683 ac_cv_path_EGREP
=$EGREP
3689 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3690 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3691 EGREP
="$ac_cv_path_EGREP"
3694 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3695 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3696 if test "${ac_cv_header_stdc+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 cat >conftest.
$ac_ext <<_ACEOF
3702 cat confdefs.h
>>conftest.
$ac_ext
3703 cat >>conftest.
$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3718 rm -f conftest.
$ac_objext
3719 if { (ac_try
="$ac_compile"
3721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3727 grep -v '^ *+' conftest.er1 >conftest.err
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_cxx_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_header_stdc=yes
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_cv_header_stdc=no
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 if test $ac_cv_header_stdc = yes; then
3746 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3747 cat >conftest.$ac_ext <<_ACEOF
3750 cat confdefs.h >>conftest.$ac_ext
3751 cat >>conftest.$ac_ext <<_ACEOF
3752 /* end confdefs.h. */
3756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3757 $EGREP "memchr" >/dev/null 2>&1; then
3760 ac_cv_header_stdc=no
3766 if test $ac_cv_header_stdc = yes; then
3767 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "free" >/dev/null 2>&1; then
3781 ac_cv_header_stdc=no
3787 if test $ac_cv_header_stdc = yes; then
3788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3789 if test "$cross_compiling" = yes; then
3792 cat >conftest.$ac_ext <<_ACEOF
3795 cat confdefs.h >>conftest.$ac_ext
3796 cat >>conftest.$ac_ext <<_ACEOF
3797 /* end confdefs.h. */
3800 #if ((' ' & 0x0FF) == 0x020)
3801 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3802 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3804 # define ISLOWER(c) \
3805 (('a' <= (c) && (c) <= 'i') \
3806 || ('j' <= (c) && (c) <= 'r') \
3807 || ('s' <= (c) && (c) <= 'z'))
3808 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3811 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3816 for (i = 0; i < 256; i++)
3817 if (XOR (islower (i), ISLOWER (i))
3818 || toupper (i) != TOUPPER (i))
3823 rm -f conftest$ac_exeext
3824 if { (ac_try="$ac_link"
3826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3827 *) ac_try_echo
=$ac_try;;
3829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_link") 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3834 { (case "(($ac_try" in
3835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_try") 2>&5
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3845 echo "$as_me: program exited with status $ac_status" >&5
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3850 ac_cv_header_stdc=no
3852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3858 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3859 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3860 if test $ac_cv_header_stdc = yes; then
3862 cat >>confdefs.h <<\_ACEOF
3863 #define STDC_HEADERS 1
3868 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3879 inttypes.h stdint.h unistd.h
3881 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3895 #include <$ac_header>
3897 rm -f conftest.$ac_objext
3898 if { (ac_try="$ac_compile"
3900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3901 *) ac_try_echo
=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3906 grep -v '^ *+' conftest.er1
>conftest.err
3908 cat conftest.err
>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } && {
3911 test -z "$ac_cxx_werror_flag" ||
3912 test ! -s conftest.err
3913 } && test -s conftest.
$ac_objext; then
3914 eval "$as_ac_Header=yes"
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.
$ac_ext >&5
3919 eval "$as_ac_Header=no"
3922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3924 ac_res
=`eval echo '${'$as_ac_Header'}'`
3925 { echo "$as_me:$LINENO: result: $ac_res" >&5
3926 echo "${ECHO_T}$ac_res" >&6; }
3927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3928 cat >>confdefs.h
<<_ACEOF
3929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3937 { echo "$as_me:$LINENO: checking for FILE" >&5
3938 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
3939 if test "${ac_cv_type_FILE+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 cat >conftest.
$ac_ext <<_ACEOF
3945 cat confdefs.h
>>conftest.
$ac_ext
3946 cat >>conftest.
$ac_ext <<_ACEOF
3947 /* end confdefs.h. */
3948 $ac_includes_default
3949 typedef FILE ac__type_new_;
3953 if ((ac__type_new_ *) 0)
3955 if (sizeof (ac__type_new_))
3961 rm -f conftest.
$ac_objext
3962 if { (ac_try
="$ac_compile"
3964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compile") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } && {
3975 test -z "$ac_cxx_werror_flag" ||
3976 test ! -s conftest.err
3977 } && test -s conftest.$ac_objext; then
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
3989 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
3990 if test $ac_cv_type_FILE = yes; then
3992 cat >>confdefs.h <<_ACEOF
3999 { echo "$as_me:$LINENO: checking for intptr_t" >&5
4000 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4001 if test "${ac_cv_type_intptr_t+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 cat >conftest.$ac_ext <<_ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 $ac_includes_default
4011 typedef intptr_t ac__type_new_;
4015 if ((ac__type_new_ *) 0)
4017 if (sizeof (ac__type_new_))
4023 rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4027 *) ac_try_echo
=$ac_try;;
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4032 grep -v '^ *+' conftest.er1
>conftest.err
4034 cat conftest.err
>&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && {
4037 test -z "$ac_cxx_werror_flag" ||
4038 test ! -s conftest.err
4039 } && test -s conftest.
$ac_objext; then
4040 ac_cv_type_intptr_t
=yes
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.
$ac_ext >&5
4045 ac_cv_type_intptr_t
=no
4048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4050 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4051 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4052 if test $ac_cv_type_intptr_t = yes; then
4054 cat >>confdefs.h
<<_ACEOF
4055 #define HAVE_INTPTR_T 1
4061 { echo "$as_me:$LINENO: checking for time_t" >&5
4062 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4063 if test "${ac_cv_type_time_t+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.
$ac_ext <<_ACEOF
4069 cat confdefs.h
>>conftest.
$ac_ext
4070 cat >>conftest.
$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4072 $ac_includes_default
4073 typedef time_t ac__type_new_;
4077 if ((ac__type_new_ *) 0)
4079 if (sizeof (ac__type_new_))
4085 rm -f conftest.
$ac_objext
4086 if { (ac_try
="$ac_compile"
4088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_compile") 2>conftest.er1
4094 grep -v '^ *+' conftest.er1 >conftest.err
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } && {
4099 test -z "$ac_cxx_werror_flag" ||
4100 test ! -s conftest.err
4101 } && test -s conftest.$ac_objext; then
4102 ac_cv_type_time_t=yes
4104 echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 ac_cv_type_time_t=no
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4113 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4114 if test $ac_cv_type_time_t = yes; then
4116 cat >>confdefs.h <<_ACEOF
4117 #define HAVE_TIME_T 1
4123 { echo "$as_me:$LINENO: checking for X" >&5
4124 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4127 # Check whether --with-x was given.
4128 if test "${with_x+set}" = set; then
4132 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4133 if test "x$with_x" = xno; then
4134 # The user explicitly disabled X.
4137 case $x_includes,$x_libraries in #(
4138 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4139 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4140 { (exit 1); exit 1; }; };; #(
4141 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 # One or both of the vars are not set, and there is no cached value.
4145 ac_x_includes=no ac_x_libraries=no
4146 rm -f -r conftest.dir
4147 if mkdir conftest.dir; then
4149 cat >Imakefile <<'_ACEOF'
4151 @echo incroot='${INCROOT}'
4153 @echo usrlibdir='${USRLIBDIR}'
4155 @echo libdir='${LIBDIR}'
4157 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4159 for ac_var in incroot usrlibdir libdir; do
4160 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
4162 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4163 for ac_extension in a so sl; do
4164 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4165 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4166 ac_im_usrlibdir=$ac_im_libdir; break
4169 # Screen out bogus values from the imake configuration. They are
4170 # bogus both because they are the default anyway, and because
4171 # using them would break gcc on systems where it needs fixed includes.
4172 case $ac_im_incroot in
4173 /usr/include) ac_x_includes= ;;
4174 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4176 case $ac_im_usrlibdir in
4178 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4182 rm -f -r conftest.dir
4185 # Standard set of common directories for X headers.
4186 # Check X11 before X11Rn because it is often a symlink to the current release.
4198 /usr/local/X11/include
4199 /usr/local/X11R6/include
4200 /usr/local/X11R5/include
4201 /usr/local/X11R4/include
4203 /usr/local/include/X11
4204 /usr/local/include/X11R6
4205 /usr/local/include/X11R5
4206 /usr/local/include/X11R4
4210 /usr/XFree86/include/X11
4214 /usr/unsupported/include
4216 /usr/local/x11r5/include
4217 /usr/lpp/Xamples/include
4219 /usr/openwin/include
4220 /usr/openwin/share/include'
4222 if test "$ac_x_includes" = no; then
4223 # Guess where to find include files, by looking for Xlib.h.
4224 # First, try using that file with no special directory specified.
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <X11/Xlib.h>
4233 if { (ac_try="$ac_cpp conftest.$ac_ext"
4235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4236 *) ac_try_echo
=$ac_try;;
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4241 grep -v '^ *+' conftest.er1
>conftest.err
4243 cat conftest.err
>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } >/dev
/null
&& {
4246 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4247 test ! -s conftest.err
4249 # We can compile using X headers with no special include directory.
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.
$ac_ext >&5
4255 for ac_dir
in $ac_x_header_dirs; do
4256 if test -r "$ac_dir/X11/Xlib.h"; then
4257 ac_x_includes
=$ac_dir
4263 rm -f conftest.err conftest.
$ac_ext
4264 fi # $ac_x_includes = no
4266 if test "$ac_x_libraries" = no
; then
4267 # Check for the libraries.
4268 # See if we find them without any special options.
4269 # Don't add to $LIBS permanently.
4272 cat >conftest.
$ac_ext <<_ACEOF
4275 cat confdefs.h
>>conftest.
$ac_ext
4276 cat >>conftest.
$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <X11/Xlib.h>
4287 rm -f conftest.
$ac_objext conftest
$ac_exeext
4288 if { (ac_try
="$ac_link"
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_link") 2>conftest.er1
4296 grep -v '^ *+' conftest.er1 >conftest.err
4298 cat conftest.err >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && {
4301 test -z "$ac_cxx_werror_flag" ||
4302 test ! -s conftest.err
4303 } && test -s conftest$ac_exeext &&
4304 $as_test_x conftest$ac_exeext; then
4306 # We can link X programs with no special library path.
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4313 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
4315 # Don't even attempt the hair of trying to link an X program!
4316 for ac_extension in a so sl; do
4317 if test -r "$ac_dir/libX11.$ac_extension"; then
4318 ac_x_libraries=$ac_dir
4325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4326 conftest$ac_exeext conftest.$ac_ext
4327 fi # $ac_x_libraries = no
4329 case $ac_x_includes,$ac_x_libraries in #(
4331 # Didn't find X, or a directory has "'" in its name.
4332 ac_cv_have_x="have_x=no";; #(
4334 # Record where we found X for the cache.
4335 ac_cv_have_x="have_x=yes\
4336 ac_x_includes='$ac_x_includes'\
4337 ac_x_libraries='$ac_x_libraries'"
4343 eval "$ac_cv_have_x"
4346 if test "$have_x" != yes; then
4347 { echo "$as_me:$LINENO: result: $have_x" >&5
4348 echo "${ECHO_T}$have_x" >&6; }
4351 # If each of the values was on the command line, it overrides each guess.
4352 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4353 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4354 # Update the cache value to reflect the command line values.
4355 ac_cv_have_x="have_x=yes\
4356 ac_x_includes='$x_includes'\
4357 ac_x_libraries='$x_libraries'"
4358 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4359 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4362 if test "$no_x" = yes; then
4363 # Not all programs may use this symbol, but it does not hurt to define it.
4365 cat >>confdefs.h <<\_ACEOF
4366 #define X_DISPLAY_MISSING 1
4369 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4371 if test -n "$x_includes"; then
4372 X_CFLAGS="$X_CFLAGS -I$x_includes"
4375 # It would also be nice to do this for all -L options, not just this one.
4376 if test -n "$x_libraries"; then
4377 X_LIBS="$X_LIBS -L$x_libraries"
4378 # For Solaris; some versions of Sun CC require a space after -R and
4379 # others require no space. Words are not sufficient . . . .
4380 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4381 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4382 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4383 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4384 ac_cxx_werror_flag=yes
4385 cat >conftest.$ac_ext <<_ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h. */
4400 rm -f conftest.$ac_objext conftest$ac_exeext
4401 if { (ac_try="$ac_link"
4403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4404 *) ac_try_echo
=$ac_try;;
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407 (eval "$ac_link") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1
>conftest.err
4411 cat conftest.err
>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && {
4414 test -z "$ac_cxx_werror_flag" ||
4415 test ! -s conftest.err
4416 } && test -s conftest
$ac_exeext &&
4417 $as_test_x conftest
$ac_exeext; then
4418 { echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6; }
4420 X_LIBS
="$X_LIBS -R$x_libraries"
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.
$ac_ext >&5
4425 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4426 cat >conftest.
$ac_ext <<_ACEOF
4429 cat confdefs.h
>>conftest.
$ac_ext
4430 cat >>conftest.
$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4441 rm -f conftest.
$ac_objext conftest
$ac_exeext
4442 if { (ac_try
="$ac_link"
4444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_link") 2>conftest.er1
4450 grep -v '^ *+' conftest.er1 >conftest.err
4452 cat conftest.err >&5
4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454 (exit $ac_status); } && {
4455 test -z "$ac_cxx_werror_flag" ||
4456 test ! -s conftest.err
4457 } && test -s conftest$ac_exeext &&
4458 $as_test_x conftest$ac_exeext; then
4459 { echo "$as_me:$LINENO: result: yes" >&5
4460 echo "${ECHO_T}yes" >&6; }
4461 X_LIBS="$X_LIBS -R $x_libraries"
4463 echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4466 { echo "$as_me:$LINENO: result: neither works" >&5
4467 echo "${ECHO_T}neither works" >&6; }
4470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4471 conftest$ac_exeext conftest.$ac_ext
4474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4475 conftest$ac_exeext conftest.$ac_ext
4476 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4480 # Check for system-dependent libraries X programs must link with.
4481 # Do this before checking for the system-independent R6 libraries
4482 # (-lICE), since we may need -lsocket or whatever for X linking.
4484 if test "$ISC" = yes; then
4485 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4487 # Martyn Johnson says this is needed for Ultrix, if the X
4488 # libraries were built with DECnet support. And Karl Berry says
4489 # the Alpha needs dnet_stub (dnet does not exist).
4490 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4491 cat >conftest.$ac_ext <<_ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4498 /* Override any GCC internal prototype to avoid an error.
4499 Use char because int might match the return type of a GCC
4500 builtin and then its argument prototype would still apply. */
4504 char XOpenDisplay ();
4508 return XOpenDisplay ();
4513 rm -f conftest.$ac_objext conftest$ac_exeext
4514 if { (ac_try="$ac_link"
4516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4517 *) ac_try_echo
=$ac_try;;
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_link") 2>conftest.er1
4522 grep -v '^ *+' conftest.er1
>conftest.err
4524 cat conftest.err
>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } && {
4527 test -z "$ac_cxx_werror_flag" ||
4528 test ! -s conftest.err
4529 } && test -s conftest
$ac_exeext &&
4530 $as_test_x conftest
$ac_exeext; then
4533 echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.
$ac_ext >&5
4536 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4537 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4538 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 ac_check_lib_save_LIBS
=$LIBS
4543 cat >conftest.
$ac_ext <<_ACEOF
4546 cat confdefs.h
>>conftest.
$ac_ext
4547 cat >>conftest.
$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4550 /* Override any GCC internal prototype to avoid an error.
4551 Use char because int might match the return type of a GCC
4552 builtin and then its argument prototype would still apply. */
4560 return dnet_ntoa ();
4565 rm -f conftest.
$ac_objext conftest
$ac_exeext
4566 if { (ac_try
="$ac_link"
4568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_link") 2>conftest.er1
4574 grep -v '^ *+' conftest.er1 >conftest.err
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } && {
4579 test -z "$ac_cxx_werror_flag" ||
4580 test ! -s conftest.err
4581 } && test -s conftest$ac_exeext &&
4582 $as_test_x conftest$ac_exeext; then
4583 ac_cv_lib_dnet_dnet_ntoa=yes
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_cv_lib_dnet_dnet_ntoa=no
4591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4592 conftest$ac_exeext conftest.$ac_ext
4593 LIBS=$ac_check_lib_save_LIBS
4595 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4596 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4597 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4598 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4601 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4602 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4603 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4604 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 ac_check_lib_save_LIBS=$LIBS
4608 LIBS="-ldnet_stub $LIBS"
4609 cat >conftest.$ac_ext <<_ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h. */
4616 /* Override any GCC internal prototype to avoid an error.
4617 Use char because int might match the return type of a GCC
4618 builtin and then its argument prototype would still apply. */
4626 return dnet_ntoa ();
4631 rm -f conftest.$ac_objext conftest$ac_exeext
4632 if { (ac_try="$ac_link"
4634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4635 *) ac_try_echo
=$ac_try;;
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_link") 2>conftest.er1
4640 grep -v '^ *+' conftest.er1
>conftest.err
4642 cat conftest.err
>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } && {
4645 test -z "$ac_cxx_werror_flag" ||
4646 test ! -s conftest.err
4647 } && test -s conftest
$ac_exeext &&
4648 $as_test_x conftest
$ac_exeext; then
4649 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4651 echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.
$ac_ext >&5
4654 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4657 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4658 conftest
$ac_exeext conftest.
$ac_ext
4659 LIBS
=$ac_check_lib_save_LIBS
4661 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4662 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4663 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4664 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4670 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4671 conftest
$ac_exeext conftest.
$ac_ext
4672 LIBS
="$ac_xsave_LIBS"
4674 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4675 # to get the SysV transport functions.
4676 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4678 # The nsl library prevents programs from opening the X display
4679 # on Irix 5.2, according to T.E. Dickey.
4680 # The functions gethostbyname, getservbyname, and inet_addr are
4681 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4682 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4683 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4684 if test "${ac_cv_func_gethostbyname+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 cat >conftest.
$ac_ext <<_ACEOF
4690 cat confdefs.h
>>conftest.
$ac_ext
4691 cat >>conftest.
$ac_ext <<_ACEOF
4692 /* end confdefs.h. */
4693 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4695 #define gethostbyname innocuous_gethostbyname
4697 /* System header to define __stub macros and hopefully few prototypes,
4698 which can conflict with char gethostbyname (); below.
4699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700 <limits.h> exists even on freestanding compilers. */
4703 # include <limits.h>
4705 # include <assert.h>
4708 #undef gethostbyname
4710 /* Override any GCC internal prototype to avoid an error.
4711 Use char because int might match the return type of a GCC
4712 builtin and then its argument prototype would still apply. */
4716 char gethostbyname ();
4717 /* The GNU C library defines this for functions which it implements
4718 to always fail with ENOSYS. Some functions are actually named
4719 something starting with __ and the normal name is an alias. */
4720 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4727 return gethostbyname ();
4732 rm -f conftest.
$ac_objext conftest
$ac_exeext
4733 if { (ac_try
="$ac_link"
4735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_link") 2>conftest.er1
4741 grep -v '^ *+' conftest.er1 >conftest.err
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && {
4746 test -z "$ac_cxx_werror_flag" ||
4747 test ! -s conftest.err
4748 } && test -s conftest$ac_exeext &&
4749 $as_test_x conftest$ac_exeext; then
4750 ac_cv_func_gethostbyname=yes
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4755 ac_cv_func_gethostbyname=no
4758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759 conftest$ac_exeext conftest.$ac_ext
4761 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4762 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4764 if test $ac_cv_func_gethostbyname = no; then
4765 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4766 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4767 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 ac_check_lib_save_LIBS=$LIBS
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4779 /* Override any GCC internal prototype to avoid an error.
4780 Use char because int might match the return type of a GCC
4781 builtin and then its argument prototype would still apply. */
4785 char gethostbyname ();
4789 return gethostbyname ();
4794 rm -f conftest.$ac_objext conftest$ac_exeext
4795 if { (ac_try="$ac_link"
4797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4798 *) ac_try_echo
=$ac_try;;
4800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4801 (eval "$ac_link") 2>conftest.er1
4803 grep -v '^ *+' conftest.er1
>conftest.err
4805 cat conftest.err
>&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_cxx_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest
$ac_exeext &&
4811 $as_test_x conftest
$ac_exeext; then
4812 ac_cv_lib_nsl_gethostbyname
=yes
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.
$ac_ext >&5
4817 ac_cv_lib_nsl_gethostbyname
=no
4820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4821 conftest
$ac_exeext conftest.
$ac_ext
4822 LIBS
=$ac_check_lib_save_LIBS
4824 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4825 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4826 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4827 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4830 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4831 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4832 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4833 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 ac_check_lib_save_LIBS
=$LIBS
4838 cat >conftest.
$ac_ext <<_ACEOF
4841 cat confdefs.h
>>conftest.
$ac_ext
4842 cat >>conftest.
$ac_ext <<_ACEOF
4843 /* end confdefs.h. */
4845 /* Override any GCC internal prototype to avoid an error.
4846 Use char because int might match the return type of a GCC
4847 builtin and then its argument prototype would still apply. */
4851 char gethostbyname ();
4855 return gethostbyname ();
4860 rm -f conftest.
$ac_objext conftest
$ac_exeext
4861 if { (ac_try
="$ac_link"
4863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_link") 2>conftest.er1
4869 grep -v '^ *+' conftest.er1 >conftest.err
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_cxx_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest$ac_exeext &&
4877 $as_test_x conftest$ac_exeext; then
4878 ac_cv_lib_bsd_gethostbyname=yes
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_cv_lib_bsd_gethostbyname=no
4886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4887 conftest$ac_exeext conftest.$ac_ext
4888 LIBS=$ac_check_lib_save_LIBS
4890 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4891 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4892 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4893 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4899 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4900 # socket/setsockopt and other routines are undefined under SCO ODT
4901 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4902 # on later versions), says Simon Leinen: it contains gethostby*
4903 # variants that don't use the name server (or something). -lsocket
4904 # must be given before -lnsl if both are needed. We assume that
4905 # if connect needs -lnsl, so does gethostbyname.
4906 { echo "$as_me:$LINENO: checking for connect" >&5
4907 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4908 if test "${ac_cv_func_connect+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 cat >conftest.$ac_ext <<_ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4919 #define connect innocuous_connect
4921 /* System header to define __stub macros and hopefully few prototypes,
4922 which can conflict with char connect (); below.
4923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 <limits.h> exists even on freestanding compilers. */
4927 # include <limits.h>
4929 # include <assert.h>
4934 /* Override any GCC internal prototype to avoid an error.
4935 Use char because int might match the return type of a GCC
4936 builtin and then its argument prototype would still apply. */
4941 /* The GNU C library defines this for functions which it implements
4942 to always fail with ENOSYS. Some functions are actually named
4943 something starting with __ and the normal name is an alias. */
4944 #if defined __stub_connect || defined __stub___connect
4956 rm -f conftest.$ac_objext conftest$ac_exeext
4957 if { (ac_try="$ac_link"
4959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4960 *) ac_try_echo
=$ac_try;;
4962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4963 (eval "$ac_link") 2>conftest.er1
4965 grep -v '^ *+' conftest.er1
>conftest.err
4967 cat conftest.err
>&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } && {
4970 test -z "$ac_cxx_werror_flag" ||
4971 test ! -s conftest.err
4972 } && test -s conftest
$ac_exeext &&
4973 $as_test_x conftest
$ac_exeext; then
4974 ac_cv_func_connect
=yes
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.
$ac_ext >&5
4979 ac_cv_func_connect
=no
4982 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4983 conftest
$ac_exeext conftest.
$ac_ext
4985 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4986 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4988 if test $ac_cv_func_connect = no
; then
4989 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4990 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4991 if test "${ac_cv_lib_socket_connect+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 ac_check_lib_save_LIBS
=$LIBS
4995 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
4996 cat >conftest.
$ac_ext <<_ACEOF
4999 cat confdefs.h
>>conftest.
$ac_ext
5000 cat >>conftest.
$ac_ext <<_ACEOF
5001 /* end confdefs.h. */
5003 /* Override any GCC internal prototype to avoid an error.
5004 Use char because int might match the return type of a GCC
5005 builtin and then its argument prototype would still apply. */
5018 rm -f conftest.
$ac_objext conftest
$ac_exeext
5019 if { (ac_try
="$ac_link"
5021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_link") 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } && {
5032 test -z "$ac_cxx_werror_flag" ||
5033 test ! -s conftest.err
5034 } && test -s conftest$ac_exeext &&
5035 $as_test_x conftest$ac_exeext; then
5036 ac_cv_lib_socket_connect=yes
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5041 ac_cv_lib_socket_connect=no
5044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5045 conftest$ac_exeext conftest.$ac_ext
5046 LIBS=$ac_check_lib_save_LIBS
5048 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5049 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5050 if test $ac_cv_lib_socket_connect = yes; then
5051 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5056 # Guillermo Gomez says -lposix is necessary on A/UX.
5057 { echo "$as_me:$LINENO: checking for remove" >&5
5058 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5059 if test "${ac_cv_func_remove+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5068 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5070 #define remove innocuous_remove
5072 /* System header to define __stub macros and hopefully few prototypes,
5073 which can conflict with char remove (); below.
5074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 <limits.h> exists even on freestanding compilers. */
5078 # include <limits.h>
5080 # include <assert.h>
5085 /* Override any GCC internal prototype to avoid an error.
5086 Use char because int might match the return type of a GCC
5087 builtin and then its argument prototype would still apply. */
5092 /* The GNU C library defines this for functions which it implements
5093 to always fail with ENOSYS. Some functions are actually named
5094 something starting with __ and the normal name is an alias. */
5095 #if defined __stub_remove || defined __stub___remove
5107 rm -f conftest.$ac_objext conftest$ac_exeext
5108 if { (ac_try="$ac_link"
5110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5111 *) ac_try_echo
=$ac_try;;
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114 (eval "$ac_link") 2>conftest.er1
5116 grep -v '^ *+' conftest.er1
>conftest.err
5118 cat conftest.err
>&5
5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120 (exit $ac_status); } && {
5121 test -z "$ac_cxx_werror_flag" ||
5122 test ! -s conftest.err
5123 } && test -s conftest
$ac_exeext &&
5124 $as_test_x conftest
$ac_exeext; then
5125 ac_cv_func_remove
=yes
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.
$ac_ext >&5
5130 ac_cv_func_remove
=no
5133 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5134 conftest
$ac_exeext conftest.
$ac_ext
5136 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5137 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5139 if test $ac_cv_func_remove = no
; then
5140 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5141 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5142 if test "${ac_cv_lib_posix_remove+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 ac_check_lib_save_LIBS
=$LIBS
5146 LIBS
="-lposix $LIBS"
5147 cat >conftest.
$ac_ext <<_ACEOF
5150 cat confdefs.h
>>conftest.
$ac_ext
5151 cat >>conftest.
$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5154 /* Override any GCC internal prototype to avoid an error.
5155 Use char because int might match the return type of a GCC
5156 builtin and then its argument prototype would still apply. */
5169 rm -f conftest.
$ac_objext conftest
$ac_exeext
5170 if { (ac_try
="$ac_link"
5172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_link") 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } && {
5183 test -z "$ac_cxx_werror_flag" ||
5184 test ! -s conftest.err
5185 } && test -s conftest$ac_exeext &&
5186 $as_test_x conftest$ac_exeext; then
5187 ac_cv_lib_posix_remove=yes
5189 echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5192 ac_cv_lib_posix_remove=no
5195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5196 conftest$ac_exeext conftest.$ac_ext
5197 LIBS=$ac_check_lib_save_LIBS
5199 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5200 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5201 if test $ac_cv_lib_posix_remove = yes; then
5202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5207 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5208 { echo "$as_me:$LINENO: checking for shmat" >&5
5209 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5210 if test "${ac_cv_func_shmat+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 cat >conftest.$ac_ext <<_ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h. */
5219 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5221 #define shmat innocuous_shmat
5223 /* System header to define __stub macros and hopefully few prototypes,
5224 which can conflict with char shmat (); below.
5225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 <limits.h> exists even on freestanding compilers. */
5229 # include <limits.h>
5231 # include <assert.h>
5236 /* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
5243 /* The GNU C library defines this for functions which it implements
5244 to always fail with ENOSYS. Some functions are actually named
5245 something starting with __ and the normal name is an alias. */
5246 #if defined __stub_shmat || defined __stub___shmat
5258 rm -f conftest.$ac_objext conftest$ac_exeext
5259 if { (ac_try="$ac_link"
5261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5262 *) ac_try_echo
=$ac_try;;
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_link") 2>conftest.er1
5267 grep -v '^ *+' conftest.er1
>conftest.err
5269 cat conftest.err
>&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_cxx_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest
$ac_exeext &&
5275 $as_test_x conftest
$ac_exeext; then
5276 ac_cv_func_shmat
=yes
5278 echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.
$ac_ext >&5
5284 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5285 conftest
$ac_exeext conftest.
$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5288 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5290 if test $ac_cv_func_shmat = no
; then
5291 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5292 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5293 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 ac_check_lib_save_LIBS
=$LIBS
5298 cat >conftest.
$ac_ext <<_ACEOF
5301 cat confdefs.h
>>conftest.
$ac_ext
5302 cat >>conftest.
$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5305 /* Override any GCC internal prototype to avoid an error.
5306 Use char because int might match the return type of a GCC
5307 builtin and then its argument prototype would still apply. */
5320 rm -f conftest.
$ac_objext conftest
$ac_exeext
5321 if { (ac_try
="$ac_link"
5323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_link") 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_cxx_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest$ac_exeext &&
5337 $as_test_x conftest$ac_exeext; then
5338 ac_cv_lib_ipc_shmat=yes
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5343 ac_cv_lib_ipc_shmat=no
5346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5347 conftest$ac_exeext conftest.$ac_ext
5348 LIBS=$ac_check_lib_save_LIBS
5350 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5351 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5352 if test $ac_cv_lib_ipc_shmat = yes; then
5353 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5359 # Check for libraries that X11R6 Xt/Xaw programs need.
5360 ac_save_LDFLAGS=$LDFLAGS
5361 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5362 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5363 # check for ICE first), but we must link in the order -lSM -lICE or
5364 # we get undefined symbols. So assume we have SM if we have ICE.
5365 # These have to be linked with before -lX11, unlike the other
5366 # libraries we check for below, so use a different variable.
5367 # John Interrante, Karl Berry
5368 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5369 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5370 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_check_lib_save_LIBS=$LIBS
5374 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5375 cat >conftest.$ac_ext <<_ACEOF
5378 cat confdefs.h >>conftest.$ac_ext
5379 cat >>conftest.$ac_ext <<_ACEOF
5380 /* end confdefs.h. */
5382 /* Override any GCC internal prototype to avoid an error.
5383 Use char because int might match the return type of a GCC
5384 builtin and then its argument prototype would still apply. */
5388 char IceConnectionNumber ();
5392 return IceConnectionNumber ();
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (ac_try="$ac_link"
5400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5401 *) ac_try_echo
=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_link") 2>conftest.er1
5406 grep -v '^ *+' conftest.er1
>conftest.err
5408 cat conftest.err
>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } && {
5411 test -z "$ac_cxx_werror_flag" ||
5412 test ! -s conftest.err
5413 } && test -s conftest
$ac_exeext &&
5414 $as_test_x conftest
$ac_exeext; then
5415 ac_cv_lib_ICE_IceConnectionNumber
=yes
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.
$ac_ext >&5
5420 ac_cv_lib_ICE_IceConnectionNumber
=no
5423 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5424 conftest
$ac_exeext conftest.
$ac_ext
5425 LIBS
=$ac_check_lib_save_LIBS
5427 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5428 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5429 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5430 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5433 LDFLAGS
=$ac_save_LDFLAGS
5439 for ac_header
in pty.h util.h
5441 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5442 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5445 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 ac_res
=`eval echo '${'$as_ac_Header'}'`
5449 { echo "$as_me:$LINENO: result: $ac_res" >&5
5450 echo "${ECHO_T}$ac_res" >&6; }
5452 # Is the header compilable?
5453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 cat confdefs.h
>>conftest.
$ac_ext
5459 cat >>conftest.
$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 #include <$ac_header>
5464 rm -f conftest.
$ac_objext
5465 if { (ac_try
="$ac_compile"
5467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5471 (eval "$ac_compile") 2>conftest.er1
5473 grep -v '^ *+' conftest.er1 >conftest.err
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } && {
5478 test -z "$ac_cxx_werror_flag" ||
5479 test ! -s conftest.err
5480 } && test -s conftest.$ac_objext; then
5481 ac_header_compiler=yes
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5486 ac_header_compiler=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5491 echo "${ECHO_T}$ac_header_compiler" >&6; }
5493 # Is the header present?
5494 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 #include <$ac_header>
5504 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5507 *) ac_try_echo
=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5512 grep -v '^ *+' conftest.er1
>conftest.err
5514 cat conftest.err
>&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev
/null
&& {
5517 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5518 test ! -s conftest.err
5520 ac_header_preproc
=yes
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.
$ac_ext >&5
5525 ac_header_preproc
=no
5528 rm -f conftest.err conftest.
$ac_ext
5529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5530 echo "${ECHO_T}$ac_header_preproc" >&6; }
5532 # So? What about this header?
5533 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5535 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5536 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5537 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5539 ac_header_preproc
=yes
5542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5546 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5547 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5548 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5549 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5553 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5559 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 eval "$as_ac_Header=\$ac_header_preproc"
5564 ac_res
=`eval echo '${'$as_ac_Header'}'`
5565 { echo "$as_me:$LINENO: result: $ac_res" >&5
5566 echo "${ECHO_T}$ac_res" >&6; }
5569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5570 cat >>confdefs.h
<<_ACEOF
5571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579 for ac_func
in gettimeofday
5581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5584 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 cat >conftest.
$ac_ext <<_ACEOF
5590 cat confdefs.h
>>conftest.
$ac_ext
5591 cat >>conftest.
$ac_ext <<_ACEOF
5592 /* end confdefs.h. */
5593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5595 #define $ac_func innocuous_$ac_func
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func (); below.
5599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5600 <limits.h> exists even on freestanding compilers. */
5603 # include <limits.h>
5605 # include <assert.h>
5610 /* Override any GCC internal prototype to avoid an error.
5611 Use char because int might match the return type of a GCC
5612 builtin and then its argument prototype would still apply. */
5617 /* The GNU C library defines this for functions which it implements
5618 to always fail with ENOSYS. Some functions are actually named
5619 something starting with __ and the normal name is an alias. */
5620 #if defined __stub_$ac_func || defined __stub___$ac_func
5632 rm -f conftest.
$ac_objext conftest
$ac_exeext
5633 if { (ac_try
="$ac_link"
5635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5636 *) ac_try_echo=$ac_try;;
5638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5639 (eval "$ac_link") 2>conftest.er1
5641 grep -v '^ *+' conftest.er1 >conftest.err
5643 cat conftest.err >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); } && {
5646 test -z "$ac_cxx_werror_flag" ||
5647 test ! -s conftest.err
5648 } && test -s conftest$ac_exeext &&
5649 $as_test_x conftest$ac_exeext; then
5650 eval "$as_ac_var=yes"
5652 echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5655 eval "$as_ac_var=no"
5658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5659 conftest$ac_exeext conftest.$ac_ext
5661 ac_res=`eval echo '${'$as_ac_var'}'`
5662 { echo "$as_me:$LINENO: result: $ac_res" >&5
5663 echo "${ECHO_T}$ac_res" >&6; }
5664 if test `eval echo '${'$as_ac_var'}'` = yes; then
5665 cat >>confdefs.h <<_ACEOF
5666 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5673 #--------------------------------------------------------------------
5674 # Checks for dl library
5675 #--------------------------------------------------------------------
5677 { echo "$as_me:$LINENO: checking for dlopen" >&5
5678 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5679 if test "${ac_cv_func_dlopen+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 cat >conftest.$ac_ext <<_ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h. */
5688 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5690 #define dlopen innocuous_dlopen
5692 /* System header to define __stub macros and hopefully few prototypes,
5693 which can conflict with char dlopen (); below.
5694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695 <limits.h> exists even on freestanding compilers. */
5698 # include <limits.h>
5700 # include <assert.h>
5705 /* Override any GCC internal prototype to avoid an error.
5706 Use char because int might match the return type of a GCC
5707 builtin and then its argument prototype would still apply. */
5712 /* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715 #if defined __stub_dlopen || defined __stub___dlopen
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (ac_try="$ac_link"
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_link") 2>conftest.er1
5736 grep -v '^ *+' conftest.er1
>conftest.err
5738 cat conftest.err
>&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_cxx_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest
$ac_exeext &&
5744 $as_test_x conftest
$ac_exeext; then
5745 ac_cv_func_dlopen
=yes
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.
$ac_ext >&5
5750 ac_cv_func_dlopen
=no
5753 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5754 conftest
$ac_exeext conftest.
$ac_ext
5756 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5757 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5759 if test "$ac_cv_func_dl" = "yes"; then
5761 cat >>confdefs.h
<<\_ACEOF
5762 #define DYNAMIC_LINKING 1
5767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 ac_check_lib_save_LIBS
=$LIBS
5774 cat >conftest.
$ac_ext <<_ACEOF
5777 cat confdefs.h
>>conftest.
$ac_ext
5778 cat >>conftest.
$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5781 /* Override any GCC internal prototype to avoid an error.
5782 Use char because int might match the return type of a GCC
5783 builtin and then its argument prototype would still apply. */
5796 rm -f conftest.
$ac_objext conftest
$ac_exeext
5797 if { (ac_try
="$ac_link"
5799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5803 (eval "$ac_link") 2>conftest.er1
5805 grep -v '^ *+' conftest.er1 >conftest.err
5807 cat conftest.err >&5
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); } && {
5810 test -z "$ac_cxx_werror_flag" ||
5811 test ! -s conftest.err
5812 } && test -s conftest$ac_exeext &&
5813 $as_test_x conftest$ac_exeext; then
5814 ac_cv_lib_dl_dlopen=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_cv_lib_dl_dlopen=no
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext conftest.$ac_ext
5824 LIBS=$ac_check_lib_save_LIBS
5826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5828 if test $ac_cv_lib_dl_dlopen = yes; then
5829 cat >>confdefs.h <<_ACEOF
5830 #define HAVE_LIBDL 1
5837 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5839 for ac_func in dlopen
5841 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.$ac_ext <<_ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5855 #define $ac_func innocuous_$ac_func
5857 /* System header to define __stub macros and hopefully few prototypes,
5858 which can conflict with char $ac_func (); below.
5859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5860 <limits.h> exists even on freestanding compilers. */
5863 # include <limits.h>
5865 # include <assert.h>
5870 /* Override any GCC internal prototype to avoid an error.
5871 Use char because int might match the return type of a GCC
5872 builtin and then its argument prototype would still apply. */
5877 /* The GNU C library defines this for functions which it implements
5878 to always fail with ENOSYS. Some functions are actually named
5879 something starting with __ and the normal name is an alias. */
5880 #if defined __stub_$ac_func || defined __stub___$ac_func
5892 rm -f conftest.$ac_objext conftest$ac_exeext
5893 if { (ac_try="$ac_link"
5895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5896 *) ac_try_echo
=$ac_try;;
5898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5899 (eval "$ac_link") 2>conftest.er1
5901 grep -v '^ *+' conftest.er1
>conftest.err
5903 cat conftest.err
>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); } && {
5906 test -z "$ac_cxx_werror_flag" ||
5907 test ! -s conftest.err
5908 } && test -s conftest
$ac_exeext &&
5909 $as_test_x conftest
$ac_exeext; then
5910 eval "$as_ac_var=yes"
5912 echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.
$ac_ext >&5
5915 eval "$as_ac_var=no"
5918 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5919 conftest
$ac_exeext conftest.
$ac_ext
5921 ac_res
=`eval echo '${'$as_ac_var'}'`
5922 { echo "$as_me:$LINENO: result: $ac_res" >&5
5923 echo "${ECHO_T}$ac_res" >&6; }
5924 if test `eval echo '${'$as_ac_var'}'` = yes; then
5925 cat >>confdefs.h
<<_ACEOF
5926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5934 cat >>confdefs.h
<<\_ACEOF
5935 #define DYNAMIC_LINKING 1
5940 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
5941 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
5942 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
5943 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 ac_check_lib_save_LIBS
=$LIBS
5947 cat >conftest.
$ac_ext <<_ACEOF
5950 cat confdefs.h
>>conftest.
$ac_ext
5951 cat >>conftest.
$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5954 /* Override any GCC internal prototype to avoid an error.
5955 Use char because int might match the return type of a GCC
5956 builtin and then its argument prototype would still apply. */
5969 rm -f conftest.
$ac_objext conftest
$ac_exeext
5970 if { (ac_try
="$ac_link"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_link") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && {
5983 test -z "$ac_cxx_werror_flag" ||
5984 test ! -s conftest.err
5985 } && test -s conftest$ac_exeext &&
5986 $as_test_x conftest$ac_exeext; then
5987 ac_cv_lib_dld_dld_link=yes
5989 echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5992 ac_cv_lib_dld_dld_link=no
5995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5996 conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_check_lib_save_LIBS
5999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6000 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6001 if test $ac_cv_lib_dld_dld_link = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define HAVE_LIBDLD 1
6010 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6013 cat >>confdefs.h <<\_ACEOF
6014 #define DYNAMIC_LINKING 1
6019 for ac_func in shl_load
6021 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 cat >conftest.$ac_ext <<_ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6035 #define $ac_func innocuous_$ac_func
6037 /* System header to define __stub macros and hopefully few prototypes,
6038 which can conflict with char $ac_func (); below.
6039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6040 <limits.h> exists even on freestanding compilers. */
6043 # include <limits.h>
6045 # include <assert.h>
6050 /* Override any GCC internal prototype to avoid an error.
6051 Use char because int might match the return type of a GCC
6052 builtin and then its argument prototype would still apply. */
6057 /* The GNU C library defines this for functions which it implements
6058 to always fail with ENOSYS. Some functions are actually named
6059 something starting with __ and the normal name is an alias. */
6060 #if defined __stub_$ac_func || defined __stub___$ac_func
6072 rm -f conftest.$ac_objext conftest$ac_exeext
6073 if { (ac_try="$ac_link"
6075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6076 *) ac_try_echo
=$ac_try;;
6078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6079 (eval "$ac_link") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1
>conftest.err
6083 cat conftest.err
>&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_cxx_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest
$ac_exeext &&
6089 $as_test_x conftest
$ac_exeext; then
6090 eval "$as_ac_var=yes"
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.
$ac_ext >&5
6095 eval "$as_ac_var=no"
6098 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6099 conftest
$ac_exeext conftest.
$ac_ext
6101 ac_res
=`eval echo '${'$as_ac_var'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104 if test `eval echo '${'$as_ac_var'}'` = yes; then
6105 cat >>confdefs.h
<<_ACEOF
6106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6112 if test "$ac_cv_func_shl_load" = "yes"; then
6115 cat >>confdefs.h
<<\_ACEOF
6116 #define DYNAMIC_LINKING 1
6121 for ac_func
in dlopen
6123 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6126 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6127 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 cat >conftest.
$ac_ext <<_ACEOF
6132 cat confdefs.h
>>conftest.
$ac_ext
6133 cat >>conftest.
$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6137 #define $ac_func innocuous_$ac_func
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func (); below.
6141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 <limits.h> exists even on freestanding compilers. */
6145 # include <limits.h>
6147 # include <assert.h>
6152 /* Override any GCC internal prototype to avoid an error.
6153 Use char because int might match the return type of a GCC
6154 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined __stub_$ac_func || defined __stub___$ac_func
6174 rm -f conftest.
$ac_objext conftest
$ac_exeext
6175 if { (ac_try
="$ac_link"
6177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_link") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } && {
6188 test -z "$ac_cxx_werror_flag" ||
6189 test ! -s conftest.err
6190 } && test -s conftest$ac_exeext &&
6191 $as_test_x conftest$ac_exeext; then
6192 eval "$as_ac_var=yes"
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6197 eval "$as_ac_var=no"
6200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6201 conftest$ac_exeext conftest.$ac_ext
6203 ac_res=`eval echo '${'$as_ac_var'}'`
6204 { echo "$as_me:$LINENO: result: $ac_res" >&5
6205 echo "${ECHO_T}$ac_res" >&6; }
6206 if test `eval echo '${'$as_ac_var'}'` = yes; then
6207 cat >>confdefs.h <<_ACEOF
6208 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6214 if test "$ac_cv_func_dlopen" = "yes"; then
6216 cat >>confdefs.h <<\_ACEOF
6217 #define DYNAMIC_LINKING 1
6227 #--------------------------------------------------------------------
6228 # Checks for iconv library
6229 #--------------------------------------------------------------------
6232 # Check whether --with-iconv was given.
6233 if test "${with_iconv+set}" = set; then
6234 withval=$with_iconv;
6239 # Modified from GNOME's libxml2 configure.in
6242 ac_cpp='$CPP $CPPFLAGS'
6243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6246 # compile C to avoid the 'const char**' problem
6248 SAVE_CPPFLAGS="$CPPFLAGS"
6249 SAVE_LDFLAGS="$LDFLAGS"
6251 if test "$with_iconv" = "no" ; then
6252 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6253 echo "${ECHO_T}disabling iconv support" >&6; }
6255 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6256 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6257 LDFLAGS="$ICONV_LDFLAGS"
6259 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6260 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6261 LDFLAGS="-L$with_iconv/lib"
6262 ICONV_CFLAGS="-I$with_iconv/include"
6263 ICONV_LDFLAGS="-L$with_iconv/lib"
6267 ac_cpp='$CPP $CPPFLAGS'
6268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6271 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6272 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6273 # On Suns, sometimes $CPP names a directory.
6274 if test -n "$CPP" && test -d "$CPP"; then
6277 if test -z "$CPP"; then
6278 if test "${ac_cv_prog_CPP+set}" = set; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
6281 # Double quotes because CPP needs to be expanded
6282 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6285 for ac_c_preproc_warn_flag in '' yes
6287 # Use a header file that comes with gcc, so configuring glibc
6288 # with a fresh cross-compiler works.
6289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6290 # <limits.h> exists even on freestanding compilers.
6291 # On the NeXT, cc -E runs the code through the compiler's parser,
6292 # not just through cpp. "Syntax error" is here to catch this case.
6293 cat >conftest.$ac_ext <<_ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6300 # include <limits.h>
6302 # include <assert.h>
6306 if { (ac_try="$ac_cpp conftest.$ac_ext"
6308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6309 *) ac_try_echo
=$ac_try;;
6311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6314 grep -v '^ *+' conftest.er1
>conftest.err
6316 cat conftest.err
>&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } >/dev
/null
&& {
6319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6320 test ! -s conftest.err
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.
$ac_ext >&5
6327 # Broken: fails on valid input.
6331 rm -f conftest.err conftest.
$ac_ext
6333 # OK, works on sane cases. Now check whether nonexistent headers
6334 # can be detected and how.
6335 cat >conftest.
$ac_ext <<_ACEOF
6338 cat confdefs.h
>>conftest.
$ac_ext
6339 cat >>conftest.
$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <ac_nonexistent.h>
6343 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1 >conftest.err
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev/null && {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6359 # Broken: success on invalid input.
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 # Passes both tests.
6370 rm -f conftest.err conftest.$ac_ext
6373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6374 rm -f conftest.err conftest.
$ac_ext
6375 if $ac_preproc_ok; then
6387 { echo "$as_me:$LINENO: result: $CPP" >&5
6388 echo "${ECHO_T}$CPP" >&6; }
6390 for ac_c_preproc_warn_flag
in '' yes
6392 # Use a header file that comes with gcc, so configuring glibc
6393 # with a fresh cross-compiler works.
6394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6395 # <limits.h> exists even on freestanding compilers.
6396 # On the NeXT, cc -E runs the code through the compiler's parser,
6397 # not just through cpp. "Syntax error" is here to catch this case.
6398 cat >conftest.
$ac_ext <<_ACEOF
6401 cat confdefs.h
>>conftest.
$ac_ext
6402 cat >>conftest.
$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6405 # include <limits.h>
6407 # include <assert.h>
6411 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } >/dev/null && {
6424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 # Broken: fails on valid input.
6436 rm -f conftest.err conftest.$ac_ext
6438 # OK, works on sane cases. Now check whether nonexistent headers
6439 # can be detected and how.
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 #include <ac_nonexistent.h>
6448 if { (ac_try="$ac_cpp conftest.$ac_ext"
6450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6451 *) ac_try_echo
=$ac_try;;
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6456 grep -v '^ *+' conftest.er1
>conftest.err
6458 cat conftest.err
>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } >/dev
/null
&& {
6461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6464 # Broken: success on invalid input.
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.
$ac_ext >&5
6470 # Passes both tests.
6475 rm -f conftest.err conftest.
$ac_ext
6478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6479 rm -f conftest.err conftest.
$ac_ext
6480 if $ac_preproc_ok; then
6483 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6484 See \`config.log' for more details." >&5
6485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6486 See \`config.log' for more details." >&2;}
6487 { (exit 1); exit 1; }; }
6491 ac_cpp
='$CPP $CPPFLAGS'
6492 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6497 if test "${ac_cv_header_iconv_h+set}" = set; then
6498 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6499 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6500 if test "${ac_cv_header_iconv_h+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6504 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6506 # Is the header compilable?
6507 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6508 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6509 cat >conftest.
$ac_ext <<_ACEOF
6512 cat confdefs.h
>>conftest.
$ac_ext
6513 cat >>conftest.
$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6518 rm -f conftest.
$ac_objext
6519 if { (ac_try
="$ac_compile"
6521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 ac_header_compiler=yes
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_header_compiler=no
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6545 echo "${ECHO_T}$ac_header_compiler" >&6; }
6547 # Is the header present?
6548 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6549 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6558 if { (ac_try="$ac_cpp conftest.$ac_ext"
6560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6561 *) ac_try_echo
=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1
>conftest.err
6568 cat conftest.err
>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev
/null
&& {
6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6574 ac_header_preproc
=yes
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.
$ac_ext >&5
6579 ac_header_preproc
=no
6582 rm -f conftest.err conftest.
$ac_ext
6583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584 echo "${ECHO_T}$ac_header_preproc" >&6; }
6586 # So? What about this header?
6587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6589 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6590 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6592 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6593 ac_header_preproc
=yes
6596 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6597 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6599 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6601 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6603 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6605 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6607 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6611 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6612 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6613 if test "${ac_cv_header_iconv_h+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 ac_cv_header_iconv_h
=$ac_header_preproc
6618 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6619 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6622 if test $ac_cv_header_iconv_h = yes; then
6623 { echo "$as_me:$LINENO: checking for iconv" >&5
6624 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6626 cat >conftest.
$ac_ext <<_ACEOF
6629 cat confdefs.h
>>conftest.
$ac_ext
6630 cat >>conftest.
$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6640 iconv_t cd = iconv_open ("","");
6641 iconv (cd, NULL, NULL, NULL, NULL);
6647 rm -f conftest.
$ac_objext conftest
$ac_exeext
6648 if { (ac_try
="$ac_link"
6650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest$ac_exeext &&
6664 $as_test_x conftest$ac_exeext; then
6666 { echo "$as_me:$LINENO: result: yes" >&5
6667 echo "${ECHO_T}yes" >&6; }
6669 cat >>confdefs.h <<\_ACEOF
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6679 { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6681 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6682 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6683 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6684 LIBS="-liconv" # for AC_TRY_LINK
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6699 iconv_t cd = iconv_open ("","");
6700 iconv (cd, NULL, NULL, NULL, NULL);
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (ac_try="$ac_link"
6709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6710 *) ac_try_echo
=$ac_try;;
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_link") 2>conftest.er1
6715 grep -v '^ *+' conftest.er1
>conftest.err
6717 cat conftest.err
>&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); } && {
6720 test -z "$ac_c_werror_flag" ||
6721 test ! -s conftest.err
6722 } && test -s conftest
$ac_exeext &&
6723 $as_test_x conftest
$ac_exeext; then
6725 { echo "$as_me:$LINENO: result: yes" >&5
6726 echo "${ECHO_T}yes" >&6; }
6728 cat >>confdefs.h
<<\_ACEOF
6732 ICONV_LDFLAGS
="${ICONV_LDFLAGS/-liconv} -liconv"
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.
$ac_ext >&5
6739 { echo "$as_me:$LINENO: result: no" >&5
6740 echo "${ECHO_T}no" >&6; }
6741 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6742 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6746 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6747 conftest
$ac_exeext conftest.
$ac_ext
6750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6751 conftest
$ac_exeext conftest.
$ac_ext
6757 CPPFLAGS
="$SAVE_CPPFLAGS"
6758 LDFLAGS
="$SAVE_LDFLAGS"
6761 ac_cpp
='$CXXCPP $CPPFLAGS'
6762 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6765 # restore C++ language
6769 #--------------------------------------------------------------------
6770 # Checks for freetype library
6771 #--------------------------------------------------------------------
6774 # Check whether --with-freetype was given.
6775 if test "${with_freetype+set}" = set; then
6776 withval
=$with_freetype;
6780 SAVE_CPPFLAGS
="$CPPFLAGS"
6781 SAVE_LDFLAGS
="$LDFLAGS"
6783 if test "$with_freetype" = "no" ; then
6784 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6785 echo "${ECHO_T}disabling freetype support" >&6; }
6787 if test -z "$FREETYPE_CFLAGS"; then
6788 FREETYPE_CFLAGS
=`freetype-config --cflags`
6790 CPPFLAGS
="$CPPFLAGS $FREETYPE_CFLAGS"
6791 if test -z "$FREETYPE_LDFLAGS"; then
6792 FREETYPE_LDFLAGS
=`freetype-config --libs`
6794 LIBS
="$LDFLAGS $FREETYPE_LDFLAGS"
6795 if test "${ac_cv_header_ft2build_h+set}" = set; then
6796 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6797 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6798 if test "${ac_cv_header_ft2build_h+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6802 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6804 # Is the header compilable?
6805 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6806 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6807 cat >conftest.
$ac_ext <<_ACEOF
6810 cat confdefs.h
>>conftest.
$ac_ext
6811 cat >>conftest.
$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 $ac_includes_default
6814 #include <ft2build.h>
6816 rm -f conftest.
$ac_objext
6817 if { (ac_try
="$ac_compile"
6819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823 (eval "$ac_compile") 2>conftest.er1
6825 grep -v '^ *+' conftest.er1 >conftest.err
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } && {
6830 test -z "$ac_cxx_werror_flag" ||
6831 test ! -s conftest.err
6832 } && test -s conftest.$ac_objext; then
6833 ac_header_compiler=yes
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6838 ac_header_compiler=no
6841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6843 echo "${ECHO_T}$ac_header_compiler" >&6; }
6845 # Is the header present?
6846 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6847 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6848 cat >conftest.$ac_ext <<_ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <ft2build.h>
6856 if { (ac_try="$ac_cpp conftest.$ac_ext"
6858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6859 *) ac_try_echo
=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } >/dev
/null
&& {
6869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6870 test ! -s conftest.err
6872 ac_header_preproc
=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 ac_header_preproc
=no
6880 rm -f conftest.err conftest.
$ac_ext
6881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6882 echo "${ECHO_T}$ac_header_preproc" >&6; }
6884 # So? What about this header?
6885 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6887 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
6888 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6889 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
6890 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
6891 ac_header_preproc
=yes
6894 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
6895 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
6897 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
6899 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
6901 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
6903 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
6905 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
6909 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6910 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6911 if test "${ac_cv_header_ft2build_h+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 ac_cv_header_ft2build_h
=$ac_header_preproc
6916 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6917 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6920 if test $ac_cv_header_ft2build_h = yes; then
6921 { echo "$as_me:$LINENO: checking for freetype" >&5
6922 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
6923 cat >conftest.
$ac_ext <<_ACEOF
6926 cat confdefs.h
>>conftest.
$ac_ext
6927 cat >>conftest.
$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6930 #include <ft2build.h>
6931 #include FT_FREETYPE_H
6937 FT_Library ft_library;
6938 (void) FT_Init_FreeType (&ft_library);
6944 rm -f conftest.
$ac_objext conftest
$ac_exeext
6945 if { (ac_try
="$ac_link"
6947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_link") 2>conftest.er1
6953 grep -v '^ *+' conftest.er1 >conftest.err
6955 cat conftest.err >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); } && {
6958 test -z "$ac_cxx_werror_flag" ||
6959 test ! -s conftest.err
6960 } && test -s conftest$ac_exeext &&
6961 $as_test_x conftest$ac_exeext; then
6963 { echo "$as_me:$LINENO: result: yes" >&5
6964 echo "${ECHO_T}yes" >&6; }
6966 cat >>confdefs.h <<\_ACEOF
6967 #define USE_FREETYPE 1
6970 FREETYPE_CFLAGS="$CPPFLAGS"
6971 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
6972 FREETYPE_LDFLAGS="$LIBS"
6974 cat >>confdefs.h <<\_ACEOF
6975 #define LINKED_FREETYPE 1
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6985 { echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6; }
6989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6990 conftest$ac_exeext conftest.$ac_ext
6996 CPPFLAGS="$SAVE_CPPFLAGS"
6997 LDFLAGS="$SAVE_LDFLAGS"
7003 #--------------------------------------------------------------------
7004 # Checks for Cairo library
7005 #--------------------------------------------------------------------
7008 # Check whether --with-cairo was given.
7009 if test "${with_cairo+set}" = set; then
7010 withval=$with_cairo;
7014 SAVE_CPPFLAGS="$CPPFLAGS"
7015 SAVE_LDFLAGS="$LDFLAGS"
7017 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7018 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7019 echo "${ECHO_T}disabling cairo support" >&6; }
7021 CPPFLAGS=`pkg-config
--cflags cairo
`
7022 LIBS=`pkg-config
--libs cairo
`
7023 if test "${ac_cv_header_cairo_h+set}" = set; then
7024 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7025 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7026 if test "${ac_cv_header_cairo_h+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7030 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7032 # Is the header compilable?
7033 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7034 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 $ac_includes_default
7044 rm -f conftest.$ac_objext
7045 if { (ac_try="$ac_compile"
7047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7048 *) ac_try_echo
=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_compile") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1
>conftest.err
7055 cat conftest.err
>&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_cxx_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest.
$ac_objext; then
7061 ac_header_compiler
=yes
7063 echo "$as_me: failed program was:" >&5
7064 sed 's/^/| /' conftest.
$ac_ext >&5
7066 ac_header_compiler
=no
7069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7071 echo "${ECHO_T}$ac_header_compiler" >&6; }
7073 # Is the header present?
7074 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7075 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7076 cat >conftest.
$ac_ext <<_ACEOF
7079 cat confdefs.h
>>conftest.
$ac_ext
7080 cat >>conftest.
$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7084 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7092 grep -v '^ *+' conftest.er1 >conftest.err
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } >/dev/null && {
7097 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7098 test ! -s conftest.err
7100 ac_header_preproc=yes
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_header_preproc=no
7108 rm -f conftest.err conftest.$ac_ext
7109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110 echo "${ECHO_T}$ac_header_preproc" >&6; }
7112 # So? What about this header?
7113 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7115 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7116 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7118 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7119 ac_header_preproc=yes
7122 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7123 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7125 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7126 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7127 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7128 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7129 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7130 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7131 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7132 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7133 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7137 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7138 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7139 if test "${ac_cv_header_cairo_h+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_header_cairo_h=$ac_header_preproc
7144 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7145 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7148 if test $ac_cv_header_cairo_h = yes; then
7149 { echo "$as_me:$LINENO: checking for cairo" >&5
7150 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7151 cat >conftest.$ac_ext <<_ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7164 cairo_surface_t *surface;
7165 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (ac_try="$ac_link"
7174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7175 *) ac_try_echo
=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_link") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1
>conftest.err
7182 cat conftest.err
>&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_cxx_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest
$ac_exeext &&
7188 $as_test_x conftest
$ac_exeext; then
7190 { echo "$as_me:$LINENO: result: yes" >&5
7191 echo "${ECHO_T}yes" >&6; }
7193 cat >>confdefs.h
<<\_ACEOF
7197 CAIRO_CFLAGS
="$CPPFLAGS"
7198 if test "$with_cairo" = "linked" ; then
7199 CAIRO_LDFLAGS
="$LIBS"
7201 cat >>confdefs.h
<<\_ACEOF
7202 #define LINKED_CAIRO 1
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.
$ac_ext >&5
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7216 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7217 conftest
$ac_exeext conftest.
$ac_ext
7223 CPPFLAGS
="$SAVE_CPPFLAGS"
7224 LDFLAGS
="$SAVE_LDFLAGS"
7230 #--------------------------------------------------------------------
7231 # Checks for Imlib2 library
7232 #--------------------------------------------------------------------
7235 # Check whether --with-imlib2 was given.
7236 if test "${with_imlib2+set}" = set; then
7237 withval
=$with_imlib2;
7241 SAVE_CPPFLAGS
="$CPPFLAGS"
7242 SAVE_LDFLAGS
="$LDFLAGS"
7244 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7245 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7246 echo "${ECHO_T}disabling imlib2 support" >&6; }
7248 CPPFLAGS
=`imlib2-config --cflags`
7249 LIBS
=`imlib2-config --libs`
7250 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7251 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7252 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7253 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7256 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7257 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7259 # Is the header compilable?
7260 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7261 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7262 cat >conftest.
$ac_ext <<_ACEOF
7265 cat confdefs.h
>>conftest.
$ac_ext
7266 cat >>conftest.
$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7271 rm -f conftest.
$ac_objext
7272 if { (ac_try
="$ac_compile"
7274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7275 *) ac_try_echo=$ac_try;;
7277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7278 (eval "$ac_compile") 2>conftest.er1
7280 grep -v '^ *+' conftest.er1 >conftest.err
7282 cat conftest.err >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); } && {
7285 test -z "$ac_cxx_werror_flag" ||
7286 test ! -s conftest.err
7287 } && test -s conftest.$ac_objext; then
7288 ac_header_compiler=yes
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7293 ac_header_compiler=no
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7298 echo "${ECHO_T}$ac_header_compiler" >&6; }
7300 # Is the header present?
7301 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7302 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7303 cat >conftest.$ac_ext <<_ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7311 if { (ac_try="$ac_cpp conftest.$ac_ext"
7313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7314 *) ac_try_echo
=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1
>conftest.err
7321 cat conftest.err
>&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } >/dev
/null
&& {
7324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7325 test ! -s conftest.err
7327 ac_header_preproc
=yes
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.
$ac_ext >&5
7332 ac_header_preproc
=no
7335 rm -f conftest.err conftest.
$ac_ext
7336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7337 echo "${ECHO_T}$ac_header_preproc" >&6; }
7339 # So? What about this header?
7340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7342 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7343 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7345 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7346 ac_header_preproc
=yes
7349 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7350 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7352 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7354 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7356 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7357 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7358 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7359 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7360 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7364 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7365 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7366 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_cv_header_Imlib2_h
=$ac_header_preproc
7371 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7372 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7375 if test $ac_cv_header_Imlib2_h = yes; then
7376 { echo "$as_me:$LINENO: checking for imlib2" >&5
7377 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7378 cat >conftest.
$ac_ext <<_ACEOF
7381 cat confdefs.h
>>conftest.
$ac_ext
7382 cat >>conftest.
$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7385 #include <X11/Xlib.h>
7394 Imlib_Image image= imlib_load_image("");
7400 rm -f conftest.
$ac_objext conftest
$ac_exeext
7401 if { (ac_try
="$ac_link"
7403 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_link") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_cxx_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest$ac_exeext &&
7417 $as_test_x conftest$ac_exeext; then
7419 { echo "$as_me:$LINENO: result: yes" >&5
7420 echo "${ECHO_T}yes" >&6; }
7422 cat >>confdefs.h <<\_ACEOF
7423 #define USE_IMLIB2 1
7426 IMLIB2_CFLAGS="$CPPFLAGS"
7427 if test "$with_imlib2" = "linked" ; then
7428 IMLIB2_LDFLAGS="$LIBS"
7430 cat >>confdefs.h <<\_ACEOF
7431 #define LINKED_IMLIB2 1
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7441 { echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6; }
7445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7446 conftest$ac_exeext conftest.$ac_ext
7452 CPPFLAGS="$SAVE_CPPFLAGS"
7453 LDFLAGS="$SAVE_LDFLAGS"
7459 #--------------------------------------------------------------------
7460 # Checks for Axel library
7461 #--------------------------------------------------------------------
7464 # Check whether --with-axel was given.
7465 if test "${with_axel+set}" = set; then
7470 SAVE_CPPFLAGS="$CPPFLAGS"
7471 SAVE_LDFLAGS="$LDFLAGS"
7473 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7474 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7475 echo "${ECHO_T}disabling axel support" >&6; }
7477 CPPFLAGS=`axel-config
--cflags`
7478 LIBS=`axel-config
--libs`
7479 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7480 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7481 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7482 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7486 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7488 # Is the header compilable?
7489 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7490 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7491 cat >conftest.$ac_ext <<_ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 $ac_includes_default
7498 #include <QGui/Viewer.h>
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7504 *) ac_try_echo
=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1
>conftest.err
7511 cat conftest.err
>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_cxx_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.
$ac_objext; then
7517 ac_header_compiler
=yes
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.
$ac_ext >&5
7522 ac_header_compiler
=no
7525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7527 echo "${ECHO_T}$ac_header_compiler" >&6; }
7529 # Is the header present?
7530 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7531 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7532 cat >conftest.
$ac_ext <<_ACEOF
7535 cat confdefs.h
>>conftest.
$ac_ext
7536 cat >>conftest.
$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <QGui/Viewer.h>
7540 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7548 grep -v '^ *+' conftest.er1 >conftest.err
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } >/dev/null && {
7553 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7554 test ! -s conftest.err
7556 ac_header_preproc=yes
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_header_preproc=no
7564 rm -f conftest.err conftest.$ac_ext
7565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566 echo "${ECHO_T}$ac_header_preproc" >&6; }
7568 # So? What about this header?
7569 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7571 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7572 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7574 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7575 ac_header_preproc=yes
7578 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7579 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7581 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7583 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7585 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7587 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7589 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7593 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7594 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7595 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7600 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7601 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7604 if test $ac_cv_header_QGui_Viewer_h = yes; then
7605 { echo "$as_me:$LINENO: checking for axel" >&5
7606 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7607 cat >conftest.$ac_ext <<_ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7614 #include <QGui/Viewer.h>
7626 rm -f conftest.$ac_objext conftest$ac_exeext
7627 if { (ac_try="$ac_link"
7629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7630 *) ac_try_echo
=$ac_try;;
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633 (eval "$ac_link") 2>conftest.er1
7635 grep -v '^ *+' conftest.er1
>conftest.err
7637 cat conftest.err
>&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } && {
7640 test -z "$ac_cxx_werror_flag" ||
7641 test ! -s conftest.err
7642 } && test -s conftest
$ac_exeext &&
7643 $as_test_x conftest
$ac_exeext; then
7645 { echo "$as_me:$LINENO: result: yes" >&5
7646 echo "${ECHO_T}yes" >&6; }
7648 cat >>confdefs.h
<<\_ACEOF
7652 AXEL_CFLAGS
="$CPPFLAGS"
7653 if test "$with_axel" = "linked" ; then
7654 AXEL_LDFLAGS
="$LIBS"
7656 cat >>confdefs.h
<<\_ACEOF
7657 #define LINKED_AXEL 1
7663 echo "$as_me: failed program was:" >&5
7664 sed 's/^/| /' conftest.
$ac_ext >&5
7667 { echo "$as_me:$LINENO: result: no" >&5
7668 echo "${ECHO_T}no" >&6; }
7671 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7672 conftest
$ac_exeext conftest.
$ac_ext
7678 CPPFLAGS
="$SAVE_CPPFLAGS"
7679 LDFLAGS
="$SAVE_LDFLAGS"
7685 #--------------------------------------------------------------------
7686 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7687 #--------------------------------------------------------------------
7689 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7690 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7691 if test -z "$GUILE_CFLAGS"; then
7692 CXXFLAGS
="`guile-config compile`"
7694 CXXFLAGS
="$GUILE_CFLAGS"
7696 cat >conftest.
$ac_ext <<_ACEOF
7699 cat confdefs.h
>>conftest.
$ac_ext
7700 cat >>conftest.
$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7703 #include <guile/gh.h>
7704 #include <libguile.h>
7705 typedef SCM (*FN)(...);
7706 static SCM identity (SCM x) { return x; }
7707 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7718 rm -f conftest.
$ac_objext
7719 if { (ac_try
="$ac_compile"
7721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7722 *) ac_try_echo=$ac_try;;
7724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7725 (eval "$ac_compile") 2>conftest.er1
7727 grep -v '^ *+' conftest.er1 >conftest.err
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } && {
7732 test -z "$ac_cxx_werror_flag" ||
7733 test ! -s conftest.err
7734 } && test -s conftest.$ac_objext; then
7737 cat >>confdefs.h <<\_ACEOF
7741 { echo "$as_me:$LINENO: result: yes" >&5
7742 echo "${ECHO_T}yes" >&6; }
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7749 { echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6; }
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
7758 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
7759 if test -z "$GUILE_CFLAGS"; then
7760 CXXFLAGS="`guile-config compile
`"
7762 CXXFLAGS="$GUILE_CFLAGS"
7764 cat >conftest.$ac_ext <<_ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7771 #include <guile/gh.h>
7772 #include <libguile.h>
7773 void print_string (SCM s) {
7775 char* r= gh_scm2newstr (s, &len_r); }
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7790 *) ac_try_echo
=$ac_try;;
7792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7793 (eval "$ac_compile") 2>conftest.er1
7795 grep -v '^ *+' conftest.er1
>conftest.err
7797 cat conftest.err
>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); } && {
7800 test -z "$ac_cxx_werror_flag" ||
7801 test ! -s conftest.err
7802 } && test -s conftest.
$ac_objext; then
7805 cat >>confdefs.h
<<\_ACEOF
7806 #define guile_str_size_t int
7809 { echo "$as_me:$LINENO: result: int" >&5
7810 echo "${ECHO_T}int" >&6; }
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.
$ac_ext >&5
7818 cat >>confdefs.h
<<\_ACEOF
7819 #define guile_str_size_t size_t
7822 { echo "$as_me:$LINENO: result: size_t" >&5
7823 echo "${ECHO_T}size_t" >&6; }
7827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7830 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
7831 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
7832 SAVE_CPPFLAGS
="$CPPFLAGS"
7833 SAVE_LDFLAGS
="$LDFLAGS"
7835 CPPFLAGS
="$GUILE_CFLAGS"
7837 LIBS
="$GUILE_LDFLAGS"
7838 cat >conftest.
$ac_ext <<_ACEOF
7841 cat confdefs.h
>>conftest.
$ac_ext
7842 cat >>conftest.
$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7845 #include <guile/gh.h>
7853 static void my_main (int argc, char** argv) {}
7854 static void install_guile () {
7856 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7858 gh_enter (0, NULL, my_main);
7862 dummy::install_guile ();
7868 rm -f conftest.
$ac_objext conftest
$ac_exeext
7869 if { (ac_try
="$ac_link"
7871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1 >conftest.err
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_cxx_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest$ac_exeext &&
7885 $as_test_x conftest$ac_exeext; then
7886 tm_link_guile_static="yes"
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 tm_link_guile_static="no"
7894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7895 conftest$ac_exeext conftest.$ac_ext
7897 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
7898 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
7899 if test "$tm_link_guile_static" = "no" ; then
7900 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
7901 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
7902 LIBS="$GUILE_LDFLAGS -lltdl"
7903 cat >conftest.$ac_ext <<_ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7910 #include <guile/gh.h>
7918 static void my_main (int argc, char** argv) {}
7919 static void install_guile () {
7921 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7923 gh_enter (0, NULL, my_main);
7927 dummy::install_guile ();
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (ac_try="$ac_link"
7936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7937 *) ac_try_echo
=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_link") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1
>conftest.err
7944 cat conftest.err
>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_cxx_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest
$ac_exeext &&
7950 $as_test_x conftest
$ac_exeext; then
7951 tm_link_guile_static_ltdl
="yes"
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.
$ac_ext >&5
7956 tm_link_guile_static_ltdl
="no"
7959 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7960 conftest
$ac_exeext conftest.
$ac_ext
7962 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
7963 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
7964 if test "$tm_link_guile_static_ltdl" = "yes" ; then
7965 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
7967 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
7968 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
7969 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
7970 cat >conftest.
$ac_ext <<_ACEOF
7973 cat confdefs.h
>>conftest.
$ac_ext
7974 cat >>conftest.
$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7977 #include <guile/gh.h>
7985 static void my_main (int argc, char** argv) {}
7986 static void install_guile () {
7988 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
7990 gh_enter (0, NULL, my_main);
7994 dummy::install_guile ();
8000 rm -f conftest.
$ac_objext conftest
$ac_exeext
8001 if { (ac_try
="$ac_link"
8003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_cxx_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8018 tm_link_guile_static_ltdl_ldl="yes"
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 tm_link_guile_static_ltdl_ldl="no"
8026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8027 conftest$ac_exeext conftest.$ac_ext
8029 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8030 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8031 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8032 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8034 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8035 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8039 CPPFLAGS="$SAVE_CPPFLAGS"
8040 LDFLAGS="$SAVE_LDFLAGS"
8043 #--------------------------------------------------------------------
8044 # Handle different systems case by case
8045 #--------------------------------------------------------------------
8047 CONFIG_OS="GNU_LINUX"
8048 CONFIG_OS_SUFFIX="gnu-linux"
8049 CONFIG_OS_COMPAT="Unix"
8052 CONFIG_CXXTEMPLATE=""
8053 CONFIG_STD_SETENV="#define STD_SETENV"
8055 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8056 CONFIG_CHMOD="chmod -f"
8057 CONFIG_CXXOPTIMIZE="-O2"
8058 CONFIG_BSTATIC="-Wl,-Bstatic"
8059 CONFIG_BSHARED="-Wl,-Bdynamic"
8061 CONFIG_BPATH="-Wl,-rpath,"
8062 CONFIG_WORD_LENGTH="4"
8063 CONFIG_WORD_LENGTH_INC="3"
8064 CONFIG_WORD_MASK="0xfffffffc"
8065 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8067 # tweak for XCode project
8068 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
8071 X11_CFLAGS="$X_CFLAGS"
8072 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8074 { echo "$as_me:$LINENO: checking for void *" >&5
8075 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8076 if test "${ac_cv_type_void_p+set}" = set; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 cat >conftest.$ac_ext <<_ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8086 typedef void * ac__type_new_;
8090 if ((ac__type_new_ *) 0)
8092 if (sizeof (ac__type_new_))
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8102 *) ac_try_echo
=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1
>conftest.err
8109 cat conftest.err
>&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_cxx_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.
$ac_objext; then
8115 ac_cv_type_void_p
=yes
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.
$ac_ext >&5
8120 ac_cv_type_void_p
=no
8123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8125 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8126 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8128 # The cast to long int works around a bug in the HP C Compiler
8129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8131 # This bug is HP SR number 8606223364.
8132 { echo "$as_me:$LINENO: checking size of void *" >&5
8133 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8134 if test "${ac_cv_sizeof_void_p+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 if test "$cross_compiling" = yes; then
8138 # Depending upon the size, compute the lo and hi bounds.
8139 cat >conftest.
$ac_ext <<_ACEOF
8142 cat confdefs.h
>>conftest.
$ac_ext
8143 cat >>conftest.
$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 $ac_includes_default
8146 typedef void * ac__type_sizeof_;
8150 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8157 rm -f conftest.
$ac_objext
8158 if { (ac_try
="$ac_compile"
8160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164 (eval "$ac_compile") 2>conftest.er1
8166 grep -v '^ *+' conftest.er1 >conftest.err
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } && {
8171 test -z "$ac_cxx_werror_flag" ||
8172 test ! -s conftest.err
8173 } && test -s conftest.$ac_objext; then
8176 cat >conftest.$ac_ext <<_ACEOF
8179 cat confdefs.h >>conftest.$ac_ext
8180 cat >>conftest.$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 typedef void * ac__type_sizeof_;
8187 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8198 *) ac_try_echo
=$ac_try;;
8200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8203 grep -v '^ *+' conftest.er1
>conftest.err
8205 cat conftest.err
>&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_cxx_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.
$ac_objext; then
8211 ac_hi
=$ac_mid; break
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.
$ac_ext >&5
8216 ac_lo
=`expr $ac_mid + 1`
8217 if test $ac_lo -le $ac_mid; then
8221 ac_mid
=`expr 2 '*' $ac_mid + 1`
8224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.
$ac_ext >&5
8230 cat >conftest.
$ac_ext <<_ACEOF
8233 cat confdefs.h
>>conftest.
$ac_ext
8234 cat >>conftest.
$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 $ac_includes_default
8237 typedef void * ac__type_sizeof_;
8241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8248 rm -f conftest.
$ac_objext
8249 if { (ac_try
="$ac_compile"
8251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_cxx_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 $ac_includes_default
8274 typedef void * ac__type_sizeof_;
8278 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8289 *) ac_try_echo
=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1
>conftest.err
8296 cat conftest.err
>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_cxx_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.
$ac_objext; then
8302 ac_lo
=$ac_mid; break
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.
$ac_ext >&5
8307 ac_hi
=`expr '(' $ac_mid ')' - 1`
8308 if test $ac_mid -le $ac_hi; then
8312 ac_mid
=`expr 2 '*' $ac_mid`
8315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.
$ac_ext >&5
8324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8328 # Binary search between lo and hi bounds.
8329 while test "x$ac_lo" != "x$ac_hi"; do
8330 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 typedef void * ac__type_sizeof_;
8342 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8349 rm -f conftest.
$ac_objext
8350 if { (ac_try
="$ac_compile"
8352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8358 grep -v '^ *+' conftest.er1 >conftest.err
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_cxx_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8371 ac_lo=`expr '(' $ac_mid ')' + 1`
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8378 '') if test "$ac_cv_type_void_p" = yes; then
8379 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8380 See \`config.log
' for more details." >&5
8381 echo "$as_me: error: cannot compute sizeof (void *)
8382 See \`config.log' for more details.
" >&2;}
8383 { (exit 77); exit 77; }; }
8385 ac_cv_sizeof_void_p=0
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 $ac_includes_default
8396 typedef void * ac__type_sizeof_;
8397 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8398 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8405 FILE *f = fopen ("conftest.val
", "w
");
8408 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8410 long int i = longval ();
8411 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8413 fprintf (f, "%ld
\n", i);
8417 unsigned long int i = ulongval ();
8418 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8420 fprintf (f, "%lu
\n", i);
8422 return ferror (f) || fclose (f) != 0;
8428 rm -f conftest$ac_exeext
8429 if { (ac_try="$ac_link"
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>&5
8437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8439 { (case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_try") 2>&5
8446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8447 (exit $ac_status); }; }; then
8448 ac_cv_sizeof_void_p=`cat conftest.val`
8450 echo "$as_me: program exited with status
$ac_status" >&5
8451 echo "$as_me: failed program was
:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8455 if test "$ac_cv_type_void_p" = yes; then
8456 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8457 See \
`config.log' for more details." >&5
8458 echo "$as_me: error: cannot compute sizeof (void *)
8459 See \`config.log
' for more details." >&2;}
8460 { (exit 77); exit 77; }; }
8462 ac_cv_sizeof_void_p=0
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8469 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8470 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8474 cat >>confdefs.h <<_ACEOF
8475 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8479 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8480 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8481 if test "$ac_cv_sizeof_void_p" = "8"; then
8482 { echo "$as_me:$LINENO: result: yes" >&5
8483 echo "${ECHO_T}yes" >&6; }
8484 CONFIG_WORD_LENGTH="8"
8485 CONFIG_WORD_LENGTH_INC="7"
8486 CONFIG_WORD_MASK="0xfffffffffffffff8"
8487 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8489 { echo "$as_me:$LINENO: result: no" >&5
8490 echo "${ECHO_T}no" >&6; }
8494 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
8495 if test -f "$ac_dir/install-sh"; then
8497 ac_install_sh="$ac_aux_dir/install-sh -c"
8499 elif test -f "$ac_dir/install.sh"; then
8501 ac_install_sh="$ac_aux_dir/install.sh -c"
8503 elif test -f "$ac_dir/shtool"; then
8505 ac_install_sh="$ac_aux_dir/shtool install -c"
8509 if test -z "$ac_aux_dir"; then
8510 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
8511 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
8512 { (exit 1); exit 1; }; }
8515 # These three variables are undocumented and unsupported,
8516 # and are intended to be withdrawn in a future Autoconf release.
8517 # They can cause serious problems if a builder's
source tree is
in a directory
8518 # whose full name contains unusual characters.
8519 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
8520 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
8521 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
8524 # Make sure we can run config.sub.
8525 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
8526 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
8527 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
8528 { (exit 1); exit 1; }; }
8530 { echo "$as_me:$LINENO: checking build system type" >&5
8531 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
8532 if test "${ac_cv_build+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 ac_build_alias
=$build_alias
8536 test "x$ac_build_alias" = x
&&
8537 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
8538 test "x$ac_build_alias" = x
&&
8539 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
8540 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
8541 { (exit 1); exit 1; }; }
8542 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8543 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
8544 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
8545 { (exit 1); exit 1; }; }
8548 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
8549 echo "${ECHO_T}$ac_cv_build" >&6; }
8550 case $ac_cv_build in
8552 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
8553 echo "$as_me: error: invalid value of canonical build" >&2;}
8554 { (exit 1); exit 1; }; };;
8557 ac_save_IFS
=$IFS; IFS
='-'
8563 # Remember, the first character of IFS is used to create $*,
8564 # except with old shells:
8567 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
8570 { echo "$as_me:$LINENO: checking host system type" >&5
8571 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
8572 if test "${ac_cv_host+set}" = set; then
8573 echo $ECHO_N "(cached) $ECHO_C" >&6
8575 if test "x$host_alias" = x
; then
8576 ac_cv_host
=$ac_cv_build
8578 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8579 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
8580 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
8581 { (exit 1); exit 1; }; }
8585 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
8586 echo "${ECHO_T}$ac_cv_host" >&6; }
8589 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
8590 echo "$as_me: error: invalid value of canonical host" >&2;}
8591 { (exit 1); exit 1; }; };;
8594 ac_save_IFS
=$IFS; IFS
='-'
8600 # Remember, the first character of IFS is used to create $*,
8601 # except with old shells:
8604 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
8608 i
*86-*-linux* | x86_64-
*-linux*)
8609 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8610 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8611 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8613 i
*86-*-freebsd* | x86_64-
*-freebsd*)
8614 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8615 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8616 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8619 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8620 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8621 CONFIG_CXXOPTIMIZE
="-O3"
8622 CONFIG_BPATH
="-Wl,-R,"
8623 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
8626 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8627 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8628 CONFIG_OS_COMPAT
="Windows"
8629 LDRT
="-lmingw32 -lmingwex"
8632 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8633 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8635 CONFIG_BFLAGS
="-Wl,-stack,8388608"
8636 # CXX="export CYGWIN=check_case:strict; $CXX"
8640 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8642 CONFIG_CXXFLAGS
="-I${prefix}/include"
8644 CONFIG_BFLAGS
="-framework Cocoa"
8647 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
8650 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8651 CONFIG_CXXFLAGS
="-I${prefix}/include"
8655 CONFIG_LIB_PATH
="DYLD_LIBRARY_PATH"
8658 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8659 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8660 CONFIG_OS
="POWERPC_GNU_LINUX"
8661 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8664 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8665 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8667 CONFIG_OS_SUFFIX
="sun"
8670 CONFIG_BPATH
="-Wl,-R,"
8671 X11_LDFLAGS
="$X_LIBS -lXext -lX11 -lsocket"
8672 CONFIG_WORD_LENGTH
="8"
8673 CONFIG_WORD_LENGTH_INC
="7"
8674 CONFIG_WORD_MASK
="0xfffffff8"
8675 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
8676 CONFIG_STD_SETENV
=""
8679 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8680 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8681 CONFIG_CXXOPTIMIZE
="-O3 -fexpensive-optimizations"
8682 CONFIG_WORD_LENGTH
="8"
8683 CONFIG_WORD_LENGTH_INC
="7"
8684 CONFIG_WORD_MASK
="0xfffffff8"
8685 CONFIG_MAX_FAST
="264 // WORD_LENGTH more than power of 2"
8686 CONFIG_STD_SETENV
=""
8689 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8690 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8692 CONFIG_BSHARED
="-shared"
8693 CONFIG_STD_SETENV
=""
8696 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8697 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8699 CONFIG_BSHARED
="-shared"
8702 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8703 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8704 CONFIG_STD_SETENV
=""
8707 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8708 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8710 CONFIG_BSHARED
="-shared"
8713 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8714 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8715 CONFIG_CXXFLAGS
="$CONFIG_CXXFLAGS -fPIC"
8717 CONFIG_BSHARED
="-shared"
8720 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8727 X11_LDFLAGS
="$X_LIBS -lX11"
8728 CONFIG_WORD_MASK
="0xfffffff8"
8729 CONFIG_STD_SETENV
=""
8730 CONFIG_CHMOD
="chmod"
8731 CONFIG_LIB_PATH
="LD_LIBRARYN32_PATH"
8733 m68k-
*-linux* | mips-
*-linux* | mipsel-
*-linux* | arm
*-*-linux*)
8734 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8735 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8738 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8739 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8742 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8743 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8750 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
8751 CONFIG_NATIVE_ARCH_TAG
="NATIVE_ARCH_ACTUAL"
8756 #--------------------------------------------------------------------
8757 # Temporary fix for link problem
8758 #--------------------------------------------------------------------
8760 case "$GXX_VERSION" in
8762 CONFIG_BSTATIC
="-static"
8763 CONFIG_BSHARED
="-dynamic"
8767 #--------------------------------------------------------------------
8768 # Memory allocation options
8769 #--------------------------------------------------------------------
8771 # Check whether --enable-fastalloc was given.
8772 if test "${enable_fastalloc+set}" = set; then
8773 enableval
=$enable_fastalloc;
8775 enable_fastalloc
="yes"
8778 case "$enable_fastalloc" in
8782 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8783 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8785 cat >>confdefs.h
<<\_ACEOF
8786 #define NO_FAST_ALLOC 1
8791 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8792 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8793 { (exit 1); exit 1; }; }
8797 #--------------------------------------------------------------------
8798 # Experimental options
8799 #--------------------------------------------------------------------
8801 # Check whether --enable-experimental was given.
8802 if test "${enable_experimental+set}" = set; then
8803 enableval
=$enable_experimental;
8805 enable_experimental
="no"
8808 case "$enable_experimental" in
8810 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8811 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8813 cat >>confdefs.h
<<\_ACEOF
8814 #define EXPERIMENTAL 1
8817 CONFIG_EXPERIMENTAL
="Memorizer Environment Evaluate"
8820 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8821 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8822 CONFIG_EXPERIMENTAL
=""
8825 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8826 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8827 { (exit 1); exit 1; }; }
8832 #--------------------------------------------------------------------
8833 # MacOS X extensions (spellchecker, image loading)
8834 #--------------------------------------------------------------------
8836 # Check whether --enable-macosx-extensions was given.
8837 if test "${enable_macosx_extensions+set}" = set; then
8838 enableval
=$enable_macosx_extensions;
8840 enable_macosx_extensions
="no"
8843 case "$enable_macosx_extensions" in
8845 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
8846 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
8848 cat >>confdefs.h
<<\_ACEOF
8849 #define MACOSX_EXTENSIONS 1
8852 CONFIG_MACOS
="MacOS"
8855 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
8856 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
8860 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
8861 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
8862 { (exit 1); exit 1; }; }
8867 #--------------------------------------------------------------------
8869 #--------------------------------------------------------------------
8875 # Check whether --enable-qt was given.
8876 if test "${enable_qt+set}" = set; then
8877 enableval
=$enable_qt;
8883 case "$enable_qt" in
8886 if test -r "/c/Qt"; then
8888 qt_bin
="`dirname $MOC`"
8889 qt_home
="`dirname $qt_bin`"
8890 qt_version
="`basename $qt_home`"
8891 qt_parent
="`dirname $qt_home`"
8892 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."
8893 QT_CXXFLAGS
="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
8894 QT_LDFLAGS
="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
8895 QT_LIBS
="-L'c:/Qt/$qt_version/lib' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
8896 if test "$qt_parent" != "/c/Qt"; then
8904 test x
"$TROLL" != x
&& echo 'ViM rox emacs.'
8907 # Check whether --with-qt was given.
8908 if test "${with_qt+set}" = set; then
8909 withval
=$with_qt; QT_PATH
=$withval
8916 if test -d /usr
/local
/Trolltech
; then
8917 # Try to find the latest version.
8918 tmp_qt_paths
=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
8919 | xargs | sed 's/ */:/g'`
8923 if test -z "$QMAKE"; then
8924 for ac_prog
in qmake
8926 # Extract the first word of "$ac_prog", so it can be a program name with args.
8927 set dummy
$ac_prog; ac_word
=$2
8928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8930 if test "${ac_cv_path_QMAKE+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
8938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8939 as_dummy
="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
8940 for as_dir
in $as_dummy
8943 test -z "$as_dir" && as_dir
=.
8944 for ac_exec_ext
in '' $ac_executable_extensions; do
8945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8946 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
8947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8957 QMAKE
=$ac_cv_path_QMAKE
8958 if test -n "$QMAKE"; then
8959 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8960 echo "${ECHO_T}$QMAKE" >&6; }
8962 { echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6; }
8967 test -n "$QMAKE" && break
8969 test -n "$QMAKE" || QMAKE
="missing"
8972 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
8973 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
8974 { echo "$as_me:$LINENO: result: $QMAKE" >&5
8975 echo "${ECHO_T}$QMAKE" >&6; }
8977 if test x
"$QMAKE" = xmissing
; then
8978 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
8979 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
8980 { (exit 1); exit 1; }; }
8983 # Find moc (Meta Object Compiler).
8984 if test -z "$MOC"; then
8987 # Extract the first word of "$ac_prog", so it can be a program name with args.
8988 set dummy
$ac_prog; ac_word
=$2
8989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8991 if test "${ac_cv_path_MOC+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 ac_cv_path_MOC
="$MOC" # Let the user override the test with a path.
8999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9000 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9001 for as_dir
in $as_dummy
9004 test -z "$as_dir" && as_dir
=.
9005 for ac_exec_ext
in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_path_MOC
="$as_dir/$ac_word$ac_exec_ext"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9019 if test -n "$MOC"; then
9020 { echo "$as_me:$LINENO: result: $MOC" >&5
9021 echo "${ECHO_T}$MOC" >&6; }
9023 { echo "$as_me:$LINENO: result: no" >&5
9024 echo "${ECHO_T}no" >&6; }
9028 test -n "$MOC" && break
9030 test -n "$MOC" || MOC
="missing"
9033 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9034 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9035 { echo "$as_me:$LINENO: result: $MOC" >&5
9036 echo "${ECHO_T}$MOC" >&6; }
9038 if test x
"$MOC" = xmissing
; then
9039 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9040 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9041 { (exit 1); exit 1; }; }
9044 # Find uic (User Interface Compiler).
9045 if test -z "$UIC"; then
9048 # Extract the first word of "$ac_prog", so it can be a program name with args.
9049 set dummy
$ac_prog; ac_word
=$2
9050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9052 if test "${ac_cv_path_UIC+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 ac_cv_path_UIC
="$UIC" # Let the user override the test with a path.
9060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9061 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9062 for as_dir
in $as_dummy
9065 test -z "$as_dir" && as_dir
=.
9066 for ac_exec_ext
in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_path_UIC
="$as_dir/$ac_word$ac_exec_ext"
9069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 if test -n "$UIC"; then
9081 { echo "$as_me:$LINENO: result: $UIC" >&5
9082 echo "${ECHO_T}$UIC" >&6; }
9084 { echo "$as_me:$LINENO: result: no" >&5
9085 echo "${ECHO_T}no" >&6; }
9089 test -n "$UIC" && break
9091 test -n "$UIC" || UIC
="missing"
9094 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9095 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9096 { echo "$as_me:$LINENO: result: $UIC" >&5
9097 echo "${ECHO_T}$UIC" >&6; }
9099 if test x
"$UIC" = xmissing
; then
9100 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9101 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9102 { (exit 1); exit 1; }; }
9105 # Find rcc (Qt Resource Compiler).
9108 # Extract the first word of "$ac_prog", so it can be a program name with args.
9109 set dummy
$ac_prog; ac_word
=$2
9110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9112 if test "${ac_cv_path_RCC+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 ac_cv_path_RCC
="$RCC" # Let the user override the test with a path.
9120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9121 as_dummy
="$QT_PATH:$PATH:$tmp_qt_paths"
9122 for as_dir
in $as_dummy
9125 test -z "$as_dir" && as_dir
=.
9126 for ac_exec_ext
in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_path_RCC
="$as_dir/$ac_word$ac_exec_ext"
9129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 if test -n "$RCC"; then
9141 { echo "$as_me:$LINENO: result: $RCC" >&5
9142 echo "${ECHO_T}$RCC" >&6; }
9144 { echo "$as_me:$LINENO: result: no" >&5
9145 echo "${ECHO_T}no" >&6; }
9149 test -n "$RCC" && break
9151 test -n "$RCC" || RCC
="false"
9153 if test x
"$UIC" = xfalse
; then
9154 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9155 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9158 # If we don't know the path to Qt, guess it from the path to qmake.
9159 if test x
"$QT_PATH" = x
; then
9160 QT_PATH
=`dirname "$QMAKE"`
9162 if test x
"$QT_PATH" = x
; then
9163 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9164 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9165 { (exit 1); exit 1; }; }
9168 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9169 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9170 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9171 echo "${ECHO_T}$QT_PATH" >&6; }
9173 # Get ready to build a test-app with Qt.
9175 # Look for a writable temporary directory.
9177 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
9178 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9180 for i
in /tmp
/var
/tmp
; do
9181 if test -d "$i" && test -w "$i"; then
9184 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9190 # Kludge!! QMake has a very strange behavior. For instance, if you
9191 # install Qt under your $HOME and run QMake somewhere else under your
9192 # $HOME, it will try to be clever and produce Makefiles with relative
9193 # include paths. In order to avoid this, we will test QMake from a
9194 # temporary directory (usually /tmp). Note that this problem was only
9195 # observed with Qt 4.
9196 my_configure_pwd
=`pwd`
9197 my_tmpdir
="$TMPDIR/conftest$$.dir"
9198 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
9199 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9203 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9204 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9205 { (exit 1); exit 1; }; }
9207 cat >conftest.h
<<_ASEOF
9210 class Foo: public QObject
9217 void setValue(int value);
9219 void valueChanged(int newValue);
9225 cat >conftest.cpp
<<_ASEOF
9226 #include "conftest.h"
9230 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9233 void Foo::setValue(int value)
9243 if $QMAKE -project; then :; else
9244 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9245 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9246 { (exit 1); exit 1; }; }
9249 # Find the .pro file generated by qmake.
9250 pro_file
='conftest.dir.pro'
9251 test -f $pro_file || pro_file
=`echo *.pro`
9252 if test -f "$pro_file"; then :; else
9253 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9254 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9255 { (exit 1); exit 1; }; }
9264 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9265 sed 's/^/| /' "$pro_file" >&5
9267 additional_qmake_flags
=""
9270 additional_qmake_flags
="-spec macx-g++"
9274 if $QMAKE ${additional_qmake_flags} ; then :; else
9275 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9276 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9277 { (exit 1); exit 1; }; }
9279 # Try to compile a simple Qt app.
9280 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9281 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9282 if test "${at_cv_qt_build+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 if $MAKE >&5 2>&1; then
9289 at_cv_qt_build
='ok, looks like Qt 4'
9291 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9293 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9294 if $MAKE >&5 2>&1; then
9295 at_cv_qt_build
='ok, looks like Qt 3'
9297 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9298 # installed in debug mode and qmake tries (by default) to build apps in
9299 # debug mode => Try again in release mode.
9300 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9303 # Tweak the value of CONFIG in the .pro file for +release.
9306 for at_mod
in +release
; do
9307 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
9316 echo "$qt_conf" |
sed 1d
>>"$pro_file"
9319 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9320 if $MAKE >&5 2>&1; then
9321 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
9323 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9325 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9326 if $MAKE >&5 2>&1; then
9327 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
9330 echo "$as_me:$LINENO: failed program was:" >&5
9331 sed 's/^/| /' conftest.h
>&5
9332 echo "$as_me:$LINENO: failed program was:" >&5
9333 sed 's/^/| /' conftest.cpp
>&5
9334 fi # if make with Qt3-style #include and release mode forced.
9335 fi # if make with Qt4-style #include and release mode forced.
9336 fi # if make with Qt3-style #include.
9337 fi # if make with Qt4-style #include.
9340 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9341 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9342 if test x
"$at_cv_qt_build" = xko
; then
9343 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9344 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9345 { (exit 1); exit 1; }; }
9347 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9350 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9351 # It starts by removing the beginning of the line, removing references to
9352 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9353 # all variable uses by QT_.
9354 qt_sed_filter
='s///;
9357 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9359 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9360 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9361 # Makefile.Release. The reason is that the main difference is that release
9362 # uses -Os and debug -g. We can override -Os by passing another -O but we
9363 # usually don't override -g.
9364 if test -f Makefile.Release
; then
9365 at_mfile
='Makefile.Release'
9369 if test -f $at_mfile; then :; else
9370 cd "$my_configure_pwd"
9371 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9372 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9373 { (exit 1); exit 1; }; }
9376 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9377 if test -z "$QT_DEFINES"; then
9378 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9379 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9380 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9385 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9386 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9387 QT_DEFINES
="$at_cv_env_QT_DEFINES"
9390 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9391 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9392 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9393 echo "${ECHO_T}$QT_DEFINES" >&6; }
9395 # Find the CFLAGS of Qt (We can use Qt in C?!)
9396 if test -z "$QT_CFLAGS"; then
9397 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9398 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9399 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9404 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9405 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9406 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
9409 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9410 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9411 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9412 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9414 # Find the CXXFLAGS of Qt.
9415 if test -z "$QT_CXXFLAGS"; then
9416 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9417 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9418 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9419 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9423 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9424 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9425 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
9428 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9429 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9430 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9431 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9433 # Find the INCPATH of Qt.
9434 if test -z "$QT_INCPATH"; then
9435 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9436 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9437 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9442 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9443 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9444 QT_INCPATH
="$at_cv_env_QT_INCPATH"
9447 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9448 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9449 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9450 echo "${ECHO_T}$QT_INCPATH" >&6; }
9452 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
9455 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9456 if test -z "$QT_LDFLAGS"; then
9457 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9458 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9459 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9462 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9464 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9465 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9466 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
9469 QT_LFLAGS
=$QT_LDFLAGS
9471 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9472 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9473 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9474 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9476 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9477 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9484 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9485 echo "${ECHO_T}$at_darwin" >&6; }
9487 # Find the LIBS of Qt.
9488 if test -z "$QT_LIBS"; then
9489 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9490 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9491 if test "${at_cv_env_QT_LIBS+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9495 if test x
$at_darwin = xyes
; then
9496 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9497 # -F properly. The "bug" has been fixed on 22 October 2006
9498 # by Peter O'Gorman but we provide backward compatibility here.
9499 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
9500 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9504 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9505 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9506 QT_LIBS
="$at_cv_env_QT_LIBS"
9509 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9510 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9511 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9512 echo "${ECHO_T}$QT_LIBS" >&6; }
9514 cd "$my_configure_pwd" ||
echo 'WTF!'
9519 if test x
"$at_cv_qt_build" = xko
; then
9520 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9521 echo "$as_me: error: cannot find Qt!" >&2;}
9522 { (exit 1); exit 1; }; }
9524 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9525 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9530 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9531 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9534 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9535 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9536 { (exit 1); exit 1; }; }
9540 # Check whether --enable-cocoa was given.
9541 if test "${enable_cocoa+set}" = set; then
9542 enableval
=$enable_cocoa;
9547 case "$enable_cocoa" in
9549 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9550 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9552 COCOA_LDFLAGS
="-framework Cocoa"
9556 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9557 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9560 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9561 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9562 { (exit 1); exit 1; }; }
9566 case "$CONFIG_GUI" in
9568 CONFIG_X11
="X11 Widkit Ghostscript"
9569 CONFIG_GUI_DEFINE
="X11TEXMACS"
9570 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9573 CONFIG_COCOA
="Cocoa"
9574 CONFIG_GUI_DEFINE
="AQUATEXMACS"
9575 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9579 CONFIG_GUI_DEFINE
="QTTEXMACS"
9580 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9597 #--------------------------------------------------------------------
9599 #--------------------------------------------------------------------
9601 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
9602 if test "$enable_cocoa" = "yes"; then
9603 STD_DEBUG_FLAGS
="-fno-exceptions"
9606 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9607 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9608 CXXFLAGS
="$STD_DEBUG_FLAGS"
9609 cat >conftest.
$ac_ext <<_ACEOF
9612 cat confdefs.h
>>conftest.
$ac_ext
9613 cat >>conftest.
$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 int some_variable = 0;
9627 rm -f conftest.
$ac_objext
9628 if { (ac_try
="$ac_compile"
9630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9631 *) ac_try_echo=$ac_try;;
9633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9634 (eval "$ac_compile") 2>conftest.er1
9636 grep -v '^ *+' conftest.er1 >conftest.err
9638 cat conftest.err >&5
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); } && {
9641 test -z "$ac_cxx_werror_flag" ||
9642 test ! -s conftest.err
9643 } && test -s conftest.$ac_objext; then
9645 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9646 { echo "$as_me:$LINENO: result: yes" >&5
9647 echo "${ECHO_T}yes" >&6; }
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9654 CONFIG_CXXDIALECT=""
9655 { echo "$as_me:$LINENO: result: no" >&5
9656 echo "${ECHO_T}no" >&6; }
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9664 # Check whether --enable-debug was given.
9665 if test "${enable_debug+set}" = set; then
9666 enableval=$enable_debug;
9672 if test "$enable_debug" = "yes"; then
9673 if test "$GXX" = "yes"; then
9674 enable_debug="-ggdb"
9680 if test "$enable_debug" = "no"; then
9681 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9682 echo "${ECHO_T}disabling debugging" >&6; }
9683 CONFIG_STRIP="strip"
9685 optimize_default="yes"
9687 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9688 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9690 CONFIG_CXXDEBUG="$enable_debug"
9691 optimize_default="no"
9694 # Check whether --enable-assert was given.
9695 if test "${enable_assert+set}" = set; then
9696 enableval=$enable_assert;
9702 if test "$enable_assert" = "no"; then
9703 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9704 echo "${ECHO_T}disabling assertion checking" >&6; }
9706 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9707 echo "${ECHO_T}enabling assertion checking" >&6; }
9709 cat >>confdefs.h <<\_ACEOF
9710 #define DEBUG_ASSERT 1
9715 #--------------------------------------------------------------------
9717 #--------------------------------------------------------------------
9719 case "$GXX_VERSION" in
9721 CONFIG_CXXWARNING="";
9724 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9728 # Check whether --enable-warnings was given.
9729 if test "${enable_warnings+set}" = set; then
9730 enableval=$enable_warnings;
9732 enable_warnings="yes"
9735 case "$enable_warnings" in
9737 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9738 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9740 CONFIG_CXXWARNING=""
9741 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9742 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9744 CONFIG_CXXWARNING="$enable_warnings"
9745 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9746 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9749 #--------------------------------------------------------------------
9750 # Optimization options
9751 #--------------------------------------------------------------------
9753 if test "$optimize_default" = "yes"; then
9754 case "$GXX_VERSION" in
9755 3.3.3 | 3.3.4 | 4.*)
9757 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9759 i*86-*-linux-gnu* | i*86-*-freebsd*)
9760 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9761 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9762 optimize_default="no-inline"
9765 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9766 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9767 optimize_default="no-inline"
9774 # Check whether --enable-optimize was given.
9775 if test "${enable_optimize+set}" = set; then
9776 enableval=$enable_optimize;
9778 enable_optimize="$optimize_default"
9782 case "$enable_optimize" in
9784 # keep optimization options
9785 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9786 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9788 optimize_no_inline="-fno-default-inline -fno-inline"
9789 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9790 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9791 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9793 CONFIG_CXXOPTIMIZE=""
9794 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9795 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9797 CONFIG_CXXOPTIMIZE="$enable_optimize"
9798 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9799 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9802 #--------------------------------------------------------------------
9803 # Substitute TeXmacs specific configuration parameters
9804 #--------------------------------------------------------------------
9831 #--------------------------------------------------------------------
9832 # Default paths for installation
9833 #--------------------------------------------------------------------
9835 if test "$prefix" = ""; then
9838 if test "$prefix" = "NONE"; then
9841 if test "$exec_prefix" = ""; then
9842 exec_prefix='${prefix}'
9844 if test "$exec_prefix" = "NONE"; then
9845 exec_prefix='${prefix}'
9847 if test "$exec_prefix" = '${prefix}'; then
9848 exec_prefix='${prefix}'
9850 if test "$includedir" = ""; then
9851 includedir='${prefix}/include'
9853 if test "$includedir" = "NONE"; then
9854 includedir='${prefix}/include'
9856 if test "$includedir" = '${prefix}/include'; then
9857 includedir='${prefix}/include'
9859 if test "$libdir" = ""; then
9860 libdir='${exec_prefix}/lib'
9862 if test "$libdir" = "NONE"; then
9863 libdir='${exec_prefix}/lib'
9865 if test "$libdir" = '${exec_prefix}/lib'; then
9866 libdir='${exec_prefix}/lib'
9868 if test "$bindir" = ""; then
9869 bindir='${exec_prefix}/bin'
9871 if test "$bindir" = "NONE"; then
9872 bindir=${exec_prefix}/bin
9874 if test "$bindir" = '${exec_prefix}/bin'; then
9875 bindir='${exec_prefix}/bin'
9877 if test "$datarootdir" = ""; then
9878 datarootdir='${prefix}/share'
9880 if test "$datarootdir" = "NONE"; then
9881 datarootdir='${prefix}/share'
9883 if test "$datarootdir" = '${prefix}/share'; then
9884 datarootdir='${prefix}/share'
9886 if test "$datadir" = ""; then
9887 datadir='${prefix}/share'
9889 if test "$datadir" = "NONE"; then
9890 datadir='${prefix}/share'
9892 if test "$datadir" = '${prefix}/share'; then
9893 datadir='${prefix}/share'
9895 if test "$mandir" = ""; then
9896 mandir='${datarootdir}/man'
9898 if test "$mandir" = "NONE"; then
9899 mandir='${datarootdir}/man'
9901 if test "$mandir" = '${datarootdir}/man'; then
9902 mandir='${datarootdir}/man'
9904 if test "$libexecdir" = ""; then
9905 libexecdir='${exec_prefix}/libexec'
9907 if test "$libexecdir" = "NONE"; then
9908 libexecdir='${exec_prefix}/libexec'
9910 if test "$libexecdir" = '${exec_prefix}/libexec'; then
9911 libexecdir='${exec_prefix}/libexec'
9917 tmsrc=${curdir}/${tmdir}
9918 tmbin=${libexecdir}/${tmdir}
9919 tmdata=${datadir}/${tmdir}
9926 if test "$DEVEL_RELEASE" = "1"; then
9927 tmtgz=${PACKAGE}-${DEVEL_VERSION}
9929 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
9931 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
9932 if test "$STABLE_RELEASE" = "1"; then
9933 tmstgz=${PACKAGE}-${STABLE_VERSION}
9935 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
9937 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
9938 if test "$WINDOWS_RELEASE" = "1"; then
9939 tmwin=wintexmacs-${WINDOWS_VERSION}
9941 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
9949 #--------------------------------------------------------------------
9951 #--------------------------------------------------------------------
9953 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"
9955 cat >confcache <<\_ACEOF
9956 # This file is a shell script that caches the results of configure
9957 # tests run on this system so they can be shared between configure
9958 # scripts and configure runs, see configure's option --config-cache.
9959 # It is not useful on other systems. If it contains results you don't
9960 # want to keep, you may remove or edit it.
9962 # config.status only pays attention to the cache file if you give it
9963 # the --recheck option to rerun configure.
9965 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9971 # The following way of writing the cache mishandles newlines in values,
9972 # but we know of no workaround that is simple, portable, and efficient.
9973 # So, we kill variables containing newlines.
9974 # Ultrix sh set writes to stderr and can't be redirected directly,
9975 # and sets the high bit in the cache file unless we assign to the vars.
9977 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9978 eval ac_val
=\$
$ac_var
9982 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9983 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9986 _ | IFS | as_nl
) ;; #(
9987 *) $as_unset $ac_var ;;
9993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9994 *${as_nl}ac_space
=\
*)
9995 # `set' does not quote correctly, so add quotes (double-quote
9996 # substitution turns \\\\ into \\, and sed turns \\ into \).
9999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10002 # `set' quotes correctly as required by POSIX, so do not add quotes.
10003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10016 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10017 if test -w "$cache_file"; then
10018 test "x$cache_file" != "x/dev/null" &&
10019 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10020 echo "$as_me: updating cache $cache_file" >&6;}
10021 cat confcache
>$cache_file
10023 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10024 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10029 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10030 # Let make expand exec_prefix.
10031 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10033 DEFS
=-DHAVE_CONFIG_H
10037 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10038 # 1. Remove the extension, and $U if already installed.
10039 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10040 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10041 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10042 # will be set to the directory where LIBOBJS objects are built.
10043 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10044 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10046 LIBOBJS
=$ac_libobjs
10048 LTLIBOBJS
=$ac_ltlibobjs
10052 : ${CONFIG_STATUS=./config.status}
10053 ac_clean_files_save
=$ac_clean_files
10054 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10055 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10056 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10057 cat >$CONFIG_STATUS <<_ACEOF
10059 # Generated by $as_me.
10060 # Run this file to recreate the current configuration.
10061 # Compiler output produced by configure, useful for debugging
10062 # configure, is in config.log if it exists.
10065 ac_cs_recheck=false
10067 SHELL=\${CONFIG_SHELL-$SHELL}
10070 cat >>$CONFIG_STATUS <<\_ACEOF
10071 ## --------------------- ##
10072 ## M4sh Initialization. ##
10073 ## --------------------- ##
10075 # Be more Bourne compatible
10076 DUALCASE
=1; export DUALCASE
# for MKS sh
10077 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10080 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10081 # is contrary to our usage. Disable this feature.
10082 alias -g '${1+"$@"}'='"$@"'
10083 setopt NO_GLOB_SUBST
10085 case `(set -o) 2>/dev/null` in
10086 *posix
*) set -o posix
;;
10095 # Avoid depending upon Character Ranges.
10096 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10097 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10098 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10099 as_cr_digits
='0123456789'
10100 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10102 # The user is always right.
10103 if test "${PATH_SEPARATOR+set}" != set; then
10104 echo "#! /bin/sh" >conf$$.sh
10105 echo "exit 0" >>conf$$.sh
10107 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10115 # Support unset when possible.
10116 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10124 # We need space, tab and new line, in precisely that order. Quoting is
10125 # there to prevent editors from complaining about space-tab.
10126 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10127 # splitting by setting IFS to empty value.)
10132 # Find who we are. Look in the path if we contain no directory separator.
10134 *[\\/]* ) as_myself
=$0 ;;
10135 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10136 for as_dir
in $PATH
10139 test -z "$as_dir" && as_dir
=.
10140 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10146 # We did not find ourselves, most probably we were run as `sh COMMAND'
10147 # in which case we are not to be found in the path.
10148 if test "x$as_myself" = x
; then
10151 if test ! -f "$as_myself"; then
10152 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10153 { (exit 1); exit 1; }
10156 # Work around bugs in pre-3.0 UWIN ksh.
10157 for as_var
in ENV MAIL MAILPATH
10158 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10166 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10167 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10168 LC_TELEPHONE LC_TIME
10170 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10171 eval $as_var=C
; export $as_var
10173 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10177 # Required to use basename.
10178 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10179 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10185 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10186 as_basename
=basename
10192 # Name of the executable.
10193 as_me
=`$as_basename -- "$0" ||
10194 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10195 X"$0" : 'X\(//\)$' \| \
10196 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10198 sed '/^.*\/\([^/][^/]*\)\/*$/{
10217 as_lineno_1
=$LINENO
10218 as_lineno_2
=$LINENO
10219 test "x$as_lineno_1" != "x$as_lineno_2" &&
10220 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10222 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10223 # uniformly replaced by the line number. The first 'sed' inserts a
10224 # line-number line after each line using $LINENO; the second 'sed'
10225 # does the real work. The second script uses 'N' to pair each
10226 # line-number line with the line containing $LINENO, and appends
10227 # trailing '-' during substitution so that $LINENO is not a special
10228 # case at line end.
10229 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10230 # scripts with optimization help from Paolo Bonzini. Blame Lee
10231 # E. McMahon (1931-1989) for sed's syntax. :-)
10243 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10246 ' >$as_me.lineno
&&
10247 chmod +x
"$as_me.lineno" ||
10248 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10249 { (exit 1); exit 1; }; }
10251 # Don't try to exec as it changes $[0], causing all sort of problems
10252 # (the dirname of $[0] is not the place where we might find the
10253 # original and so on. Autoconf is especially sensitive to this).
10254 .
"./$as_me.lineno"
10255 # Exit status is that of the last command.
10260 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10266 ECHO_C
= ECHO_N
= ECHO_T
=
10267 case `echo -n x` in
10269 case `echo 'x\c'` in
10270 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10277 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10278 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10284 rm -f conf$$ conf$$.exe conf$$.
file
10285 if test -d conf$$.dir
; then
10286 rm -f conf$$.dir
/conf$$.
file
10292 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10294 # ... but there are two gotchas:
10295 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10296 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10297 # In both cases, we have to default to `cp -p'.
10298 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10300 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10305 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10306 rmdir conf$$.dir
2>/dev
/null
10308 if mkdir
-p .
2>/dev
/null
; then
10311 test -d .
/-p && rmdir .
/-p
10315 if test -x / >/dev
/null
2>&1; then
10316 as_test_x
='test -x'
10318 if ls -dL / >/dev
/null
2>&1; then
10325 if test -d "$1"; then
10331 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10332 ???[sx]*):;;*)false;;esac;fi
10336 as_executable_p
=$as_test_x
10338 # Sed expression to map a string onto a valid CPP name.
10339 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10341 # Sed expression to map a string onto a valid variable name.
10342 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10347 # Save the log message, to keep $[0] and so on meaningful, and to
10348 # report actual input values of CONFIG_FILES etc. instead of their
10349 # values after options handling.
10351 This file was extended by $as_me, which was
10352 generated by GNU Autoconf 2.61. Invocation command line was
10354 CONFIG_FILES = $CONFIG_FILES
10355 CONFIG_HEADERS = $CONFIG_HEADERS
10356 CONFIG_LINKS = $CONFIG_LINKS
10357 CONFIG_COMMANDS = $CONFIG_COMMANDS
10360 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10365 cat >>$CONFIG_STATUS <<_ACEOF
10366 # Files that config.status was made for.
10367 config_files="$ac_config_files"
10368 config_headers="$ac_config_headers"
10372 cat >>$CONFIG_STATUS <<\_ACEOF
10374 \`$as_me' instantiates files from templates according to the
10375 current configuration.
10377 Usage: $0 [OPTIONS] [FILE]...
10379 -h, --help print this help, then exit
10380 -V, --version print version number and configuration settings, then exit
10381 -q, --quiet do not print progress messages
10382 -d, --debug don't remove temporary files
10383 --recheck update $as_me by reconfiguring in the same conditions
10384 --file=FILE[:TEMPLATE]
10385 instantiate the configuration file FILE
10386 --header=FILE[:TEMPLATE]
10387 instantiate the configuration header FILE
10389 Configuration files:
10392 Configuration headers:
10395 Report bugs to <bug-autoconf@gnu.org>."
10398 cat >>$CONFIG_STATUS <<_ACEOF
10401 configured by $0, generated by GNU Autoconf 2.61,
10402 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10404 Copyright (C) 2006 Free Software Foundation, Inc.
10405 This config.status script is free software; the Free Software Foundation
10406 gives unlimited permission to copy, distribute and modify it."
10412 cat >>$CONFIG_STATUS <<\_ACEOF
10413 # If no file are specified by the user, then we need to provide default
10414 # value. By we need to know if files were specified by the user.
10420 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10421 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10432 # Handling of the options.
10433 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10435 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10436 echo "$ac_cs_version"; exit ;;
10437 --debug |
--debu |
--deb |
--de |
--d |
-d )
10439 --file |
--fil |
--fi |
--f )
10441 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10442 ac_need_defaults
=false
;;
10443 --header |
--heade |
--head |
--hea )
10445 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10446 ac_need_defaults
=false
;;
10448 # Conflict between --help and --header
10449 { echo "$as_me: error: ambiguous option: $1
10450 Try \`$0 --help' for more information." >&2
10451 { (exit 1); exit 1; }; };;
10452 --help |
--hel |
-h )
10453 echo "$ac_cs_usage"; exit ;;
10454 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10455 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10458 # This is an error.
10459 -*) { echo "$as_me: error: unrecognized option: $1
10460 Try \`$0 --help' for more information." >&2
10461 { (exit 1); exit 1; }; } ;;
10463 *) ac_config_targets
="$ac_config_targets $1"
10464 ac_need_defaults
=false
;;
10470 ac_configure_extra_args
=
10472 if $ac_cs_silent; then
10474 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10478 cat >>$CONFIG_STATUS <<_ACEOF
10479 if \$ac_cs_recheck; then
10480 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10481 CONFIG_SHELL=$SHELL
10482 export CONFIG_SHELL
10483 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10487 cat >>$CONFIG_STATUS <<\_ACEOF
10491 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10492 ## Running $as_me. ##
10498 cat >>$CONFIG_STATUS <<_ACEOF
10501 cat >>$CONFIG_STATUS <<\_ACEOF
10503 # Handling of arguments.
10504 for ac_config_target
in $ac_config_targets
10506 case $ac_config_target in
10507 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10508 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
10509 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10510 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10511 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10512 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10513 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10514 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10515 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10516 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10517 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10518 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10520 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10521 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10522 { (exit 1); exit 1; }; };;
10527 # If the user did not use the arguments to specify the items to instantiate,
10528 # then the envvar interface is used. Set only those that are not.
10529 # We use the long form for the default assignment because of an extremely
10530 # bizarre bug on SunOS 4.1.3.
10531 if $ac_need_defaults; then
10532 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10533 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10536 # Have a temporary directory for convenience. Make it in the build tree
10537 # simply because there is no reason against having it here, and in addition,
10538 # creating and moving files from /tmp can sometimes cause problems.
10539 # Hook for its removal unless debugging.
10540 # Note that there is a small window in which the directory will not be cleaned:
10541 # after its creation but before its name has been assigned to `$tmp'.
10545 trap 'exit_status=$?
10546 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10548 trap '{ (exit 1); exit 1; }' 1 2 13 15
10550 # Create a (secure) tmp directory for tmp files.
10553 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10554 test -n "$tmp" && test -d "$tmp"
10557 tmp
=.
/conf$$
-$RANDOM
10558 (umask 077 && mkdir
"$tmp")
10561 echo "$me: cannot create a temporary directory in ." >&2
10562 { (exit 1); exit 1; }
10566 # Set up the sed scripts for CONFIG_FILES section.
10569 # No need to generate the scripts if there are no CONFIG_FILES.
10570 # This happens for instance when ./config.status config.h
10571 if test -n "$CONFIG_FILES"; then
10578 for ac_last_try
in false false false false false
:; do
10579 cat >conf$
$subs.
sed <<_ACEOF
10580 SHELL!$SHELL$ac_delim
10581 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10582 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10583 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10584 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10585 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10586 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10587 exec_prefix!$exec_prefix$ac_delim
10588 prefix!$prefix$ac_delim
10589 program_transform_name!$program_transform_name$ac_delim
10590 bindir!$bindir$ac_delim
10591 sbindir!$sbindir$ac_delim
10592 libexecdir!$libexecdir$ac_delim
10593 datarootdir!$datarootdir$ac_delim
10594 datadir!$datadir$ac_delim
10595 sysconfdir!$sysconfdir$ac_delim
10596 sharedstatedir!$sharedstatedir$ac_delim
10597 localstatedir!$localstatedir$ac_delim
10598 includedir!$includedir$ac_delim
10599 oldincludedir!$oldincludedir$ac_delim
10600 docdir!$docdir$ac_delim
10601 infodir!$infodir$ac_delim
10602 htmldir!$htmldir$ac_delim
10603 dvidir!$dvidir$ac_delim
10604 pdfdir!$pdfdir$ac_delim
10605 psdir!$psdir$ac_delim
10606 libdir!$libdir$ac_delim
10607 localedir!$localedir$ac_delim
10608 mandir!$mandir$ac_delim
10609 DEFS!$DEFS$ac_delim
10610 ECHO_C!$ECHO_C$ac_delim
10611 ECHO_N!$ECHO_N$ac_delim
10612 ECHO_T!$ECHO_T$ac_delim
10613 LIBS!$LIBS$ac_delim
10614 build_alias!$build_alias$ac_delim
10615 host_alias!$host_alias$ac_delim
10616 target_alias!$target_alias$ac_delim
10617 PACKAGE!$PACKAGE$ac_delim
10618 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10619 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10620 STABLE_VERSION!$STABLE_VERSION$ac_delim
10621 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10623 CFLAGS!$CFLAGS$ac_delim
10624 LDFLAGS!$LDFLAGS$ac_delim
10625 CPPFLAGS!$CPPFLAGS$ac_delim
10626 ac_ct_CC!$ac_ct_CC$ac_delim
10627 EXEEXT!$EXEEXT$ac_delim
10628 OBJEXT!$OBJEXT$ac_delim
10630 CXXFLAGS!$CXXFLAGS$ac_delim
10631 ac_ct_CXX!$ac_ct_CXX$ac_delim
10632 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10633 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10634 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10635 CXXCPP!$CXXCPP$ac_delim
10636 GREP!$GREP$ac_delim
10637 EGREP!$EGREP$ac_delim
10638 XMKMF!$XMKMF$ac_delim
10639 X_CFLAGS!$X_CFLAGS$ac_delim
10640 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10641 X_LIBS!$X_LIBS$ac_delim
10642 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10643 CONFIG_BDL!$CONFIG_BDL$ac_delim
10645 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10646 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10647 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10648 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10649 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10650 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10651 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10652 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10653 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10654 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10655 build!$build$ac_delim
10656 build_cpu!$build_cpu$ac_delim
10657 build_vendor!$build_vendor$ac_delim
10658 build_os!$build_os$ac_delim
10659 host!$host$ac_delim
10660 host_cpu!$host_cpu$ac_delim
10661 host_vendor!$host_vendor$ac_delim
10662 host_os!$host_os$ac_delim
10663 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10664 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10665 QMAKE!$QMAKE$ac_delim
10669 QT_PATH!$QT_PATH$ac_delim
10670 TMPDIR!$TMPDIR$ac_delim
10671 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10672 QT_DEFINES!$QT_DEFINES$ac_delim
10673 QT_CFLAGS!$QT_CFLAGS$ac_delim
10674 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10675 QT_INCPATH!$QT_INCPATH$ac_delim
10676 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10679 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10681 elif $ac_last_try; then
10682 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10683 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10684 { (exit 1); exit 1; }; }
10686 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10690 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10691 if test -n "$ac_eof"; then
10692 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10693 ac_eof
=`expr $ac_eof + 1`
10696 cat >>$CONFIG_STATUS <<_ACEOF
10697 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10698 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10701 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10702 s/^/s,@/; s/!/@,|#_!!_#|/
10705 s/'"$ac_delim"'$/,g/; t
10707 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10708 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10709 rm -f conf$
$subs.
sed
10710 cat >>$CONFIG_STATUS <<_ACEOF
10716 for ac_last_try
in false false false false false
:; do
10717 cat >conf$
$subs.
sed <<_ACEOF
10718 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10719 QT_LFLAGS!$QT_LFLAGS$ac_delim
10720 QT_LIBS!$QT_LIBS$ac_delim
10721 X11_CFLAGS!$X11_CFLAGS$ac_delim
10722 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10723 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10724 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10725 CONFIG_X11!$CONFIG_X11$ac_delim
10726 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10727 CONFIG_QT!$CONFIG_QT$ac_delim
10728 CONFIG_GUI!$CONFIG_GUI$ac_delim
10729 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10730 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10731 CONFIG_OS!$CONFIG_OS$ac_delim
10732 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10733 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10734 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10735 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10736 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10737 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10738 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10739 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10740 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10741 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10742 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10743 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10744 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10745 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10746 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10747 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10748 CONFIG_SO!$CONFIG_SO$ac_delim
10749 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10750 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10751 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10752 LDRT!$LDRT$ac_delim
10753 CONFIG_NATIVE_ARCH_TAG!$CONFIG_NATIVE_ARCH_TAG$ac_delim
10754 tmorig!$tmorig$ac_delim
10755 tmdir!$tmdir$ac_delim
10756 tmsrc!$tmsrc$ac_delim
10757 tmbin!$tmbin$ac_delim
10758 tmdata!$tmdata$ac_delim
10759 tmtgz!$tmtgz$ac_delim
10760 tmrpm!$tmrpm$ac_delim
10761 tmstgz!$tmstgz$ac_delim
10762 tmsrpm!$tmsrpm$ac_delim
10763 tmwin!$tmwin$ac_delim
10764 LIBOBJS!$LIBOBJS$ac_delim
10765 LTLIBOBJS!$LTLIBOBJS$ac_delim
10768 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
10770 elif $ac_last_try; then
10771 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10772 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10773 { (exit 1); exit 1; }; }
10775 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10779 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10780 if test -n "$ac_eof"; then
10781 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10782 ac_eof
=`expr $ac_eof + 1`
10785 cat >>$CONFIG_STATUS <<_ACEOF
10786 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10790 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10791 s/^/s,@/; s/!/@,|#_!!_#|/
10794 s/'"$ac_delim"'$/,g/; t
10796 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10797 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10798 rm -f conf$
$subs.
sed
10799 cat >>$CONFIG_STATUS <<_ACEOF
10806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10808 # trailing colons and then remove the whole line if VPATH becomes empty
10809 # (actually we leave an empty line to preserve line numbers).
10810 if test "x$srcdir" = x.
; then
10811 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10812 s/:*\$(srcdir):*/:/
10813 s/:*\${srcdir}:*/:/
10815 s/^\([^=]*=[ ]*\):*/\1/
10821 cat >>$CONFIG_STATUS <<\_ACEOF
10822 fi # test -n "$CONFIG_FILES"
10825 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
10828 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10830 case $ac_mode$ac_tag in
10832 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10833 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10834 { (exit 1); exit 1; }; };;
10835 :[FH
]-) ac_tag
=-:-;;
10836 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10853 -) ac_f
="$tmp/stdin";;
10854 *) # Look for the file first in the build tree, then in the source tree
10855 # (if the path is not absolute). The absolute path cannot be DOS-style,
10856 # because $ac_f cannot contain `:'.
10860 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10862 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10863 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10864 { (exit 1); exit 1; }; };;
10866 ac_file_inputs
="$ac_file_inputs $ac_f"
10869 # Let's still pretend it is `configure' which instantiates (i.e., don't
10870 # use $as_me), people would be surprised to read:
10871 # /* config.h. Generated by config.status. */
10872 configure_input
="Generated from "`IFS=:
10873 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10874 if test x
"$ac_file" != x-
; then
10875 configure_input
="$ac_file. $configure_input"
10876 { echo "$as_me:$LINENO: creating $ac_file" >&5
10877 echo "$as_me: creating $ac_file" >&6;}
10881 *:-:* |
*:-) cat >"$tmp/stdin";;
10886 ac_dir
=`$as_dirname -- "$ac_file" ||
10887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10888 X"$ac_file" : 'X\(//\)[^/]' \| \
10889 X"$ac_file" : 'X\(//\)$' \| \
10890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10896 /^X\(\/\/\)[^/].*/{
10911 -*) as_dir
=.
/$as_dir;;
10913 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
10917 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10918 *) as_qdir
=$as_dir;;
10920 as_dirs
="'$as_qdir' $as_dirs"
10921 as_dir
=`$as_dirname -- "$as_dir" ||
10922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10923 X"$as_dir" : 'X\(//\)[^/]' \| \
10924 X"$as_dir" : 'X\(//\)$' \| \
10925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10931 /^X\(\/\/\)[^/].*/{
10944 test -d "$as_dir" && break
10946 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10947 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10948 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10949 { (exit 1); exit 1; }; }; }
10953 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10955 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10956 # A ".." for each directory in $ac_dir_suffix.
10957 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10958 case $ac_top_builddir_sub in
10959 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10960 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10963 ac_abs_top_builddir
=$ac_pwd
10964 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10965 # for backward compatibility:
10966 ac_top_builddir
=$ac_top_build_prefix
10969 .
) # We are building in place.
10971 ac_top_srcdir
=$ac_top_builddir_sub
10972 ac_abs_top_srcdir
=$ac_pwd ;;
10973 [\\/]* | ?
:[\\/]* ) # Absolute name.
10974 ac_srcdir
=$srcdir$ac_dir_suffix;
10975 ac_top_srcdir
=$srcdir
10976 ac_abs_top_srcdir
=$srcdir ;;
10977 *) # Relative name.
10978 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10979 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10980 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10982 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10993 cat >>$CONFIG_STATUS <<\_ACEOF
10994 # If the template does not know about datarootdir, expand it.
10995 # FIXME: This hack should be removed a few years after 2.60.
10996 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10998 case `sed -n '/datarootdir/ {
11007 ' $ac_file_inputs` in
11008 *datarootdir
*) ac_datarootdir_seen
=yes;;
11009 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11010 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11011 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11013 cat >>$CONFIG_STATUS <<_ACEOF
11014 ac_datarootdir_hack='
11015 s&@datadir@&$datadir&g
11016 s&@docdir@&$docdir&g
11017 s&@infodir@&$infodir&g
11018 s&@localedir@&$localedir&g
11019 s&@mandir@&$mandir&g
11020 s&\\\${datarootdir}&$datarootdir&g' ;;
11024 # Neutralize VPATH when `$srcdir' = `.'.
11025 # Shell code in configure.ac might set extrasub.
11026 # FIXME: do we really want to maintain this feature?
11027 cat >>$CONFIG_STATUS <<_ACEOF
11031 cat >>$CONFIG_STATUS <<\_ACEOF
11033 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11034 s
&@configure_input@
&$configure_input&;t t
11035 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11036 s
&@srcdir@
&$ac_srcdir&;t t
11037 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11038 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11039 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11040 s
&@builddir@
&$ac_builddir&;t t
11041 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11042 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11043 $ac_datarootdir_hack
11044 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
11046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11047 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11048 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11049 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11050 which seems to be undefined. Please make sure it is defined." >&5
11051 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11052 which seems to be undefined. Please make sure it is defined." >&2;}
11056 -) cat "$tmp/out"; rm -f "$tmp/out";;
11057 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11066 # Transform confdefs.h into a sed script `conftest.defines', that
11067 # substitutes the proper values into config.h.in to produce config.h.
11068 rm -f conftest.defines conftest.
tail
11069 # First, append a space to every undef/define line, to ease matching.
11070 echo 's/$/ /' >conftest.defines
11071 # Then, protect against being on the right side of a sed subst, or in
11072 # an unquoted here document, in config.status. If some macros were
11073 # called several times there might be several #defines for the same
11074 # symbol, which is useless. But do not sort them, since the last
11075 # AC_DEFINE must be honored.
11076 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11077 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11078 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11079 # PARAMS is the parameter list in the macro definition--in most cases, it's
11080 # just an empty string.
11081 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11082 ac_dB
='\\)[ (].*,\\1define\\2'
11090 s/^[ ]*#[ ]*define[ ][ ]*//
11095 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11096 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11097 ' >>conftest.defines
11099 # Remove the space that was appended to ease matching.
11100 # Then replace #undef with comments. This is necessary, for
11101 # example, in the case of _POSIX_SOURCE, which is predefined and required
11102 # on some systems where configure will not decide to define it.
11103 # (The regexp can be short, since the line contains either #define or #undef.)
11105 s,^[ #]*u.*,/* & */,' >>conftest.defines
11107 # Break up conftest.defines:
11108 ac_max_sed_lines
=50
11110 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11111 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11112 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11114 ac_in
='$ac_file_inputs'
11115 ac_out
='"$tmp/out1"'
11116 ac_nxt
='"$tmp/out2"'
11120 # Write a here document:
11121 cat >>$CONFIG_STATUS <<_ACEOF
11122 # First, check the format of the line:
11123 cat >"\$tmp/defines.sed" <<\\CEOF
11124 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11125 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11129 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11131 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11132 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11133 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11134 grep . conftest.
tail >/dev
/null ||
break
11135 rm -f conftest.defines
11136 mv conftest.
tail conftest.defines
11138 rm -f conftest.defines conftest.
tail
11140 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11141 cat >>$CONFIG_STATUS <<\_ACEOF
11142 if test x
"$ac_file" != x-
; then
11143 echo "/* $configure_input */" >"$tmp/config.h"
11144 cat "$ac_result" >>"$tmp/config.h"
11145 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11146 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11147 echo "$as_me: $ac_file is unchanged" >&6;}
11150 mv "$tmp/config.h" $ac_file
11153 echo "/* $configure_input */"
11165 { (exit 0); exit 0; }
11167 chmod +x
$CONFIG_STATUS
11168 ac_clean_files
=$ac_clean_files_save
11171 # configure is writing to config.log, and then calls config.status.
11172 # config.status does its own redirection, appending to config.log.
11173 # Unfortunately, on DOS this fails, as config.log is still kept open
11174 # by configure, so config.status won't be able to write to it; its
11175 # output is simply discarded. So we exec the FD to /dev/null,
11176 # effectively closing config.log, so it can be properly (re)opened and
11177 # appended to by config.status. When coming back to configure, we
11178 # need to make the FD available again.
11179 if test "$no_create" != yes; then
11181 ac_config_status_args
=
11182 test "$silent" = yes &&
11183 ac_config_status_args
="$ac_config_status_args --quiet"
11185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11188 # would make configure fail if this is the last instruction.
11189 $ac_cs_success ||
{ (exit 1); exit 1; }