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
742 CONFIG_WORD_LENGTH_INC
752 CONFIG_NATIVE_ARCH_TAG
766 ac_precious_vars
='build_alias
783 # Initialize some variables set by options.
785 ac_init_version
=false
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name
=s
,x
,x
,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir
='${exec_prefix}/bin'
810 sbindir
='${exec_prefix}/sbin'
811 libexecdir
='${exec_prefix}/libexec'
812 datarootdir
='${prefix}/share'
813 datadir
='${datarootdir}'
814 sysconfdir
='${prefix}/etc'
815 sharedstatedir
='${prefix}/com'
816 localstatedir
='${prefix}/var'
817 includedir
='${prefix}/include'
818 oldincludedir
='/usr/include'
819 docdir
='${datarootdir}/doc/${PACKAGE}'
820 infodir
='${datarootdir}/info'
825 libdir
='${exec_prefix}/lib'
826 localedir
='${datarootdir}/locale'
827 mandir
='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\
$ac_option
841 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
853 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
856 -build |
--build |
--buil |
--bui |
--bu)
857 ac_prev
=build_alias
;;
858 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
859 build_alias
=$ac_optarg ;;
861 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
862 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
863 ac_prev
=cache_file
;;
864 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
865 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
866 cache_file
=$ac_optarg ;;
869 cache_file
=config.cache
;;
871 -datadir |
--datadir |
--datadi |
--datad)
873 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
874 datadir
=$ac_optarg ;;
876 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
877 |
--dataroo |
--dataro |
--datar)
878 ac_prev
=datarootdir
;;
879 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
880 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
881 datarootdir
=$ac_optarg ;;
883 -disable-* |
--disable-*)
884 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_
$ac_feature=no
;;
892 -docdir |
--docdir |
--docdi |
--doc |
--do)
894 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
897 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
899 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
902 -enable-* |
--enable-*)
903 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
908 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
909 eval enable_
$ac_feature=\
$ac_optarg ;;
911 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
912 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
913 |
--exec |
--exe |
--ex)
914 ac_prev
=exec_prefix
;;
915 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
916 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
917 |
--exec=* |
--exe=* |
--ex=*)
918 exec_prefix
=$ac_optarg ;;
920 -gas |
--gas |
--ga |
--g)
921 # Obsolete; use --with-gas.
924 -help |
--help |
--hel |
--he |
-h)
926 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
927 ac_init_help
=recursive
;;
928 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
929 ac_init_help
=short
;;
931 -host |
--host |
--hos |
--ho)
932 ac_prev
=host_alias
;;
933 -host=* |
--host=* |
--hos=* |
--ho=*)
934 host_alias
=$ac_optarg ;;
936 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
938 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
940 htmldir
=$ac_optarg ;;
942 -includedir |
--includedir |
--includedi |
--included |
--include \
943 |
--includ |
--inclu |
--incl |
--inc)
944 ac_prev
=includedir
;;
945 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
946 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
947 includedir
=$ac_optarg ;;
949 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
951 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
952 infodir
=$ac_optarg ;;
954 -libdir |
--libdir |
--libdi |
--libd)
956 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
959 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
960 |
--libexe |
--libex |
--libe)
961 ac_prev
=libexecdir
;;
962 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
963 |
--libexe=* |
--libex=* |
--libe=*)
964 libexecdir
=$ac_optarg ;;
966 -localedir |
--localedir |
--localedi |
--localed |
--locale)
968 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
969 localedir
=$ac_optarg ;;
971 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
972 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
973 ac_prev
=localstatedir
;;
974 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
975 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
976 localstatedir
=$ac_optarg ;;
978 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
980 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
984 # Obsolete; use --without-fp.
987 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
988 |
--no-cr |
--no-c |
-n)
991 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
992 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
995 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
996 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
997 |
--oldin |
--oldi |
--old |
--ol |
--o)
998 ac_prev
=oldincludedir
;;
999 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1000 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1001 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1002 oldincludedir
=$ac_optarg ;;
1004 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1006 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1007 prefix
=$ac_optarg ;;
1009 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1010 |
--program-pre |
--program-pr |
--program-p)
1011 ac_prev
=program_prefix
;;
1012 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1013 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1014 program_prefix
=$ac_optarg ;;
1016 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1017 |
--program-suf |
--program-su |
--program-s)
1018 ac_prev
=program_suffix
;;
1019 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1020 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1021 program_suffix
=$ac_optarg ;;
1023 -program-transform-name |
--program-transform-name \
1024 |
--program-transform-nam |
--program-transform-na \
1025 |
--program-transform-n |
--program-transform- \
1026 |
--program-transform |
--program-transfor \
1027 |
--program-transfo |
--program-transf \
1028 |
--program-trans |
--program-tran \
1029 |
--progr-tra |
--program-tr |
--program-t)
1030 ac_prev
=program_transform_name
;;
1031 -program-transform-name=* |
--program-transform-name=* \
1032 |
--program-transform-nam=* |
--program-transform-na=* \
1033 |
--program-transform-n=* |
--program-transform-=* \
1034 |
--program-transform=* |
--program-transfor=* \
1035 |
--program-transfo=* |
--program-transf=* \
1036 |
--program-trans=* |
--program-tran=* \
1037 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1038 program_transform_name
=$ac_optarg ;;
1040 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1042 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1043 pdfdir
=$ac_optarg ;;
1045 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1047 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1050 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1051 |
-silent |
--silent |
--silen |
--sile |
--sil)
1054 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1056 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1058 sbindir
=$ac_optarg ;;
1060 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1061 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1062 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1064 ac_prev
=sharedstatedir
;;
1065 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1066 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1067 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1069 sharedstatedir
=$ac_optarg ;;
1071 -site |
--site |
--sit)
1073 -site=* |
--site=* |
--sit=*)
1076 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1078 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1079 srcdir
=$ac_optarg ;;
1081 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1082 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1083 ac_prev
=sysconfdir
;;
1084 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1085 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1086 sysconfdir
=$ac_optarg ;;
1088 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1089 ac_prev
=target_alias
;;
1090 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1091 target_alias
=$ac_optarg ;;
1093 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1096 -version |
--version |
--versio |
--versi |
--vers |
-V)
1097 ac_init_version
=: ;;
1100 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_
$ac_package=\
$ac_optarg ;;
1108 -without-* |
--without-*)
1109 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_
$ac_package=no
;;
1118 # Obsolete; use --with-x.
1121 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1122 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1123 ac_prev
=x_includes
;;
1124 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1125 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1126 x_includes
=$ac_optarg ;;
1128 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1129 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1130 ac_prev
=x_libraries
;;
1131 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1132 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1133 x_libraries
=$ac_optarg ;;
1135 -*) { echo "$as_me: error: unrecognized option: $ac_option
1136 Try \`$0 --help' for more information." >&2
1137 { (exit 1); exit 1; }; }
1141 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1144 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145 { (exit 1); exit 1; }; }
1146 eval $ac_envvar=\
$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1153 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1160 if test -n "$ac_prev"; then
1161 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1162 { echo "$as_me: error: missing argument to $ac_option" >&2
1163 { (exit 1); exit 1; }; }
1166 # Be sure to have absolute directory names.
1167 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val
=\$
$ac_var
1174 [\\/$
]* | ?
:[\\/]* ) continue;;
1175 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1177 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target
=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x
; then
1190 if test "x$build_alias" = x
; then
1191 cross_compiling
=maybe
1192 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1202 test "$silent" = yes && exec 6>/dev
/null
1205 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di
=`ls -di .` &&
1207 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1208 { echo "$as_me: error: Working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted
=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir
=`$as_dirname -- "$0" ||
1220 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$0" : 'X\(//\)[^/]' \| \
1222 X"$0" : 'X\(//\)$' \| \
1223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1247 ac_srcdir_defaulted
=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1251 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252 { (exit 1); exit 1; }; }
1254 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257 { (exit 1); exit 1; }; }
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1267 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 for ac_var
in $ac_precious_vars; do
1270 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1272 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1277 # Report the --help message.
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1283 \`configure' configures this package to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1341 --x-includes=DIR X include files are
in DIR
1342 --x-libraries=DIR X library files are
in DIR
1345 --build=BUILD configure
for building on BUILD
[guessed
]
1346 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1350 if test -n "$ac_init_help"; then
1355 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1356 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1357 --disable-fastalloc omit fast allocator
for small objects
1358 --enable-experimental support new style rewriting code
1359 --enable-macosx-extensions support new style rewriting code
1360 --enable-qt replace X11 by Qt interface
1361 --enable-cocoa replace X11 by Cocoa interface
1362 --enable-debug=ARG
install a debugging
enable executable
-ggdb
1363 --enable-assert exit on failed assertions
in code
1364 --enable-warnings print warning messages during compilation
1365 --enable-optimize=ARG compile with optimizations guessed
1368 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1369 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1370 --with-x use the X Window System
1371 --with-iconv=DIR where to
find iconv system
1372 --with-freetype=ARG with freetype support ARG
=linked
1373 --with-cairo=ARG with cairo support ARG
=no
1374 --with-imlib2=ARG with imlib2 support ARG
=no
1375 --with-axel=ARG with axel support ARG
=no
1376 --with-gs=ARG with ghostscript support ARG
=yes
1377 --with-qt Path to Qt
[Look
in PATH and
/usr
/local
/Trolltech
]
1379 Some influential environment variables
:
1380 CC C compiler
command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1383 nonstandard directory
<lib dir
>
1384 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1385 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1386 you have headers
in a nonstandard directory
<include dir
>
1387 CXX C
++ compiler
command
1388 CXXFLAGS C
++ compiler flags
1389 CXXCPP C
++ preprocessor
1390 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1392 TMPDIR A temporary directory with
write access
[/tmp
]
1394 Use these variables to override the choices made by
`configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1401 if test "$ac_init_help" = "recursive"; then
1402 # If there are subdirs, report their specific --help.
1403 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404 test -d "$ac_dir" || continue
1408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1411 # A ".." for each directory in $ac_dir_suffix.
1412 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1413 case $ac_top_builddir_sub in
1414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418 ac_abs_top_builddir=$ac_pwd
1419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1420 # for backward compatibility:
1421 ac_top_builddir=$ac_top_build_prefix
1424 .) # We are building in place.
1426 ac_top_srcdir=$ac_top_builddir_sub
1427 ac_abs_top_srcdir=$ac_pwd ;;
1428 [\\/]* | ?:[\\/]* ) # Absolute name.
1429 ac_srcdir=$srcdir$ac_dir_suffix;
1430 ac_top_srcdir=$srcdir
1431 ac_abs_top_srcdir=$srcdir ;;
1433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1434 ac_top_srcdir=$ac_top_build_prefix$srcdir
1435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439 cd "$ac_dir" || { ac_status=$?; continue; }
1440 # Check for guested configure.
1441 if test -f "$ac_srcdir/configure.gnu"; then
1443 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1444 elif test -f "$ac_srcdir/configure"; then
1446 $SHELL "$ac_srcdir/configure" --help=recursive
1448 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450 cd "$ac_pwd" || { ac_status=$?; break; }
1454 test -n "$ac_init_help" && exit $ac_status
1455 if $ac_init_version; then
1458 generated by GNU Autoconf 2.61
1460 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1461 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1467 cat >config.log <<_ACEOF
1468 This file contains any messages produced by compilers while
1469 running configure, to aid debugging if configure makes a mistake.
1471 It was created by $as_me, which was
1472 generated by GNU Autoconf 2.61. Invocation command line was
1484 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1485 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1486 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1487 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1488 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1490 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1491 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1493 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1495 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1496 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1497 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1498 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1499 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 test -z "$as_dir" && as_dir=.
1508 echo "PATH: $as_dir"
1524 # Keep a trace of the command line.
1525 # Strip out --no-create and --no-recursion so they do not pile up.
1526 # Strip out --silent because we don't want to record it for future runs.
1527 # Also quote any args containing shell meta-characters.
1528 # Make two passes to allow for proper duplicate-argument suppression.
1532 ac_must_keep_next=false
1538 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1540 | -silent | --silent | --silen | --sile | --sil)
1543 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1546 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1548 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1549 if test $ac_must_keep_next = true; then
1550 ac_must_keep_next=false # Got value, back to normal.
1553 *=* | --config-cache | -C | -disable-* | --disable-* \
1554 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1555 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1556 | -with-* | --with-* | -without-* | --without-* | --x)
1557 case "$ac_configure_args0 " in
1558 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1561 -* ) ac_must_keep_next=true ;;
1564 ac_configure_args="$ac_configure_args '$ac_arg'"
1569 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1570 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1572 # When interrupted or exit'd, cleanup temporary files, and complete
1573 # config.log. We remove comments because anyway the quotes in there
1574 # would cause problems or look ugly.
1575 # WARNING: Use '\'' to represent an apostrophe within the trap.
1576 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1577 trap 'exit_status=$?
1578 # Save into config.log some information that might help in debugging.
1583 ## ---------------- ##
1584 ## Cache variables. ##
1585 ## ---------------- ##
1588 # The following way of writing the cache mishandles newlines in values,
1590 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1591 eval ac_val=\$$ac_var
1595 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1596 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1599 _ | IFS | as_nl) ;; #(
1600 *) $as_unset $ac_var ;;
1605 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1606 *${as_nl}ac_space=\ *)
1608 "s/'\''/'\''\\\\'\'''\''/g;
1609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1620 ## ----------------- ##
1621 ## Output variables. ##
1622 ## ----------------- ##
1625 for ac_var in $ac_subst_vars
1627 eval ac_val=\$$ac_var
1629 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 echo "$ac_var='\''$ac_val'\''"
1635 if test -n "$ac_subst_files"; then
1637 ## ------------------- ##
1638 ## File substitutions. ##
1639 ## ------------------- ##
1642 for ac_var in $ac_subst_files
1644 eval ac_val=\$$ac_var
1646 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648 echo "$ac_var='\''$ac_val'\''"
1653 if test -s confdefs.h; then
1663 test "$ac_signal" != 0 &&
1664 echo "$as_me: caught signal $ac_signal"
1665 echo "$as_me: exit $exit_status"
1667 rm -f core *.core core.conftest.* &&
1668 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1671 for ac_signal in 1 2 13 15; do
1672 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1676 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1677 rm -f -r conftest* confdefs.h
1679 # Predefined preprocessor variables.
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_NAME "$PACKAGE_NAME"
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_STRING "$PACKAGE_STRING"
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1706 # Let the site file select an alternate cache file if it wants to.
1707 # Prefer explicitly selected file to automatically selected ones.
1708 if test -n "$CONFIG_SITE"; then
1709 set x "$CONFIG_SITE"
1710 elif test "x$prefix" != xNONE; then
1711 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1713 set x "$ac_default_prefix/share/config.site" \
1714 "$ac_default_prefix/etc/config.site"
1719 if test -r "$ac_site_file"; then
1720 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1721 echo "$as_me: loading site script $ac_site_file" >&6;}
1722 sed 's/^/| /' "$ac_site_file" >&5
1727 if test -r "$cache_file"; then
1728 # Some versions of bash will fail to source /dev/null (special
1729 # files actually), so we avoid doing that.
1730 if test -f "$cache_file"; then
1731 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1732 echo "$as_me: loading cache $cache_file" >&6;}
1734 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1735 *) . "./$cache_file";;
1739 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1740 echo "$as_me: creating cache $cache_file" >&6;}
1744 # Check that the precious variables saved in the cache have kept the same
1746 ac_cache_corrupted=false
1747 for ac_var in $ac_precious_vars; do
1748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1749 eval ac_new_set=\$ac_env_${ac_var}_set
1750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1751 eval ac_new_val=\$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1755 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted=: ;;
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1759 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1766 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1767 echo "$as_me: former value
: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1769 echo "$as_me: current value
: $ac_new_val" >&2;}
1770 ac_cache_corrupted=:
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1776 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1777 *) ac_arg=$ac_var=$ac_new_val ;;
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1787 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1788 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1816 ac_config_headers="$ac_config_headers src/System/config.h:src/System/config.in"
1819 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1820 if test -f "$ac_dir/install-sh"; then
1822 ac_install_sh="$ac_aux_dir/install-sh -c"
1824 elif test -f "$ac_dir/install.sh"; then
1826 ac_install_sh="$ac_aux_dir/install.sh -c"
1828 elif test -f "$ac_dir/shtool"; then
1830 ac_install_sh="$ac_aux_dir/shtool install -c"
1834 if test -z "$ac_aux_dir"; then
1835 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1836 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1837 { (exit 1); exit 1; }; }
1840 # These three variables are undocumented and unsupported,
1841 # and are intended to be withdrawn in a future Autoconf release.
1842 # They can cause serious problems if a builder's source tree is in a directory
1843 # whose full name contains unusual characters.
1844 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1845 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1846 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1849 # Make sure we can run config.sub.
1850 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1851 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1852 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1853 { (exit 1); exit 1; }; }
1855 { echo "$as_me:$LINENO: checking build system type" >&5
1856 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1857 if test "${ac_cv_build+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 ac_build_alias=$build_alias
1861 test "x$ac_build_alias" = x &&
1862 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1863 test "x$ac_build_alias" = x &&
1864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1865 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1866 { (exit 1); exit 1; }; }
1867 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1868 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1869 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1870 { (exit 1); exit 1; }; }
1873 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1874 echo "${ECHO_T}$ac_cv_build" >&6; }
1875 case $ac_cv_build in
1877 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1878 echo "$as_me: error: invalid value of canonical build" >&2;}
1879 { (exit 1); exit 1; }; };;
1882 ac_save_IFS=$IFS; IFS='-'
1888 # Remember, the first character of IFS is used to create $*,
1889 # except with old shells:
1892 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1895 { echo "$as_me:$LINENO: checking host system type" >&5
1896 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1897 if test "${ac_cv_host+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1900 if test "x$host_alias" = x; then
1901 ac_cv_host=$ac_cv_build
1903 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1904 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1905 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1906 { (exit 1); exit 1; }; }
1910 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1911 echo "${ECHO_T}$ac_cv_host" >&6; }
1914 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1915 echo "$as_me: error: invalid value of canonical host" >&2;}
1916 { (exit 1); exit 1; }; };;
1919 ac_save_IFS=$IFS; IFS='-'
1925 # Remember, the first character of IFS is used to create $*,
1926 # except with old shells:
1929 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1934 DEVEL_VERSION="1.0.7.4"
1936 STABLE_VERSION="1.0.7"
1938 WINDOWS_VERSION="1.0.5"
1946 #--------------------------------------------------------------------
1947 # Checks for C++ compiler
1948 #--------------------------------------------------------------------
1951 ac_cpp='$CPP $CPPFLAGS'
1952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test -n "$CC"; then
1985 { echo "$as_me:$LINENO: result: $CC" >&5
1986 echo "${ECHO_T}$CC" >&6; }
1988 { echo "$as_me:$LINENO: result: no" >&5
1989 echo "${ECHO_T}no" >&6; }
1994 if test -z "$ac_cv_prog_CC"; then
1996 # Extract the first word of "gcc", so it can be a program name with args.
1997 set dummy gcc; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 if test -n "$ac_ct_CC"; then
2004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir=.
2011 for ac_exec_ext in '' $ac_executable_extensions; do
2012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2013 ac_cv_prog_ac_ct_CC="gcc"
2014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6; }
2028 { echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6; }
2032 if test "x$ac_ct_CC" = x; then
2035 case $cross_compiling:$ac_tool_warned in
2037 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2038 whose name does not start with the host triplet. If you think this
2039 configuration is useful to you, please write to autoconf@gnu.org." >&5
2040 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2041 whose name does not start with the host triplet. If you think this
2042 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2043 ac_tool_warned=yes ;;
2051 if test -z "$CC"; then
2052 if test -n "$ac_tool_prefix"; then
2053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2054 set dummy ${ac_tool_prefix}cc; ac_word=$2
2055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 if test -n "$CC"; then
2061 ac_cv_prog_CC="$CC" # Let the user override the test.
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067 test -z "$as_dir" && as_dir=.
2068 for ac_exec_ext in '' $ac_executable_extensions; do
2069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070 ac_cv_prog_CC="${ac_tool_prefix}cc"
2071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test -n "$CC"; then
2082 { echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6; }
2085 { echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6; }
2092 if test -z "$CC"; then
2093 # Extract the first word of "cc", so it can be a program name with args.
2094 set dummy cc; ac_word=$2
2095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2112 ac_prog_rejected=yes
2116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test $ac_prog_rejected = yes; then
2124 # We found a bogon in the path, so make sure we never use it.
2125 set dummy $ac_cv_prog_CC
2127 if test $# != 0; then
2128 # We chose a different compiler from the bogus one.
2129 # However, it has the same basename, so the bogon will be chosen
2130 # first if we set CC to just the basename; use the full file name.
2132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2138 if test -n "$CC"; then
2139 { echo "$as_me:$LINENO: result: $CC" >&5
2140 echo "${ECHO_T}$CC" >&6; }
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2148 if test -z "$CC"; then
2149 if test -n "$ac_tool_prefix"; then
2150 for ac_prog in cl.exe
2152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156 if test "${ac_cv_prog_CC+set}" = set; then
2157 echo $ECHO_N "(cached) $ECHO_C" >&6
2159 if test -n "$CC"; then
2160 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 if test -n "$CC"; then
2181 { echo "$as_me:$LINENO: result: $CC" >&5
2182 echo "${ECHO_T}$CC" >&6; }
2184 { echo "$as_me:$LINENO: result: no" >&5
2185 echo "${ECHO_T}no" >&6; }
2189 test -n "$CC" && break
2192 if test -z "$CC"; then
2194 for ac_prog in cl.exe
2196 # Extract the first word of "$ac_prog", so it can be a program name with args.
2197 set dummy $ac_prog; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test -n "$ac_ct_CC"; then
2204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_ac_ct_CC="$ac_prog"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2224 if test -n "$ac_ct_CC"; then
2225 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2226 echo "${ECHO_T}$ac_ct_CC" >&6; }
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2233 test -n "$ac_ct_CC" && break
2236 if test "x$ac_ct_CC" = x; then
2239 case $cross_compiling:$ac_tool_warned in
2241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2242 whose name does not start with the host triplet. If you think this
2243 configuration is useful to you, please write to autoconf@gnu.org." >&5
2244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2245 whose name does not start with the host triplet. If you think this
2246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2247 ac_tool_warned=yes ;;
2256 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257 See \`config.log
' for more details." >&5
2258 echo "$as_me: error: no acceptable C compiler found in \$PATH
2259 See \`config.log' for more details.
" >&2;}
2260 { (exit 1); exit 1; }; }
2262 # Provide some information about the compiler.
2263 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2264 ac_compiler=`set X $ac_compile; echo $2`
2265 { (ac_try="$ac_compiler --version >&5"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_compiler --version >&5") 2>&5
2273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2274 (exit $ac_status); }
2275 { (ac_try="$ac_compiler -v >&5"
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compiler -v >&5") 2>&5
2283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2284 (exit $ac_status); }
2285 { (ac_try="$ac_compiler -V >&5"
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler -V >&5") 2>&5
2293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2294 (exit $ac_status); }
2296 cat >conftest.$ac_ext <<_ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 ac_clean_files_save=$ac_clean_files
2312 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2313 # Try to create an executable without -o first, disregard a.out.
2314 # It will help us diagnose broken compilers, and finding out an intuition
2316 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2317 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2318 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2320 # List of possible output files, starting from the most likely.
2321 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2322 # only as a last resort. b.out is created by i960 compilers.
2323 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2325 # The IRIX 6 linker writes into existing files which may not be
2326 # executable, retaining their permissions. Remove them first so a
2327 # subsequent execution test works.
2329 for ac_file in $ac_files
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2333 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2338 if { (ac_try="$ac_link_default"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_link_default") 2>&5
2346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2347 (exit $ac_status); }; then
2348 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2349 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2350 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2351 # so that the user can short-circuit this test for compilers unknown to
2353 for ac_file in $ac_files ''
2355 test -f "$ac_file" || continue
2357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2360 # We found the default executable, but exeext='' is most
2364 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2366 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2368 # We set ac_cv_exeext here because the later test for it is not
2369 # safe: cross compilers may not add the suffix if given an `-o'
2370 # argument, so we may need to know it at that point already.
2371 # Even if this section looks crufty: it has the advantage of
2378 test "$ac_cv_exeext" = no && ac_cv_exeext=
2384 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2385 echo "${ECHO_T}$ac_file" >&6; }
2386 if test -z "$ac_file"; then
2387 echo "$as_me: failed program was
:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2390 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2391 See \
`config.log' for more details." >&5
2392 echo "$as_me: error: C compiler cannot create executables
2393 See \`config.log
' for more details." >&2;}
2394 { (exit 77); exit 77; }; }
2397 ac_exeext=$ac_cv_exeext
2399 # Check that the compiler produces executables we can run. If not, either
2400 # the compiler is broken, or we cross compile.
2401 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2402 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2403 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2404 # If not cross compiling, check that we can run a simple program.
2405 if test "$cross_compiling" != yes; then
2406 if { ac_try='.
/$ac_file'
2407 { (case "(($ac_try" in
2408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409 *) ac_try_echo=$ac_try;;
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412 (eval "$ac_try") 2>&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 if test "$cross_compiling" = maybe; then
2421 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \
`config.log' for more details." >&5
2424 echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details.
" >&2;}
2427 { (exit 1); exit 1; }; }
2431 { echo "$as_me:$LINENO: result
: yes" >&5
2432 echo "${ECHO_T}yes" >&6; }
2434 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check that the compiler produces executables we can run. If not, either
2437 # the compiler is broken, or we cross compile.
2438 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2439 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2440 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2441 echo "${ECHO_T}$cross_compiling" >&6; }
2443 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2444 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2445 if { (ac_try="$ac_link"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_link") 2>&5
2453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2454 (exit $ac_status); }; then
2455 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2456 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2457 # work properly (i.e., refer to `conftest.exe'), while it won't with
2459 for ac_file in conftest.exe conftest conftest.*; do
2460 test -f "$ac_file" || continue
2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2463 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2470 See \
`config.log' for more details." >&5
2471 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2472 See \`config.log
' for more details." >&2;}
2473 { (exit 1); exit 1; }; }
2476 rm -f conftest$ac_cv_exeext
2477 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2478 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2480 rm -f conftest.$ac_ext
2481 EXEEXT=$ac_cv_exeext
2483 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2484 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2485 if test "${ac_cv_objext+set}" = set; then
2486 echo $ECHO_N "(cached) $ECHO_C" >&6
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2503 rm -f conftest.o conftest.obj
2504 if { (ac_try="$ac_compile"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>&5
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; then
2514 for ac_file in conftest.o conftest.obj conftest.*; do
2515 test -f "$ac_file" || continue;
2517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2518 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2523 echo "$as_me: failed program was:" >&5
2524 sed 's
/^
/|
/' conftest.$ac_ext >&5
2526 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details.
" >&5
2528 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2529 See \
`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2533 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2535 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2536 echo "${ECHO_T}$ac_cv_objext" >&6; }
2537 OBJEXT=$ac_cv_objext
2539 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2540 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2541 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2542 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2566 *) ac_try_echo
=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2571 grep -v '^ *+' conftest.er1
>conftest.err
2573 cat conftest.err
>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } && {
2576 test -z "$ac_c_werror_flag" ||
2577 test ! -s conftest.err
2578 } && test -s conftest.
$ac_objext; then
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.
$ac_ext >&5
2587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2588 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2591 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2592 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2593 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2594 ac_test_CFLAGS
=${CFLAGS+set}
2595 ac_save_CFLAGS
=$CFLAGS
2596 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2597 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_cc_g+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 ac_save_c_werror_flag
=$ac_c_werror_flag
2602 ac_c_werror_flag
=yes
2605 cat >conftest.
$ac_ext <<_ACEOF
2608 cat confdefs.h
>>conftest.
$ac_ext
2609 cat >>conftest.
$ac_ext <<_ACEOF
2610 /* end confdefs.h. */
2620 rm -f conftest.
$ac_objext
2621 if { (ac_try
="$ac_compile"
2623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_compile") 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } && {
2634 test -z "$ac_c_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest.$ac_objext; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 cat >conftest.$ac_ext <<_ACEOF
2646 cat confdefs.h >>conftest.$ac_ext
2647 cat >>conftest.$ac_ext <<_ACEOF
2648 /* end confdefs.h. */
2658 rm -f conftest.$ac_objext
2659 if { (ac_try="$ac_compile"
2661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2662 *) ac_try_echo
=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compile") 2>conftest.er1
2667 grep -v '^ *+' conftest.er1
>conftest.err
2669 cat conftest.err
>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } && {
2672 test -z "$ac_c_werror_flag" ||
2673 test ! -s conftest.err
2674 } && test -s conftest.
$ac_objext; then
2677 echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.
$ac_ext >&5
2680 ac_c_werror_flag
=$ac_save_c_werror_flag
2682 cat >conftest.
$ac_ext <<_ACEOF
2685 cat confdefs.h
>>conftest.
$ac_ext
2686 cat >>conftest.
$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2697 rm -f conftest.
$ac_objext
2698 if { (ac_try
="$ac_compile"
2700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compile") 2>conftest.er1
2706 grep -v '^ *+' conftest.er1 >conftest.err
2708 cat conftest.err >&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); } && {
2711 test -z "$ac_c_werror_flag" ||
2712 test ! -s conftest.err
2713 } && test -s conftest.$ac_objext; then
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2729 ac_c_werror_flag=$ac_save_c_werror_flag
2731 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2732 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2733 if test "$ac_test_CFLAGS" = set; then
2734 CFLAGS=$ac_save_CFLAGS
2735 elif test $ac_cv_prog_cc_g = yes; then
2736 if test "$GCC" = yes; then
2742 if test "$GCC" = yes; then
2748 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2749 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_c89+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 ac_cv_prog_cc_c89=no
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 #include <sys/types.h>
2764 #include <sys/stat.h>
2765 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2766 struct buf { int x; };
2767 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2768 static char *e (p, i)
2774 static char *f (char * (*g) (char **, int), char **p, ...)
2779 s = g (p, va_arg (v,int));
2784 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2785 function prototypes and stuff, but not '\xHH' hex character constants.
2786 These don't provoke an error unfortunately, instead are silently treated
2787 as 'x'. The following induces an error, until -std is added to get
2788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2789 array size at least. It's necessary to write '\x00'==0 to get something
2790 that's true only with -std. */
2791 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2793 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2794 inside strings and character constants. */
2796 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2798 int test (int i, double x);
2799 struct s1 {int (*f) (int a);};
2800 struct s2 {int (*f) (double a);};
2801 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2807 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2812 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2815 CC="$ac_save_CC $ac_arg"
2816 rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2820 *) ac_try_echo
=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>conftest.er1
2825 grep -v '^ *+' conftest.er1
>conftest.err
2827 cat conftest.err
>&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && {
2830 test -z "$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest.
$ac_objext; then
2833 ac_cv_prog_cc_c89
=$ac_arg
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.
$ac_ext >&5
2841 rm -f core conftest.err conftest.
$ac_objext
2842 test "x$ac_cv_prog_cc_c89" != "xno" && break
2844 rm -f conftest.
$ac_ext
2849 case "x$ac_cv_prog_cc_c89" in
2851 { echo "$as_me:$LINENO: result: none needed" >&5
2852 echo "${ECHO_T}none needed" >&6; } ;;
2854 { echo "$as_me:$LINENO: result: unsupported" >&5
2855 echo "${ECHO_T}unsupported" >&6; } ;;
2857 CC
="$CC $ac_cv_prog_cc_c89"
2858 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2859 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2864 ac_cpp
='$CPP $CPPFLAGS'
2865 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2870 ac_cpp
='$CXXCPP $CPPFLAGS'
2871 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2874 if test -z "$CXX"; then
2875 if test -n "$CCC"; then
2878 if test -n "$ac_tool_prefix"; then
2879 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2881 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2882 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2885 if test "${ac_cv_prog_CXX+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 if test -n "$CXX"; then
2889 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2895 test -z "$as_dir" && as_dir
=.
2896 for ac_exec_ext
in '' $ac_executable_extensions; do
2897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2898 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 if test -n "$CXX"; then
2910 { echo "$as_me:$LINENO: result: $CXX" >&5
2911 echo "${ECHO_T}$CXX" >&6; }
2913 { echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6; }
2918 test -n "$CXX" && break
2921 if test -z "$CXX"; then
2923 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy
$ac_prog; ac_word
=$2
2927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 if test -n "$ac_ct_CXX"; then
2933 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2939 test -z "$as_dir" && as_dir
=.
2940 for ac_exec_ext
in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2953 if test -n "$ac_ct_CXX"; then
2954 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2955 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2957 { echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6; }
2962 test -n "$ac_ct_CXX" && break
2965 if test "x$ac_ct_CXX" = x
; then
2968 case $cross_compiling:$ac_tool_warned in
2970 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2971 whose name does not start with the host triplet. If you think this
2972 configuration is useful to you, please write to autoconf@gnu.org." >&5
2973 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2974 whose name does not start with the host triplet. If you think this
2975 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2976 ac_tool_warned
=yes ;;
2984 # Provide some information about the compiler.
2985 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2986 ac_compiler
=`set X $ac_compile; echo $2`
2987 { (ac_try
="$ac_compiler --version >&5"
2989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compiler --version >&5") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }
2997 { (ac_try="$ac_compiler -v >&5"
2999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3000 *) ac_try_echo
=$ac_try;;
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compiler -v >&5") 2>&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }
3007 { (ac_try
="$ac_compiler -V >&5"
3009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler -V >&5") 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3045 *) ac_try_echo
=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compile") 2>conftest.er1
3050 grep -v '^ *+' conftest.er1
>conftest.err
3052 cat conftest.err
>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } && {
3055 test -z "$ac_cxx_werror_flag" ||
3056 test ! -s conftest.err
3057 } && test -s conftest.
$ac_objext; then
3060 echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.
$ac_ext >&5
3066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3067 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3070 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3072 GXX
=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3074 ac_save_CXXFLAGS
=$CXXFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3076 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cxx_g+set}" = set; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3081 ac_cxx_werror_flag
=yes
3084 cat >conftest.
$ac_ext <<_ACEOF
3087 cat confdefs.h
>>conftest.
$ac_ext
3088 cat >>conftest.
$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3099 rm -f conftest.
$ac_objext
3100 if { (ac_try
="$ac_compile"
3102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_cxx_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3116 ac_cv_prog_cxx_g=yes
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3140 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3141 *) ac_try_echo
=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3146 grep -v '^ *+' conftest.er1
>conftest.err
3148 cat conftest.err
>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_cxx_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.
$ac_objext; then
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.
$ac_ext >&5
3159 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3161 cat >conftest.
$ac_ext <<_ACEOF
3164 cat confdefs.h
>>conftest.
$ac_ext
3165 cat >>conftest.
$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3176 rm -f conftest.
$ac_objext
3177 if { (ac_try
="$ac_compile"
3179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_cxx_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3193 ac_cv_prog_cxx_g=yes
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3212 if test "$ac_test_CXXFLAGS" = set; then
3213 CXXFLAGS=$ac_save_CXXFLAGS
3214 elif test $ac_cv_prog_cxx_g = yes; then
3215 if test "$GXX" = yes; then
3221 if test "$GXX" = yes; then
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 ac_cpp='$CXXCPP $CPPFLAGS'
3235 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3241 { echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
3242 echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6; }
3245 GCC_VERSION=`$CC -dumpversion`
3246 GXX_VERSION=`$CXX -dumpversion`
3247 { echo "$as_me:$LINENO: result: yes" >&5
3248 echo "${ECHO_T}yes" >&6; }
3249 { echo "$as_me:$LINENO: checking version of gcc" >&5
3250 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6; }
3251 { echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
3252 echo "${ECHO_T}$GCC_VERSION" >&6; }
3253 { echo "$as_me:$LINENO: checking version of g++" >&5
3254 echo $ECHO_N "checking version of g++... $ECHO_C" >&6; }
3255 { echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
3256 echo "${ECHO_T}$GXX_VERSION" >&6; }
3257 case "$GXX_VERSION" in
3259 echo "old style GNU compiler"
3260 cat >>confdefs.h <<\_ACEOF
3261 #define OLD_GNU_COMPILER
3270 { echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6; }
3272 { echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
3273 echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
3277 #--------------------------------------------------------------------
3279 #--------------------------------------------------------------------
3281 if test -z "$GUILE_CFLAGS" -a -z "$GUILE_LDFLAGS"; then
3283 ## The GUILE_FLAGS macro.
3284 ## First, let's just see if we can find Guile at all.
3285 { echo "$as_me:$LINENO: checking for Guile" >&5
3286 echo $ECHO_N "checking for Guile... $ECHO_C" >&6; }
3287 guile-config link > /dev/null || {
3288 echo "configure: cannot find guile-config; is Guile installed?" 1>&2
3291 GUILE_ORIGINAL_CFLAGS="`guile-config compile
`"
3292 GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
3293 GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
3294 GUILE_LDFLAGS="`guile-config link
`"
3295 GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir
` -lguile -lreadline -ltermcap"
3298 { echo "$as_me:$LINENO: result: yes" >&5
3299 echo "${ECHO_T}yes" >&6; }
3302 { echo "$as_me:$LINENO: checking version of guile" >&5
3303 echo $ECHO_N "checking version of guile... $ECHO_C" >&6; }
3304 if test -z "$GUILE_VERSION" ; then
3305 GUILE_VERSION=`guile
--version |
grep 'Guile \([0-9]\)' |
sed 's/Guile \([0-9]*\)/\1/'`
3307 { echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
3308 echo "${ECHO_T}$GUILE_VERSION" >&6; }
3310 case "$GUILE_VERSION" in
3311 1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
3312 CONFIG_GUILE_SERIAL="A"
3315 CONFIG_GUILE_SERIAL="B"
3318 CONFIG_GUILE_SERIAL="C"
3323 #--------------------------------------------------------------------
3324 # Checks for standard functionality
3325 #--------------------------------------------------------------------
3329 { echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
3330 echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6; }
3331 ac_save_cppflags="$CPPFLAGS"
3332 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
3333 cat >conftest.$ac_ext <<_ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <X11/Xlib.h>
3340 #include <X11/Xutil.h>
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3353 *) ac_try_echo
=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_compile") 2>conftest.er1
3358 grep -v '^ *+' conftest.er1
>conftest.err
3360 cat conftest.err
>&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } && {
3363 test -z "$ac_cxx_werror_flag" ||
3364 test ! -s conftest.err
3365 } && test -s conftest.
$ac_objext; then
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.
$ac_ext >&5
3375 /usr
/X11R
6/include \
3376 /usr
/X11R
5/include \
3377 /usr
/X11R
4/include \
3380 /usr
/include
/X11R6 \
3381 /usr
/include
/X11R5 \
3382 /usr
/include
/X11R4 \
3384 /usr
/local
/X11
/include \
3385 /usr
/local
/X11R
6/include \
3386 /usr
/local
/X11R
5/include \
3387 /usr
/local
/X11R
4/include \
3389 /usr
/local
/include
/X11 \
3390 /usr
/local
/include
/X11R6 \
3391 /usr
/local
/include
/X11R5 \
3392 /usr
/local
/include
/X11R4 \
3396 /usr
/XFree86
/include
/X11 \
3399 /usr
/local
/include \
3400 /usr
/unsupported
/include \
3401 /usr
/athena
/include \
3402 /usr
/local
/x11r
5/include \
3403 /usr
/lpp
/Xamples
/include \
3405 /usr
/openwin
/include \
3406 /usr
/openwin
/share
/include \
3409 if test -r "$ac_dir/X11/Xlib.h"; then
3410 tm_x_includes
=$ac_dir
3414 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3415 < "$tm_x_includes/X11/Xlib.h" > X11
/Xlib.h
3416 sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
3417 < "$tm_x_includes/X11/Xutil.h" > X11
/Xutil.h
3418 X_CFLAGS
="-I.. $X_CFLAGS"
3422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3423 CPPFLAGS
="$ac_save_cppflags"
3426 ac_cpp
='$CXXCPP $CPPFLAGS'
3427 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3430 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3431 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
3432 if test -z "$CXXCPP"; then
3433 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 # Double quotes because CXXCPP needs to be expanded
3437 for CXXCPP
in "$CXX -E" "/lib/cpp"
3440 for ac_cxx_preproc_warn_flag
in '' yes
3442 # Use a header file that comes with gcc, so configuring glibc
3443 # with a fresh cross-compiler works.
3444 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3445 # <limits.h> exists even on freestanding compilers.
3446 # On the NeXT, cc -E runs the code through the compiler's parser,
3447 # not just through cpp. "Syntax error" is here to catch this case.
3448 cat >conftest.
$ac_ext <<_ACEOF
3451 cat confdefs.h
>>conftest.
$ac_ext
3452 cat >>conftest.
$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3455 # include <limits.h>
3457 # include <assert.h>
3461 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3469 grep -v '^ *+' conftest.er1 >conftest.err
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3475 test ! -s conftest.err
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3501 *) ac_try_echo
=$ac_try;;
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 grep -v '^ *+' conftest.er1
>conftest.err
3508 cat conftest.err
>&5
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } >/dev
/null
&& {
3511 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3512 test ! -s conftest.err
3514 # Broken: success on invalid input.
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.
$ac_ext >&5
3520 # Passes both tests.
3525 rm -f conftest.err conftest.
$ac_ext
3528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3529 rm -f conftest.err conftest.
$ac_ext
3530 if $ac_preproc_ok; then
3535 ac_cv_prog_CXXCPP
=$CXXCPP
3538 CXXCPP
=$ac_cv_prog_CXXCPP
3540 ac_cv_prog_CXXCPP
=$CXXCPP
3542 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
3543 echo "${ECHO_T}$CXXCPP" >&6; }
3545 for ac_cxx_preproc_warn_flag
in '' yes
3547 # Use a header file that comes with gcc, so configuring glibc
3548 # with a fresh cross-compiler works.
3549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3550 # <limits.h> exists even on freestanding compilers.
3551 # On the NeXT, cc -E runs the code through the compiler's parser,
3552 # not just through cpp. "Syntax error" is here to catch this case.
3553 cat >conftest.
$ac_ext <<_ACEOF
3556 cat confdefs.h
>>conftest.
$ac_ext
3557 cat >>conftest.
$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3560 # include <limits.h>
3562 # include <assert.h>
3566 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3574 grep -v '^ *+' conftest.er1 >conftest.err
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null && {
3579 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3580 test ! -s conftest.err
3584 echo "$as_me: failed program was:" >&5
3585 sed 's/^/| /' conftest.$ac_ext >&5
3587 # Broken: fails on valid input.
3591 rm -f conftest.err conftest.$ac_ext
3593 # OK, works on sane cases. Now check whether nonexistent headers
3594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3601 #include <ac_nonexistent.h>
3603 if { (ac_try="$ac_cpp conftest.$ac_ext"
3605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3606 *) ac_try_echo
=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1
>conftest.err
3613 cat conftest.err
>&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615 (exit $ac_status); } >/dev
/null
&& {
3616 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3617 test ! -s conftest.err
3619 # Broken: success on invalid input.
3622 echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.
$ac_ext >&5
3625 # Passes both tests.
3630 rm -f conftest.err conftest.
$ac_ext
3633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634 rm -f conftest.err conftest.
$ac_ext
3635 if $ac_preproc_ok; then
3638 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3639 See \`config.log' for more details." >&5
3640 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3641 See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3646 ac_cpp
='$CXXCPP $CPPFLAGS'
3647 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3652 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 # Extract the first word of "grep ggrep" to use in msg output
3658 if test -z "$GREP"; then
3659 set dummy
grep ggrep
; ac_prog_name
=$2
3660 if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3663 ac_path_GREP_found
=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3666 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3669 test -z "$as_dir" && as_dir
=.
3670 for ac_prog
in grep ggrep
; do
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3678 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3689 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3690 ac_count
=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP
="$ac_path_GREP"
3694 ac_path_GREP_max
=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3699 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3703 $ac_path_GREP_found && break 3
3713 GREP
="$ac_cv_path_GREP"
3714 if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3721 ac_cv_path_GREP
=$GREP
3726 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP
="$ac_cv_path_GREP"
3731 { echo "$as_me:$LINENO: checking for egrep" >&5
3732 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733 if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3737 then ac_cv_path_EGREP
="$GREP -E"
3739 # Extract the first word of "egrep" to use in msg output
3740 if test -z "$EGREP"; then
3741 set dummy
egrep; ac_prog_name
=$2
3742 if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_path_EGREP_found
=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3751 test -z "$as_dir" && as_dir
=.
3752 for ac_prog
in egrep; do
3753 for ac_exec_ext
in '' $ac_executable_extensions; do
3754 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758 case `"$ac_path_EGREP" --version 2>&1` in
3760 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3771 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3772 ac_count
=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP
="$ac_path_EGREP"
3776 ac_path_EGREP_max
=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3785 $ac_path_EGREP_found && break 3
3795 EGREP
="$ac_cv_path_EGREP"
3796 if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3803 ac_cv_path_EGREP
=$EGREP
3809 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP
="$ac_cv_path_EGREP"
3814 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3816 if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 cat >conftest.
$ac_ext <<_ACEOF
3822 cat confdefs.h
>>conftest.
$ac_ext
3823 cat >>conftest.
$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3838 rm -f conftest.
$ac_objext
3839 if { (ac_try
="$ac_compile"
3841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3847 grep -v '^ *+' conftest.er1 >conftest.err
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_cxx_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_header_stdc=yes
3857 echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 ac_cv_header_stdc=no
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 if test $ac_cv_header_stdc = yes; then
3866 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3877 $EGREP "memchr" >/dev/null 2>&1; then
3880 ac_cv_header_stdc=no
3886 if test $ac_cv_header_stdc = yes; then
3887 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3898 $EGREP "free" >/dev/null 2>&1; then
3901 ac_cv_header_stdc=no
3907 if test $ac_cv_header_stdc = yes; then
3908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3909 if test "$cross_compiling" = yes; then
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3920 #if ((' ' & 0x0FF) == 0x020)
3921 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3922 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3924 # define ISLOWER(c) \
3925 (('a' <= (c) && (c) <= 'i') \
3926 || ('j' <= (c) && (c) <= 'r') \
3927 || ('s' <= (c) && (c) <= 'z'))
3928 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3931 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936 for (i = 0; i < 256; i++)
3937 if (XOR (islower (i), ISLOWER (i))
3938 || toupper (i) != TOUPPER (i))
3943 rm -f conftest$ac_exeext
3944 if { (ac_try="$ac_link"
3946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3947 *) ac_try_echo
=$ac_try;;
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_link") 2>&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3954 { (case "(($ac_try" in
3955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_try") 2>&5
3961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); }; }; then
3965 echo "$as_me: program exited with status $ac_status" >&5
3966 echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3970 ac_cv_header_stdc=no
3972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3978 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3979 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3980 if test $ac_cv_header_stdc = yes; then
3982 cat >>confdefs.h <<\_ACEOF
3983 #define STDC_HEADERS 1
3988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3999 inttypes.h stdint.h unistd.h
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4005 echo $ECHO_N "(cached) $ECHO_C" >&6
4007 cat >conftest.$ac_ext <<_ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 $ac_includes_default
4015 #include <$ac_header>
4017 rm -f conftest.$ac_objext
4018 if { (ac_try="$ac_compile"
4020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4021 *) ac_try_echo
=$ac_try;;
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4026 grep -v '^ *+' conftest.er1
>conftest.err
4028 cat conftest.err
>&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_cxx_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.
$ac_objext; then
4034 eval "$as_ac_Header=yes"
4036 echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.
$ac_ext >&5
4039 eval "$as_ac_Header=no"
4042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4044 ac_res
=`eval echo '${'$as_ac_Header'}'`
4045 { echo "$as_me:$LINENO: result: $ac_res" >&5
4046 echo "${ECHO_T}$ac_res" >&6; }
4047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4048 cat >>confdefs.h
<<_ACEOF
4049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4057 { echo "$as_me:$LINENO: checking for FILE" >&5
4058 echo $ECHO_N "checking for FILE... $ECHO_C" >&6; }
4059 if test "${ac_cv_type_FILE+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.
$ac_ext <<_ACEOF
4065 cat confdefs.h
>>conftest.
$ac_ext
4066 cat >>conftest.
$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4069 typedef FILE ac__type_new_;
4073 if ((ac__type_new_ *) 0)
4075 if (sizeof (ac__type_new_))
4081 rm -f conftest.
$ac_objext
4082 if { (ac_try
="$ac_compile"
4084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4090 grep -v '^ *+' conftest.er1 >conftest.err
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } && {
4095 test -z "$ac_cxx_werror_flag" ||
4096 test ! -s conftest.err
4097 } && test -s conftest.$ac_objext; then
4100 echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 { echo "$as_me:$LINENO: result: $ac_cv_type_FILE" >&5
4109 echo "${ECHO_T}$ac_cv_type_FILE" >&6; }
4110 if test $ac_cv_type_FILE = yes; then
4112 cat >>confdefs.h <<_ACEOF
4119 { echo "$as_me:$LINENO: checking for intptr_t" >&5
4120 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
4121 if test "${ac_cv_type_intptr_t+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 cat >conftest.$ac_ext <<_ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4130 $ac_includes_default
4131 typedef intptr_t ac__type_new_;
4135 if ((ac__type_new_ *) 0)
4137 if (sizeof (ac__type_new_))
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4147 *) ac_try_echo
=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1
>conftest.err
4154 cat conftest.err
>&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_cxx_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.
$ac_objext; then
4160 ac_cv_type_intptr_t
=yes
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.
$ac_ext >&5
4165 ac_cv_type_intptr_t
=no
4168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4170 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
4171 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
4172 if test $ac_cv_type_intptr_t = yes; then
4174 cat >>confdefs.h
<<_ACEOF
4175 #define HAVE_INTPTR_T 1
4181 { echo "$as_me:$LINENO: checking for time_t" >&5
4182 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
4183 if test "${ac_cv_type_time_t+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 cat >conftest.
$ac_ext <<_ACEOF
4189 cat confdefs.h
>>conftest.
$ac_ext
4190 cat >>conftest.
$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4192 $ac_includes_default
4193 typedef time_t ac__type_new_;
4197 if ((ac__type_new_ *) 0)
4199 if (sizeof (ac__type_new_))
4205 rm -f conftest.
$ac_objext
4206 if { (ac_try
="$ac_compile"
4208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } && {
4219 test -z "$ac_cxx_werror_flag" ||
4220 test ! -s conftest.err
4221 } && test -s conftest.$ac_objext; then
4222 ac_cv_type_time_t=yes
4224 echo "$as_me: failed program was:" >&5
4225 sed 's/^/| /' conftest.$ac_ext >&5
4227 ac_cv_type_time_t=no
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
4233 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
4234 if test $ac_cv_type_time_t = yes; then
4236 cat >>confdefs.h <<_ACEOF
4237 #define HAVE_TIME_T 1
4243 { echo "$as_me:$LINENO: checking for X" >&5
4244 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4247 # Check whether --with-x was given.
4248 if test "${with_x+set}" = set; then
4252 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4253 if test "x$with_x" = xno; then
4254 # The user explicitly disabled X.
4257 case $x_includes,$x_libraries in #(
4258 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4259 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4260 { (exit 1); exit 1; }; };; #(
4261 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 # One or both of the vars are not set, and there is no cached value.
4265 ac_x_includes=no ac_x_libraries=no
4266 rm -f -r conftest.dir
4267 if mkdir conftest.dir; then
4269 cat >Imakefile <<'_ACEOF'
4271 @echo incroot='${INCROOT}'
4273 @echo usrlibdir='${USRLIBDIR}'
4275 @echo libdir='${LIBDIR}'
4277 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4279 for ac_var in incroot usrlibdir libdir; do
4280 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
4282 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4283 for ac_extension in a so sl; do
4284 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4285 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4286 ac_im_usrlibdir=$ac_im_libdir; break
4289 # Screen out bogus values from the imake configuration. They are
4290 # bogus both because they are the default anyway, and because
4291 # using them would break gcc on systems where it needs fixed includes.
4292 case $ac_im_incroot in
4293 /usr/include) ac_x_includes= ;;
4294 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4296 case $ac_im_usrlibdir in
4298 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4302 rm -f -r conftest.dir
4305 # Standard set of common directories for X headers.
4306 # Check X11 before X11Rn because it is often a symlink to the current release.
4318 /usr/local/X11/include
4319 /usr/local/X11R6/include
4320 /usr/local/X11R5/include
4321 /usr/local/X11R4/include
4323 /usr/local/include/X11
4324 /usr/local/include/X11R6
4325 /usr/local/include/X11R5
4326 /usr/local/include/X11R4
4330 /usr/XFree86/include/X11
4334 /usr/unsupported/include
4336 /usr/local/x11r5/include
4337 /usr/lpp/Xamples/include
4339 /usr/openwin/include
4340 /usr/openwin/share/include'
4342 if test "$ac_x_includes" = no; then
4343 # Guess where to find include files, by looking for Xlib.h.
4344 # First, try using that file with no special directory specified.
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4351 #include <X11/Xlib.h>
4353 if { (ac_try="$ac_cpp conftest.$ac_ext"
4355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4356 *) ac_try_echo
=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev
/null
&& {
4366 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4367 test ! -s conftest.err
4369 # We can compile using X headers with no special include directory.
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.
$ac_ext >&5
4375 for ac_dir
in $ac_x_header_dirs; do
4376 if test -r "$ac_dir/X11/Xlib.h"; then
4377 ac_x_includes
=$ac_dir
4383 rm -f conftest.err conftest.
$ac_ext
4384 fi # $ac_x_includes = no
4386 if test "$ac_x_libraries" = no
; then
4387 # Check for the libraries.
4388 # See if we find them without any special options.
4389 # Don't add to $LIBS permanently.
4392 cat >conftest.
$ac_ext <<_ACEOF
4395 cat confdefs.h
>>conftest.
$ac_ext
4396 cat >>conftest.
$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <X11/Xlib.h>
4407 rm -f conftest.
$ac_objext conftest
$ac_exeext
4408 if { (ac_try
="$ac_link"
4410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_link") 2>conftest.er1
4416 grep -v '^ *+' conftest.er1 >conftest.err
4418 cat conftest.err >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); } && {
4421 test -z "$ac_cxx_werror_flag" ||
4422 test ! -s conftest.err
4423 } && test -s conftest$ac_exeext &&
4424 $as_test_x conftest$ac_exeext; then
4426 # We can link X programs with no special library path.
4429 echo "$as_me: failed program was:" >&5
4430 sed 's/^/| /' conftest.$ac_ext >&5
4433 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
4435 # Don't even attempt the hair of trying to link an X program!
4436 for ac_extension in a so sl; do
4437 if test -r "$ac_dir/libX11.$ac_extension"; then
4438 ac_x_libraries=$ac_dir
4445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4446 conftest$ac_exeext conftest.$ac_ext
4447 fi # $ac_x_libraries = no
4449 case $ac_x_includes,$ac_x_libraries in #(
4451 # Didn't find X, or a directory has "'" in its name.
4452 ac_cv_have_x="have_x=no";; #(
4454 # Record where we found X for the cache.
4455 ac_cv_have_x="have_x=yes\
4456 ac_x_includes='$ac_x_includes'\
4457 ac_x_libraries='$ac_x_libraries'"
4463 eval "$ac_cv_have_x"
4466 if test "$have_x" != yes; then
4467 { echo "$as_me:$LINENO: result: $have_x" >&5
4468 echo "${ECHO_T}$have_x" >&6; }
4471 # If each of the values was on the command line, it overrides each guess.
4472 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4473 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4474 # Update the cache value to reflect the command line values.
4475 ac_cv_have_x="have_x=yes\
4476 ac_x_includes='$x_includes'\
4477 ac_x_libraries='$x_libraries'"
4478 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4479 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
4482 if test "$no_x" = yes; then
4483 # Not all programs may use this symbol, but it does not hurt to define it.
4485 cat >>confdefs.h <<\_ACEOF
4486 #define X_DISPLAY_MISSING 1
4489 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4491 if test -n "$x_includes"; then
4492 X_CFLAGS="$X_CFLAGS -I$x_includes"
4495 # It would also be nice to do this for all -L options, not just this one.
4496 if test -n "$x_libraries"; then
4497 X_LIBS="$X_LIBS -L$x_libraries"
4498 # For Solaris; some versions of Sun CC require a space after -R and
4499 # others require no space. Words are not sufficient . . . .
4500 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4501 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
4502 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4503 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
4504 ac_cxx_werror_flag=yes
4505 cat >conftest.$ac_ext <<_ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4520 rm -f conftest.$ac_objext conftest$ac_exeext
4521 if { (ac_try="$ac_link"
4523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4524 *) ac_try_echo
=$ac_try;;
4526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4527 (eval "$ac_link") 2>conftest.er1
4529 grep -v '^ *+' conftest.er1
>conftest.err
4531 cat conftest.err
>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && {
4534 test -z "$ac_cxx_werror_flag" ||
4535 test ! -s conftest.err
4536 } && test -s conftest
$ac_exeext &&
4537 $as_test_x conftest
$ac_exeext; then
4538 { echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6; }
4540 X_LIBS
="$X_LIBS -R$x_libraries"
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.
$ac_ext >&5
4545 LIBS
="$ac_xsave_LIBS -R $x_libraries"
4546 cat >conftest.
$ac_ext <<_ACEOF
4549 cat confdefs.h
>>conftest.
$ac_ext
4550 cat >>conftest.
$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4561 rm -f conftest.
$ac_objext conftest
$ac_exeext
4562 if { (ac_try
="$ac_link"
4564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_link") 2>conftest.er1
4570 grep -v '^ *+' conftest.er1 >conftest.err
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && {
4575 test -z "$ac_cxx_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest$ac_exeext &&
4578 $as_test_x conftest$ac_exeext; then
4579 { echo "$as_me:$LINENO: result: yes" >&5
4580 echo "${ECHO_T}yes" >&6; }
4581 X_LIBS="$X_LIBS -R $x_libraries"
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 { echo "$as_me:$LINENO: result: neither works" >&5
4587 echo "${ECHO_T}neither works" >&6; }
4590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4591 conftest$ac_exeext conftest.$ac_ext
4594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4595 conftest$ac_exeext conftest.$ac_ext
4596 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
4600 # Check for system-dependent libraries X programs must link with.
4601 # Do this before checking for the system-independent R6 libraries
4602 # (-lICE), since we may need -lsocket or whatever for X linking.
4604 if test "$ISC" = yes; then
4605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4607 # Martyn Johnson says this is needed for Ultrix, if the X
4608 # libraries were built with DECnet support. And Karl Berry says
4609 # the Alpha needs dnet_stub (dnet does not exist).
4610 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4618 /* Override any GCC internal prototype to avoid an error.
4619 Use char because int might match the return type of a GCC
4620 builtin and then its argument prototype would still apply. */
4624 char XOpenDisplay ();
4628 return XOpenDisplay ();
4633 rm -f conftest.$ac_objext conftest$ac_exeext
4634 if { (ac_try="$ac_link"
4636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4637 *) ac_try_echo
=$ac_try;;
4639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4640 (eval "$ac_link") 2>conftest.er1
4642 grep -v '^ *+' conftest.er1
>conftest.err
4644 cat conftest.err
>&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } && {
4647 test -z "$ac_cxx_werror_flag" ||
4648 test ! -s conftest.err
4649 } && test -s conftest
$ac_exeext &&
4650 $as_test_x conftest
$ac_exeext; then
4653 echo "$as_me: failed program was:" >&5
4654 sed 's/^/| /' conftest.
$ac_ext >&5
4656 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4657 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_check_lib_save_LIBS
=$LIBS
4663 cat >conftest.
$ac_ext <<_ACEOF
4666 cat confdefs.h
>>conftest.
$ac_ext
4667 cat >>conftest.
$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4670 /* Override any GCC internal prototype to avoid an error.
4671 Use char because int might match the return type of a GCC
4672 builtin and then its argument prototype would still apply. */
4680 return dnet_ntoa ();
4685 rm -f conftest.
$ac_objext conftest
$ac_exeext
4686 if { (ac_try
="$ac_link"
4688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_link") 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } && {
4699 test -z "$ac_cxx_werror_flag" ||
4700 test ! -s conftest.err
4701 } && test -s conftest$ac_exeext &&
4702 $as_test_x conftest$ac_exeext; then
4703 ac_cv_lib_dnet_dnet_ntoa=yes
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4708 ac_cv_lib_dnet_dnet_ntoa=no
4711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4712 conftest$ac_exeext conftest.$ac_ext
4713 LIBS=$ac_check_lib_save_LIBS
4715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4716 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4717 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4718 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4721 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4722 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4723 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4724 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 ac_check_lib_save_LIBS=$LIBS
4728 LIBS="-ldnet_stub $LIBS"
4729 cat >conftest.$ac_ext <<_ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4736 /* Override any GCC internal prototype to avoid an error.
4737 Use char because int might match the return type of a GCC
4738 builtin and then its argument prototype would still apply. */
4746 return dnet_ntoa ();
4751 rm -f conftest.$ac_objext conftest$ac_exeext
4752 if { (ac_try="$ac_link"
4754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4755 *) ac_try_echo
=$ac_try;;
4757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4758 (eval "$ac_link") 2>conftest.er1
4760 grep -v '^ *+' conftest.er1
>conftest.err
4762 cat conftest.err
>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && {
4765 test -z "$ac_cxx_werror_flag" ||
4766 test ! -s conftest.err
4767 } && test -s conftest
$ac_exeext &&
4768 $as_test_x conftest
$ac_exeext; then
4769 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.
$ac_ext >&5
4774 ac_cv_lib_dnet_stub_dnet_ntoa
=no
4777 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4778 conftest
$ac_exeext conftest.
$ac_ext
4779 LIBS
=$ac_check_lib_save_LIBS
4781 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4782 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4783 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4784 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
4790 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4791 conftest
$ac_exeext conftest.
$ac_ext
4792 LIBS
="$ac_xsave_LIBS"
4794 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4795 # to get the SysV transport functions.
4796 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4798 # The nsl library prevents programs from opening the X display
4799 # on Irix 5.2, according to T.E. Dickey.
4800 # The functions gethostbyname, getservbyname, and inet_addr are
4801 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4802 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4803 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4804 if test "${ac_cv_func_gethostbyname+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 cat >conftest.
$ac_ext <<_ACEOF
4810 cat confdefs.h
>>conftest.
$ac_ext
4811 cat >>conftest.
$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4813 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4815 #define gethostbyname innocuous_gethostbyname
4817 /* System header to define __stub macros and hopefully few prototypes,
4818 which can conflict with char gethostbyname (); below.
4819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4820 <limits.h> exists even on freestanding compilers. */
4823 # include <limits.h>
4825 # include <assert.h>
4828 #undef gethostbyname
4830 /* Override any GCC internal prototype to avoid an error.
4831 Use char because int might match the return type of a GCC
4832 builtin and then its argument prototype would still apply. */
4836 char gethostbyname ();
4837 /* The GNU C library defines this for functions which it implements
4838 to always fail with ENOSYS. Some functions are actually named
4839 something starting with __ and the normal name is an alias. */
4840 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4847 return gethostbyname ();
4852 rm -f conftest.
$ac_objext conftest
$ac_exeext
4853 if { (ac_try
="$ac_link"
4855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_link") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1 >conftest.err
4863 cat conftest.err >&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } && {
4866 test -z "$ac_cxx_werror_flag" ||
4867 test ! -s conftest.err
4868 } && test -s conftest$ac_exeext &&
4869 $as_test_x conftest$ac_exeext; then
4870 ac_cv_func_gethostbyname=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_func_gethostbyname=no
4878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4879 conftest$ac_exeext conftest.$ac_ext
4881 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4882 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4884 if test $ac_cv_func_gethostbyname = no; then
4885 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4886 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4887 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 ac_check_lib_save_LIBS=$LIBS
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4899 /* Override any GCC internal prototype to avoid an error.
4900 Use char because int might match the return type of a GCC
4901 builtin and then its argument prototype would still apply. */
4905 char gethostbyname ();
4909 return gethostbyname ();
4914 rm -f conftest.$ac_objext conftest$ac_exeext
4915 if { (ac_try="$ac_link"
4917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4918 *) ac_try_echo
=$ac_try;;
4920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921 (eval "$ac_link") 2>conftest.er1
4923 grep -v '^ *+' conftest.er1
>conftest.err
4925 cat conftest.err
>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } && {
4928 test -z "$ac_cxx_werror_flag" ||
4929 test ! -s conftest.err
4930 } && test -s conftest
$ac_exeext &&
4931 $as_test_x conftest
$ac_exeext; then
4932 ac_cv_lib_nsl_gethostbyname
=yes
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.
$ac_ext >&5
4937 ac_cv_lib_nsl_gethostbyname
=no
4940 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4941 conftest
$ac_exeext conftest.
$ac_ext
4942 LIBS
=$ac_check_lib_save_LIBS
4944 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4945 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4946 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4947 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
4950 if test $ac_cv_lib_nsl_gethostbyname = no
; then
4951 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4952 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4953 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 ac_check_lib_save_LIBS
=$LIBS
4958 cat >conftest.
$ac_ext <<_ACEOF
4961 cat confdefs.h
>>conftest.
$ac_ext
4962 cat >>conftest.
$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4965 /* Override any GCC internal prototype to avoid an error.
4966 Use char because int might match the return type of a GCC
4967 builtin and then its argument prototype would still apply. */
4971 char gethostbyname ();
4975 return gethostbyname ();
4980 rm -f conftest.
$ac_objext conftest
$ac_exeext
4981 if { (ac_try
="$ac_link"
4983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_link") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_cxx_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest$ac_exeext &&
4997 $as_test_x conftest$ac_exeext; then
4998 ac_cv_lib_bsd_gethostbyname=yes
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_lib_bsd_gethostbyname=no
5006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5007 conftest$ac_exeext conftest.$ac_ext
5008 LIBS=$ac_check_lib_save_LIBS
5010 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5011 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5012 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5019 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5020 # socket/setsockopt and other routines are undefined under SCO ODT
5021 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5022 # on later versions), says Simon Leinen: it contains gethostby*
5023 # variants that don't use the name server (or something). -lsocket
5024 # must be given before -lnsl if both are needed. We assume that
5025 # if connect needs -lnsl, so does gethostbyname.
5026 { echo "$as_me:$LINENO: checking for connect" >&5
5027 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5028 if test "${ac_cv_func_connect+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5039 #define connect innocuous_connect
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char connect (); below.
5043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 <limits.h> exists even on freestanding compilers. */
5047 # include <limits.h>
5049 # include <assert.h>
5054 /* Override any GCC internal prototype to avoid an error.
5055 Use char because int might match the return type of a GCC
5056 builtin and then its argument prototype would still apply. */
5061 /* The GNU C library defines this for functions which it implements
5062 to always fail with ENOSYS. Some functions are actually named
5063 something starting with __ and the normal name is an alias. */
5064 #if defined __stub_connect || defined __stub___connect
5076 rm -f conftest.$ac_objext conftest$ac_exeext
5077 if { (ac_try="$ac_link"
5079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5080 *) ac_try_echo
=$ac_try;;
5082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5083 (eval "$ac_link") 2>conftest.er1
5085 grep -v '^ *+' conftest.er1
>conftest.err
5087 cat conftest.err
>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } && {
5090 test -z "$ac_cxx_werror_flag" ||
5091 test ! -s conftest.err
5092 } && test -s conftest
$ac_exeext &&
5093 $as_test_x conftest
$ac_exeext; then
5094 ac_cv_func_connect
=yes
5096 echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.
$ac_ext >&5
5099 ac_cv_func_connect
=no
5102 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5103 conftest
$ac_exeext conftest.
$ac_ext
5105 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5106 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5108 if test $ac_cv_func_connect = no
; then
5109 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5110 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5111 if test "${ac_cv_lib_socket_connect+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 ac_check_lib_save_LIBS
=$LIBS
5115 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
5116 cat >conftest.
$ac_ext <<_ACEOF
5119 cat confdefs.h
>>conftest.
$ac_ext
5120 cat >>conftest.
$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5123 /* Override any GCC internal prototype to avoid an error.
5124 Use char because int might match the return type of a GCC
5125 builtin and then its argument prototype would still apply. */
5138 rm -f conftest.
$ac_objext conftest
$ac_exeext
5139 if { (ac_try
="$ac_link"
5141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_link") 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } && {
5152 test -z "$ac_cxx_werror_flag" ||
5153 test ! -s conftest.err
5154 } && test -s conftest$ac_exeext &&
5155 $as_test_x conftest$ac_exeext; then
5156 ac_cv_lib_socket_connect=yes
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_cv_lib_socket_connect=no
5164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5165 conftest$ac_exeext conftest.$ac_ext
5166 LIBS=$ac_check_lib_save_LIBS
5168 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5169 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5170 if test $ac_cv_lib_socket_connect = yes; then
5171 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5176 # Guillermo Gomez says -lposix is necessary on A/UX.
5177 { echo "$as_me:$LINENO: checking for remove" >&5
5178 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5179 if test "${ac_cv_func_remove+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5190 #define remove innocuous_remove
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char remove (); below.
5194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 <limits.h> exists even on freestanding compilers. */
5198 # include <limits.h>
5200 # include <assert.h>
5205 /* Override any GCC internal prototype to avoid an error.
5206 Use char because int might match the return type of a GCC
5207 builtin and then its argument prototype would still apply. */
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined __stub_remove || defined __stub___remove
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (ac_try="$ac_link"
5230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5231 *) ac_try_echo
=$ac_try;;
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_link") 2>conftest.er1
5236 grep -v '^ *+' conftest.er1
>conftest.err
5238 cat conftest.err
>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } && {
5241 test -z "$ac_cxx_werror_flag" ||
5242 test ! -s conftest.err
5243 } && test -s conftest
$ac_exeext &&
5244 $as_test_x conftest
$ac_exeext; then
5245 ac_cv_func_remove
=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.
$ac_ext >&5
5250 ac_cv_func_remove
=no
5253 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5254 conftest
$ac_exeext conftest.
$ac_ext
5256 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5257 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5259 if test $ac_cv_func_remove = no
; then
5260 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5261 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5262 if test "${ac_cv_lib_posix_remove+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 ac_check_lib_save_LIBS
=$LIBS
5266 LIBS
="-lposix $LIBS"
5267 cat >conftest.
$ac_ext <<_ACEOF
5270 cat confdefs.h
>>conftest.
$ac_ext
5271 cat >>conftest.
$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5274 /* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5289 rm -f conftest.
$ac_objext conftest
$ac_exeext
5290 if { (ac_try
="$ac_link"
5292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_link") 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } && {
5303 test -z "$ac_cxx_werror_flag" ||
5304 test ! -s conftest.err
5305 } && test -s conftest$ac_exeext &&
5306 $as_test_x conftest$ac_exeext; then
5307 ac_cv_lib_posix_remove=yes
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 ac_cv_lib_posix_remove=no
5315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5316 conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5319 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5320 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
5321 if test $ac_cv_lib_posix_remove = yes; then
5322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5327 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5328 { echo "$as_me:$LINENO: checking for shmat" >&5
5329 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
5330 if test "${ac_cv_func_shmat+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5341 #define shmat innocuous_shmat
5343 /* System header to define __stub macros and hopefully few prototypes,
5344 which can conflict with char shmat (); below.
5345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5346 <limits.h> exists even on freestanding compilers. */
5349 # include <limits.h>
5351 # include <assert.h>
5356 /* Override any GCC internal prototype to avoid an error.
5357 Use char because int might match the return type of a GCC
5358 builtin and then its argument prototype would still apply. */
5363 /* The GNU C library defines this for functions which it implements
5364 to always fail with ENOSYS. Some functions are actually named
5365 something starting with __ and the normal name is an alias. */
5366 #if defined __stub_shmat || defined __stub___shmat
5378 rm -f conftest.$ac_objext conftest$ac_exeext
5379 if { (ac_try="$ac_link"
5381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5382 *) ac_try_echo
=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_link") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1
>conftest.err
5389 cat conftest.err
>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_cxx_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest
$ac_exeext &&
5395 $as_test_x conftest
$ac_exeext; then
5396 ac_cv_func_shmat
=yes
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.
$ac_ext >&5
5404 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5405 conftest
$ac_exeext conftest.
$ac_ext
5407 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5408 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
5410 if test $ac_cv_func_shmat = no
; then
5411 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5412 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
5413 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_check_lib_save_LIBS
=$LIBS
5418 cat >conftest.
$ac_ext <<_ACEOF
5421 cat confdefs.h
>>conftest.
$ac_ext
5422 cat >>conftest.
$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5425 /* Override any GCC internal prototype to avoid an error.
5426 Use char because int might match the return type of a GCC
5427 builtin and then its argument prototype would still apply. */
5440 rm -f conftest.
$ac_objext conftest
$ac_exeext
5441 if { (ac_try
="$ac_link"
5443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5444 *) ac_try_echo=$ac_try;;
5446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5447 (eval "$ac_link") 2>conftest.er1
5449 grep -v '^ *+' conftest.er1 >conftest.err
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } && {
5454 test -z "$ac_cxx_werror_flag" ||
5455 test ! -s conftest.err
5456 } && test -s conftest$ac_exeext &&
5457 $as_test_x conftest$ac_exeext; then
5458 ac_cv_lib_ipc_shmat=yes
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_cv_lib_ipc_shmat=no
5466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5467 conftest$ac_exeext conftest.$ac_ext
5468 LIBS=$ac_check_lib_save_LIBS
5470 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5471 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
5472 if test $ac_cv_lib_ipc_shmat = yes; then
5473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5479 # Check for libraries that X11R6 Xt/Xaw programs need.
5480 ac_save_LDFLAGS=$LDFLAGS
5481 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5482 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5483 # check for ICE first), but we must link in the order -lSM -lICE or
5484 # we get undefined symbols. So assume we have SM if we have ICE.
5485 # These have to be linked with before -lX11, unlike the other
5486 # libraries we check for below, so use a different variable.
5487 # John Interrante, Karl Berry
5488 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5489 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
5490 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5491 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 ac_check_lib_save_LIBS=$LIBS
5494 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5502 /* Override any GCC internal prototype to avoid an error.
5503 Use char because int might match the return type of a GCC
5504 builtin and then its argument prototype would still apply. */
5508 char IceConnectionNumber ();
5512 return IceConnectionNumber ();
5517 rm -f conftest.$ac_objext conftest$ac_exeext
5518 if { (ac_try="$ac_link"
5520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5521 *) ac_try_echo
=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_link") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1
>conftest.err
5528 cat conftest.err
>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_cxx_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest
$ac_exeext &&
5534 $as_test_x conftest
$ac_exeext; then
5535 ac_cv_lib_ICE_IceConnectionNumber
=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.
$ac_ext >&5
5540 ac_cv_lib_ICE_IceConnectionNumber
=no
5543 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5544 conftest
$ac_exeext conftest.
$ac_ext
5545 LIBS
=$ac_check_lib_save_LIBS
5547 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5548 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5549 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5550 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
5553 LDFLAGS
=$ac_save_LDFLAGS
5559 for ac_header
in pty.h util.h
5561 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5562 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5565 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 ac_res
=`eval echo '${'$as_ac_Header'}'`
5569 { echo "$as_me:$LINENO: result: $ac_res" >&5
5570 echo "${ECHO_T}$ac_res" >&6; }
5572 # Is the header compilable?
5573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5582 #include <$ac_header>
5584 rm -f conftest.
$ac_objext
5585 if { (ac_try
="$ac_compile"
5587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_cxx_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.$ac_objext; then
5601 ac_header_compiler=yes
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5606 ac_header_compiler=no
5609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5611 echo "${ECHO_T}$ac_header_compiler" >&6; }
5613 # Is the header present?
5614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5616 cat >conftest.$ac_ext <<_ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <$ac_header>
5624 if { (ac_try="$ac_cpp conftest.$ac_ext"
5626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5627 *) ac_try_echo
=$ac_try;;
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1
>conftest.err
5634 cat conftest.err
>&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } >/dev
/null
&& {
5637 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5638 test ! -s conftest.err
5640 ac_header_preproc
=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.
$ac_ext >&5
5645 ac_header_preproc
=no
5648 rm -f conftest.err conftest.
$ac_ext
5649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5650 echo "${ECHO_T}$ac_header_preproc" >&6; }
5652 # So? What about this header?
5653 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5659 ac_header_preproc
=yes
5662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 eval "$as_ac_Header=\$ac_header_preproc"
5684 ac_res
=`eval echo '${'$as_ac_Header'}'`
5685 { echo "$as_me:$LINENO: result: $ac_res" >&5
5686 echo "${ECHO_T}$ac_res" >&6; }
5689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5690 cat >>confdefs.h
<<_ACEOF
5691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5699 for ac_func
in gettimeofday
5701 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5702 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5704 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5715 #define $ac_func innocuous_$ac_func
5717 /* System header to define __stub macros and hopefully few prototypes,
5718 which can conflict with char $ac_func (); below.
5719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5720 <limits.h> exists even on freestanding compilers. */
5723 # include <limits.h>
5725 # include <assert.h>
5730 /* Override any GCC internal prototype to avoid an error.
5731 Use char because int might match the return type of a GCC
5732 builtin and then its argument prototype would still apply. */
5737 /* The GNU C library defines this for functions which it implements
5738 to always fail with ENOSYS. Some functions are actually named
5739 something starting with __ and the normal name is an alias. */
5740 #if defined __stub_$ac_func || defined __stub___$ac_func
5752 rm -f conftest.
$ac_objext conftest
$ac_exeext
5753 if { (ac_try
="$ac_link"
5755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_link") 2>conftest.er1
5761 grep -v '^ *+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_cxx_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest$ac_exeext &&
5769 $as_test_x conftest$ac_exeext; then
5770 eval "$as_ac_var=yes"
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 eval "$as_ac_var=no"
5778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5779 conftest$ac_exeext conftest.$ac_ext
5781 ac_res=`eval echo '${'$as_ac_var'}'`
5782 { echo "$as_me:$LINENO: result: $ac_res" >&5
5783 echo "${ECHO_T}$ac_res" >&6; }
5784 if test `eval echo '${'$as_ac_var'}'` = yes; then
5785 cat >>confdefs.h <<_ACEOF
5786 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5793 #--------------------------------------------------------------------
5794 # Checks for dl library
5795 #--------------------------------------------------------------------
5797 { echo "$as_me:$LINENO: checking for dlopen" >&5
5798 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
5799 if test "${ac_cv_func_dlopen+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
5809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5810 #define dlopen innocuous_dlopen
5812 /* System header to define __stub macros and hopefully few prototypes,
5813 which can conflict with char dlopen (); below.
5814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 <limits.h> exists even on freestanding compilers. */
5818 # include <limits.h>
5820 # include <assert.h>
5825 /* Override any GCC internal prototype to avoid an error.
5826 Use char because int might match the return type of a GCC
5827 builtin and then its argument prototype would still apply. */
5832 /* The GNU C library defines this for functions which it implements
5833 to always fail with ENOSYS. Some functions are actually named
5834 something starting with __ and the normal name is an alias. */
5835 #if defined __stub_dlopen || defined __stub___dlopen
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (ac_try="$ac_link"
5850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5851 *) ac_try_echo
=$ac_try;;
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_link") 2>conftest.er1
5856 grep -v '^ *+' conftest.er1
>conftest.err
5858 cat conftest.err
>&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest
$ac_exeext &&
5864 $as_test_x conftest
$ac_exeext; then
5865 ac_cv_func_dlopen
=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.
$ac_ext >&5
5870 ac_cv_func_dlopen
=no
5873 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5874 conftest
$ac_exeext conftest.
$ac_ext
5876 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5877 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
5879 if test "$ac_cv_func_dl" = "yes"; then
5881 cat >>confdefs.h
<<\_ACEOF
5882 #define DYNAMIC_LINKING 1
5887 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5888 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
5889 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_check_lib_save_LIBS
=$LIBS
5894 cat >conftest.
$ac_ext <<_ACEOF
5897 cat confdefs.h
>>conftest.
$ac_ext
5898 cat >>conftest.
$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 rm -f conftest.
$ac_objext conftest
$ac_exeext
5917 if { (ac_try
="$ac_link"
5919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_link") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext &&
5933 $as_test_x conftest$ac_exeext; then
5934 ac_cv_lib_dl_dlopen=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_cv_lib_dl_dlopen=no
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943 conftest$ac_exeext conftest.$ac_ext
5944 LIBS=$ac_check_lib_save_LIBS
5946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
5948 if test $ac_cv_lib_dl_dlopen = yes; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define HAVE_LIBDL 1
5957 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5959 for ac_func in dlopen
5961 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5975 #define $ac_func innocuous_$ac_func
5977 /* System header to define __stub macros and hopefully few prototypes,
5978 which can conflict with char $ac_func (); below.
5979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 <limits.h> exists even on freestanding compilers. */
5983 # include <limits.h>
5985 # include <assert.h>
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined __stub_$ac_func || defined __stub___$ac_func
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (ac_try="$ac_link"
6015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6016 *) ac_try_echo
=$ac_try;;
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_link") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1
>conftest.err
6023 cat conftest.err
>&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_cxx_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest
$ac_exeext &&
6029 $as_test_x conftest
$ac_exeext; then
6030 eval "$as_ac_var=yes"
6032 echo "$as_me: failed program was:" >&5
6033 sed 's/^/| /' conftest.
$ac_ext >&5
6035 eval "$as_ac_var=no"
6038 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6039 conftest
$ac_exeext conftest.
$ac_ext
6041 ac_res
=`eval echo '${'$as_ac_var'}'`
6042 { echo "$as_me:$LINENO: result: $ac_res" >&5
6043 echo "${ECHO_T}$ac_res" >&6; }
6044 if test `eval echo '${'$as_ac_var'}'` = yes; then
6045 cat >>confdefs.h
<<_ACEOF
6046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6054 cat >>confdefs.h
<<\_ACEOF
6055 #define DYNAMIC_LINKING 1
6060 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6061 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
6062 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 ac_check_lib_save_LIBS
=$LIBS
6067 cat >conftest.
$ac_ext <<_ACEOF
6070 cat confdefs.h
>>conftest.
$ac_ext
6071 cat >>conftest.
$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6074 /* Override any GCC internal prototype to avoid an error.
6075 Use char because int might match the return type of a GCC
6076 builtin and then its argument prototype would still apply. */
6089 rm -f conftest.
$ac_objext conftest
$ac_exeext
6090 if { (ac_try
="$ac_link"
6092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_link") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_cxx_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest$ac_exeext &&
6106 $as_test_x conftest$ac_exeext; then
6107 ac_cv_lib_dld_dld_link=yes
6109 echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_lib_dld_dld_link=no
6115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6116 conftest$ac_exeext conftest.$ac_ext
6117 LIBS=$ac_check_lib_save_LIBS
6119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6120 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
6121 if test $ac_cv_lib_dld_dld_link = yes; then
6122 cat >>confdefs.h <<_ACEOF
6123 #define HAVE_LIBDLD 1
6130 if test "$ac_cv_lib_dld_dld_link" = "yes"; then
6133 cat >>confdefs.h <<\_ACEOF
6134 #define DYNAMIC_LINKING 1
6139 for ac_func in shl_load
6141 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6155 #define $ac_func innocuous_$ac_func
6157 /* System header to define __stub macros and hopefully few prototypes,
6158 which can conflict with char $ac_func (); below.
6159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160 <limits.h> exists even on freestanding compilers. */
6163 # include <limits.h>
6165 # include <assert.h>
6170 /* Override any GCC internal prototype to avoid an error.
6171 Use char because int might match the return type of a GCC
6172 builtin and then its argument prototype would still apply. */
6177 /* The GNU C library defines this for functions which it implements
6178 to always fail with ENOSYS. Some functions are actually named
6179 something starting with __ and the normal name is an alias. */
6180 #if defined __stub_$ac_func || defined __stub___$ac_func
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (ac_try="$ac_link"
6195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6196 *) ac_try_echo
=$ac_try;;
6198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6199 (eval "$ac_link") 2>conftest.er1
6201 grep -v '^ *+' conftest.er1
>conftest.err
6203 cat conftest.err
>&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_cxx_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest
$ac_exeext &&
6209 $as_test_x conftest
$ac_exeext; then
6210 eval "$as_ac_var=yes"
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.
$ac_ext >&5
6215 eval "$as_ac_var=no"
6218 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6219 conftest
$ac_exeext conftest.
$ac_ext
6221 ac_res
=`eval echo '${'$as_ac_var'}'`
6222 { echo "$as_me:$LINENO: result: $ac_res" >&5
6223 echo "${ECHO_T}$ac_res" >&6; }
6224 if test `eval echo '${'$as_ac_var'}'` = yes; then
6225 cat >>confdefs.h
<<_ACEOF
6226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6232 if test "$ac_cv_func_shl_load" = "yes"; then
6235 cat >>confdefs.h
<<\_ACEOF
6236 #define DYNAMIC_LINKING 1
6241 for ac_func
in dlopen
6243 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6246 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 cat >conftest.
$ac_ext <<_ACEOF
6252 cat confdefs.h
>>conftest.
$ac_ext
6253 cat >>conftest.
$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6257 #define $ac_func innocuous_$ac_func
6259 /* System header to define __stub macros and hopefully few prototypes,
6260 which can conflict with char $ac_func (); below.
6261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6262 <limits.h> exists even on freestanding compilers. */
6265 # include <limits.h>
6267 # include <assert.h>
6272 /* Override any GCC internal prototype to avoid an error.
6273 Use char because int might match the return type of a GCC
6274 builtin and then its argument prototype would still apply. */
6279 /* The GNU C library defines this for functions which it implements
6280 to always fail with ENOSYS. Some functions are actually named
6281 something starting with __ and the normal name is an alias. */
6282 #if defined __stub_$ac_func || defined __stub___$ac_func
6294 rm -f conftest.
$ac_objext conftest
$ac_exeext
6295 if { (ac_try
="$ac_link"
6297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_link") 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_cxx_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest$ac_exeext &&
6311 $as_test_x conftest$ac_exeext; then
6312 eval "$as_ac_var=yes"
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 eval "$as_ac_var=no"
6320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6321 conftest$ac_exeext conftest.$ac_ext
6323 ac_res=`eval echo '${'$as_ac_var'}'`
6324 { echo "$as_me:$LINENO: result: $ac_res" >&5
6325 echo "${ECHO_T}$ac_res" >&6; }
6326 if test `eval echo '${'$as_ac_var'}'` = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
6334 if test "$ac_cv_func_dlopen" = "yes"; then
6336 cat >>confdefs.h <<\_ACEOF
6337 #define DYNAMIC_LINKING 1
6347 #--------------------------------------------------------------------
6348 # Checks for iconv library
6349 #--------------------------------------------------------------------
6352 # Check whether --with-iconv was given.
6353 if test "${with_iconv+set}" = set; then
6354 withval=$with_iconv;
6359 # Modified from GNOME's libxml2 configure.in
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366 # compile C to avoid the 'const char**' problem
6368 SAVE_CPPFLAGS="$CPPFLAGS"
6369 SAVE_LDFLAGS="$LDFLAGS"
6371 if test "$with_iconv" = "no" ; then
6372 { echo "$as_me:$LINENO: result: disabling iconv support" >&5
6373 echo "${ECHO_T}disabling iconv support" >&6; }
6375 if test -n "$ICONV_CFLAGS" -a -n "$ICONV_LDFLAGS"; then
6376 CPPFLAGS="$ICONV_CFLAGS" # for AC_TRY_LINK
6377 LDFLAGS="$ICONV_LDFLAGS"
6379 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
6380 CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
6381 LDFLAGS="-L$with_iconv/lib"
6382 ICONV_CFLAGS="-I$with_iconv/include"
6383 ICONV_LDFLAGS="-L$with_iconv/lib"
6387 ac_cpp='$CPP $CPPFLAGS'
6388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6393 # On Suns, sometimes $CPP names a directory.
6394 if test -n "$CPP" && test -d "$CPP"; then
6397 if test -z "$CPP"; then
6398 if test "${ac_cv_prog_CPP+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 # Double quotes because CPP needs to be expanded
6402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6405 for ac_c_preproc_warn_flag in '' yes
6407 # Use a header file that comes with gcc, so configuring glibc
6408 # with a fresh cross-compiler works.
6409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6410 # <limits.h> exists even on freestanding compilers.
6411 # On the NeXT, cc -E runs the code through the compiler's parser,
6412 # not just through cpp. "Syntax error" is here to catch this case.
6413 cat >conftest.$ac_ext <<_ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6420 # include <limits.h>
6422 # include <assert.h>
6426 if { (ac_try="$ac_cpp conftest.$ac_ext"
6428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6429 *) ac_try_echo
=$ac_try;;
6431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6434 grep -v '^ *+' conftest.er1
>conftest.err
6436 cat conftest.err
>&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev
/null
&& {
6439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.
$ac_ext >&5
6447 # Broken: fails on valid input.
6451 rm -f conftest.err conftest.
$ac_ext
6453 # OK, works on sane cases. Now check whether nonexistent headers
6454 # can be detected and how.
6455 cat >conftest.
$ac_ext <<_ACEOF
6458 cat confdefs.h
>>conftest.
$ac_ext
6459 cat >>conftest.
$ac_ext <<_ACEOF
6460 /* end confdefs.h. */
6461 #include <ac_nonexistent.h>
6463 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6466 *) ac_try_echo=$ac_try;;
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } >/dev/null && {
6476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6479 # Broken: success on invalid input.
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6485 # Passes both tests.
6490 rm -f conftest.err conftest.$ac_ext
6493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6494 rm -f conftest.err conftest.
$ac_ext
6495 if $ac_preproc_ok; then
6507 { echo "$as_me:$LINENO: result: $CPP" >&5
6508 echo "${ECHO_T}$CPP" >&6; }
6510 for ac_c_preproc_warn_flag
in '' yes
6512 # Use a header file that comes with gcc, so configuring glibc
6513 # with a fresh cross-compiler works.
6514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6515 # <limits.h> exists even on freestanding compilers.
6516 # On the NeXT, cc -E runs the code through the compiler's parser,
6517 # not just through cpp. "Syntax error" is here to catch this case.
6518 cat >conftest.
$ac_ext <<_ACEOF
6521 cat confdefs.h
>>conftest.
$ac_ext
6522 cat >>conftest.
$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6525 # include <limits.h>
6527 # include <assert.h>
6531 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6534 *) ac_try_echo=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6539 grep -v '^ *+' conftest.er1 >conftest.err
6541 cat conftest.err >&5
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } >/dev/null && {
6544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6552 # Broken: fails on valid input.
6556 rm -f conftest.err conftest.$ac_ext
6558 # OK, works on sane cases. Now check whether nonexistent headers
6559 # can be detected and how.
6560 cat >conftest.$ac_ext <<_ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 #include <ac_nonexistent.h>
6568 if { (ac_try="$ac_cpp conftest.$ac_ext"
6570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6571 *) ac_try_echo
=$ac_try;;
6573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6576 grep -v '^ *+' conftest.er1
>conftest.err
6578 cat conftest.err
>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } >/dev
/null
&& {
6581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6582 test ! -s conftest.err
6584 # Broken: success on invalid input.
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.
$ac_ext >&5
6590 # Passes both tests.
6595 rm -f conftest.err conftest.
$ac_ext
6598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6599 rm -f conftest.err conftest.
$ac_ext
6600 if $ac_preproc_ok; then
6603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6604 See \`config.log' for more details." >&5
6605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6606 See \`config.log' for more details." >&2;}
6607 { (exit 1); exit 1; }; }
6611 ac_cpp
='$CPP $CPPFLAGS'
6612 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6613 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6614 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6617 if test "${ac_cv_header_iconv_h+set}" = set; then
6618 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6619 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6620 if test "${ac_cv_header_iconv_h+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6623 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6624 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6626 # Is the header compilable?
6627 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
6628 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
6629 cat >conftest.
$ac_ext <<_ACEOF
6632 cat confdefs.h
>>conftest.
$ac_ext
6633 cat >>conftest.
$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 $ac_includes_default
6638 rm -f conftest.
$ac_objext
6639 if { (ac_try
="$ac_compile"
6641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645 (eval "$ac_compile") 2>conftest.er1
6647 grep -v '^ *+' conftest.er1 >conftest.err
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest.$ac_objext; then
6655 ac_header_compiler=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_header_compiler=no
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6; }
6667 # Is the header present?
6668 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
6669 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6678 if { (ac_try="$ac_cpp conftest.$ac_ext"
6680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6681 *) ac_try_echo
=$ac_try;;
6683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1
>conftest.err
6688 cat conftest.err
>&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } >/dev
/null
&& {
6691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6694 ac_header_preproc
=yes
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.
$ac_ext >&5
6699 ac_header_preproc
=no
6702 rm -f conftest.err conftest.
$ac_ext
6703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6704 echo "${ECHO_T}$ac_header_preproc" >&6; }
6706 # So? What about this header?
6707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
6710 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6711 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
6712 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
6713 ac_header_preproc
=yes
6716 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
6717 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
6718 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
6719 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
6720 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
6721 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
6723 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
6725 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
6727 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
6731 { echo "$as_me:$LINENO: checking for iconv.h" >&5
6732 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
6733 if test "${ac_cv_header_iconv_h+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_header_iconv_h
=$ac_header_preproc
6738 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
6739 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
6742 if test $ac_cv_header_iconv_h = yes; then
6743 { echo "$as_me:$LINENO: checking for iconv" >&5
6744 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6746 cat >conftest.
$ac_ext <<_ACEOF
6749 cat confdefs.h
>>conftest.
$ac_ext
6750 cat >>conftest.
$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6760 iconv_t cd = iconv_open ("","");
6761 iconv (cd, NULL, NULL, NULL, NULL);
6767 rm -f conftest.
$ac_objext conftest
$ac_exeext
6768 if { (ac_try
="$ac_link"
6770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_link") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1 >conftest.err
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest$ac_exeext &&
6784 $as_test_x conftest$ac_exeext; then
6786 { echo "$as_me:$LINENO: result: yes" >&5
6787 echo "${ECHO_T}yes" >&6; }
6789 cat >>confdefs.h <<\_ACEOF
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.$ac_ext >&5
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6801 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
6802 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
6803 # LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
6804 LIBS="-liconv" # for AC_TRY_LINK
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6819 iconv_t cd = iconv_open ("","");
6820 iconv (cd, NULL, NULL, NULL, NULL);
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (ac_try="$ac_link"
6829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6830 *) ac_try_echo
=$ac_try;;
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_link") 2>conftest.er1
6835 grep -v '^ *+' conftest.er1
>conftest.err
6837 cat conftest.err
>&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest
$ac_exeext &&
6843 $as_test_x conftest
$ac_exeext; then
6845 { echo "$as_me:$LINENO: result: yes" >&5
6846 echo "${ECHO_T}yes" >&6; }
6848 cat >>confdefs.h
<<\_ACEOF
6852 ICONV_LDFLAGS
="${ICONV_LDFLAGS/-liconv} -liconv"
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.
$ac_ext >&5
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6861 { echo "$as_me:$LINENO: WARNING: absence of iconv may crash HTML import" >&5
6862 echo "$as_me: WARNING: absence of iconv may crash HTML import" >&2;}
6866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6867 conftest
$ac_exeext conftest.
$ac_ext
6870 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6871 conftest
$ac_exeext conftest.
$ac_ext
6877 CPPFLAGS
="$SAVE_CPPFLAGS"
6878 LDFLAGS
="$SAVE_LDFLAGS"
6881 ac_cpp
='$CXXCPP $CPPFLAGS'
6882 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6883 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6884 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6885 # restore C++ language
6889 #--------------------------------------------------------------------
6890 # Checks for freetype library
6891 #--------------------------------------------------------------------
6894 # Check whether --with-freetype was given.
6895 if test "${with_freetype+set}" = set; then
6896 withval
=$with_freetype;
6900 SAVE_CPPFLAGS
="$CPPFLAGS"
6901 SAVE_LDFLAGS
="$LDFLAGS"
6903 if test "$with_freetype" = "no" ; then
6904 { echo "$as_me:$LINENO: result: disabling freetype support" >&5
6905 echo "${ECHO_T}disabling freetype support" >&6; }
6907 if test -z "$FREETYPE_CFLAGS"; then
6908 FREETYPE_CFLAGS
=`freetype-config --cflags`
6910 CPPFLAGS
="$CPPFLAGS $FREETYPE_CFLAGS"
6911 if test -z "$FREETYPE_LDFLAGS"; then
6912 FREETYPE_LDFLAGS
=`freetype-config --libs`
6914 LIBS
="$LDFLAGS $FREETYPE_LDFLAGS"
6915 if test "${ac_cv_header_ft2build_h+set}" = set; then
6916 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
6917 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
6918 if test "${ac_cv_header_ft2build_h+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
6922 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
6924 # Is the header compilable?
6925 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
6926 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
6927 cat >conftest.
$ac_ext <<_ACEOF
6930 cat confdefs.h
>>conftest.
$ac_ext
6931 cat >>conftest.
$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 $ac_includes_default
6934 #include <ft2build.h>
6936 rm -f conftest.
$ac_objext
6937 if { (ac_try
="$ac_compile"
6939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_cxx_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_header_compiler=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_header_compiler=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 echo "${ECHO_T}$ac_header_compiler" >&6; }
6965 # Is the header present?
6966 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
6967 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <ft2build.h>
6976 if { (ac_try="$ac_cpp conftest.$ac_ext"
6978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6979 *) ac_try_echo
=$ac_try;;
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6984 grep -v '^ *+' conftest.er1
>conftest.err
6986 cat conftest.err
>&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } >/dev
/null
&& {
6989 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6990 test ! -s conftest.err
6992 ac_header_preproc
=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.
$ac_ext >&5
6997 ac_header_preproc
=no
7000 rm -f conftest.err conftest.
$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7002 echo "${ECHO_T}$ac_header_preproc" >&6; }
7004 # So? What about this header?
7005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7007 { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
7008 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7009 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
7010 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
7011 ac_header_preproc
=yes
7014 { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
7015 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
7016 { echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
7017 echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
7018 { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
7019 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
7021 echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
7023 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
7024 { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
7025 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
7029 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
7030 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
7031 if test "${ac_cv_header_ft2build_h+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 ac_cv_header_ft2build_h
=$ac_header_preproc
7036 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
7037 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
7040 if test $ac_cv_header_ft2build_h = yes; then
7041 { echo "$as_me:$LINENO: checking for freetype" >&5
7042 echo $ECHO_N "checking for freetype... $ECHO_C" >&6; }
7043 cat >conftest.
$ac_ext <<_ACEOF
7046 cat confdefs.h
>>conftest.
$ac_ext
7047 cat >>conftest.
$ac_ext <<_ACEOF
7048 /* end confdefs.h. */
7050 #include <ft2build.h>
7051 #include FT_FREETYPE_H
7057 FT_Library ft_library;
7058 (void) FT_Init_FreeType (&ft_library);
7064 rm -f conftest.
$ac_objext conftest
$ac_exeext
7065 if { (ac_try
="$ac_link"
7067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_link") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_cxx_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest$ac_exeext &&
7081 $as_test_x conftest$ac_exeext; then
7083 { echo "$as_me:$LINENO: result: yes" >&5
7084 echo "${ECHO_T}yes" >&6; }
7086 cat >>confdefs.h <<\_ACEOF
7087 #define USE_FREETYPE 1
7090 FREETYPE_CFLAGS="$CPPFLAGS"
7091 if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
7092 FREETYPE_LDFLAGS="$LIBS"
7094 cat >>confdefs.h <<\_ACEOF
7095 #define LINKED_FREETYPE 1
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7110 conftest$ac_exeext conftest.$ac_ext
7116 CPPFLAGS="$SAVE_CPPFLAGS"
7117 LDFLAGS="$SAVE_LDFLAGS"
7123 #--------------------------------------------------------------------
7124 # Checks for Cairo library
7125 #--------------------------------------------------------------------
7128 # Check whether --with-cairo was given.
7129 if test "${with_cairo+set}" = set; then
7130 withval=$with_cairo;
7134 SAVE_CPPFLAGS="$CPPFLAGS"
7135 SAVE_LDFLAGS="$LDFLAGS"
7137 if test "$with_cairo" = "no" -o "$with_cairo" = "" ; then
7138 { echo "$as_me:$LINENO: result: disabling cairo support" >&5
7139 echo "${ECHO_T}disabling cairo support" >&6; }
7141 CPPFLAGS=`pkg-config
--cflags cairo
`
7142 LIBS=`pkg-config
--libs cairo
`
7143 if test "${ac_cv_header_cairo_h+set}" = set; then
7144 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7145 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7146 if test "${ac_cv_header_cairo_h+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7150 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7152 # Is the header compilable?
7153 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
7154 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
7155 cat >conftest.$ac_ext <<_ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7168 *) ac_try_echo
=$ac_try;;
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7173 grep -v '^ *+' conftest.er1
>conftest.err
7175 cat conftest.err
>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_cxx_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.
$ac_objext; then
7181 ac_header_compiler
=yes
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.
$ac_ext >&5
7186 ac_header_compiler
=no
7189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7190 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7191 echo "${ECHO_T}$ac_header_compiler" >&6; }
7193 # Is the header present?
7194 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
7195 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
7196 cat >conftest.
$ac_ext <<_ACEOF
7199 cat confdefs.h
>>conftest.
$ac_ext
7200 cat >>conftest.
$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7204 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7212 grep -v '^ *+' conftest.er1 >conftest.err
7214 cat conftest.err >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } >/dev/null && {
7217 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7218 test ! -s conftest.err
7220 ac_header_preproc=yes
7222 echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_header_preproc=no
7228 rm -f conftest.err conftest.$ac_ext
7229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7230 echo "${ECHO_T}$ac_header_preproc" >&6; }
7232 # So? What about this header?
7233 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7235 { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
7236 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
7238 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
7239 ac_header_preproc=yes
7242 { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
7243 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: cairo.h: check for missing prerequisite headers?" >&5
7245 echo "$as_me: WARNING: cairo.h: check for missing prerequisite headers?" >&2;}
7246 { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
7247 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&5
7249 echo "$as_me: WARNING: cairo.h: section \"Present But Cannot Be Compiled\"" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
7251 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
7253 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
7257 { echo "$as_me:$LINENO: checking for cairo.h" >&5
7258 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
7259 if test "${ac_cv_header_cairo_h+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_header_cairo_h=$ac_header_preproc
7264 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
7265 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
7268 if test $ac_cv_header_cairo_h = yes; then
7269 { echo "$as_me:$LINENO: checking for cairo" >&5
7270 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7284 cairo_surface_t *surface;
7285 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 120, 120);
7291 rm -f conftest.$ac_objext conftest$ac_exeext
7292 if { (ac_try="$ac_link"
7294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7295 *) ac_try_echo
=$ac_try;;
7297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7298 (eval "$ac_link") 2>conftest.er1
7300 grep -v '^ *+' conftest.er1
>conftest.err
7302 cat conftest.err
>&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_cxx_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest
$ac_exeext &&
7308 $as_test_x conftest
$ac_exeext; then
7310 { echo "$as_me:$LINENO: result: yes" >&5
7311 echo "${ECHO_T}yes" >&6; }
7313 cat >>confdefs.h
<<\_ACEOF
7317 CAIRO_CFLAGS
="$CPPFLAGS"
7318 if test "$with_cairo" = "linked" ; then
7319 CAIRO_LDFLAGS
="$LIBS"
7321 cat >>confdefs.h
<<\_ACEOF
7322 #define LINKED_CAIRO 1
7328 echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.
$ac_ext >&5
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7336 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7337 conftest
$ac_exeext conftest.
$ac_ext
7343 CPPFLAGS
="$SAVE_CPPFLAGS"
7344 LDFLAGS
="$SAVE_LDFLAGS"
7350 #--------------------------------------------------------------------
7351 # Checks for Imlib2 library
7352 #--------------------------------------------------------------------
7355 # Check whether --with-imlib2 was given.
7356 if test "${with_imlib2+set}" = set; then
7357 withval
=$with_imlib2;
7361 SAVE_CPPFLAGS
="$CPPFLAGS"
7362 SAVE_LDFLAGS
="$LDFLAGS"
7364 if test "$with_imlib2" = "no" -o "$with_imlib2" = "" ; then
7365 { echo "$as_me:$LINENO: result: disabling imlib2 support" >&5
7366 echo "${ECHO_T}disabling imlib2 support" >&6; }
7368 CPPFLAGS
=`imlib2-config --cflags`
7369 LIBS
=`imlib2-config --libs`
7370 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7371 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7372 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7373 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7377 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7379 # Is the header compilable?
7380 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7381 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7382 cat >conftest.
$ac_ext <<_ACEOF
7385 cat confdefs.h
>>conftest.
$ac_ext
7386 cat >>conftest.
$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7391 rm -f conftest.
$ac_objext
7392 if { (ac_try
="$ac_compile"
7394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_cxx_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7408 ac_header_compiler=yes
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7413 ac_header_compiler=no
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7418 echo "${ECHO_T}$ac_header_compiler" >&6; }
7420 # Is the header present?
7421 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7422 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7431 if { (ac_try="$ac_cpp conftest.$ac_ext"
7433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7434 *) ac_try_echo
=$ac_try;;
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7439 grep -v '^ *+' conftest.er1
>conftest.err
7441 cat conftest.err
>&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } >/dev
/null
&& {
7444 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7445 test ! -s conftest.err
7447 ac_header_preproc
=yes
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.
$ac_ext >&5
7452 ac_header_preproc
=no
7455 rm -f conftest.err conftest.
$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7457 echo "${ECHO_T}$ac_header_preproc" >&6; }
7459 # So? What about this header?
7460 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7462 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7463 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7465 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7466 ac_header_preproc
=yes
7469 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7470 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7472 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7474 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7476 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7478 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7480 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7484 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7485 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7486 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_cv_header_Imlib2_h
=$ac_header_preproc
7491 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7492 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7495 if test $ac_cv_header_Imlib2_h = yes; then
7496 { echo "$as_me:$LINENO: checking for imlib2" >&5
7497 echo $ECHO_N "checking for imlib2... $ECHO_C" >&6; }
7498 cat >conftest.
$ac_ext <<_ACEOF
7501 cat confdefs.h
>>conftest.
$ac_ext
7502 cat >>conftest.
$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7505 #include <X11/Xlib.h>
7514 Imlib_Image image= imlib_load_image("");
7520 rm -f conftest.
$ac_objext conftest
$ac_exeext
7521 if { (ac_try
="$ac_link"
7523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7524 *) ac_try_echo=$ac_try;;
7526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7527 (eval "$ac_link") 2>conftest.er1
7529 grep -v '^ *+' conftest.er1 >conftest.err
7531 cat conftest.err >&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && {
7534 test -z "$ac_cxx_werror_flag" ||
7535 test ! -s conftest.err
7536 } && test -s conftest$ac_exeext &&
7537 $as_test_x conftest$ac_exeext; then
7539 { echo "$as_me:$LINENO: result: yes" >&5
7540 echo "${ECHO_T}yes" >&6; }
7542 cat >>confdefs.h <<\_ACEOF
7543 #define USE_IMLIB2 1
7546 IMLIB2_CFLAGS="$CPPFLAGS"
7547 if test "$with_imlib2" = "linked" ; then
7548 IMLIB2_LDFLAGS="$LIBS"
7550 cat >>confdefs.h <<\_ACEOF
7551 #define LINKED_IMLIB2 1
7557 echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7561 { echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6; }
7565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7566 conftest$ac_exeext conftest.$ac_ext
7572 CPPFLAGS="$SAVE_CPPFLAGS"
7573 LDFLAGS="$SAVE_LDFLAGS"
7579 #--------------------------------------------------------------------
7580 # Checks for Axel library
7581 #--------------------------------------------------------------------
7584 # Check whether --with-axel was given.
7585 if test "${with_axel+set}" = set; then
7590 SAVE_CPPFLAGS="$CPPFLAGS"
7591 SAVE_LDFLAGS="$LDFLAGS"
7593 if test "$with_axel" = "no" -o "$with_axel" = "" ; then
7594 { echo "$as_me:$LINENO: result: disabling axel support" >&5
7595 echo "${ECHO_T}disabling axel support" >&6; }
7597 CPPFLAGS=`axel-config
--cflags`
7598 LIBS=`axel-config
--libs`
7599 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7600 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7601 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7602 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7606 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7608 # Is the header compilable?
7609 { echo "$as_me:$LINENO: checking QGui/Viewer.h usability" >&5
7610 echo $ECHO_N "checking QGui/Viewer.h usability... $ECHO_C" >&6; }
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #include <QGui/Viewer.h>
7620 rm -f conftest.$ac_objext
7621 if { (ac_try="$ac_compile"
7623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7624 *) ac_try_echo
=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_compile") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1
>conftest.err
7631 cat conftest.err
>&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } && {
7634 test -z "$ac_cxx_werror_flag" ||
7635 test ! -s conftest.err
7636 } && test -s conftest.
$ac_objext; then
7637 ac_header_compiler
=yes
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.
$ac_ext >&5
7642 ac_header_compiler
=no
7645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7647 echo "${ECHO_T}$ac_header_compiler" >&6; }
7649 # Is the header present?
7650 { echo "$as_me:$LINENO: checking QGui/Viewer.h presence" >&5
7651 echo $ECHO_N "checking QGui/Viewer.h presence... $ECHO_C" >&6; }
7652 cat >conftest.
$ac_ext <<_ACEOF
7655 cat confdefs.h
>>conftest.
$ac_ext
7656 cat >>conftest.
$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <QGui/Viewer.h>
7660 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } >/dev/null && {
7673 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7674 test ! -s conftest.err
7676 ac_header_preproc=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_header_preproc=no
7684 rm -f conftest.err conftest.$ac_ext
7685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7686 echo "${ECHO_T}$ac_header_preproc" >&6; }
7688 # So? What about this header?
7689 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7691 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&5
7692 echo "$as_me: WARNING: QGui/Viewer.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&5
7694 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the compiler's result" >&2;}
7695 ac_header_preproc=yes
7698 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: present but cannot be compiled" >&5
7699 echo "$as_me: WARNING: QGui/Viewer.h: present but cannot be compiled" >&2;}
7700 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&5
7701 echo "$as_me: WARNING: QGui/Viewer.h: check for missing prerequisite headers?" >&2;}
7702 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&5
7703 echo "$as_me: WARNING: QGui/Viewer.h: see the Autoconf documentation" >&2;}
7704 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&5
7705 echo "$as_me: WARNING: QGui/Viewer.h: section \"Present But Cannot Be Compiled\"" >&2;}
7706 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&5
7707 echo "$as_me: WARNING: QGui/Viewer.h: proceeding with the preprocessor's result" >&2;}
7708 { echo "$as_me:$LINENO: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&5
7709 echo "$as_me: WARNING: QGui/Viewer.h: in the future, the compiler will take precedence" >&2;}
7713 { echo "$as_me:$LINENO: checking for QGui/Viewer.h" >&5
7714 echo $ECHO_N "checking for QGui/Viewer.h... $ECHO_C" >&6; }
7715 if test "${ac_cv_header_QGui_Viewer_h+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7718 ac_cv_header_QGui_Viewer_h=$ac_header_preproc
7720 { echo "$as_me:$LINENO: result: $ac_cv_header_QGui_Viewer_h" >&5
7721 echo "${ECHO_T}$ac_cv_header_QGui_Viewer_h" >&6; }
7724 if test $ac_cv_header_QGui_Viewer_h = yes; then
7725 { echo "$as_me:$LINENO: checking for axel" >&5
7726 echo $ECHO_N "checking for axel... $ECHO_C" >&6; }
7727 cat >conftest.$ac_ext <<_ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h. */
7734 #include <QGui/Viewer.h>
7746 rm -f conftest.$ac_objext conftest$ac_exeext
7747 if { (ac_try="$ac_link"
7749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7750 *) ac_try_echo
=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_link") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1
>conftest.err
7757 cat conftest.err
>&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_cxx_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest
$ac_exeext &&
7763 $as_test_x conftest
$ac_exeext; then
7765 { echo "$as_me:$LINENO: result: yes" >&5
7766 echo "${ECHO_T}yes" >&6; }
7768 cat >>confdefs.h
<<\_ACEOF
7772 AXEL_CFLAGS
="$CPPFLAGS"
7773 if test "$with_axel" = "linked" ; then
7774 AXEL_LDFLAGS
="$LIBS"
7776 cat >>confdefs.h
<<\_ACEOF
7777 #define LINKED_AXEL 1
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.
$ac_ext >&5
7787 { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7791 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7792 conftest
$ac_exeext conftest.
$ac_ext
7798 CPPFLAGS
="$SAVE_CPPFLAGS"
7799 LDFLAGS
="$SAVE_LDFLAGS"
7805 #--------------------------------------------------------------------
7806 # Checks for ghostscript library
7807 #--------------------------------------------------------------------
7810 # Check whether --with-gs was given.
7811 if test "${with_gs+set}" = set; then
7816 if test "$with_gs" = "no" ; then
7817 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7818 echo "${ECHO_T}disabling ghostscript support" >&6; }
7822 GS_EXE
="gswin32c.exe"
7823 GS_DLL
="gsdll32.dll"
7824 # Extract the first word of "${GS_EXE}", so it can be a program name with args.
7825 set dummy
${GS_EXE}; ac_word
=$2
7826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7828 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 if test -n "$HAS_GS_EXE"; then
7832 ac_cv_prog_HAS_GS_EXE
="$HAS_GS_EXE" # Let the user override the test.
7834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7838 test -z "$as_dir" && as_dir
=.
7839 for ac_exec_ext
in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841 ac_cv_prog_HAS_GS_EXE
="yes"
7842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE
="no"
7852 HAS_GS_EXE
=$ac_cv_prog_HAS_GS_EXE
7853 if test -n "$HAS_GS_EXE"; then
7854 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7855 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7857 { echo "$as_me:$LINENO: result: no" >&5
7858 echo "${ECHO_T}no" >&6; }
7862 # Extract the first word of "${GS_DLL}", so it can be a program name with args.
7863 set dummy
${GS_DLL}; ac_word
=$2
7864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7866 if test "${ac_cv_prog_HAS_GS_LIB+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 if test -n "$HAS_GS_LIB"; then
7870 ac_cv_prog_HAS_GS_LIB
="$HAS_GS_LIB" # Let the user override the test.
7872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7876 test -z "$as_dir" && as_dir
=.
7877 for ac_exec_ext
in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 ac_cv_prog_HAS_GS_LIB
="yes"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 test -z "$ac_cv_prog_HAS_GS_LIB" && ac_cv_prog_HAS_GS_LIB
="no"
7890 HAS_GS_LIB
=$ac_cv_prog_HAS_GS_LIB
7891 if test -n "$HAS_GS_LIB"; then
7892 { echo "$as_me:$LINENO: result: $HAS_GS_LIB" >&5
7893 echo "${ECHO_T}$HAS_GS_LIB" >&6; }
7895 { echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6; }
7902 # Extract the first word of "gs", so it can be a program name with args.
7903 set dummy gs
; ac_word
=$2
7904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7906 if test "${ac_cv_prog_HAS_GS_EXE+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 if test -n "$HAS_GS_EXE"; then
7910 ac_cv_prog_HAS_GS_EXE
="$HAS_GS_EXE" # Let the user override the test.
7912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7916 test -z "$as_dir" && as_dir
=.
7917 for ac_exec_ext
in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7919 ac_cv_prog_HAS_GS_EXE
="yes"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 test -z "$ac_cv_prog_HAS_GS_EXE" && ac_cv_prog_HAS_GS_EXE
="no"
7930 HAS_GS_EXE
=$ac_cv_prog_HAS_GS_EXE
7931 if test -n "$HAS_GS_EXE"; then
7932 { echo "$as_me:$LINENO: result: $HAS_GS_EXE" >&5
7933 echo "${ECHO_T}$HAS_GS_EXE" >&6; }
7935 { echo "$as_me:$LINENO: result: no" >&5
7936 echo "${ECHO_T}no" >&6; }
7943 if test "x${HAS_GS_EXE}" = "xyes" -a "x${HAS_GS_LIB}" = "xyes"; then
7945 cat >>confdefs.h
<<\_ACEOF
7949 CONFIG_GS
="Ghostscript"
7954 { echo "$as_me:$LINENO: result: disabling ghostscript support" >&5
7955 echo "${ECHO_T}disabling ghostscript support" >&6; }
7959 #--------------------------------------------------------------------
7960 # Fixes for erroneous behaviour of gcc/g++ and guile on some systems
7961 #--------------------------------------------------------------------
7963 { echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
7964 echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6; }
7965 if test -z "$GUILE_CFLAGS"; then
7966 CXXFLAGS
="`guile-config compile`"
7968 CXXFLAGS
="$GUILE_CFLAGS"
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>
7978 #include <libguile.h>
7979 typedef SCM (*FN)(...);
7980 static SCM identity (SCM x) { return x; }
7981 void declare () { gh_new_procedure ("identity", (FN) identity, 1, 0, 0); }
7992 rm -f conftest.
$ac_objext
7993 if { (ac_try
="$ac_compile"
7995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_cxx_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8011 cat >>confdefs.h <<\_ACEOF
8015 { echo "$as_me:$LINENO: result: yes" >&5
8016 echo "${ECHO_T}yes" >&6; }
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8023 { echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6; }
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
8032 echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6; }
8033 if test -z "$GUILE_CFLAGS"; then
8034 CXXFLAGS="`guile-config compile
`"
8036 CXXFLAGS="$GUILE_CFLAGS"
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8045 #include <guile/gh.h>
8046 #include <libguile.h>
8047 void print_string (SCM s) {
8049 char* r= gh_scm2newstr (s, &len_r); }
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8064 *) ac_try_echo
=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1
>conftest.err
8071 cat conftest.err
>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_cxx_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.
$ac_objext; then
8079 cat >>confdefs.h
<<\_ACEOF
8080 #define guile_str_size_t int
8083 { echo "$as_me:$LINENO: result: int" >&5
8084 echo "${ECHO_T}int" >&6; }
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.
$ac_ext >&5
8092 cat >>confdefs.h
<<\_ACEOF
8093 #define guile_str_size_t size_t
8096 { echo "$as_me:$LINENO: result: size_t" >&5
8097 echo "${ECHO_T}size_t" >&6; }
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8104 { echo "$as_me:$LINENO: checking if statically linking with guile works" >&5
8105 echo $ECHO_N "checking if statically linking with guile works... $ECHO_C" >&6; }
8106 SAVE_CPPFLAGS
="$CPPFLAGS"
8107 SAVE_LDFLAGS
="$LDFLAGS"
8109 CPPFLAGS
="$GUILE_CFLAGS"
8111 LIBS
="$GUILE_LDFLAGS"
8112 cat >conftest.
$ac_ext <<_ACEOF
8115 cat confdefs.h
>>conftest.
$ac_ext
8116 cat >>conftest.
$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8119 #include <guile/gh.h>
8127 static void my_main (int argc, char** argv) {}
8128 static void install_guile () {
8130 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8132 gh_enter (0, NULL, my_main);
8136 dummy::install_guile ();
8142 rm -f conftest.
$ac_objext conftest
$ac_exeext
8143 if { (ac_try
="$ac_link"
8145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_link") 2>conftest.er1
8151 grep -v '^ *+' conftest.er1 >conftest.err
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_cxx_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest$ac_exeext &&
8159 $as_test_x conftest$ac_exeext; then
8160 tm_link_guile_static="yes"
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 tm_link_guile_static="no"
8168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8169 conftest$ac_exeext conftest.$ac_ext
8171 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
8172 echo "${ECHO_T}\"$tm_link_guile_static\"" >&6; }
8173 if test "$tm_link_guile_static" = "no" ; then
8174 { echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
8175 echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6; }
8176 LIBS="$GUILE_LDFLAGS -lltdl"
8177 cat >conftest.$ac_ext <<_ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h. */
8184 #include <guile/gh.h>
8192 static void my_main (int argc, char** argv) {}
8193 static void install_guile () {
8195 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8197 gh_enter (0, NULL, my_main);
8201 dummy::install_guile ();
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8211 *) ac_try_echo
=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1
>conftest.err
8218 cat conftest.err
>&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_cxx_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest
$ac_exeext &&
8224 $as_test_x conftest
$ac_exeext; then
8225 tm_link_guile_static_ltdl
="yes"
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.
$ac_ext >&5
8230 tm_link_guile_static_ltdl
="no"
8233 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8234 conftest
$ac_exeext conftest.
$ac_ext
8236 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
8237 echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6; }
8238 if test "$tm_link_guile_static_ltdl" = "yes" ; then
8239 GUILE_LDFLAGS
="$GUILE_LDFLAGS -lltdl"
8241 { echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
8242 echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6; }
8243 LIBS
="$GUILE_LDFLAGS -lltdl -ldl"
8244 cat >conftest.
$ac_ext <<_ACEOF
8247 cat confdefs.h
>>conftest.
$ac_ext
8248 cat >>conftest.
$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8251 #include <guile/gh.h>
8259 static void my_main (int argc, char** argv) {}
8260 static void install_guile () {
8262 gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
8264 gh_enter (0, NULL, my_main);
8268 dummy::install_guile ();
8274 rm -f conftest.
$ac_objext conftest
$ac_exeext
8275 if { (ac_try
="$ac_link"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_link") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_cxx_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest$ac_exeext &&
8291 $as_test_x conftest$ac_exeext; then
8292 tm_link_guile_static_ltdl_ldl="yes"
8294 echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 tm_link_guile_static_ltdl_ldl="no"
8300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8301 conftest$ac_exeext conftest.$ac_ext
8303 { echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
8304 echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6; }
8305 if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
8306 GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
8308 { echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
8309 echo "$as_me: WARNING: unable to link statically with guile" >&2;}
8313 CPPFLAGS="$SAVE_CPPFLAGS"
8314 LDFLAGS="$SAVE_LDFLAGS"
8317 #--------------------------------------------------------------------
8318 # Handle different systems case by case
8319 #--------------------------------------------------------------------
8321 CONFIG_OS="GNU_LINUX"
8322 CONFIG_OS_SUFFIX="gnu-linux"
8323 CONFIG_OS_COMPAT="Unix"
8326 CONFIG_CXXTEMPLATE=""
8327 CONFIG_STD_SETENV="#define STD_SETENV"
8329 CONFIG_LIB_PATH="LD_LIBRARY_PATH"
8330 CONFIG_CHMOD="chmod -f"
8331 CONFIG_CXXOPTIMIZE="-O2"
8332 CONFIG_BSTATIC="-Wl,-Bstatic"
8333 CONFIG_BSHARED="-Wl,-Bdynamic"
8335 CONFIG_BPATH="-Wl,-rpath,"
8337 CONFIG_WORD_LENGTH="4"
8338 CONFIG_WORD_LENGTH_INC="3"
8339 CONFIG_WORD_MASK="0xfffffffc"
8340 CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
8341 # tweak for XCode project
8342 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH"
8344 X11_CFLAGS="$X_CFLAGS"
8345 X11_LDFLAGS="$X_LIBS -lXext -lX11"
8347 { echo "$as_me:$LINENO: checking for void *" >&5
8348 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
8349 if test "${ac_cv_type_void_p+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 typedef void * ac__type_new_;
8363 if ((ac__type_new_ *) 0)
8365 if (sizeof (ac__type_new_))
8371 rm -f conftest.$ac_objext
8372 if { (ac_try="$ac_compile"
8374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8375 *) ac_try_echo
=$ac_try;;
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_compile") 2>conftest.er1
8380 grep -v '^ *+' conftest.er1
>conftest.err
8382 cat conftest.err
>&5
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } && {
8385 test -z "$ac_cxx_werror_flag" ||
8386 test ! -s conftest.err
8387 } && test -s conftest.
$ac_objext; then
8388 ac_cv_type_void_p
=yes
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.
$ac_ext >&5
8393 ac_cv_type_void_p
=no
8396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
8399 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
8401 # The cast to long int works around a bug in the HP C Compiler
8402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8404 # This bug is HP SR number 8606223364.
8405 { echo "$as_me:$LINENO: checking size of void *" >&5
8406 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
8407 if test "${ac_cv_sizeof_void_p+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 if test "$cross_compiling" = yes; then
8411 # Depending upon the size, compute the lo and hi bounds.
8412 cat >conftest.
$ac_ext <<_ACEOF
8415 cat confdefs.h
>>conftest.
$ac_ext
8416 cat >>conftest.
$ac_ext <<_ACEOF
8417 /* end confdefs.h. */
8418 $ac_includes_default
8419 typedef void * ac__type_sizeof_;
8423 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8430 rm -f conftest.
$ac_objext
8431 if { (ac_try
="$ac_compile"
8433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_cxx_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8449 cat >conftest.$ac_ext <<_ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h. */
8455 $ac_includes_default
8456 typedef void * ac__type_sizeof_;
8460 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8467 rm -f conftest.$ac_objext
8468 if { (ac_try="$ac_compile"
8470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8471 *) ac_try_echo
=$ac_try;;
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_compile") 2>conftest.er1
8476 grep -v '^ *+' conftest.er1
>conftest.err
8478 cat conftest.err
>&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } && {
8481 test -z "$ac_cxx_werror_flag" ||
8482 test ! -s conftest.err
8483 } && test -s conftest.
$ac_objext; then
8484 ac_hi
=$ac_mid; break
8486 echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.
$ac_ext >&5
8489 ac_lo
=`expr $ac_mid + 1`
8490 if test $ac_lo -le $ac_mid; then
8494 ac_mid
=`expr 2 '*' $ac_mid + 1`
8497 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8500 echo "$as_me: failed program was:" >&5
8501 sed 's/^/| /' conftest.
$ac_ext >&5
8503 cat >conftest.
$ac_ext <<_ACEOF
8506 cat confdefs.h
>>conftest.
$ac_ext
8507 cat >>conftest.
$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8509 $ac_includes_default
8510 typedef void * ac__type_sizeof_;
8514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8521 rm -f conftest.
$ac_objext
8522 if { (ac_try
="$ac_compile"
8524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_cxx_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8540 cat >conftest.$ac_ext <<_ACEOF
8543 cat confdefs.h >>conftest.$ac_ext
8544 cat >>conftest.$ac_ext <<_ACEOF
8545 /* end confdefs.h. */
8546 $ac_includes_default
8547 typedef void * ac__type_sizeof_;
8551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8562 *) ac_try_echo
=$ac_try;;
8564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_compile") 2>conftest.er1
8567 grep -v '^ *+' conftest.er1
>conftest.err
8569 cat conftest.err
>&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); } && {
8572 test -z "$ac_cxx_werror_flag" ||
8573 test ! -s conftest.err
8574 } && test -s conftest.
$ac_objext; then
8575 ac_lo
=$ac_mid; break
8577 echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.
$ac_ext >&5
8580 ac_hi
=`expr '(' $ac_mid ')' - 1`
8581 if test $ac_mid -le $ac_hi; then
8585 ac_mid
=`expr 2 '*' $ac_mid`
8588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8601 # Binary search between lo and hi bounds.
8602 while test "x$ac_lo" != "x$ac_hi"; do
8603 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8604 cat >conftest.
$ac_ext <<_ACEOF
8607 cat confdefs.h
>>conftest.
$ac_ext
8608 cat >>conftest.
$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 typedef void * ac__type_sizeof_;
8615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8622 rm -f conftest.
$ac_objext
8623 if { (ac_try
="$ac_compile"
8625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
8631 grep -v '^ *+' conftest.er1 >conftest.err
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && {
8636 test -z "$ac_cxx_werror_flag" ||
8637 test ! -s conftest.err
8638 } && test -s conftest.$ac_objext; then
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 ac_lo=`expr '(' $ac_mid ')' + 1`
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8651 '') if test "$ac_cv_type_void_p" = yes; then
8652 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8653 See \`config.log
' for more details." >&5
8654 echo "$as_me: error: cannot compute sizeof (void *)
8655 See \`config.log' for more details.
" >&2;}
8656 { (exit 77); exit 77; }; }
8658 ac_cv_sizeof_void_p=0
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 $ac_includes_default
8669 typedef void * ac__type_sizeof_;
8670 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8671 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8678 FILE *f = fopen ("conftest.val
", "w
");
8681 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8683 long int i = longval ();
8684 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8686 fprintf (f, "%ld
\n", i);
8690 unsigned long int i = ulongval ();
8691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8693 fprintf (f, "%lu
\n", i);
8695 return ferror (f) || fclose (f) != 0;
8701 rm -f conftest$ac_exeext
8702 if { (ac_try="$ac_link"
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_link") 2>&5
8710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8712 { (case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_try") 2>&5
8719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_sizeof_void_p=`cat conftest.val`
8723 echo "$as_me: program exited with status
$ac_status" >&5
8724 echo "$as_me: failed program was
:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8728 if test "$ac_cv_type_void_p" = yes; then
8729 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(void
*)
8730 See \
`config.log' for more details." >&5
8731 echo "$as_me: error: cannot compute sizeof (void *)
8732 See \`config.log
' for more details." >&2;}
8733 { (exit 77); exit 77; }; }
8735 ac_cv_sizeof_void_p=0
8738 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8742 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8743 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8747 cat >>confdefs.h <<_ACEOF
8748 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8752 { echo "$as_me:$LINENO: checking if we are on a 64-bits computer" >&5
8753 echo $ECHO_N "checking if we are on a 64-bits computer... $ECHO_C" >&6; }
8754 if test "$ac_cv_sizeof_void_p" = "8"; then
8755 { echo "$as_me:$LINENO: result: yes" >&5
8756 echo "${ECHO_T}yes" >&6; }
8757 CONFIG_WORD_LENGTH="8"
8758 CONFIG_WORD_LENGTH_INC="7"
8759 CONFIG_WORD_MASK="0xfffffffffffffff8"
8760 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8762 { echo "$as_me:$LINENO: result: no" >&5
8763 echo "${ECHO_T}no" >&6; }
8767 i*86-*-linux* | x86_64-*-linux*)
8768 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/Linux host" >&5
8769 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/Linux host" >&6; }
8770 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8772 i*86-*-freebsd* | x86_64-*-freebsd*)
8773 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMD GNU/BSD host" >&5
8774 echo "${ECHO_T}final adjustments for an Intel or AMD GNU/BSD host" >&6; }
8775 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8778 { echo "$as_me:$LINENO: result: final adjustments for an Intel or AMS Solaris host" >&5
8779 echo "${ECHO_T}final adjustments for an Intel or AMS Solaris host" >&6; }
8780 CONFIG_CXXOPTIMIZE="-O3"
8781 CONFIG_BPATH="-Wl,-R,"
8782 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8785 { echo "$as_me:$LINENO: result: final adjustments for mingw host" >&5
8786 echo "${ECHO_T}final adjustments for mingw host" >&6; }
8787 CONFIG_OS_COMPAT="Windows"
8788 CONFIG_LDRT="-lmingw32 -lmingwex -mwindows"
8791 { echo "$as_me:$LINENO: result: final adjustments for cygwin host" >&5
8792 echo "${ECHO_T}final adjustments for cygwin host" >&6; }
8794 CONFIG_BFLAGS="-Wl,-stack,8388608"
8795 # CXX="export CYGWIN=check_case:strict; $CXX"
8799 echo "$ac_t""final adjustments for a MacOS host" 1>&6
8801 CONFIG_CXXFLAGS="-I${prefix}/include"
8803 CONFIG_BFLAGS="-framework Cocoa"
8806 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8809 echo "$ac_t""final adjustments for a generic Darwin host" 1>&6
8810 CONFIG_CXXFLAGS="-I${prefix}/include"
8814 CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
8817 { echo "$as_me:$LINENO: result: final adjustments for a PowerPC/GNU-linux host" >&5
8818 echo "${ECHO_T}final adjustments for a PowerPC/GNU-linux host" >&6; }
8819 CONFIG_OS="POWERPC_GNU_LINUX"
8820 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8823 { echo "$as_me:$LINENO: result: final adjustments for a SUN/solaris host" >&5
8824 echo "${ECHO_T}final adjustments for a SUN/solaris host" >&6; }
8826 CONFIG_OS_SUFFIX="sun"
8829 CONFIG_BPATH="-Wl,-R,"
8830 X11_LDFLAGS="$X_LIBS -lXext -lX11 -lsocket"
8831 CONFIG_WORD_LENGTH="8"
8832 CONFIG_WORD_LENGTH_INC="7"
8833 CONFIG_WORD_MASK="0xfffffff8"
8834 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8835 CONFIG_STD_SETENV=""
8838 { echo "$as_me:$LINENO: result: final adjustments for a Sparc host running GNU/Linux" >&5
8839 echo "${ECHO_T}final adjustments for a Sparc host running GNU/Linux" >&6; }
8840 CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
8841 CONFIG_WORD_LENGTH="8"
8842 CONFIG_WORD_LENGTH_INC="7"
8843 CONFIG_WORD_MASK="0xfffffff8"
8844 CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
8845 CONFIG_STD_SETENV=""
8848 { echo "$as_me:$LINENO: result: final adjustments for a DEC/alpha host" >&5
8849 echo "${ECHO_T}final adjustments for a DEC/alpha host" >&6; }
8851 CONFIG_BSHARED="-shared"
8852 CONFIG_STD_SETENV=""
8855 { echo "$as_me:$LINENO: result: final adjustments for an Alpha GNU/Linux host" >&5
8856 echo "${ECHO_T}final adjustments for an Alpha GNU/Linux host" >&6; }
8858 CONFIG_BSHARED="-shared"
8861 { echo "$as_me:$LINENO: result: final adjustments for an IBM S/390 GNU/Linux host" >&5
8862 echo "${ECHO_T}final adjustments for an IBM S/390 GNU/Linux host" >&6; }
8863 CONFIG_STD_SETENV=""
8866 { echo "$as_me:$LINENO: result: final adjustments for an Itanium GNU/Linux host" >&5
8867 echo "${ECHO_T}final adjustments for an Itanium GNU/Linux host" >&6; }
8869 CONFIG_BSHARED="-shared"
8872 { echo "$as_me:$LINENO: result: final adjustments for an HP PA_RISC GNU/Linux host" >&5
8873 echo "${ECHO_T}final adjustments for an HP PA_RISC GNU/Linux host" >&6; }
8874 CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
8876 CONFIG_BSHARED="-shared"
8879 echo "$ac_t""final adjustments for a SGI/Irix host" 1>&6
8886 X11_LDFLAGS="$X_LIBS -lX11"
8887 CONFIG_WORD_MASK="0xfffffff8"
8888 CONFIG_STD_SETENV=""
8889 CONFIG_CHMOD="chmod"
8890 CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
8892 m68k-*-linux* | mips-*-linux* | mipsel-*-linux* | arm*-*-linux*)
8893 { echo "$as_me:$LINENO: result: final adjustments for a supported GNU/Linux host" >&5
8894 echo "${ECHO_T}final adjustments for a supported GNU/Linux host" >&6; }
8897 { echo "$as_me:$LINENO: result: final adjustments for a generic GNU/Linux host" >&5
8898 echo "${ECHO_T}final adjustments for a generic GNU/Linux host" >&6; }
8901 { echo "$as_me:$LINENO: result: final adjustments for a generic host" >&5
8902 echo "${ECHO_T}final adjustments for a generic host" >&6; }
8908 echo "$ac_t""Xcode 3.2 project tweak (only MacOSX 10.6)" 1>&6
8909 CONFIG_NATIVE_ARCH_TAG="NATIVE_ARCH_ACTUAL"
8913 #--------------------------------------------------------------------
8914 # Temporary fix for link problem
8915 #--------------------------------------------------------------------
8917 case "$GXX_VERSION" in
8919 CONFIG_BSTATIC="-static"
8920 CONFIG_BSHARED="-dynamic"
8924 #--------------------------------------------------------------------
8925 # Memory allocation options
8926 #--------------------------------------------------------------------
8928 # Check whether --enable-fastalloc was given.
8929 if test "${enable_fastalloc+set}" = set; then
8930 enableval=$enable_fastalloc;
8932 enable_fastalloc="yes"
8935 case "$enable_fastalloc" in
8939 { echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
8940 echo "${ECHO_T}disabling fast allocator for small objects" >&6; }
8942 cat >>confdefs.h <<\_ACEOF
8943 #define NO_FAST_ALLOC 1
8948 { { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
8949 echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
8950 { (exit 1); exit 1; }; }
8954 #--------------------------------------------------------------------
8955 # Experimental options
8956 #--------------------------------------------------------------------
8958 # Check whether --enable-experimental was given.
8959 if test "${enable_experimental+set}" = set; then
8960 enableval=$enable_experimental;
8962 enable_experimental="no"
8965 case "$enable_experimental" in
8967 { echo "$as_me:$LINENO: result: enabling experimental style rewriting code" >&5
8968 echo "${ECHO_T}enabling experimental style rewriting code" >&6; }
8970 cat >>confdefs.h <<\_ACEOF
8971 #define EXPERIMENTAL 1
8974 CONFIG_EXPERIMENTAL="Memorizer Environment Evaluate"
8977 { echo "$as_me:$LINENO: result: disabling experimental style rewriting code" >&5
8978 echo "${ECHO_T}disabling experimental style rewriting code" >&6; }
8979 CONFIG_EXPERIMENTAL=""
8982 { { echo "$as_me:$LINENO: error: bad option --enable-experimental=$enable_experimental" >&5
8983 echo "$as_me: error: bad option --enable-experimental=$enable_experimental" >&2;}
8984 { (exit 1); exit 1; }; }
8989 #--------------------------------------------------------------------
8990 # MacOS X extensions (spellchecker, image loading)
8991 #--------------------------------------------------------------------
8993 # Check whether --enable-macosx-extensions was given.
8994 if test "${enable_macosx_extensions+set}" = set; then
8995 enableval=$enable_macosx_extensions;
8997 enable_macosx_extensions="no"
9000 case "$enable_macosx_extensions" in
9002 { echo "$as_me:$LINENO: result: enabling Mac OSX extensions" >&5
9003 echo "${ECHO_T}enabling Mac OSX extensions" >&6; }
9005 cat >>confdefs.h <<\_ACEOF
9006 #define MACOSX_EXTENSIONS 1
9009 CONFIG_MACOS="MacOS"
9012 { echo "$as_me:$LINENO: result: disabling Mac OSX extensions" >&5
9013 echo "${ECHO_T}disabling Mac OSX extensions" >&6; }
9017 { { echo "$as_me:$LINENO: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&5
9018 echo "$as_me: error: bad option --enable-macosx-extensions=$enable_macosx_extensions" >&2;}
9019 { (exit 1); exit 1; }; }
9024 #--------------------------------------------------------------------
9026 #--------------------------------------------------------------------
9032 # Check whether --enable-qt was given.
9033 if test "${enable_qt+set}" = set; then
9034 enableval=$enable_qt;
9040 case "$enable_qt" in
9043 if test -r "/c/Qt"; then
9045 qt_bin="`dirname $MOC`"
9046 qt_home="`dirname $qt_bin`"
9047 qt_version="`basename $qt_home`"
9048 qt_parent="`dirname $qt_home`"
9049 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."
9050 QT_CXXFLAGS="-pipe -g -Wall -W -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT"
9051 QT_LDFLAGS="-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows"
9052 QT_LIBS="-L'c
:/Qt
/$qt_version/lib
' -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4"
9053 if test "$qt_parent" != "/c/Qt"; then
9061 test x"$TROLL" != x && echo 'ViM rox emacs.
'
9064 # Check whether --with-qt was given.
9065 if test "${with_qt+set}" = set; then
9066 withval=$with_qt; QT_PATH=$withval
9073 if test -d /usr/local/Trolltech; then
9074 # Try to find the latest version.
9075 tmp_qt_paths=`echo /usr/local/Trolltech/*/bin | tr ' ' '\n' | sort -nr \
9076 | xargs | sed 's
/ */:/g
'`
9080 if test -z "$QMAKE"; then
9081 for ac_prog in qmake
9083 # Extract the first word of "$ac_prog", so it can be a program name with args.
9084 set dummy $ac_prog; ac_word=$2
9085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9087 if test "${ac_cv_path_QMAKE+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 as_dummy="$QT_DIR:$QT_PATH:$PATH:$tmp_qt_paths"
9097 for as_dir in $as_dummy
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9103 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 QMAKE=$ac_cv_path_QMAKE
9115 if test -n "$QMAKE"; then
9116 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9117 echo "${ECHO_T}$QMAKE" >&6; }
9119 { echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6; }
9124 test -n "$QMAKE" && break
9126 test -n "$QMAKE" || QMAKE="missing"
9129 { echo "$as_me:$LINENO: checking for the QMAKE to use with Qt" >&5
9130 echo $ECHO_N "checking for the QMAKE to use with Qt... $ECHO_C" >&6; }
9131 { echo "$as_me:$LINENO: result: $QMAKE" >&5
9132 echo "${ECHO_T}$QMAKE" >&6; }
9134 if test x"$QMAKE" = xmissing; then
9135 { { echo "$as_me:$LINENO: error: Cannot find qmake in your PATH. Try using --with-qt." >&5
9136 echo "$as_me: error: Cannot find qmake in your PATH. Try using --with-qt." >&2;}
9137 { (exit 1); exit 1; }; }
9140 # Find moc (Meta Object Compiler).
9141 if test -z "$MOC"; then
9144 # Extract the first word of "$ac_prog", so it can be a program name with args.
9145 set dummy $ac_prog; ac_word=$2
9146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9148 if test "${ac_cv_path_MOC+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9157 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9158 for as_dir in $as_dummy
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
9165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9176 if test -n "$MOC"; then
9177 { echo "$as_me:$LINENO: result: $MOC" >&5
9178 echo "${ECHO_T}$MOC" >&6; }
9180 { echo "$as_me:$LINENO: result: no" >&5
9181 echo "${ECHO_T}no" >&6; }
9185 test -n "$MOC" && break
9187 test -n "$MOC" || MOC="missing"
9190 { echo "$as_me:$LINENO: checking for the MOC to use with Qt" >&5
9191 echo $ECHO_N "checking for the MOC to use with Qt... $ECHO_C" >&6; }
9192 { echo "$as_me:$LINENO: result: $MOC" >&5
9193 echo "${ECHO_T}$MOC" >&6; }
9195 if test x"$MOC" = xmissing; then
9196 { { echo "$as_me:$LINENO: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&5
9197 echo "$as_me: error: Cannot find moc (Meta Object Compiler) in your PATH. Try using --with-qt." >&2;}
9198 { (exit 1); exit 1; }; }
9201 # Find uic (User Interface Compiler).
9202 if test -z "$UIC"; then
9205 # Extract the first word of "$ac_prog", so it can be a program name with args.
9206 set dummy $ac_prog; ac_word=$2
9207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9209 if test "${ac_cv_path_UIC+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 ac_cv_path_UIC="$UIC" # Let the user override the test with a path.
9217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9219 for as_dir in $as_dummy
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_path_UIC="$as_dir/$ac_word$ac_exec_ext"
9226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 if test -n "$UIC"; then
9238 { echo "$as_me:$LINENO: result: $UIC" >&5
9239 echo "${ECHO_T}$UIC" >&6; }
9241 { echo "$as_me:$LINENO: result: no" >&5
9242 echo "${ECHO_T}no" >&6; }
9246 test -n "$UIC" && break
9248 test -n "$UIC" || UIC="missing"
9251 { echo "$as_me:$LINENO: checking for the UIC to use with Qt" >&5
9252 echo $ECHO_N "checking for the UIC to use with Qt... $ECHO_C" >&6; }
9253 { echo "$as_me:$LINENO: result: $UIC" >&5
9254 echo "${ECHO_T}$UIC" >&6; }
9256 if test x"$UIC" = xmissing; then
9257 { { echo "$as_me:$LINENO: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&5
9258 echo "$as_me: error: Cannot find uic (User Interface Compiler) in your PATH. Try using --with-qt." >&2;}
9259 { (exit 1); exit 1; }; }
9262 # Find rcc (Qt Resource Compiler).
9265 # Extract the first word of "$ac_prog", so it can be a program name with args.
9266 set dummy $ac_prog; ac_word=$2
9267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9269 if test "${ac_cv_path_RCC+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 ac_cv_path_RCC="$RCC" # Let the user override the test with a path.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 as_dummy="$QT_PATH:$PATH:$tmp_qt_paths"
9279 for as_dir in $as_dummy
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_path_RCC="$as_dir/$ac_word$ac_exec_ext"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 if test -n "$RCC"; then
9298 { echo "$as_me:$LINENO: result: $RCC" >&5
9299 echo "${ECHO_T}$RCC" >&6; }
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9306 test -n "$RCC" && break
9308 test -n "$RCC" || RCC="false"
9310 if test x"$UIC" = xfalse; then
9311 { echo "$as_me:$LINENO: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&5
9312 echo "$as_me: WARNING: Cannot find rcc (Qt Resource Compiler) in your PATH. Try using --with-qt." >&2;}
9315 # If we don't know the path to Qt
, guess it from the path to qmake.
9316 if test x
"$QT_PATH" = x
; then
9317 QT_PATH
=`dirname "$QMAKE"`
9319 if test x
"$QT_PATH" = x
; then
9320 { { echo "$as_me:$LINENO: error: Cannot find the path to your Qt install. Use --with-qt." >&5
9321 echo "$as_me: error: Cannot find the path to your Qt install. Use --with-qt." >&2;}
9322 { (exit 1); exit 1; }; }
9325 { echo "$as_me:$LINENO: checking for the QT_PATH to use with Qt" >&5
9326 echo $ECHO_N "checking for the QT_PATH to use with Qt... $ECHO_C" >&6; }
9327 { echo "$as_me:$LINENO: result: $QT_PATH" >&5
9328 echo "${ECHO_T}$QT_PATH" >&6; }
9330 # Get ready to build a test-app with Qt.
9332 # Look for a writable temporary directory.
9334 if test x
"$TMPDIR" = x ||
test ! -d "$TMPDIR" ||
test ! -w "$TMPDIR"; then
9335 echo "$as_me:$LINENO: no TMPDIR or bad TMPDIR ($TMPDIR)" \
9337 for i
in /tmp
/var
/tmp
; do
9338 if test -d "$i" && test -w "$i"; then
9341 echo "$as_me:$LINENO: setting TMPDIR=$TMPDIR" >&5
9347 # Kludge!! QMake has a very strange behavior. For instance, if you
9348 # install Qt under your $HOME and run QMake somewhere else under your
9349 # $HOME, it will try to be clever and produce Makefiles with relative
9350 # include paths. In order to avoid this, we will test QMake from a
9351 # temporary directory (usually /tmp). Note that this problem was only
9352 # observed with Qt 4.
9353 my_configure_pwd
=`pwd`
9354 my_tmpdir
="$TMPDIR/conftest$$.dir"
9355 test -d "$my_tmpdir" || mkdir
"$my_tmpdir"
9356 if test -w "$my_tmpdir" && cd "$my_tmpdir"
9360 { { echo "$as_me:$LINENO: error: Cannot cd to or write in $my_tmpdir" >&5
9361 echo "$as_me: error: Cannot cd to or write in $my_tmpdir" >&2;}
9362 { (exit 1); exit 1; }; }
9364 cat >conftest.h
<<_ASEOF
9367 class Foo: public QObject
9374 void setValue(int value);
9376 void valueChanged(int newValue);
9382 cat >conftest.cpp
<<_ASEOF
9383 #include "conftest.h"
9387 connect(this, SIGNAL(valueChanged(int)), this, SLOT(setValue(int)));
9390 void Foo::setValue(int value)
9400 if $QMAKE -project; then :; else
9401 { { echo "$as_me:$LINENO: error: Calling $QMAKE -project failed." >&5
9402 echo "$as_me: error: Calling $QMAKE -project failed." >&2;}
9403 { (exit 1); exit 1; }; }
9406 # Find the .pro file generated by qmake.
9407 pro_file
='conftest.dir.pro'
9408 test -f $pro_file || pro_file
=`echo *.pro`
9409 if test -f "$pro_file"; then :; else
9410 { { echo "$as_me:$LINENO: error: Can't find the .pro file generated by Qmake." >&5
9411 echo "$as_me: error: Can't find the .pro file generated by Qmake." >&2;}
9412 { (exit 1); exit 1; }; }
9421 echo "$as_me:$LINENO: Invoking $QMAKE on $pro_file" >&5
9422 sed 's/^/| /' "$pro_file" >&5
9424 additional_qmake_flags
=""
9427 additional_qmake_flags
="-spec macx-g++"
9431 if $QMAKE ${additional_qmake_flags} ; then :; else
9432 { { echo "$as_me:$LINENO: error: Calling $QMAKE failed." >&5
9433 echo "$as_me: error: Calling $QMAKE failed." >&2;}
9434 { (exit 1); exit 1; }; }
9436 # Try to compile a simple Qt app.
9437 { echo "$as_me:$LINENO: checking whether we can build a simple Qt app" >&5
9438 echo $ECHO_N "checking whether we can build a simple Qt app... $ECHO_C" >&6; }
9439 if test "${at_cv_qt_build+set}" = set; then
9440 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 if $MAKE >&5 2>&1; then
9446 at_cv_qt_build
='ok, looks like Qt 4'
9448 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9450 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9451 if $MAKE >&5 2>&1; then
9452 at_cv_qt_build
='ok, looks like Qt 3'
9454 # Sometimes (such as on Debian) build will fail because Qt hasn't been
9455 # installed in debug mode and qmake tries (by default) to build apps in
9456 # debug mode => Try again in release mode.
9457 echo "$as_me:$LINENO: Build failed, trying to enforce release mode" \
9460 # Tweak the value of CONFIG in the .pro file for +release.
9463 for at_mod
in +release
; do
9464 at_mod
=`echo "$at_mod" | sed 's/^-//; tough
9473 echo "$qt_conf" |
sed 1d
>>"$pro_file"
9476 sed 's/<qobject.h>/<QObject>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9477 if $MAKE >&5 2>&1; then
9478 at_cv_qt_build
='ok, looks like Qt 4, release mode forced'
9480 echo "$as_me:$LINENO: Build failed, trying to #include <qobject.h> \
9482 sed 's/<QObject>/<qobject.h>/' conftest.h
> tmp.h
&& mv tmp.h conftest.h
9483 if $MAKE >&5 2>&1; then
9484 at_cv_qt_build
='ok, looks like Qt 3, release mode forced'
9487 echo "$as_me:$LINENO: failed program was:" >&5
9488 sed 's/^/| /' conftest.h
>&5
9489 echo "$as_me:$LINENO: failed program was:" >&5
9490 sed 's/^/| /' conftest.cpp
>&5
9491 fi # if make with Qt3-style #include and release mode forced.
9492 fi # if make with Qt4-style #include and release mode forced.
9493 fi # if make with Qt3-style #include.
9494 fi # if make with Qt4-style #include.
9497 { echo "$as_me:$LINENO: result: $at_cv_qt_build" >&5
9498 echo "${ECHO_T}$at_cv_qt_build" >&6; }
9499 if test x
"$at_cv_qt_build" = xko
; then
9500 { { echo "$as_me:$LINENO: error: Cannot build a test Qt program" >&5
9501 echo "$as_me: error: Cannot build a test Qt program" >&2;}
9502 { (exit 1); exit 1; }; }
9504 QT_VERSION_MAJOR
=`echo "$at_cv_qt_build" | sed 's/^^0-9*//'`
9507 # This sed filter is applied after an expression of the form: /^FOO.*=/!d;
9508 # It starts by removing the beginning of the line, removing references to
9509 # SUBLIBS, removing unnecessary whitespaces at the beginning, and prefixes
9510 # all variable uses by QT_.
9511 qt_sed_filter
='s///;
9514 s/\$(\([A-Z_][A-Z_]*\))/$(QT_\1)/g'
9516 # Find the Makefile (qmake happens to generate a fake Makefile which invokes
9517 # a Makefile.Debug or Makefile.Release). We we have both, we'll pick the
9518 # Makefile.Release. The reason is that the main difference is that release
9519 # uses -Os and debug -g. We can override -Os by passing another -O but we
9520 # usually don't override -g.
9521 if test -f Makefile.Release
; then
9522 at_mfile
='Makefile.Release'
9526 if test -f $at_mfile; then :; else
9527 cd "$my_configure_pwd"
9528 { { echo "$as_me:$LINENO: error: Cannot find the Makefile generated by qmake." >&5
9529 echo "$as_me: error: Cannot find the Makefile generated by qmake." >&2;}
9530 { (exit 1); exit 1; }; }
9533 # Find the DEFINES of Qt (should have been named CPPFLAGS).
9534 if test -z "$QT_DEFINES"; then
9535 { echo "$as_me:$LINENO: checking for the DEFINES to use with Qt" >&5
9536 echo $ECHO_N "checking for the DEFINES to use with Qt... $ECHO_C" >&6; }
9537 if test "${at_cv_env_QT_DEFINES+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 at_cv_env_QT_DEFINES
=`sed "/^DEFINES[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9542 { echo "$as_me:$LINENO: result: $at_cv_env_QT_DEFINES" >&5
9543 echo "${ECHO_T}$at_cv_env_QT_DEFINES" >&6; }
9544 QT_DEFINES
="$at_cv_env_QT_DEFINES"
9547 { echo "$as_me:$LINENO: checking for the QT_DEFINES to use with Qt" >&5
9548 echo $ECHO_N "checking for the QT_DEFINES to use with Qt... $ECHO_C" >&6; }
9549 { echo "$as_me:$LINENO: result: $QT_DEFINES" >&5
9550 echo "${ECHO_T}$QT_DEFINES" >&6; }
9552 # Find the CFLAGS of Qt (We can use Qt in C?!)
9553 if test -z "$QT_CFLAGS"; then
9554 { echo "$as_me:$LINENO: checking for the CFLAGS to use with Qt" >&5
9555 echo $ECHO_N "checking for the CFLAGS to use with Qt... $ECHO_C" >&6; }
9556 if test "${at_cv_env_QT_CFLAGS+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 at_cv_env_QT_CFLAGS
=`sed "/^CFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9561 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CFLAGS" >&5
9562 echo "${ECHO_T}$at_cv_env_QT_CFLAGS" >&6; }
9563 QT_CFLAGS
="$at_cv_env_QT_CFLAGS"
9566 { echo "$as_me:$LINENO: checking for the QT_CFLAGS to use with Qt" >&5
9567 echo $ECHO_N "checking for the QT_CFLAGS to use with Qt... $ECHO_C" >&6; }
9568 { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
9569 echo "${ECHO_T}$QT_CFLAGS" >&6; }
9571 # Find the CXXFLAGS of Qt.
9572 if test -z "$QT_CXXFLAGS"; then
9573 { echo "$as_me:$LINENO: checking for the CXXFLAGS to use with Qt" >&5
9574 echo $ECHO_N "checking for the CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9575 if test "${at_cv_env_QT_CXXFLAGS+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 at_cv_env_QT_CXXFLAGS
=`sed "/^CXXFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9580 { echo "$as_me:$LINENO: result: $at_cv_env_QT_CXXFLAGS" >&5
9581 echo "${ECHO_T}$at_cv_env_QT_CXXFLAGS" >&6; }
9582 QT_CXXFLAGS
="$at_cv_env_QT_CXXFLAGS"
9585 { echo "$as_me:$LINENO: checking for the QT_CXXFLAGS to use with Qt" >&5
9586 echo $ECHO_N "checking for the QT_CXXFLAGS to use with Qt... $ECHO_C" >&6; }
9587 { echo "$as_me:$LINENO: result: $QT_CXXFLAGS" >&5
9588 echo "${ECHO_T}$QT_CXXFLAGS" >&6; }
9590 # Find the INCPATH of Qt.
9591 if test -z "$QT_INCPATH"; then
9592 { echo "$as_me:$LINENO: checking for the INCPATH to use with Qt" >&5
9593 echo $ECHO_N "checking for the INCPATH to use with Qt... $ECHO_C" >&6; }
9594 if test "${at_cv_env_QT_INCPATH+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 at_cv_env_QT_INCPATH
=`sed "/^INCPATH[^A-Z]*=/!d;$qt_sed_filter" $at_mfile`
9599 { echo "$as_me:$LINENO: result: $at_cv_env_QT_INCPATH" >&5
9600 echo "${ECHO_T}$at_cv_env_QT_INCPATH" >&6; }
9601 QT_INCPATH
="$at_cv_env_QT_INCPATH"
9604 { echo "$as_me:$LINENO: checking for the QT_INCPATH to use with Qt" >&5
9605 echo $ECHO_N "checking for the QT_INCPATH to use with Qt... $ECHO_C" >&6; }
9606 { echo "$as_me:$LINENO: result: $QT_INCPATH" >&5
9607 echo "${ECHO_T}$QT_INCPATH" >&6; }
9609 QT_CPPFLAGS
="$QT_DEFINES $QT_INCPATH"
9612 # Find the LFLAGS of Qt (Should have been named LDFLAGS)
9613 if test -z "$QT_LDFLAGS"; then
9614 { echo "$as_me:$LINENO: checking for the LDFLAGS to use with Qt" >&5
9615 echo $ECHO_N "checking for the LDFLAGS to use with Qt... $ECHO_C" >&6; }
9616 if test "${at_cv_env_QT_LDFLAGS+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 at_cv_env_QT_LDFLAGS
=`sed "/^LFLAGS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9621 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LDFLAGS" >&5
9622 echo "${ECHO_T}$at_cv_env_QT_LDFLAGS" >&6; }
9623 QT_LDFLAGS
="$at_cv_env_QT_LDFLAGS"
9626 QT_LFLAGS
=$QT_LDFLAGS
9628 { echo "$as_me:$LINENO: checking for the QT_LDFLAGS to use with Qt" >&5
9629 echo $ECHO_N "checking for the QT_LDFLAGS to use with Qt... $ECHO_C" >&6; }
9630 { echo "$as_me:$LINENO: result: $QT_LDFLAGS" >&5
9631 echo "${ECHO_T}$QT_LDFLAGS" >&6; }
9633 { echo "$as_me:$LINENO: checking whether host operating system is Darwin" >&5
9634 echo $ECHO_N "checking whether host operating system is Darwin... $ECHO_C" >&6; }
9641 { echo "$as_me:$LINENO: result: $at_darwin" >&5
9642 echo "${ECHO_T}$at_darwin" >&6; }
9644 # Find the LIBS of Qt.
9645 if test -z "$QT_LIBS"; then
9646 { echo "$as_me:$LINENO: checking for the LIBS to use with Qt" >&5
9647 echo $ECHO_N "checking for the LIBS to use with Qt... $ECHO_C" >&6; }
9648 if test "${at_cv_env_QT_LIBS+set}" = set; then
9649 echo $ECHO_N "(cached) $ECHO_C" >&6
9651 at_cv_env_QT_LIBS
=`sed "/^LIBS[^A-Za-z]*=/!d;$qt_sed_filter" $at_mfile`
9652 if test x
$at_darwin = xyes
; then
9653 # Fix QT_LIBS: as of today Libtool (GNU Libtool 1.5.23a) doesn't handle
9654 # -F properly. The "bug" has been fixed on 22 October 2006
9655 # by Peter O'Gorman but we provide backward compatibility here.
9656 at_cv_env_QT_LIBS
=`echo "$at_cv_env_QT_LIBS" \
9657 | sed 's/^-F/-Wl,-F/;s/ -F/ -Wl,-F/g'`
9661 { echo "$as_me:$LINENO: result: $at_cv_env_QT_LIBS" >&5
9662 echo "${ECHO_T}$at_cv_env_QT_LIBS" >&6; }
9663 QT_LIBS
="$at_cv_env_QT_LIBS"
9666 { echo "$as_me:$LINENO: checking for the QT_LIBS to use with Qt" >&5
9667 echo $ECHO_N "checking for the QT_LIBS to use with Qt... $ECHO_C" >&6; }
9668 { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
9669 echo "${ECHO_T}$QT_LIBS" >&6; }
9671 cd "$my_configure_pwd" ||
echo 'WTF!'
9676 if test x
"$at_cv_qt_build" = xko
; then
9677 { { echo "$as_me:$LINENO: error: cannot find Qt!" >&5
9678 echo "$as_me: error: cannot find Qt!" >&2;}
9679 { (exit 1); exit 1; }; }
9681 { echo "$as_me:$LINENO: result: enabling experimental Qt port" >&5
9682 echo "${ECHO_T}enabling experimental Qt port" >&6; }
9687 { echo "$as_me:$LINENO: result: disabling experimental Qt port" >&5
9688 echo "${ECHO_T}disabling experimental Qt port" >&6; }
9691 { { echo "$as_me:$LINENO: error: bad option --enable-qt=$enable_qt" >&5
9692 echo "$as_me: error: bad option --enable-qt=$enable_qt" >&2;}
9693 { (exit 1); exit 1; }; }
9697 # Check whether --enable-cocoa was given.
9698 if test "${enable_cocoa+set}" = set; then
9699 enableval
=$enable_cocoa;
9704 case "$enable_cocoa" in
9706 { echo "$as_me:$LINENO: result: enabling experimental Cocoa port" >&5
9707 echo "${ECHO_T}enabling experimental Cocoa port" >&6; }
9709 COCOA_LDFLAGS
="-framework Cocoa"
9713 { echo "$as_me:$LINENO: result: disabling experimental Cocoa port" >&5
9714 echo "${ECHO_T}disabling experimental Cocoa port" >&6; }
9717 { { echo "$as_me:$LINENO: error: bad option --enable-cocoa=$enable_cocoa" >&5
9718 echo "$as_me: error: bad option --enable-cocoa=$enable_cocoa" >&2;}
9719 { (exit 1); exit 1; }; }
9723 case "$CONFIG_GUI" in
9725 CONFIG_X11
="X11 Widkit"
9726 if test "x${CONFIG_GS}" != "xGhostscript"; then
9727 CONFIG_X11
="$CONFIG_X11 Ghostscript"
9729 CONFIG_GUI_DEFINE
="X11TEXMACS"
9730 # AC_DEFINE(X11TEXMACS, 1, [Use standard X11 port])
9733 CONFIG_COCOA
="Cocoa"
9734 CONFIG_GUI_DEFINE
="AQUATEXMACS"
9735 # AC_DEFINE(AQUATEXMACS, 1, [Enable experimental Cocoa port])
9739 CONFIG_GUI_DEFINE
="QTTEXMACS"
9740 # AC_DEFINE(QTTEXMACS, 1, [Enable experimental Qt port])
9757 #--------------------------------------------------------------------
9759 #--------------------------------------------------------------------
9761 STD_DEBUG_FLAGS
="-fno-rtti -fno-exceptions"
9762 if test "$enable_cocoa" = "yes"; then
9763 STD_DEBUG_FLAGS
="-fno-exceptions"
9766 { echo "$as_me:$LINENO: checking if compiler supports $STD_DEBUG_FLAGS" >&5
9767 echo $ECHO_N "checking if compiler supports $STD_DEBUG_FLAGS... $ECHO_C" >&6; }
9768 CXXFLAGS
="$STD_DEBUG_FLAGS"
9769 cat >conftest.
$ac_ext <<_ACEOF
9772 cat confdefs.h
>>conftest.
$ac_ext
9773 cat >>conftest.
$ac_ext <<_ACEOF
9774 /* end confdefs.h. */
9776 int some_variable = 0;
9787 rm -f conftest.
$ac_objext
9788 if { (ac_try
="$ac_compile"
9790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_compile") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_cxx_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest.$ac_objext; then
9805 CONFIG_CXXDIALECT="$STD_DEBUG_FLAGS"
9806 { echo "$as_me:$LINENO: result: yes" >&5
9807 echo "${ECHO_T}yes" >&6; }
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9814 CONFIG_CXXDIALECT=""
9815 { echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6; }
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 # Check whether --enable-debug was given.
9825 if test "${enable_debug+set}" = set; then
9826 enableval=$enable_debug;
9832 if test "$enable_debug" = "yes"; then
9833 if test "$GXX" = "yes"; then
9834 enable_debug="-ggdb"
9840 if test "$enable_debug" = "no"; then
9841 { echo "$as_me:$LINENO: result: disabling debugging" >&5
9842 echo "${ECHO_T}disabling debugging" >&6; }
9843 CONFIG_STRIP="strip"
9845 optimize_default="yes"
9847 { echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
9848 echo "${ECHO_T}enabling debugging, $enable_debug" >&6; }
9850 CONFIG_CXXDEBUG="$enable_debug"
9851 optimize_default="no"
9854 # Check whether --enable-assert was given.
9855 if test "${enable_assert+set}" = set; then
9856 enableval=$enable_assert;
9862 if test "$enable_assert" = "no"; then
9863 { echo "$as_me:$LINENO: result: disabling assertion checking" >&5
9864 echo "${ECHO_T}disabling assertion checking" >&6; }
9866 { echo "$as_me:$LINENO: result: enabling assertion checking" >&5
9867 echo "${ECHO_T}enabling assertion checking" >&6; }
9869 cat >>confdefs.h <<\_ACEOF
9870 #define DEBUG_ASSERT 1
9875 #--------------------------------------------------------------------
9877 #--------------------------------------------------------------------
9879 case "$GXX_VERSION" in
9881 CONFIG_CXXWARNING="";
9884 CONFIG_CXXWARNING="-Wall -Wno-return-type"
9888 # Check whether --enable-warnings was given.
9889 if test "${enable_warnings+set}" = set; then
9890 enableval=$enable_warnings;
9892 enable_warnings="yes"
9895 case "$enable_warnings" in
9897 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9898 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9900 CONFIG_CXXWARNING=""
9901 { echo "$as_me:$LINENO: result: disabling warning flags" >&5
9902 echo "${ECHO_T}disabling warning flags" >&6; } ;;
9904 CONFIG_CXXWARNING="$enable_warnings"
9905 { echo "$as_me:$LINENO: result: enabling warning flags $CONFIG_CXXWARNING" >&5
9906 echo "${ECHO_T}enabling warning flags $CONFIG_CXXWARNING" >&6; } ;;
9909 #--------------------------------------------------------------------
9910 # Optimization options
9911 #--------------------------------------------------------------------
9913 if test "$optimize_default" = "yes"; then
9914 case "$GXX_VERSION" in
9915 3.3.3 | 3.3.4 | 4.*)
9917 2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
9919 i*86-*-linux-gnu* | i*86-*-freebsd*)
9920 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9921 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9922 optimize_default="no-inline"
9925 { echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
9926 echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
9927 optimize_default="no-inline"
9934 # Check whether --enable-optimize was given.
9935 if test "${enable_optimize+set}" = set; then
9936 enableval=$enable_optimize;
9938 enable_optimize="$optimize_default"
9942 case "$enable_optimize" in
9944 # keep optimization options
9945 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9946 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9948 optimize_no_inline="-fno-default-inline -fno-inline"
9949 CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
9950 { echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
9951 echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6; } ;;
9953 CONFIG_CXXOPTIMIZE=""
9954 { echo "$as_me:$LINENO: result: disabling optimizations" >&5
9955 echo "${ECHO_T}disabling optimizations" >&6; } ;;
9957 CONFIG_CXXOPTIMIZE="$enable_optimize"
9958 { echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
9959 echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6; } ;;
9962 #--------------------------------------------------------------------
9963 # Substitute TeXmacs specific configuration parameters
9964 #--------------------------------------------------------------------
9990 #--------------------------------------------------------------------
9991 # Default paths for installation
9992 #--------------------------------------------------------------------
9994 if test "$prefix" = ""; then
9997 if test "$prefix" = "NONE"; then
10000 if test "$exec_prefix" = ""; then
10001 exec_prefix='${prefix}'
10003 if test "$exec_prefix" = "NONE"; then
10004 exec_prefix='${prefix}'
10006 if test "$exec_prefix" = '${prefix}'; then
10007 exec_prefix='${prefix}'
10009 if test "$includedir" = ""; then
10010 includedir='${prefix}/include'
10012 if test "$includedir" = "NONE"; then
10013 includedir='${prefix}/include'
10015 if test "$includedir" = '${prefix}/include'; then
10016 includedir='${prefix}/include'
10018 if test "$libdir" = ""; then
10019 libdir='${exec_prefix}/lib'
10021 if test "$libdir" = "NONE"; then
10022 libdir='${exec_prefix}/lib'
10024 if test "$libdir" = '${exec_prefix}/lib'; then
10025 libdir='${exec_prefix}/lib'
10027 if test "$bindir" = ""; then
10028 bindir='${exec_prefix}/bin'
10030 if test "$bindir" = "NONE"; then
10031 bindir=${exec_prefix}/bin
10033 if test "$bindir" = '${exec_prefix}/bin'; then
10034 bindir='${exec_prefix}/bin'
10036 if test "$datarootdir" = ""; then
10037 datarootdir='${prefix}/share'
10039 if test "$datarootdir" = "NONE"; then
10040 datarootdir='${prefix}/share'
10042 if test "$datarootdir" = '${prefix}/share'; then
10043 datarootdir='${prefix}/share'
10045 if test "$datadir" = ""; then
10046 datadir='${prefix}/share'
10048 if test "$datadir" = "NONE"; then
10049 datadir='${prefix}/share'
10051 if test "$datadir" = '${prefix}/share'; then
10052 datadir='${prefix}/share'
10054 if test "$mandir" = ""; then
10055 mandir='${datarootdir}/man'
10057 if test "$mandir" = "NONE"; then
10058 mandir='${datarootdir}/man'
10060 if test "$mandir" = '${datarootdir}/man'; then
10061 mandir='${datarootdir}/man'
10063 if test "$libexecdir" = ""; then
10064 libexecdir='${exec_prefix}/libexec'
10066 if test "$libexecdir" = "NONE"; then
10067 libexecdir='${exec_prefix}/libexec'
10069 if test "$libexecdir" = '${exec_prefix}/libexec'; then
10070 libexecdir='${exec_prefix}/libexec'
10076 tmsrc=${curdir}/${tmdir}
10077 tmbin=${libexecdir}/${tmdir}
10078 tmdata=${datadir}/${tmdir}
10085 if test "$DEVEL_RELEASE" = "1"; then
10086 tmtgz=${PACKAGE}-${DEVEL_VERSION}
10088 tmtgz=${PACKAGE}-${DEVEL_VERSION}-R${DEVEL_RELEASE}
10090 tmrpm=${PACKAGE}-${DEVEL_VERSION}-${DEVEL_RELEASE}
10091 if test "$STABLE_RELEASE" = "1"; then
10092 tmstgz=${PACKAGE}-${STABLE_VERSION}
10094 tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
10096 tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
10097 if test "$WINDOWS_RELEASE" = "1"; then
10098 tmwin=wintexmacs-${WINDOWS_VERSION}
10100 tmwin=wintexmacs-${WINDOWS_VERSION}-R${WINDOWS_RELEASE}
10108 #--------------------------------------------------------------------
10110 #--------------------------------------------------------------------
10112 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"
10114 cat >confcache <<\_ACEOF
10115 # This file is a shell script that caches the results of configure
10116 # tests run on this system so they can be shared between configure
10117 # scripts and configure runs, see configure's option --config-cache.
10118 # It is not useful on other systems. If it contains results you don't
10119 # want to keep, you may remove or edit it.
10121 # config.status only pays attention to the cache file if you give it
10122 # the --recheck option to rerun configure.
10124 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10126 # following values.
10130 # The following way of writing the cache mishandles newlines in values,
10131 # but we know of no workaround that is simple, portable, and efficient.
10132 # So, we kill variables containing newlines.
10133 # Ultrix sh set writes to stderr and can't be redirected directly,
10134 # and sets the high bit in the cache file unless we assign to the vars.
10136 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10137 eval ac_val
=\$
$ac_var
10141 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10142 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10145 _ | IFS | as_nl
) ;; #(
10146 *) $as_unset $ac_var ;;
10152 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10153 *${as_nl}ac_space
=\
*)
10154 # `set' does not quote correctly, so add quotes (double-quote
10155 # substitution turns \\\\ into \\, and sed turns \\ into \).
10158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10161 # `set' quotes correctly as required by POSIX, so do not add quotes.
10162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10175 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10176 if test -w "$cache_file"; then
10177 test "x$cache_file" != "x/dev/null" &&
10178 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10179 echo "$as_me: updating cache $cache_file" >&6;}
10180 cat confcache
>$cache_file
10182 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10183 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10188 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10189 # Let make expand exec_prefix.
10190 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10192 DEFS
=-DHAVE_CONFIG_H
10196 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10197 # 1. Remove the extension, and $U if already installed.
10198 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10199 ac_i
=`echo "$ac_i" | sed "$ac_script"`
10200 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10201 # will be set to the directory where LIBOBJS objects are built.
10202 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10203 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10205 LIBOBJS
=$ac_libobjs
10207 LTLIBOBJS
=$ac_ltlibobjs
10211 : ${CONFIG_STATUS=./config.status}
10212 ac_clean_files_save
=$ac_clean_files
10213 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10214 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10215 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10216 cat >$CONFIG_STATUS <<_ACEOF
10218 # Generated by $as_me.
10219 # Run this file to recreate the current configuration.
10220 # Compiler output produced by configure, useful for debugging
10221 # configure, is in config.log if it exists.
10224 ac_cs_recheck=false
10226 SHELL=\${CONFIG_SHELL-$SHELL}
10229 cat >>$CONFIG_STATUS <<\_ACEOF
10230 ## --------------------- ##
10231 ## M4sh Initialization. ##
10232 ## --------------------- ##
10234 # Be more Bourne compatible
10235 DUALCASE
=1; export DUALCASE
# for MKS sh
10236 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
10239 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10240 # is contrary to our usage. Disable this feature.
10241 alias -g '${1+"$@"}'='"$@"'
10242 setopt NO_GLOB_SUBST
10244 case `(set -o) 2>/dev/null` in
10245 *posix
*) set -o posix
;;
10254 # Avoid depending upon Character Ranges.
10255 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10256 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10257 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10258 as_cr_digits
='0123456789'
10259 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10261 # The user is always right.
10262 if test "${PATH_SEPARATOR+set}" != set; then
10263 echo "#! /bin/sh" >conf$$.sh
10264 echo "exit 0" >>conf$$.sh
10266 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10274 # Support unset when possible.
10275 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
10283 # We need space, tab and new line, in precisely that order. Quoting is
10284 # there to prevent editors from complaining about space-tab.
10285 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10286 # splitting by setting IFS to empty value.)
10291 # Find who we are. Look in the path if we contain no directory separator.
10293 *[\\/]* ) as_myself
=$0 ;;
10294 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10295 for as_dir
in $PATH
10298 test -z "$as_dir" && as_dir
=.
10299 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
10305 # We did not find ourselves, most probably we were run as `sh COMMAND'
10306 # in which case we are not to be found in the path.
10307 if test "x$as_myself" = x
; then
10310 if test ! -f "$as_myself"; then
10311 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10312 { (exit 1); exit 1; }
10315 # Work around bugs in pre-3.0 UWIN ksh.
10316 for as_var
in ENV MAIL MAILPATH
10317 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10325 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10326 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10327 LC_TELEPHONE LC_TIME
10329 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10330 eval $as_var=C
; export $as_var
10332 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
10336 # Required to use basename.
10337 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10338 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10344 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10345 as_basename
=basename
10351 # Name of the executable.
10352 as_me
=`$as_basename -- "$0" ||
10353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10354 X"$0" : 'X\(//\)$' \| \
10355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10357 sed '/^.*\/\([^/][^/]*\)\/*$/{
10376 as_lineno_1
=$LINENO
10377 as_lineno_2
=$LINENO
10378 test "x$as_lineno_1" != "x$as_lineno_2" &&
10379 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
10381 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10382 # uniformly replaced by the line number. The first 'sed' inserts a
10383 # line-number line after each line using $LINENO; the second 'sed'
10384 # does the real work. The second script uses 'N' to pair each
10385 # line-number line with the line containing $LINENO, and appends
10386 # trailing '-' during substitution so that $LINENO is not a special
10387 # case at line end.
10388 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10389 # scripts with optimization help from Paolo Bonzini. Blame Lee
10390 # E. McMahon (1931-1989) for sed's syntax. :-)
10402 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10405 ' >$as_me.lineno
&&
10406 chmod +x
"$as_me.lineno" ||
10407 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10408 { (exit 1); exit 1; }; }
10410 # Don't try to exec as it changes $[0], causing all sort of problems
10411 # (the dirname of $[0] is not the place where we might find the
10412 # original and so on. Autoconf is especially sensitive to this).
10413 .
"./$as_me.lineno"
10414 # Exit status is that of the last command.
10419 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10425 ECHO_C
= ECHO_N
= ECHO_T
=
10426 case `echo -n x` in
10428 case `echo 'x\c'` in
10429 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10436 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10437 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10443 rm -f conf$$ conf$$.exe conf$$.
file
10444 if test -d conf$$.dir
; then
10445 rm -f conf$$.dir
/conf$$.
file
10451 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10453 # ... but there are two gotchas:
10454 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10455 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10456 # In both cases, we have to default to `cp -p'.
10457 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10459 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10464 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10465 rmdir conf$$.dir
2>/dev
/null
10467 if mkdir
-p .
2>/dev
/null
; then
10470 test -d .
/-p && rmdir .
/-p
10474 if test -x / >/dev
/null
2>&1; then
10475 as_test_x
='test -x'
10477 if ls -dL / >/dev
/null
2>&1; then
10484 if test -d "$1"; then
10490 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10491 ???[sx]*):;;*)false;;esac;fi
10495 as_executable_p
=$as_test_x
10497 # Sed expression to map a string onto a valid CPP name.
10498 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10500 # Sed expression to map a string onto a valid variable name.
10501 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10506 # Save the log message, to keep $[0] and so on meaningful, and to
10507 # report actual input values of CONFIG_FILES etc. instead of their
10508 # values after options handling.
10510 This file was extended by $as_me, which was
10511 generated by GNU Autoconf 2.61. Invocation command line was
10513 CONFIG_FILES = $CONFIG_FILES
10514 CONFIG_HEADERS = $CONFIG_HEADERS
10515 CONFIG_LINKS = $CONFIG_LINKS
10516 CONFIG_COMMANDS = $CONFIG_COMMANDS
10519 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10524 cat >>$CONFIG_STATUS <<_ACEOF
10525 # Files that config.status was made for.
10526 config_files="$ac_config_files"
10527 config_headers="$ac_config_headers"
10531 cat >>$CONFIG_STATUS <<\_ACEOF
10533 \`$as_me' instantiates files from templates according to the
10534 current configuration.
10536 Usage: $0 [OPTIONS] [FILE]...
10538 -h, --help print this help, then exit
10539 -V, --version print version number and configuration settings, then exit
10540 -q, --quiet do not print progress messages
10541 -d, --debug don't remove temporary files
10542 --recheck update $as_me by reconfiguring in the same conditions
10543 --file=FILE[:TEMPLATE]
10544 instantiate the configuration file FILE
10545 --header=FILE[:TEMPLATE]
10546 instantiate the configuration header FILE
10548 Configuration files:
10551 Configuration headers:
10554 Report bugs to <bug-autoconf@gnu.org>."
10557 cat >>$CONFIG_STATUS <<_ACEOF
10560 configured by $0, generated by GNU Autoconf 2.61,
10561 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10563 Copyright (C) 2006 Free Software Foundation, Inc.
10564 This config.status script is free software; the Free Software Foundation
10565 gives unlimited permission to copy, distribute and modify it."
10571 cat >>$CONFIG_STATUS <<\_ACEOF
10572 # If no file are specified by the user, then we need to provide default
10573 # value. By we need to know if files were specified by the user.
10579 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10580 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10591 # Handling of the options.
10592 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10594 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10595 echo "$ac_cs_version"; exit ;;
10596 --debug |
--debu |
--deb |
--de |
--d |
-d )
10598 --file |
--fil |
--fi |
--f )
10600 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
10601 ac_need_defaults
=false
;;
10602 --header |
--heade |
--head |
--hea )
10604 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
10605 ac_need_defaults
=false
;;
10607 # Conflict between --help and --header
10608 { echo "$as_me: error: ambiguous option: $1
10609 Try \`$0 --help' for more information." >&2
10610 { (exit 1); exit 1; }; };;
10611 --help |
--hel |
-h )
10612 echo "$ac_cs_usage"; exit ;;
10613 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10614 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10617 # This is an error.
10618 -*) { echo "$as_me: error: unrecognized option: $1
10619 Try \`$0 --help' for more information." >&2
10620 { (exit 1); exit 1; }; } ;;
10622 *) ac_config_targets
="$ac_config_targets $1"
10623 ac_need_defaults
=false
;;
10629 ac_configure_extra_args
=
10631 if $ac_cs_silent; then
10633 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10637 cat >>$CONFIG_STATUS <<_ACEOF
10638 if \$ac_cs_recheck; then
10639 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10640 CONFIG_SHELL=$SHELL
10641 export CONFIG_SHELL
10642 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10646 cat >>$CONFIG_STATUS <<\_ACEOF
10650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10651 ## Running $as_me. ##
10657 cat >>$CONFIG_STATUS <<_ACEOF
10660 cat >>$CONFIG_STATUS <<\_ACEOF
10662 # Handling of arguments.
10663 for ac_config_target
in $ac_config_targets
10665 case $ac_config_target in
10666 "src/System/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/System/config.h:src/System/config.in" ;;
10667 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile:Makefile.in" ;;
10668 "src/makefile") CONFIG_FILES
="$CONFIG_FILES src/makefile:src/makefile.in" ;;
10669 "src/System/tm_configure.hpp") CONFIG_FILES
="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
10670 "misc/admin/admin.makefile") CONFIG_FILES
="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
10671 "misc/doxygen/Doxyfile") CONFIG_FILES
="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
10672 "misc/man/texmacs.1") CONFIG_FILES
="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
10673 "misc/rpm/TeXmacs.spec") CONFIG_FILES
="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
10674 "misc/scripts/fig2ps") CONFIG_FILES
="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
10675 "misc/scripts/texmacs") CONFIG_FILES
="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
10676 "TeXmacs/examples/plugins/dynlink/Makefile") CONFIG_FILES
="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
10677 "misc/bundle/Base.xcconfig") CONFIG_FILES
="$CONFIG_FILES misc/bundle/Base.xcconfig:misc/bundle/Base.xcconfig.in" ;;
10679 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10680 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10681 { (exit 1); exit 1; }; };;
10686 # If the user did not use the arguments to specify the items to instantiate,
10687 # then the envvar interface is used. Set only those that are not.
10688 # We use the long form for the default assignment because of an extremely
10689 # bizarre bug on SunOS 4.1.3.
10690 if $ac_need_defaults; then
10691 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10692 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10695 # Have a temporary directory for convenience. Make it in the build tree
10696 # simply because there is no reason against having it here, and in addition,
10697 # creating and moving files from /tmp can sometimes cause problems.
10698 # Hook for its removal unless debugging.
10699 # Note that there is a small window in which the directory will not be cleaned:
10700 # after its creation but before its name has been assigned to `$tmp'.
10704 trap 'exit_status=$?
10705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10707 trap '{ (exit 1); exit 1; }' 1 2 13 15
10709 # Create a (secure) tmp directory for tmp files.
10712 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10713 test -n "$tmp" && test -d "$tmp"
10716 tmp
=.
/conf$$
-$RANDOM
10717 (umask 077 && mkdir
"$tmp")
10720 echo "$me: cannot create a temporary directory in ." >&2
10721 { (exit 1); exit 1; }
10725 # Set up the sed scripts for CONFIG_FILES section.
10728 # No need to generate the scripts if there are no CONFIG_FILES.
10729 # This happens for instance when ./config.status config.h
10730 if test -n "$CONFIG_FILES"; then
10737 for ac_last_try
in false false false false false
:; do
10738 cat >conf$
$subs.
sed <<_ACEOF
10739 SHELL!$SHELL$ac_delim
10740 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10741 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10742 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10743 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10744 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10745 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10746 exec_prefix!$exec_prefix$ac_delim
10747 prefix!$prefix$ac_delim
10748 program_transform_name!$program_transform_name$ac_delim
10749 bindir!$bindir$ac_delim
10750 sbindir!$sbindir$ac_delim
10751 libexecdir!$libexecdir$ac_delim
10752 datarootdir!$datarootdir$ac_delim
10753 datadir!$datadir$ac_delim
10754 sysconfdir!$sysconfdir$ac_delim
10755 sharedstatedir!$sharedstatedir$ac_delim
10756 localstatedir!$localstatedir$ac_delim
10757 includedir!$includedir$ac_delim
10758 oldincludedir!$oldincludedir$ac_delim
10759 docdir!$docdir$ac_delim
10760 infodir!$infodir$ac_delim
10761 htmldir!$htmldir$ac_delim
10762 dvidir!$dvidir$ac_delim
10763 pdfdir!$pdfdir$ac_delim
10764 psdir!$psdir$ac_delim
10765 libdir!$libdir$ac_delim
10766 localedir!$localedir$ac_delim
10767 mandir!$mandir$ac_delim
10768 DEFS!$DEFS$ac_delim
10769 ECHO_C!$ECHO_C$ac_delim
10770 ECHO_N!$ECHO_N$ac_delim
10771 ECHO_T!$ECHO_T$ac_delim
10772 LIBS!$LIBS$ac_delim
10773 build_alias!$build_alias$ac_delim
10774 host_alias!$host_alias$ac_delim
10775 target_alias!$target_alias$ac_delim
10776 build!$build$ac_delim
10777 build_cpu!$build_cpu$ac_delim
10778 build_vendor!$build_vendor$ac_delim
10779 build_os!$build_os$ac_delim
10780 host!$host$ac_delim
10781 host_cpu!$host_cpu$ac_delim
10782 host_vendor!$host_vendor$ac_delim
10783 host_os!$host_os$ac_delim
10784 PACKAGE!$PACKAGE$ac_delim
10785 DEVEL_VERSION!$DEVEL_VERSION$ac_delim
10786 DEVEL_RELEASE!$DEVEL_RELEASE$ac_delim
10787 STABLE_VERSION!$STABLE_VERSION$ac_delim
10788 STABLE_RELEASE!$STABLE_RELEASE$ac_delim
10790 CFLAGS!$CFLAGS$ac_delim
10791 LDFLAGS!$LDFLAGS$ac_delim
10792 CPPFLAGS!$CPPFLAGS$ac_delim
10793 ac_ct_CC!$ac_ct_CC$ac_delim
10794 EXEEXT!$EXEEXT$ac_delim
10795 OBJEXT!$OBJEXT$ac_delim
10797 CXXFLAGS!$CXXFLAGS$ac_delim
10798 ac_ct_CXX!$ac_ct_CXX$ac_delim
10799 GUILE_CFLAGS!$GUILE_CFLAGS$ac_delim
10800 GUILE_LDFLAGS!$GUILE_LDFLAGS$ac_delim
10801 CONFIG_GUILE_SERIAL!$CONFIG_GUILE_SERIAL$ac_delim
10802 CXXCPP!$CXXCPP$ac_delim
10803 GREP!$GREP$ac_delim
10804 EGREP!$EGREP$ac_delim
10805 XMKMF!$XMKMF$ac_delim
10806 X_CFLAGS!$X_CFLAGS$ac_delim
10807 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
10808 X_LIBS!$X_LIBS$ac_delim
10809 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
10810 CONFIG_BDL!$CONFIG_BDL$ac_delim
10812 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
10813 ICONV_LDFLAGS!$ICONV_LDFLAGS$ac_delim
10814 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
10815 FREETYPE_LDFLAGS!$FREETYPE_LDFLAGS$ac_delim
10816 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
10817 CAIRO_LDFLAGS!$CAIRO_LDFLAGS$ac_delim
10818 IMLIB2_CFLAGS!$IMLIB2_CFLAGS$ac_delim
10819 IMLIB2_LDFLAGS!$IMLIB2_LDFLAGS$ac_delim
10820 AXEL_CFLAGS!$AXEL_CFLAGS$ac_delim
10821 AXEL_LDFLAGS!$AXEL_LDFLAGS$ac_delim
10822 HAS_GS_EXE!$HAS_GS_EXE$ac_delim
10823 HAS_GS_LIB!$HAS_GS_LIB$ac_delim
10824 CONFIG_GS!$CONFIG_GS$ac_delim
10825 GS_EXE!$GS_EXE$ac_delim
10826 GS_DLL!$GS_DLL$ac_delim
10827 CONFIG_EXPERIMENTAL!$CONFIG_EXPERIMENTAL$ac_delim
10828 CONFIG_MACOS!$CONFIG_MACOS$ac_delim
10829 QMAKE!$QMAKE$ac_delim
10833 QT_PATH!$QT_PATH$ac_delim
10834 TMPDIR!$TMPDIR$ac_delim
10835 QT_VERSION_MAJOR!$QT_VERSION_MAJOR$ac_delim
10838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10840 elif $ac_last_try; then
10841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10843 { (exit 1); exit 1; }; }
10845 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10849 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10850 if test -n "$ac_eof"; then
10851 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10852 ac_eof
=`expr $ac_eof + 1`
10855 cat >>$CONFIG_STATUS <<_ACEOF
10856 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10861 s/^/s,@/; s/!/@,|#_!!_#|/
10864 s/'"$ac_delim"'$/,g/; t
10866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10867 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10868 rm -f conf$
$subs.
sed
10869 cat >>$CONFIG_STATUS <<_ACEOF
10875 for ac_last_try
in false false false false false
:; do
10876 cat >conf$
$subs.
sed <<_ACEOF
10877 QT_DEFINES!$QT_DEFINES$ac_delim
10878 QT_CFLAGS!$QT_CFLAGS$ac_delim
10879 QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
10880 QT_INCPATH!$QT_INCPATH$ac_delim
10881 QT_CPPFLAGS!$QT_CPPFLAGS$ac_delim
10882 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
10883 QT_LFLAGS!$QT_LFLAGS$ac_delim
10884 QT_LIBS!$QT_LIBS$ac_delim
10885 X11_CFLAGS!$X11_CFLAGS$ac_delim
10886 X11_LDFLAGS!$X11_LDFLAGS$ac_delim
10887 COCOA_CFLAGS!$COCOA_CFLAGS$ac_delim
10888 COCOA_LDFLAGS!$COCOA_LDFLAGS$ac_delim
10889 CONFIG_X11!$CONFIG_X11$ac_delim
10890 CONFIG_COCOA!$CONFIG_COCOA$ac_delim
10891 CONFIG_QT!$CONFIG_QT$ac_delim
10892 CONFIG_GUI!$CONFIG_GUI$ac_delim
10893 CONFIG_GUI_DEFINE!$CONFIG_GUI_DEFINE$ac_delim
10894 CONFIG_CXXDIALECT!$CONFIG_CXXDIALECT$ac_delim
10895 CONFIG_OS!$CONFIG_OS$ac_delim
10896 CONFIG_OS_SUFFIX!$CONFIG_OS_SUFFIX$ac_delim
10897 CONFIG_OS_COMPAT!$CONFIG_OS_COMPAT$ac_delim
10898 CONFIG_CXXWARNING!$CONFIG_CXXWARNING$ac_delim
10899 CONFIG_CXXTEMPLATE!$CONFIG_CXXTEMPLATE$ac_delim
10900 CONFIG_CXXOPTIMIZE!$CONFIG_CXXOPTIMIZE$ac_delim
10901 CONFIG_CXXDEBUG!$CONFIG_CXXDEBUG$ac_delim
10902 CONFIG_BFLAGS!$CONFIG_BFLAGS$ac_delim
10903 CONFIG_BSTATIC!$CONFIG_BSTATIC$ac_delim
10904 CONFIG_BSHARED!$CONFIG_BSHARED$ac_delim
10905 CONFIG_BPATH!$CONFIG_BPATH$ac_delim
10906 CONFIG_WORD_LENGTH!$CONFIG_WORD_LENGTH$ac_delim
10907 CONFIG_WORD_LENGTH_INC!$CONFIG_WORD_LENGTH_INC$ac_delim
10908 CONFIG_WORD_MASK!$CONFIG_WORD_MASK$ac_delim
10909 CONFIG_MAX_FAST!$CONFIG_MAX_FAST$ac_delim
10910 CONFIG_CXXFLAGS!$CONFIG_CXXFLAGS$ac_delim
10911 CONFIG_STD_SETENV!$CONFIG_STD_SETENV$ac_delim
10912 CONFIG_SO!$CONFIG_SO$ac_delim
10913 CONFIG_LIB_PATH!$CONFIG_LIB_PATH$ac_delim
10914 CONFIG_STRIP!$CONFIG_STRIP$ac_delim
10915 CONFIG_CHMOD!$CONFIG_CHMOD$ac_delim
10916 CONFIG_LDRT!$CONFIG_LDRT$ac_delim
10917 CONFIG_NATIVE_ARCH_TAG!$CONFIG_NATIVE_ARCH_TAG$ac_delim
10918 tmorig!$tmorig$ac_delim
10919 tmdir!$tmdir$ac_delim
10920 tmsrc!$tmsrc$ac_delim
10921 tmbin!$tmbin$ac_delim
10922 tmdata!$tmdata$ac_delim
10923 tmtgz!$tmtgz$ac_delim
10924 tmrpm!$tmrpm$ac_delim
10925 tmstgz!$tmstgz$ac_delim
10926 tmsrpm!$tmsrpm$ac_delim
10927 tmwin!$tmwin$ac_delim
10928 LIBOBJS!$LIBOBJS$ac_delim
10929 LTLIBOBJS!$LTLIBOBJS$ac_delim
10932 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
10934 elif $ac_last_try; then
10935 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10936 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10937 { (exit 1); exit 1; }; }
10939 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
10943 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10944 if test -n "$ac_eof"; then
10945 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
10946 ac_eof
=`expr $ac_eof + 1`
10949 cat >>$CONFIG_STATUS <<_ACEOF
10950 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10951 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10954 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10955 s/^/s,@/; s/!/@,|#_!!_#|/
10958 s/'"$ac_delim"'$/,g/; t
10960 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10961 ' >>$CONFIG_STATUS <conf$
$subs.
sed
10962 rm -f conf$
$subs.
sed
10963 cat >>$CONFIG_STATUS <<_ACEOF
10970 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10971 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10972 # trailing colons and then remove the whole line if VPATH becomes empty
10973 # (actually we leave an empty line to preserve line numbers).
10974 if test "x$srcdir" = x.
; then
10975 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
10976 s/:*\$(srcdir):*/:/
10977 s/:*\${srcdir}:*/:/
10979 s/^\([^=]*=[ ]*\):*/\1/
10985 cat >>$CONFIG_STATUS <<\_ACEOF
10986 fi # test -n "$CONFIG_FILES"
10989 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
10992 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10994 case $ac_mode$ac_tag in
10996 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10997 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10998 { (exit 1); exit 1; }; };;
10999 :[FH
]-) ac_tag
=-:-;;
11000 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11017 -) ac_f
="$tmp/stdin";;
11018 *) # Look for the file first in the build tree, then in the source tree
11019 # (if the path is not absolute). The absolute path cannot be DOS-style,
11020 # because $ac_f cannot contain `:'.
11024 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11026 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11027 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11028 { (exit 1); exit 1; }; };;
11030 ac_file_inputs
="$ac_file_inputs $ac_f"
11033 # Let's still pretend it is `configure' which instantiates (i.e., don't
11034 # use $as_me), people would be surprised to read:
11035 # /* config.h. Generated by config.status. */
11036 configure_input
="Generated from "`IFS=:
11037 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11038 if test x
"$ac_file" != x-
; then
11039 configure_input
="$ac_file. $configure_input"
11040 { echo "$as_me:$LINENO: creating $ac_file" >&5
11041 echo "$as_me: creating $ac_file" >&6;}
11045 *:-:* |
*:-) cat >"$tmp/stdin";;
11050 ac_dir
=`$as_dirname -- "$ac_file" ||
11051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11052 X"$ac_file" : 'X\(//\)[^/]' \| \
11053 X"$ac_file" : 'X\(//\)$' \| \
11054 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11060 /^X\(\/\/\)[^/].*/{
11075 -*) as_dir
=.
/$as_dir;;
11077 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
11081 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11082 *) as_qdir
=$as_dir;;
11084 as_dirs
="'$as_qdir' $as_dirs"
11085 as_dir
=`$as_dirname -- "$as_dir" ||
11086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11087 X"$as_dir" : 'X\(//\)[^/]' \| \
11088 X"$as_dir" : 'X\(//\)$' \| \
11089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11095 /^X\(\/\/\)[^/].*/{
11108 test -d "$as_dir" && break
11110 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11111 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11112 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11113 { (exit 1); exit 1; }; }; }
11117 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11119 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11120 # A ".." for each directory in $ac_dir_suffix.
11121 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11122 case $ac_top_builddir_sub in
11123 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11124 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11127 ac_abs_top_builddir
=$ac_pwd
11128 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11129 # for backward compatibility:
11130 ac_top_builddir
=$ac_top_build_prefix
11133 .
) # We are building in place.
11135 ac_top_srcdir
=$ac_top_builddir_sub
11136 ac_abs_top_srcdir
=$ac_pwd ;;
11137 [\\/]* | ?
:[\\/]* ) # Absolute name.
11138 ac_srcdir
=$srcdir$ac_dir_suffix;
11139 ac_top_srcdir
=$srcdir
11140 ac_abs_top_srcdir
=$srcdir ;;
11141 *) # Relative name.
11142 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11143 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11144 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11146 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11157 cat >>$CONFIG_STATUS <<\_ACEOF
11158 # If the template does not know about datarootdir, expand it.
11159 # FIXME: This hack should be removed a few years after 2.60.
11160 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11162 case `sed -n '/datarootdir/ {
11171 ' $ac_file_inputs` in
11172 *datarootdir
*) ac_datarootdir_seen
=yes;;
11173 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11174 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11175 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11177 cat >>$CONFIG_STATUS <<_ACEOF
11178 ac_datarootdir_hack='
11179 s&@datadir@&$datadir&g
11180 s&@docdir@&$docdir&g
11181 s&@infodir@&$infodir&g
11182 s&@localedir@&$localedir&g
11183 s&@mandir@&$mandir&g
11184 s&\\\${datarootdir}&$datarootdir&g' ;;
11188 # Neutralize VPATH when `$srcdir' = `.'.
11189 # Shell code in configure.ac might set extrasub.
11190 # FIXME: do we really want to maintain this feature?
11191 cat >>$CONFIG_STATUS <<_ACEOF
11195 cat >>$CONFIG_STATUS <<\_ACEOF
11197 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11198 s
&@configure_input@
&$configure_input&;t t
11199 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11200 s
&@srcdir@
&$ac_srcdir&;t t
11201 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11202 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11203 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11204 s
&@builddir@
&$ac_builddir&;t t
11205 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11206 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11207 $ac_datarootdir_hack
11208 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
11210 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11211 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11213 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11214 which seems to be undefined. Please make sure it is defined." >&5
11215 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11216 which seems to be undefined. Please make sure it is defined." >&2;}
11220 -) cat "$tmp/out"; rm -f "$tmp/out";;
11221 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11230 # Transform confdefs.h into a sed script `conftest.defines', that
11231 # substitutes the proper values into config.h.in to produce config.h.
11232 rm -f conftest.defines conftest.
tail
11233 # First, append a space to every undef/define line, to ease matching.
11234 echo 's/$/ /' >conftest.defines
11235 # Then, protect against being on the right side of a sed subst, or in
11236 # an unquoted here document, in config.status. If some macros were
11237 # called several times there might be several #defines for the same
11238 # symbol, which is useless. But do not sort them, since the last
11239 # AC_DEFINE must be honored.
11240 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
11241 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11242 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11243 # PARAMS is the parameter list in the macro definition--in most cases, it's
11244 # just an empty string.
11245 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
11246 ac_dB
='\\)[ (].*,\\1define\\2'
11254 s/^[ ]*#[ ]*define[ ][ ]*//
11259 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11260 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11261 ' >>conftest.defines
11263 # Remove the space that was appended to ease matching.
11264 # Then replace #undef with comments. This is necessary, for
11265 # example, in the case of _POSIX_SOURCE, which is predefined and required
11266 # on some systems where configure will not decide to define it.
11267 # (The regexp can be short, since the line contains either #define or #undef.)
11269 s,^[ #]*u.*,/* & */,' >>conftest.defines
11271 # Break up conftest.defines:
11272 ac_max_sed_lines
=50
11274 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11275 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11276 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11278 ac_in
='$ac_file_inputs'
11279 ac_out
='"$tmp/out1"'
11280 ac_nxt
='"$tmp/out2"'
11284 # Write a here document:
11285 cat >>$CONFIG_STATUS <<_ACEOF
11286 # First, check the format of the line:
11287 cat >"\$tmp/defines.sed" <<\\CEOF
11288 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
11289 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
11293 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
11295 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11296 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
11297 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
11298 grep . conftest.
tail >/dev
/null ||
break
11299 rm -f conftest.defines
11300 mv conftest.
tail conftest.defines
11302 rm -f conftest.defines conftest.
tail
11304 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11305 cat >>$CONFIG_STATUS <<\_ACEOF
11306 if test x
"$ac_file" != x-
; then
11307 echo "/* $configure_input */" >"$tmp/config.h"
11308 cat "$ac_result" >>"$tmp/config.h"
11309 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
11310 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11311 echo "$as_me: $ac_file is unchanged" >&6;}
11314 mv "$tmp/config.h" $ac_file
11317 echo "/* $configure_input */"
11329 { (exit 0); exit 0; }
11331 chmod +x
$CONFIG_STATUS
11332 ac_clean_files
=$ac_clean_files_save
11335 # configure is writing to config.log, and then calls config.status.
11336 # config.status does its own redirection, appending to config.log.
11337 # Unfortunately, on DOS this fails, as config.log is still kept open
11338 # by configure, so config.status won't be able to write to it; its
11339 # output is simply discarded. So we exec the FD to /dev/null,
11340 # effectively closing config.log, so it can be properly (re)opened and
11341 # appended to by config.status. When coming back to configure, we
11342 # need to make the FD available again.
11343 if test "$no_create" != yes; then
11345 ac_config_status_args
=
11346 test "$silent" = yes &&
11347 ac_config_status_args
="$ac_config_status_args --quiet"
11349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11352 # would make configure fail if this is the last instruction.
11353 $ac_cs_success ||
{ (exit 1); exit 1; }