2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for gnuplot 4.2.6.
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.
573 PACKAGE_NAME='gnuplot'
574 PACKAGE_TARNAME='gnuplot'
575 PACKAGE_VERSION='4.2.6'
576 PACKAGE_STRING='gnuplot 4.2.6'
579 ac_unique_file="src/graphics.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
667 INSTALL_STRIP_PROGRAM
706 BUILD_SRC_BEOS_SUBDIR_TRUE
707 BUILD_SRC_BEOS_SUBDIR_FALSE
710 INCLUDE_BINARY_C_TRUE
711 INCLUDE_BINARY_C_FALSE
731 BUILD_WXWIDGETS_FALSE
744 ac_precious_vars='build_alias
767 ac_subdirs_all='lisp'
769 # Initialize some variables set by options.
771 ac_init_version=false
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
781 program_transform_name=s,x,x,
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
806 infodir='${datarootdir}/info'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
873 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
874 { (exit 1); exit 1; }; }
875 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
876 eval enable_$ac_feature=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 -enable-* | --enable-*)
889 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895 eval enable_$ac_feature=\$ac_optarg ;;
897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899 | --exec | --exe | --ex)
900 ac_prev=exec_prefix ;;
901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903 | --exec=* | --exe=* | --ex=*)
904 exec_prefix=$ac_optarg ;;
906 -gas | --gas | --ga | --g)
907 # Obsolete; use --with-gas.
910 -help | --help | --hel | --he | -h)
912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913 ac_init_help=recursive ;;
914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915 ac_init_help=short ;;
917 -host | --host | --hos | --ho)
918 ac_prev=host_alias ;;
919 -host=* | --host=* | --hos=* | --ho=*)
920 host_alias=$ac_optarg ;;
922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
926 htmldir=$ac_optarg ;;
928 -includedir | --includedir | --includedi | --included | --include \
929 | --includ | --inclu | --incl | --inc)
930 ac_prev=includedir ;;
931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932 | --includ=* | --inclu=* | --incl=* | --inc=*)
933 includedir=$ac_optarg ;;
935 -infodir | --infodir | --infodi | --infod | --info | --inf)
937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938 infodir=$ac_optarg ;;
940 -libdir | --libdir | --libdi | --libd)
942 -libdir=* | --libdir=* | --libdi=* | --libd=*)
945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946 | --libexe | --libex | --libe)
947 ac_prev=libexecdir ;;
948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949 | --libexe=* | --libex=* | --libe=*)
950 libexecdir=$ac_optarg ;;
952 -localedir | --localedir | --localedi | --localed | --locale)
954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955 localedir=$ac_optarg ;;
957 -localstatedir | --localstatedir | --localstatedi | --localstated \
958 | --localstate | --localstat | --localsta | --localst | --locals)
959 ac_prev=localstatedir ;;
960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962 localstatedir=$ac_optarg ;;
964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
970 # Obsolete; use --without-fp.
973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974 | --no-cr | --no-c | -n)
977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983 | --oldin | --oldi | --old | --ol | --o)
984 ac_prev=oldincludedir ;;
985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988 oldincludedir=$ac_optarg ;;
990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995 -program-prefix | --program-prefix | --program-prefi | --program-pref \
996 | --program-pre | --program-pr | --program-p)
997 ac_prev=program_prefix ;;
998 -program-prefix=* | --program-prefix=* | --program-prefi=* \
999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000 program_prefix=$ac_optarg ;;
1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003 | --program-suf | --program-su | --program-s)
1004 ac_prev=program_suffix ;;
1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007 program_suffix=$ac_optarg ;;
1009 -program-transform-name | --program-transform-name \
1010 | --program-transform-nam | --program-transform-na \
1011 | --program-transform-n | --program-transform- \
1012 | --program-transform | --program-transfor \
1013 | --program-transfo | --program-transf \
1014 | --program-trans | --program-tran \
1015 | --progr-tra | --program-tr | --program-t)
1016 ac_prev=program_transform_name ;;
1017 -program-transform-name=* | --program-transform-name=* \
1018 | --program-transform-nam=* | --program-transform-na=* \
1019 | --program-transform-n=* | --program-transform-=* \
1020 | --program-transform=* | --program-transfor=* \
1021 | --program-transfo=* | --program-transf=* \
1022 | --program-trans=* | --program-tran=* \
1023 | --progr-tra=* | --program-tr=* | --program-t=*)
1024 program_transform_name=$ac_optarg ;;
1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029 pdfdir=$ac_optarg ;;
1031 -psdir | --psdir | --psdi | --psd | --ps)
1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037 | -silent | --silent | --silen | --sile | --sil)
1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1044 sbindir=$ac_optarg ;;
1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048 | --sharedst | --shareds | --shared | --share | --shar \
1050 ac_prev=sharedstatedir ;;
1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1055 sharedstatedir=$ac_optarg ;;
1057 -site | --site | --sit)
1059 -site=* | --site=* | --sit=*)
1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065 srcdir=$ac_optarg ;;
1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068 | --syscon | --sysco | --sysc | --sys | --sy)
1069 ac_prev=sysconfdir ;;
1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072 sysconfdir=$ac_optarg ;;
1074 -target | --target | --targe | --targ | --tar | --ta | --t)
1075 ac_prev=target_alias ;;
1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077 target_alias=$ac_optarg ;;
1079 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082 -version | --version | --versio | --versi | --vers | -V)
1083 ac_init_version=: ;;
1086 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
1088 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 { echo "$as_me: error: invalid package name: $ac_package" >&2
1090 { (exit 1); exit 1; }; }
1091 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1092 eval with_$ac_package=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_$ac_package=no ;;
1104 # Obsolete; use --with-x.
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1121 -*) { echo "$as_me: error: unrecognized option: $ac_option
1122 Try \`$0 --help' for more information." >&2
1123 { (exit 1); exit 1; }; }
1127 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1131 { (exit 1); exit 1; }; }
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1136 # FIXME: should be removed in autoconf 3.0.
1137 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 { echo "$as_me: error: missing argument to $ac_option" >&2
1149 { (exit 1); exit 1; }; }
1152 # Be sure to have absolute directory names.
1153 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1154 datadir sysconfdir sharedstatedir localstatedir includedir \
1155 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1156 libdir localedir mandir
1158 eval ac_val=\$$ac_var
1160 [\\/$]* | ?:[\\/]* ) continue;;
1161 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1164 { (exit 1); exit 1; }; }
1167 # There might be people who depend on the old broken behavior: `$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1172 target=$target_alias
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1179 If a cross compiler is detected then cross compile mode will be used." >&2
1180 elif test "x$build_alias" != "x$host_alias"; then
1186 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188 test "$silent" = yes && exec 6>/dev/null
1191 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1192 ac_ls_di=`ls -di .` &&
1193 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1194 { echo "$as_me: error: Working directory cannot be determined" >&2
1195 { (exit 1); exit 1; }; }
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 { echo "$as_me: error: pwd does not report name of working directory" >&2
1198 { (exit 1); exit 1; }; }
1201 # Find the source files, if location was not specified.
1202 if test -z "$srcdir"; then
1203 ac_srcdir_defaulted=yes
1204 # Try the directory containing this script, then the parent directory.
1205 ac_confdir=`$as_dirname -- "$0" ||
1206 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207 X"$0" : 'X\(//\)[^/]' \| \
1208 X"$0" : 'X\(//\)$' \| \
1209 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1233 ac_srcdir_defaulted=no
1235 if test ! -r "$srcdir/$ac_unique_file"; then
1236 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1238 { (exit 1); exit 1; }; }
1240 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1242 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1243 { (exit 1); exit 1; }; }
1245 # When building in place, set srcdir=.
1246 if test "$ac_abs_confdir" = "$ac_pwd"; then
1249 # Remove unnecessary trailing slashes from srcdir.
1250 # Double slashes in file names in object file debugging info
1251 # mess up M-x gdb in Emacs.
1253 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1255 for ac_var in $ac_precious_vars; do
1256 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1257 eval ac_env_${ac_var}_value=\$${ac_var}
1258 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1259 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263 # Report the --help message.
1265 if test "$ac_init_help" = "long"; then
1266 # Omit some internal or obsolete options to make the list less imposing.
1267 # This message is too long to be a string in the A/UX 3.1 sh.
1269 \`configure' configures gnuplot 4.2.6 to adapt to many kinds of systems.
1271 Usage: $0 [OPTION]... [VAR=VALUE]...
1273 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1274 VAR=VALUE. See below for descriptions of some of the useful variables.
1276 Defaults for the options are specified in brackets.
1279 -h, --help display this help and exit
1280 --help=short display options specific to this package
1281 --help=recursive display the short help of all the included packages
1282 -V, --version display version information and exit
1283 -q, --quiet, --silent do not print \`checking...' messages
1284 --cache-file=FILE cache test results in FILE [disabled]
1285 -C, --config-cache alias for \`--cache-file=config.cache'
1286 -n, --no-create do not create output files
1287 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1289 Installation directories:
1290 --prefix=PREFIX install architecture-independent files in PREFIX
1291 [$ac_default_prefix]
1292 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1295 By default, \`make install' will install all the files in
1296 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1297 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1298 for instance \`--prefix=\$HOME'.
1300 For better control, use the options below.
1302 Fine tuning of the installation directories:
1303 --bindir=DIR user executables [EPREFIX/bin]
1304 --sbindir=DIR system admin executables [EPREFIX/sbin]
1305 --libexecdir=DIR program executables [EPREFIX/libexec]
1306 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1307 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1308 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1309 --libdir=DIR object code libraries [EPREFIX/lib]
1310 --includedir=DIR C header files [PREFIX/include]
1311 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1312 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1313 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1314 --infodir=DIR info documentation [DATAROOTDIR/info]
1315 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1316 --mandir=DIR man documentation [DATAROOTDIR/man]
1317 --docdir=DIR documentation root [DATAROOTDIR/doc/gnuplot]
1318 --htmldir=DIR html documentation [DOCDIR]
1319 --dvidir=DIR dvi documentation [DOCDIR]
1320 --pdfdir=DIR pdf documentation [DOCDIR]
1321 --psdir=DIR ps documentation [DOCDIR]
1327 --program-prefix=PREFIX prepend PREFIX to installed program names
1328 --program-suffix=SUFFIX append SUFFIX to installed program names
1329 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1332 --x-includes=DIR X include files are in DIR
1333 --x-libraries=DIR X library files are in DIR
1337 if test -n "$ac_init_help"; then
1338 case $ac_init_help in
1339 short | recursive ) echo "Configuration of gnuplot 4.2.6:";;
1344 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1345 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1346 --disable-dependency-tracking speeds up one-time build
1347 --enable-dependency-tracking do not reject slow dependency extractors
1348 --disable-history-file do not use history file
1349 --disable-mouse disable mouse for the x11 terminal
1350 --disable-x11-mbfonts disable multi-byte font support for x11
1351 --disable-binary-data-file disable binary_data_file
1352 --disable-with-image disable image support
1353 --disable-binary-x11-polygon disable binary_x11_polygon
1354 --enable-thin-splines enable thin plate splines
1355 --disable-datastrings disable reading strings from datafiles
1356 --disable-histograms disable histograms plot style
1357 --disable-objects disable rectangles and other objects
1358 --disable-stringvariables disable string variables
1359 --disable-macros disable command line macros
1360 --enable-iris enable IRIS terminal (IRIS4D only)
1361 --enable-mgr enable MGR terminal
1362 --disable-fiterrvars disable fitting error variables
1363 --enable-rgip enable Redwood Graphics Interface Protocol
1364 --disable-h3d-quadtree disable quadtree optimization in hidden3d code
1365 --enable-h3d-gridbox enable gridbox optimization in hidden3d code
1366 --disable-wxwidgets wxWidgets terminal (default enabled)
1367 --disable-backwards-compatibility disable deprecated syntax
1370 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1371 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1372 --with-kpsexpand search for kpsexpand at run-time (default disabled)
1373 --with-x use the X Window System
1374 --with-lasergnu install lasergnu printer script
1375 --with-gihdir=DIR location of .gih file
1376 (default PREFIX/share/PACKAGE/VERSION)
1377 --with-linux-vga use the Linux SVGA console driver
1378 (requires /usr/lib/libvga)
1379 --with-ggi=DIR enable the ggi driver (EXPERIMENTAL)
1380 --with-xmi=DIR ggi's xmi support for pm3d (EXPERIMENTAL)
1381 --with-readline=builtin use the built-in minimal readline
1382 --with-readline=gnu use the GNU readline library (default; 4.2 or newer required)
1383 --with-readline=bsd use the NetBSD editline library
1384 --with-readline=DIR specify the location of GNU readline
1385 --without-readline do not use any readline function
1386 --with-plot=DIR use the Unix plot library
1387 --with-gd=DIR where to find Tom Boutell's gd library
1388 --with-pdf=DIR enable pdf terminal
1390 --with-cwdrc check current directory for .gnuplot file,
1391 normally disabled for security reasons
1392 --without-lisp-files do not build emacs lisp files
1393 --with-row-help format help and subtopic tables by row (default)
1394 --without-row-help format help and subtopic tables by column
1395 --without-tutorial do not build LaTeX tutorial
1396 --with-wx-config=PATH Use the given path to wx-config, the wxWidgets configuration program
1397 (default search in $PATH)
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1408 XMKMF Path to xmkmf, Makefile generator for X Window System
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1411 CXXCPP C++ preprocessor
1412 PKG_CONFIG path to pkg-config utility
1414 C compiler flags for CAIROPANGO, overriding pkg-config
1416 linker flags for CAIROPANGO, overriding pkg-config
1418 C compiler flags for PANGO_1_10_2, overriding pkg-config
1420 linker flags for PANGO_1_10_2, overriding pkg-config
1421 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1422 GTK_LIBS linker flags for GTK, overriding pkg-config
1424 C compiler flags for GTK28, overriding pkg-config
1425 GTK28_LIBS linker flags for GTK28, overriding pkg-config
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" || continue
1441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1444 # A ".." for each directory in $ac_dir_suffix.
1445 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1446 case $ac_top_builddir_sub in
1447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1451 ac_abs_top_builddir=$ac_pwd
1452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1453 # for backward compatibility:
1454 ac_top_builddir=$ac_top_build_prefix
1457 .) # We are building in place.
1459 ac_top_srcdir=$ac_top_builddir_sub
1460 ac_abs_top_srcdir=$ac_pwd ;;
1461 [\\/]* | ?:[\\/]* ) # Absolute name.
1462 ac_srcdir=$srcdir$ac_dir_suffix;
1463 ac_top_srcdir=$srcdir
1464 ac_abs_top_srcdir=$srcdir ;;
1466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1467 ac_top_srcdir=$ac_top_build_prefix$srcdir
1468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1472 cd "$ac_dir" || { ac_status=$?; continue; }
1473 # Check for guested configure.
1474 if test -f "$ac_srcdir/configure.gnu"; then
1476 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1477 elif test -f "$ac_srcdir/configure"; then
1479 $SHELL "$ac_srcdir/configure" --help=recursive
1481 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1483 cd "$ac_pwd" || { ac_status=$?; break; }
1487 test -n "$ac_init_help" && exit $ac_status
1488 if $ac_init_version; then
1490 gnuplot configure 4.2.6
1491 generated by GNU Autoconf 2.61
1493 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1494 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1495 This configure script is free software; the Free Software Foundation
1496 gives unlimited permission to copy, distribute and modify it.
1500 cat >config.log <<_ACEOF
1501 This file contains any messages produced by compilers while
1502 running configure, to aid debugging if configure makes a mistake.
1504 It was created by gnuplot $as_me 4.2.6, which was
1505 generated by GNU Autoconf 2.61. Invocation command line was
1517 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1518 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1519 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1520 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1521 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1523 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1524 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1526 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1527 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1528 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1529 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1530 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1531 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1532 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 echo "PATH: $as_dir"
1557 # Keep a trace of the command line.
1558 # Strip out --no-create and --no-recursion so they do not pile up.
1559 # Strip out --silent because we don't want to record it for future runs.
1560 # Also quote any args containing shell meta-characters.
1561 # Make two passes to allow for proper duplicate-argument suppression.
1565 ac_must_keep_next=false
1571 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1572 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1573 | -silent | --silent | --silen | --sile | --sil)
1576 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1579 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1581 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1582 if test $ac_must_keep_next = true; then
1583 ac_must_keep_next=false # Got value, back to normal.
1586 *=* | --config-cache | -C | -disable-* | --disable-* \
1587 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1588 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1589 | -with-* | --with-* | -without-* | --without-* | --x)
1590 case "$ac_configure_args0 " in
1591 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1594 -* ) ac_must_keep_next=true ;;
1597 ac_configure_args="$ac_configure_args '$ac_arg'"
1602 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1603 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1605 # When interrupted or exit'd, cleanup temporary files, and complete
1606 # config.log. We remove comments because anyway the quotes in there
1607 # would cause problems or look ugly.
1608 # WARNING: Use '\'' to represent an apostrophe within the trap.
1609 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1610 trap 'exit_status=$?
1611 # Save into config.log some information that might help in debugging.
1616 ## ---------------- ##
1617 ## Cache variables. ##
1618 ## ---------------- ##
1621 # The following way of writing the cache mishandles newlines in values,
1623 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1624 eval ac_val=\$$ac_var
1628 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1629 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1632 _ | IFS | as_nl) ;; #(
1633 *) $as_unset $ac_var ;;
1638 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1639 *${as_nl}ac_space=\ *)
1641 "s/'\''/'\''\\\\'\'''\''/g;
1642 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1645 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1653 ## ----------------- ##
1654 ## Output variables. ##
1655 ## ----------------- ##
1658 for ac_var in $ac_subst_vars
1660 eval ac_val=\$$ac_var
1662 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1664 echo "$ac_var='\''$ac_val'\''"
1668 if test -n "$ac_subst_files"; then
1670 ## ------------------- ##
1671 ## File substitutions. ##
1672 ## ------------------- ##
1675 for ac_var in $ac_subst_files
1677 eval ac_val=\$$ac_var
1679 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1681 echo "$ac_var='\''$ac_val'\''"
1686 if test -s confdefs.h; then
1696 test "$ac_signal" != 0 &&
1697 echo "$as_me: caught signal $ac_signal"
1698 echo "$as_me: exit $exit_status"
1700 rm -f core *.core core.conftest.* &&
1701 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1704 for ac_signal in 1 2 13 15; do
1705 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1709 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1710 rm -f -r conftest* confdefs.h
1712 # Predefined preprocessor variables.
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_NAME "$PACKAGE_NAME"
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_STRING "$PACKAGE_STRING"
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1739 # Let the site file select an alternate cache file if it wants to.
1740 # Prefer explicitly selected file to automatically selected ones.
1741 if test -n "$CONFIG_SITE"; then
1742 set x "$CONFIG_SITE"
1743 elif test "x$prefix" != xNONE; then
1744 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1746 set x "$ac_default_prefix/share/config.site" \
1747 "$ac_default_prefix/etc/config.site"
1752 if test -r "$ac_site_file"; then
1753 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1754 echo "$as_me: loading site script $ac_site_file" >&6;}
1755 sed 's/^/| /' "$ac_site_file" >&5
1760 if test -r "$cache_file"; then
1761 # Some versions of bash will fail to source /dev/null (special
1762 # files actually), so we avoid doing that.
1763 if test -f "$cache_file"; then
1764 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1765 echo "$as_me: loading cache $cache_file" >&6;}
1767 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1768 *) . "./$cache_file";;
1772 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1773 echo "$as_me: creating cache $cache_file" >&6;}
1777 # Check that the precious variables saved in the cache have kept the same
1779 ac_cache_corrupted=false
1780 for ac_var in $ac_precious_vars; do
1781 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1782 eval ac_new_set=\$ac_env_${ac_var}_set
1783 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1784 eval ac_new_val=\$ac_env_${ac_var}_value
1785 case $ac_old_set,$ac_new_set in
1787 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1788 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1789 ac_cache_corrupted=: ;;
1791 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1792 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1793 ac_cache_corrupted=: ;;
1796 if test "x$ac_old_val" != "x$ac_new_val"; then
1797 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1798 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1799 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1800 echo "$as_me: former value: $ac_old_val" >&2;}
1801 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1802 echo "$as_me: current value: $ac_new_val" >&2;}
1803 ac_cache_corrupted=:
1806 # Pass precious variables to config.status.
1807 if test "$ac_new_set" = set; then
1809 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 *) ac_arg=$ac_var=$ac_new_val ;;
1812 case " $ac_configure_args " in
1813 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1814 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1818 if $ac_cache_corrupted; then
1819 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1820 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1821 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1822 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1823 { (exit 1); exit 1; }; }
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1859 ac_config_headers="$ac_config_headers config.h:config.hin"
1861 am__api_version="1.8"
1863 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1864 if test -f "$ac_dir/install-sh"; then
1866 ac_install_sh="$ac_aux_dir/install-sh -c"
1868 elif test -f "$ac_dir/install.sh"; then
1870 ac_install_sh="$ac_aux_dir/install.sh -c"
1872 elif test -f "$ac_dir/shtool"; then
1874 ac_install_sh="$ac_aux_dir/shtool install -c"
1878 if test -z "$ac_aux_dir"; then
1879 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1880 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1881 { (exit 1); exit 1; }; }
1884 # These three variables are undocumented and unsupported,
1885 # and are intended to be withdrawn in a future Autoconf release.
1886 # They can cause serious problems if a builder's source tree is in a directory
1887 # whose full name contains unusual characters.
1888 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1889 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1890 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1893 # Find a good install program. We prefer a C program (faster),
1894 # so one script is as good as another. But avoid the broken or
1895 # incompatible versions:
1896 # SysV /etc/install, /usr/sbin/install
1897 # SunOS /usr/etc/install
1898 # IRIX /sbin/install
1900 # AmigaOS /C/install, which installs bootblocks on floppy discs
1901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1904 # OS/2's system install, which has a completely different semantic
1905 # ./install, which can be erroneously created by make from ./install.sh.
1906 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1907 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1908 if test -z "$INSTALL"; then
1909 if test "${ac_cv_path_install+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 test -z "$as_dir" && as_dir=.
1917 # Account for people who put trailing slashes in PATH elements.
1919 ./ | .// | /cC/* | \
1920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1921 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1924 # OSF1 and SCO ODT 3.0 have their own names for install.
1925 # Don't use installbsd from OSF since it installs stuff as root
1927 for ac_prog in ginstall scoinst install; do
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1930 if test $ac_prog = install &&
1931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1932 # AIX install. It has an incompatible calling convention.
1934 elif test $ac_prog = install &&
1935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1936 # program-specific install script used by HP pwplus--don't use.
1939 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1952 if test "${ac_cv_path_install+set}" = set; then
1953 INSTALL=$ac_cv_path_install
1955 # As a last resort, use the slow shell script. Don't cache a
1956 # value for INSTALL within a source directory, because that will
1957 # break other packages using the cache if that directory is
1958 # removed, or if the value is a relative name.
1959 INSTALL=$ac_install_sh
1962 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1963 echo "${ECHO_T}$INSTALL" >&6; }
1965 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1966 # It thinks the first close brace ends the variable substitution.
1967 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1969 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1971 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1973 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1974 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1977 echo timestamp > conftest.file
1978 # Do `set' in a subshell so we don't clobber the current shell's
1979 # arguments. Must try -L first in case configure is actually a
1980 # symlink; some systems play weird games with the mod time of symlinks
1981 # (eg FreeBSD returns the mod time of the symlink's containing
1984 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1985 if test "$*" = "X"; then
1987 set X `ls -t $srcdir/configure conftest.file`
1990 if test "$*" != "X $srcdir/configure conftest.file" \
1991 && test "$*" != "X conftest.file $srcdir/configure"; then
1993 # If neither matched, then we have a broken ls. This can happen
1994 # if, for instance, CONFIG_SHELL is bash and it inherits a
1995 # broken ls alias from the environment. This has actually
1996 # happened. Such a system could not be considered "sane".
1997 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1998 alias in your environment" >&5
1999 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2000 alias in your environment" >&2;}
2001 { (exit 1); exit 1; }; }
2004 test "$2" = conftest.file
2010 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2011 Check your system clock" >&5
2012 echo "$as_me: error: newly created file is older than distributed files!
2013 Check your system clock" >&2;}
2014 { (exit 1); exit 1; }; }
2016 { echo "$as_me:$LINENO: result: yes" >&5
2017 echo "${ECHO_T}yes" >&6; }
2018 test "$program_prefix" != NONE &&
2019 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2020 # Use a double $ so make ignores it.
2021 test "$program_suffix" != NONE &&
2022 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2023 # Double any \ or $. echo might interpret backslashes.
2024 # By default was `s,x,x', remove it if useless.
2025 cat <<\_ACEOF >conftest.sed
2026 s/[\\$]/&&/g;s/;s,x,x,$//
2028 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2031 # expand $ac_aux_dir to an absolute path
2032 am_aux_dir=`cd $ac_aux_dir && pwd`
2034 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2035 # Use eval to expand $SHELL
2036 if eval "$MISSING --run true"; then
2037 am_missing_run="$MISSING --run "
2040 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2041 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2044 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2045 # Keeping the `.' argument allows $(mkdir_p) to be used without
2046 # argument. Indeed, we sometimes output rules like
2047 # $(mkdir_p) $(somedir)
2048 # where $(somedir) is conditionally defined.
2049 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2050 # expensive solution, as it forces Make to start a sub-shell.)
2051 mkdir_p='mkdir -p -- .'
2053 # On NextStep and OpenStep, the `mkdir' command does not
2054 # recognize any option. It will interpret all options as
2055 # directories to create, and then abort because `.' already
2057 for d in ./-p ./--version;
2059 test -d $d && rmdir $d
2061 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2062 if test -f "$ac_aux_dir/mkinstalldirs"; then
2063 mkdir_p='$(mkinstalldirs)'
2065 mkdir_p='$(install_sh) -d'
2069 for ac_prog in gawk mawk nawk awk
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_AWK+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 if test -n "$AWK"; then
2079 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2088 ac_cv_prog_AWK="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099 if test -n "$AWK"; then
2100 { echo "$as_me:$LINENO: result: $AWK" >&5
2101 echo "${ECHO_T}$AWK" >&6; }
2103 { echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6; }
2108 test -n "$AWK" && break
2111 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2112 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2113 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2114 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 cat >conftest.make <<\_ACEOF
2120 @echo '@@@%%%=$(MAKE)=@@@%%%'
2122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2125 eval ac_cv_prog_make_${ac_make}_set=yes;;
2127 eval ac_cv_prog_make_${ac_make}_set=no;;
2131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2132 { echo "$as_me:$LINENO: result: yes" >&5
2133 echo "${ECHO_T}yes" >&6; }
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2138 SET_MAKE="MAKE=${MAKE-make}"
2141 rm -rf .tst 2>/dev/null
2142 mkdir .tst 2>/dev/null
2143 if test -d .tst; then
2148 rmdir .tst 2>/dev/null
2150 # test to see if srcdir already configured
2151 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2152 test -f $srcdir/config.status; then
2153 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2154 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2155 { (exit 1); exit 1; }; }
2158 # test whether we have cygpath
2159 if test -z "$CYGPATH_W"; then
2160 if (cygpath --version) >/dev/null 2>/dev/null; then
2161 CYGPATH_W='cygpath -w'
2168 # Define the identity of the package.
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE "$PACKAGE"
2178 cat >>confdefs.h <<_ACEOF
2179 #define VERSION "$VERSION"
2182 # Some tools Automake needs.
2184 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2187 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2190 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2193 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2196 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2199 AMTAR=${AMTAR-"${am_missing_run}tar"}
2201 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2203 # Installed binaries are usually stripped using `strip' when the user
2204 # run `make install-strip'. However `strip' might not be the right
2205 # tool to use in cross-compilation environments, therefore Automake
2206 # will honor the `STRIP' environment variable to overrule this program.
2207 if test "$cross_compiling" != no; then
2208 if test -n "$ac_tool_prefix"; then
2209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2210 set dummy ${ac_tool_prefix}strip; ac_word=$2
2211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2213 if test "${ac_cv_prog_STRIP+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$STRIP"; then
2217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 STRIP=$ac_cv_prog_STRIP
2237 if test -n "$STRIP"; then
2238 { echo "$as_me:$LINENO: result: $STRIP" >&5
2239 echo "${ECHO_T}$STRIP" >&6; }
2241 { echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6; }
2247 if test -z "$ac_cv_prog_STRIP"; then
2249 # Extract the first word of "strip", so it can be a program name with args.
2250 set dummy strip; ac_word=$2
2251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2253 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 if test -n "$ac_ct_STRIP"; then
2257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_prog_ac_ct_STRIP="strip"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2277 if test -n "$ac_ct_STRIP"; then
2278 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2279 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2281 { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2285 if test "x$ac_ct_STRIP" = x; then
2288 case $cross_compiling:$ac_tool_warned in
2290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2291 whose name does not start with the host triplet. If you think this
2292 configuration is useful to you, please write to autoconf@gnu.org." >&5
2293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2294 whose name does not start with the host triplet. If you think this
2295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2296 ac_tool_warned=yes ;;
2301 STRIP="$ac_cv_prog_STRIP"
2305 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2307 # We need awk for the "check" target. The system "awk" is bad on
2313 VERSION_MAJOR="`cat $srcdir/VERSION`"
2314 PATCHLEVEL="`cat $srcdir/PATCHLEVEL`"
2318 ac_cpp='$CPP $CPPFLAGS'
2319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$CC"; then
2352 { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2361 if test -z "$ac_cv_prog_CC"; then
2363 # Extract the first word of "gcc", so it can be a program name with args.
2364 set dummy gcc; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 if test -n "$ac_ct_CC"; then
2371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380 ac_cv_prog_ac_ct_CC="gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2391 if test -n "$ac_ct_CC"; then
2392 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2393 echo "${ECHO_T}$ac_ct_CC" >&6; }
2395 { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2399 if test "x$ac_ct_CC" = x; then
2402 case $cross_compiling:$ac_tool_warned in
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet. If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet. If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}cc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}cc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$CC"; then
2449 { echo "$as_me:$LINENO: result: $CC" >&5
2450 echo "${ECHO_T}$CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2459 if test -z "$CC"; then
2460 # Extract the first word of "cc", so it can be a program name with args.
2461 set dummy cc; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2479 ac_prog_rejected=yes
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test $ac_prog_rejected = yes; then
2491 # We found a bogon in the path, so make sure we never use it.
2492 set dummy $ac_cv_prog_CC
2494 if test $# != 0; then
2495 # We chose a different compiler from the bogus one.
2496 # However, it has the same basename, so the bogon will be chosen
2497 # first if we set CC to just the basename; use the full file name.
2499 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2515 if test -z "$CC"; then
2516 if test -n "$ac_tool_prefix"; then
2517 for ac_prog in cl.exe
2519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2523 if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2536 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test -n "$CC"; then
2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549 echo "${ECHO_T}$CC" >&6; }
2551 { echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6; }
2556 test -n "$CC" && break
2559 if test -z "$CC"; then
2561 for ac_prog in cl.exe
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 if test -n "$ac_ct_CC"; then
2571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_ac_ct_CC="$ac_prog"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2591 if test -n "$ac_ct_CC"; then
2592 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2593 echo "${ECHO_T}$ac_ct_CC" >&6; }
2595 { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2600 test -n "$ac_ct_CC" && break
2603 if test "x$ac_ct_CC" = x; then
2606 case $cross_compiling:$ac_tool_warned in
2608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2609 whose name does not start with the host triplet. If you think this
2610 configuration is useful to you, please write to autoconf@gnu.org." >&5
2611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2612 whose name does not start with the host triplet. If you think this
2613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2614 ac_tool_warned=yes ;;
2623 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2624 See \`config.log' for more details." >&5
2625 echo "$as_me: error: no acceptable C compiler found in \$PATH
2626 See \`config.log' for more details." >&2;}
2627 { (exit 1); exit 1; }; }
2629 # Provide some information about the compiler.
2630 echo "$as_me:$LINENO: checking for C compiler version" >&5
2631 ac_compiler=`set X $ac_compile; echo $2`
2632 { (ac_try="$ac_compiler --version >&5"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compiler --version >&5") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }
2642 { (ac_try="$ac_compiler -v >&5"
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compiler -v >&5") 2>&5
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }
2652 { (ac_try="$ac_compiler -V >&5"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compiler -V >&5") 2>&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 ac_clean_files_save=$ac_clean_files
2679 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2680 # Try to create an executable without -o first, disregard a.out.
2681 # It will help us diagnose broken compilers, and finding out an intuition
2683 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2684 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2685 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2687 # List of possible output files, starting from the most likely.
2688 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2689 # only as a last resort. b.out is created by i960 compilers.
2690 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2692 # The IRIX 6 linker writes into existing files which may not be
2693 # executable, retaining their permissions. Remove them first so a
2694 # subsequent execution test works.
2696 for ac_file in $ac_files
2699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2700 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2705 if { (ac_try="$ac_link_default"
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711 (eval "$ac_link_default") 2>&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; then
2715 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2716 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2717 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2718 # so that the user can short-circuit this test for compilers unknown to
2720 for ac_file in $ac_files ''
2722 test -f "$ac_file" || continue
2724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2727 # We found the default executable, but exeext='' is most
2731 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2733 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2735 # We set ac_cv_exeext here because the later test for it is not
2736 # safe: cross compilers may not add the suffix if given an `-o'
2737 # argument, so we may need to know it at that point already.
2738 # Even if this section looks crufty: it has the advantage of
2745 test "$ac_cv_exeext" = no && ac_cv_exeext=
2751 { echo "$as_me:$LINENO: result: $ac_file" >&5
2752 echo "${ECHO_T}$ac_file" >&6; }
2753 if test -z "$ac_file"; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2757 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log' for more details." >&2;}
2761 { (exit 77); exit 77; }; }
2764 ac_exeext=$ac_cv_exeext
2766 # Check that the compiler produces executables we can run. If not, either
2767 # the compiler is broken, or we cross compile.
2768 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2769 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2770 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2771 # If not cross compiling, check that we can run a simple program.
2772 if test "$cross_compiling" != yes; then
2773 if { ac_try='./$ac_file'
2774 { (case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_try") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2785 if test "$cross_compiling" = maybe; then
2788 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2789 If you meant to cross compile, use \`--host'.
2790 See \`config.log' for more details." >&5
2791 echo "$as_me: error: cannot run C compiled programs.
2792 If you meant to cross compile, use \`--host'.
2793 See \`config.log' for more details." >&2;}
2794 { (exit 1); exit 1; }; }
2798 { echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6; }
2801 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2802 ac_clean_files=$ac_clean_files_save
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2806 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2807 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2808 echo "${ECHO_T}$cross_compiling" >&6; }
2810 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2811 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2812 if { (ac_try="$ac_link"
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_link") 2>&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; then
2822 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2823 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2824 # work properly (i.e., refer to `conftest.exe'), while it won't with
2826 for ac_file in conftest.exe conftest conftest.*; do
2827 test -f "$ac_file" || continue
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2836 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2837 See \`config.log' for more details." >&5
2838 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log' for more details." >&2;}
2840 { (exit 1); exit 1; }; }
2843 rm -f conftest$ac_cv_exeext
2844 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2845 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2850 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2851 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2852 if test "${ac_cv_objext+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 rm -f conftest.o conftest.obj
2871 if { (ac_try="$ac_compile"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }; then
2881 for ac_file in conftest.o conftest.obj conftest.*; do
2882 test -f "$ac_file" || continue;
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2894 See \`config.log' for more details." >&5
2895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2896 See \`config.log' for more details." >&2;}
2897 { (exit 1); exit 1; }; }
2900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2902 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2903 echo "${ECHO_T}$ac_cv_objext" >&6; }
2904 OBJEXT=$ac_cv_objext
2906 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 cat >conftest.$ac_ext <<_ACEOF
2914 cat confdefs.h >>conftest.$ac_ext
2915 cat >>conftest.$ac_ext <<_ACEOF
2916 /* end confdefs.h. */
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compile") 2>conftest.er1
2938 grep -v '^ *+' conftest.er1 >conftest.err
2940 cat conftest.err >&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); } && {
2943 test -z "$ac_c_werror_flag" ||
2944 test ! -s conftest.err
2945 } && test -s conftest.$ac_objext; then
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2958 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2959 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2960 GCC=`test $ac_compiler_gnu = yes && echo yes`
2961 ac_test_CFLAGS=${CFLAGS+set}
2962 ac_save_CFLAGS=$CFLAGS
2963 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2964 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_cc_g+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 ac_save_c_werror_flag=$ac_c_werror_flag
2969 ac_c_werror_flag=yes
2972 cat >conftest.$ac_ext <<_ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2987 rm -f conftest.$ac_objext
2988 if { (ac_try="$ac_compile"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_compile") 2>conftest.er1
2996 grep -v '^ *+' conftest.er1 >conftest.err
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } && {
3001 test -z "$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 } && test -s conftest.$ac_objext; then
3006 echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3010 cat >conftest.$ac_ext <<_ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h. */
3025 rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_compile") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1 >conftest.err
3036 cat conftest.err >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } && {
3039 test -z "$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3041 } && test -s conftest.$ac_objext; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 ac_c_werror_flag=$ac_save_c_werror_flag
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_c_werror_flag=$ac_save_c_werror_flag
3098 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3099 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3100 if test "$ac_test_CFLAGS" = set; then
3101 CFLAGS=$ac_save_CFLAGS
3102 elif test $ac_cv_prog_cc_g = yes; then
3103 if test "$GCC" = yes; then
3109 if test "$GCC" = yes; then
3115 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3116 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3117 if test "${ac_cv_prog_cc_c89+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3120 ac_cv_prog_cc_c89=no
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3146 s = g (p, va_arg (v,int));
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3182 CC="$ac_save_CC $ac_arg"
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); } && {
3197 test -z "$ac_c_werror_flag" ||
3198 test ! -s conftest.err
3199 } && test -s conftest.$ac_objext; then
3200 ac_cv_prog_cc_c89=$ac_arg
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3208 rm -f core conftest.err conftest.$ac_objext
3209 test "x$ac_cv_prog_cc_c89" != "xno" && break
3211 rm -f conftest.$ac_ext
3216 case "x$ac_cv_prog_cc_c89" in
3218 { echo "$as_me:$LINENO: result: none needed" >&5
3219 echo "${ECHO_T}none needed" >&6; } ;;
3221 { echo "$as_me:$LINENO: result: unsupported" >&5
3222 echo "${ECHO_T}unsupported" >&6; } ;;
3224 CC="$CC $ac_cv_prog_cc_c89"
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3231 ac_cpp='$CPP $CPPFLAGS'
3232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 DEPDIR="${am__leading_dot}deps"
3237 ac_config_commands="$ac_config_commands depfiles"
3240 am_make=${MAKE-make}
3241 cat > confinc << 'END'
3246 # If we don't find an include directive, just comment out the code.
3247 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3248 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3252 # First try GNU make style include.
3253 echo "include confinc" > confmf
3254 # We grep out `Entering directory' and `Leaving directory'
3255 # messages which can occur if `w' ends up in MAKEFLAGS.
3256 # In particular we don't look at `^make:' because GNU make might
3257 # be invoked under some other name (usually "gmake"), in which
3258 # case it prints its new name instead of `make'.
3259 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3264 # Now try BSD make style include.
3265 if test "$am__include" = "#"; then
3266 echo '.include "confinc"' > confmf
3267 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3268 am__include=.include
3275 { echo "$as_me:$LINENO: result: $_am_result" >&5
3276 echo "${ECHO_T}$_am_result" >&6; }
3277 rm -f confinc confmf
3279 # Check whether --enable-dependency-tracking was given.
3280 if test "${enable_dependency_tracking+set}" = set; then
3281 enableval=$enable_dependency_tracking;
3284 if test "x$enable_dependency_tracking" != xno; then
3285 am_depcomp="$ac_aux_dir/depcomp"
3290 if test "x$enable_dependency_tracking" != xno; then
3301 depcc="$CC" am_compiler_list=
3303 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3304 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3305 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3309 # We make a subdir and do the tests there. Otherwise we can end up
3310 # making bogus files that we don't know about and never remove. For
3311 # instance it was reported that on HP-UX the gcc test will end up
3312 # making a dummy file named `D' -- because `-MD' means `put the output
3315 # Copy depcomp to subdir because otherwise we won't find it if we're
3316 # using a relative directory.
3317 cp "$am_depcomp" conftest.dir
3319 # We will build objects and dependencies in a subdirectory because
3320 # it helps to detect inapplicable dependency modes. For instance
3321 # both Tru64's cc and ICC support -MD to output dependencies as a
3322 # side effect of compilation, but ICC will put the dependencies in
3323 # the current directory while Tru64 will put them in the object
3327 am_cv_CC_dependencies_compiler_type=none
3328 if test "$am_compiler_list" = ""; then
3329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3331 for depmode in $am_compiler_list; do
3332 # Setup a source with many dependencies, because some compilers
3333 # like to wrap large dependency lists on column 80 (with \), and
3334 # we should not choose a depcomp mode which is confused by this.
3336 # We need to recreate these files for each test, as the compiler may
3337 # overwrite some of them when testing with obscure command lines.
3338 # This happens at least with the AIX C compiler.
3340 for i in 1 2 3 4 5 6; do
3341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3343 # Solaris 8's {/usr,}/bin/sh.
3344 touch sub/conftst$i.h
3346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3350 # after this tag, mechanisms are not by side-effect, so they'll
3351 # only be used when explicitly requested
3352 if test "x$enable_dependency_tracking" = xyes; then
3360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3361 # mode. It turns out that the SunPro C++ compiler does not properly
3362 # handle `-M -o', and we need to detect this.
3363 if depmode=$depmode \
3364 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3366 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3367 >/dev/null 2>conftest.err &&
3368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3369 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3371 # icc doesn't choke on unknown options, it will just issue warnings
3372 # or remarks (even with -Werror). So we grep stderr for any message
3373 # that says an option was ignored or not supported.
3374 # When given -MP, icc 7.0 and 7.1 complain thusly:
3375 # icc: Command line warning: ignoring option '-M'; no argument required
3376 # The diagnosis changed in icc 8.0:
3377 # icc: Command line remark: option '-MP' not supported
3378 if (grep 'ignoring option' conftest.err ||
3379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3380 am_cv_CC_dependencies_compiler_type=$depmode
3389 am_cv_CC_dependencies_compiler_type=none
3393 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3394 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3400 test "x$enable_dependency_tracking" != xno \
3401 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3403 am__fastdepCC_FALSE='#'
3405 am__fastdepCC_TRUE='#'
3406 am__fastdepCC_FALSE=
3410 { echo "$as_me:$LINENO: checking for function prototypes" >&5
3411 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
3412 if test "$ac_cv_prog_cc_c89" != no; then
3413 { echo "$as_me:$LINENO: result: yes" >&5
3414 echo "${ECHO_T}yes" >&6; }
3416 cat >>confdefs.h <<\_ACEOF
3417 #define PROTOTYPES 1
3421 cat >>confdefs.h <<\_ACEOF
3422 #define __PROTOTYPES 1
3426 { echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6; }
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3450 for ac_c_preproc_warn_flag in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3465 # include <limits.h>
3467 # include <assert.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null && {
3484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3492 # Broken: fails on valid input.
3496 rm -f conftest.err conftest.$ac_ext
3498 # OK, works on sane cases. Now check whether nonexistent headers
3499 # can be detected and how.
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <ac_nonexistent.h>
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null && {
3521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3524 # Broken: success on invalid input.
3527 echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 # Passes both tests.
3535 rm -f conftest.err conftest.$ac_ext
3538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539 rm -f conftest.err conftest.$ac_ext
3540 if $ac_preproc_ok; then
3552 { echo "$as_me:$LINENO: result: $CPP" >&5
3553 echo "${ECHO_T}$CPP" >&6; }
3555 for ac_c_preproc_warn_flag in '' yes
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat >conftest.$ac_ext <<_ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3570 # include <limits.h>
3572 # include <assert.h>
3576 if { (ac_try="$ac_cpp conftest.$ac_ext"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3584 grep -v '^ *+' conftest.er1 >conftest.err
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } >/dev/null && {
3589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3590 test ! -s conftest.err
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 # Broken: fails on valid input.
3601 rm -f conftest.err conftest.$ac_ext
3603 # OK, works on sane cases. Now check whether nonexistent headers
3604 # can be detected and how.
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3611 #include <ac_nonexistent.h>
3613 if { (ac_try="$ac_cpp conftest.$ac_ext"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3621 grep -v '^ *+' conftest.er1 >conftest.err
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); } >/dev/null && {
3626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3627 test ! -s conftest.err
3629 # Broken: success on invalid input.
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 # Passes both tests.
3640 rm -f conftest.err conftest.$ac_ext
3643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3644 rm -f conftest.err conftest.$ac_ext
3645 if $ac_preproc_ok; then
3648 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3649 See \`config.log' for more details." >&5
3650 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3651 See \`config.log' for more details." >&2;}
3652 { (exit 1); exit 1; }; }
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3663 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3664 if test "${ac_cv_path_GREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 # Extract the first word of "grep ggrep" to use in msg output
3668 if test -z "$GREP"; then
3669 set dummy grep ggrep; ac_prog_name=$2
3670 if test "${ac_cv_path_GREP+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_path_GREP_found=false
3674 # Loop through the user's path and test for each of PROGNAME-LIST
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3679 test -z "$as_dir" && as_dir=.
3680 for ac_prog in grep ggrep; do
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3683 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3684 # Check for GNU ac_path_GREP and select it if it is found.
3685 # Check for GNU $ac_path_GREP
3686 case `"$ac_path_GREP" --version 2>&1` in
3688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3691 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3694 cat "conftest.in" "conftest.in" >"conftest.tmp"
3695 mv "conftest.tmp" "conftest.in"
3696 cp "conftest.in" "conftest.nl"
3697 echo 'GREP' >> "conftest.nl"
3698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3700 ac_count=`expr $ac_count + 1`
3701 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3702 # Best one so far, save it but keep looking for a better one
3703 ac_cv_path_GREP="$ac_path_GREP"
3704 ac_path_GREP_max=$ac_count
3706 # 10*(2^10) chars as input seems more than enough
3707 test $ac_count -gt 10 && break
3709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3713 $ac_path_GREP_found && break 3
3723 GREP="$ac_cv_path_GREP"
3724 if test -z "$GREP"; then
3725 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3726 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3727 { (exit 1); exit 1; }; }
3731 ac_cv_path_GREP=$GREP
3736 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3737 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3738 GREP="$ac_cv_path_GREP"
3741 { echo "$as_me:$LINENO: checking for egrep" >&5
3742 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3743 if test "${ac_cv_path_EGREP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3747 then ac_cv_path_EGREP="$GREP -E"
3749 # Extract the first word of "egrep" to use in msg output
3750 if test -z "$EGREP"; then
3751 set dummy egrep; ac_prog_name=$2
3752 if test "${ac_cv_path_EGREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 ac_path_EGREP_found=false
3756 # Loop through the user's path and test for each of PROGNAME-LIST
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3761 test -z "$as_dir" && as_dir=.
3762 for ac_prog in egrep; do
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3765 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3766 # Check for GNU ac_path_EGREP and select it if it is found.
3767 # Check for GNU $ac_path_EGREP
3768 case `"$ac_path_EGREP" --version 2>&1` in
3770 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3773 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3776 cat "conftest.in" "conftest.in" >"conftest.tmp"
3777 mv "conftest.tmp" "conftest.in"
3778 cp "conftest.in" "conftest.nl"
3779 echo 'EGREP' >> "conftest.nl"
3780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3782 ac_count=`expr $ac_count + 1`
3783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3784 # Best one so far, save it but keep looking for a better one
3785 ac_cv_path_EGREP="$ac_path_EGREP"
3786 ac_path_EGREP_max=$ac_count
3788 # 10*(2^10) chars as input seems more than enough
3789 test $ac_count -gt 10 && break
3791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3795 $ac_path_EGREP_found && break 3
3805 EGREP="$ac_cv_path_EGREP"
3806 if test -z "$EGREP"; then
3807 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3808 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3809 { (exit 1); exit 1; }; }
3813 ac_cv_path_EGREP=$EGREP
3819 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3820 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3821 EGREP="$ac_cv_path_EGREP"
3824 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3826 if test "${ac_cv_header_stdc+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>conftest.er1
3857 grep -v '^ *+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } && {
3862 test -z "$ac_c_werror_flag" ||
3863 test ! -s conftest.err
3864 } && test -s conftest.$ac_objext; then
3865 ac_cv_header_stdc=yes
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "memchr" >/dev/null 2>&1; then
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "free" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919 if test "$cross_compiling" = yes; then
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 # define ISLOWER(c) \
3935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
3948 || toupper (i) != TOUPPER (i))
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3975 echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_header_stdc=no
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 #include <$ac_header>
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } && {
4041 test -z "$ac_c_werror_flag" ||
4042 test ! -s conftest.err
4043 } && test -s conftest.$ac_objext; then
4044 eval "$as_ac_Header=yes"
4046 echo "$as_me: failed program was:" >&5
4047 sed 's/^/| /' conftest.$ac_ext >&5
4049 eval "$as_ac_Header=no"
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_res=`eval echo '${'$as_ac_Header'}'`
4055 { echo "$as_me:$LINENO: result: $ac_res" >&5
4056 echo "${ECHO_T}$ac_res" >&6; }
4057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4058 cat >>confdefs.h <<_ACEOF
4059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4068 if test "$ac_cv_prog_cc_stdc" != no; then
4071 U=_ ANSI2KNR=./ansi2knr
4073 # Ensure some checks needed by ansi2knr itself.
4076 for ac_header in string.h
4078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 ac_res=`eval echo '${'$as_ac_Header'}'`
4086 { echo "$as_me:$LINENO: result: $ac_res" >&5
4087 echo "${ECHO_T}$ac_res" >&6; }
4089 # Is the header compilable?
4090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 $ac_includes_default
4099 #include <$ac_header>
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4118 ac_header_compiler=yes
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 ac_header_compiler=no
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4128 echo "${ECHO_T}$ac_header_compiler" >&6; }
4130 # Is the header present?
4131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4133 cat >conftest.$ac_ext <<_ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 #include <$ac_header>
4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } >/dev/null && {
4154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155 test ! -s conftest.err
4157 ac_header_preproc=yes
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4162 ac_header_preproc=no
4165 rm -f conftest.err conftest.$ac_ext
4166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4167 echo "${ECHO_T}$ac_header_preproc" >&6; }
4169 # So? What about this header?
4170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4176 ac_header_preproc=yes
4179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 eval "$as_ac_Header=\$ac_header_preproc"
4201 ac_res=`eval echo '${'$as_ac_Header'}'`
4202 { echo "$as_me:$LINENO: result: $ac_res" >&5
4203 echo "${ECHO_T}$ac_res" >&6; }
4206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4207 cat >>confdefs.h <<_ACEOF
4208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4222 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4223 # On Suns, sometimes $CPP names a directory.
4224 if test -n "$CPP" && test -d "$CPP"; then
4227 if test -z "$CPP"; then
4228 if test "${ac_cv_prog_CPP+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 # Double quotes because CPP needs to be expanded
4232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4235 for ac_c_preproc_warn_flag in '' yes
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error" is here to catch this case.
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4250 # include <limits.h>
4252 # include <assert.h>
4256 if { (ac_try="$ac_cpp conftest.$ac_ext"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null && {
4269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4270 test ! -s conftest.err
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4277 # Broken: fails on valid input.
4281 rm -f conftest.err conftest.$ac_ext
4283 # OK, works on sane cases. Now check whether nonexistent headers
4284 # can be detected and how.
4285 cat >conftest.$ac_ext <<_ACEOF
4288 cat confdefs.h >>conftest.$ac_ext
4289 cat >>conftest.$ac_ext <<_ACEOF
4290 /* end confdefs.h. */
4291 #include <ac_nonexistent.h>
4293 if { (ac_try="$ac_cpp conftest.$ac_ext"
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4301 grep -v '^ *+' conftest.er1 >conftest.err
4303 cat conftest.err >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); } >/dev/null && {
4306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4307 test ! -s conftest.err
4309 # Broken: success on invalid input.
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 # Passes both tests.
4320 rm -f conftest.err conftest.$ac_ext
4323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4324 rm -f conftest.err conftest.$ac_ext
4325 if $ac_preproc_ok; then
4337 { echo "$as_me:$LINENO: result: $CPP" >&5
4338 echo "${ECHO_T}$CPP" >&6; }
4340 for ac_c_preproc_warn_flag in '' yes
4342 # Use a header file that comes with gcc, so configuring glibc
4343 # with a fresh cross-compiler works.
4344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4345 # <limits.h> exists even on freestanding compilers.
4346 # On the NeXT, cc -E runs the code through the compiler's parser,
4347 # not just through cpp. "Syntax error" is here to catch this case.
4348 cat >conftest.$ac_ext <<_ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4355 # include <limits.h>
4357 # include <assert.h>
4361 if { (ac_try="$ac_cpp conftest.$ac_ext"
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } >/dev/null && {
4374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4375 test ! -s conftest.err
4379 echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4382 # Broken: fails on valid input.
4386 rm -f conftest.err conftest.$ac_ext
4388 # OK, works on sane cases. Now check whether nonexistent headers
4389 # can be detected and how.
4390 cat >conftest.$ac_ext <<_ACEOF
4393 cat confdefs.h >>conftest.$ac_ext
4394 cat >>conftest.$ac_ext <<_ACEOF
4395 /* end confdefs.h. */
4396 #include <ac_nonexistent.h>
4398 if { (ac_try="$ac_cpp conftest.$ac_ext"
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } >/dev/null && {
4411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4414 # Broken: success on invalid input.
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 # Passes both tests.
4425 rm -f conftest.err conftest.$ac_ext
4428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4429 rm -f conftest.err conftest.$ac_ext
4430 if $ac_preproc_ok; then
4433 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4434 See \`config.log' for more details." >&5
4435 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4436 See \`config.log' for more details." >&2;}
4437 { (exit 1); exit 1; }; }
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4447 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4448 if test "${ac_cv_c_const+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4461 /* FIXME: Include the comments suggested by Paul. */
4463 /* Ultrix mips cc rejects this. */
4464 typedef int charset[2];
4466 /* SunOS 4.1.1 cc rejects this. */
4467 char const *const *pcpcc;
4469 /* NEC SVR4.0.2 mips cc rejects this. */
4470 struct point {int x, y;};
4471 static struct point const zero = {0,0};
4472 /* AIX XL C 1.02.0.0 rejects this.
4473 It does not let you subtract one const X* pointer from another in
4474 an arm of an if-expression whose if-part is not a constant
4476 const char *g = "string";
4477 pcpcc = &g + (g ? g-g : 0);
4478 /* HPUX 7.0 cc rejects these. */
4480 ppc = (char**) pcpcc;
4481 pcpcc = (char const *const *) ppc;
4482 { /* SCO 3.2v4 cc rejects this. */
4484 char const *s = 0 ? (char *) 0 : (char const *) 0;
4489 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4491 const int *foo = &x[0];
4494 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4495 typedef const int *iptr;
4499 { /* AIX XL C 1.02.0.0 rejects this saying
4500 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4501 struct s { int j; const int *ap[3]; };
4502 struct s *b; b->j = 5;
4504 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4508 return !cs[0] && !zero.x;
4515 rm -f conftest.$ac_objext
4516 if { (ac_try="$ac_compile"
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4522 (eval "$ac_compile") 2>conftest.er1
4524 grep -v '^ *+' conftest.er1 >conftest.err
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest.$ac_objext; then
4534 echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.$ac_ext >&5
4540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4543 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4544 if test $ac_cv_c_const = no; then
4546 cat >>confdefs.h <<\_ACEOF
4552 { echo "$as_me:$LINENO: checking for inline" >&5
4553 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4554 if test "${ac_cv_c_inline+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 for ac_kw in inline __inline__ __inline; do
4559 cat >conftest.$ac_ext <<_ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4567 static $ac_kw foo_t static_foo () {return 0; }
4568 $ac_kw foo_t foo () {return 0; }
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_compile") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && {
4586 test -z "$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 } && test -s conftest.$ac_objext; then
4589 ac_cv_c_inline=$ac_kw
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 test "$ac_cv_c_inline" != no && break
4602 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4603 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4606 case $ac_cv_c_inline in
4609 case $ac_cv_c_inline in
4611 *) ac_val=$ac_cv_c_inline;;
4613 cat >>confdefs.h <<_ACEOF
4615 #define inline $ac_val
4621 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
4622 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
4623 if test "${ac_cv_c_stringize+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 cat >conftest.$ac_ext <<_ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4634 char *s = x(teststring);
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "#teststring" >/dev/null 2>&1; then
4638 ac_cv_c_stringize=no
4640 ac_cv_c_stringize=yes
4645 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
4646 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
4647 if test $ac_cv_c_stringize = yes; then
4649 cat >>confdefs.h <<\_ACEOF
4650 #define HAVE_STRINGIZE 1
4656 # If set to t, that means we are running in a shell under Emacs.
4657 # If you have an Emacs named "t", then use the full path.
4658 test x"$EMACS" = xt && EMACS=
4659 for ac_prog in emacs xemacs
4661 # Extract the first word of "$ac_prog", so it can be a program name with args.
4662 set dummy $ac_prog; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_EMACS+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$EMACS"; then
4669 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_EMACS="$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 EMACS=$ac_cv_prog_EMACS
4689 if test -n "$EMACS"; then
4690 { echo "$as_me:$LINENO: result: $EMACS" >&5
4691 echo "${ECHO_T}$EMACS" >&6; }
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 test -n "$EMACS" && break
4700 test -n "$EMACS" || EMACS="no"
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_PLAINTEX+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$PLAINTEX"; then
4712 ac_cv_prog_PLAINTEX="$PLAINTEX" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_PLAINTEX="$ac_prog"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 PLAINTEX=$ac_cv_prog_PLAINTEX
4732 if test -n "$PLAINTEX"; then
4733 { echo "$as_me:$LINENO: result: $PLAINTEX" >&5
4734 echo "${ECHO_T}$PLAINTEX" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 test -n "$PLAINTEX" && break
4743 test -n "$PLAINTEX" || PLAINTEX="no"
4745 for ac_prog in latex latex2e
4747 # Extract the first word of "$ac_prog", so it can be a program name with args.
4748 set dummy $ac_prog; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_prog_LATEX+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 if test -n "$LATEX"; then
4755 ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_LATEX="$ac_prog"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 LATEX=$ac_cv_prog_LATEX
4775 if test -n "$LATEX"; then
4776 { echo "$as_me:$LINENO: result: $LATEX" >&5
4777 echo "${ECHO_T}$LATEX" >&6; }
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4784 test -n "$LATEX" && break
4786 test -n "$LATEX" || LATEX="no"
4788 for ac_prog in pdflatex
4790 # Extract the first word of "$ac_prog", so it can be a program name with args.
4791 set dummy $ac_prog; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_PDFLATEX+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test -n "$PDFLATEX"; then
4798 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_PDFLATEX="$ac_prog"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 PDFLATEX=$ac_cv_prog_PDFLATEX
4818 if test -n "$PDFLATEX"; then
4819 { echo "$as_me:$LINENO: result: $PDFLATEX" >&5
4820 echo "${ECHO_T}$PDFLATEX" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4827 test -n "$PDFLATEX" && break
4829 test -n "$PDFLATEX" || PDFLATEX="no"
4831 for ac_prog in dvips
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_DVIPS+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 if test -n "$DVIPS"; then
4841 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_DVIPS="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 DVIPS=$ac_cv_prog_DVIPS
4861 if test -n "$DVIPS"; then
4862 { echo "$as_me:$LINENO: result: $DVIPS" >&5
4863 echo "${ECHO_T}$DVIPS" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 test -n "$DVIPS" && break
4872 test -n "$DVIPS" || DVIPS="no"
4874 for ac_prog in troff
4876 # Extract the first word of "$ac_prog", so it can be a program name with args.
4877 set dummy $ac_prog; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_prog_TROFF+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 if test -n "$TROFF"; then
4884 ac_cv_prog_TROFF="$TROFF" # Let the user override the test.
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir=.
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4893 ac_cv_prog_TROFF="$ac_prog"
4894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 TROFF=$ac_cv_prog_TROFF
4904 if test -n "$TROFF"; then
4905 { echo "$as_me:$LINENO: result: $TROFF" >&5
4906 echo "${ECHO_T}$TROFF" >&6; }
4908 { echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6; }
4913 test -n "$TROFF" && break
4915 test -n "$TROFF" || TROFF="no"
4919 # Check whether --with-kpsexpand was given.
4920 if test "${with_kpsexpand+set}" = set; then
4921 withval=$with_kpsexpand; if test "$withval" = yes; then
4923 cat >>confdefs.h <<\_ACEOF
4924 #define HAVE_KPSEXPAND 1
4932 { echo "$as_me:$LINENO: checking for X" >&5
4933 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
4936 # Check whether --with-x was given.
4937 if test "${with_x+set}" = set; then
4941 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4942 if test "x$with_x" = xno; then
4943 # The user explicitly disabled X.
4946 case $x_includes,$x_libraries in #(
4947 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
4948 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
4949 { (exit 1); exit 1; }; };; #(
4950 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 # One or both of the vars are not set, and there is no cached value.
4954 ac_x_includes=no ac_x_libraries=no
4955 rm -f -r conftest.dir
4956 if mkdir conftest.dir; then
4958 cat >Imakefile <<'_ACEOF'
4960 @echo incroot='${INCROOT}'
4962 @echo usrlibdir='${USRLIBDIR}'
4964 @echo libdir='${LIBDIR}'
4966 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4967 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4968 for ac_var in incroot usrlibdir libdir; do
4969 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4971 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4972 for ac_extension in a so sl; do
4973 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4974 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4975 ac_im_usrlibdir=$ac_im_libdir; break
4978 # Screen out bogus values from the imake configuration. They are
4979 # bogus both because they are the default anyway, and because
4980 # using them would break gcc on systems where it needs fixed includes.
4981 case $ac_im_incroot in
4982 /usr/include) ac_x_includes= ;;
4983 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4985 case $ac_im_usrlibdir in
4987 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4991 rm -f -r conftest.dir
4994 # Standard set of common directories for X headers.
4995 # Check X11 before X11Rn because it is often a symlink to the current release.
5007 /usr/local/X11/include
5008 /usr/local/X11R6/include
5009 /usr/local/X11R5/include
5010 /usr/local/X11R4/include
5012 /usr/local/include/X11
5013 /usr/local/include/X11R6
5014 /usr/local/include/X11R5
5015 /usr/local/include/X11R4
5019 /usr/XFree86/include/X11
5023 /usr/unsupported/include
5025 /usr/local/x11r5/include
5026 /usr/lpp/Xamples/include
5028 /usr/openwin/include
5029 /usr/openwin/share/include'
5031 if test "$ac_x_includes" = no; then
5032 # Guess where to find include files, by looking for Xlib.h.
5033 # First, try using that file with no special directory specified.
5034 cat >conftest.$ac_ext <<_ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <X11/Xlib.h>
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null && {
5055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5058 # We can compile using X headers with no special include directory.
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 for ac_dir in $ac_x_header_dirs; do
5065 if test -r "$ac_dir/X11/Xlib.h"; then
5066 ac_x_includes=$ac_dir
5072 rm -f conftest.err conftest.$ac_ext
5073 fi # $ac_x_includes = no
5075 if test "$ac_x_libraries" = no; then
5076 # Check for the libraries.
5077 # See if we find them without any special options.
5078 # Don't add to $LIBS permanently.
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5087 #include <X11/Xlib.h>
5096 rm -f conftest.$ac_objext conftest$ac_exeext
5097 if { (ac_try="$ac_link"
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_link") 2>conftest.er1
5105 grep -v '^ *+' conftest.er1 >conftest.err
5107 cat conftest.err >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } && {
5110 test -z "$ac_c_werror_flag" ||
5111 test ! -s conftest.err
5112 } && test -s conftest$ac_exeext &&
5113 $as_test_x conftest$ac_exeext; then
5115 # We can link X programs with no special library path.
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5122 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5124 # Don't even attempt the hair of trying to link an X program!
5125 for ac_extension in a so sl; do
5126 if test -r "$ac_dir/libX11.$ac_extension"; then
5127 ac_x_libraries=$ac_dir
5134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5135 conftest$ac_exeext conftest.$ac_ext
5136 fi # $ac_x_libraries = no
5138 case $ac_x_includes,$ac_x_libraries in #(
5140 # Didn't find X, or a directory has "'" in its name.
5141 ac_cv_have_x="have_x=no";; #(
5143 # Record where we found X for the cache.
5144 ac_cv_have_x="have_x=yes\
5145 ac_x_includes='$ac_x_includes'\
5146 ac_x_libraries='$ac_x_libraries'"
5152 eval "$ac_cv_have_x"
5155 if test "$have_x" != yes; then
5156 { echo "$as_me:$LINENO: result: $have_x" >&5
5157 echo "${ECHO_T}$have_x" >&6; }
5160 # If each of the values was on the command line, it overrides each guess.
5161 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5162 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5163 # Update the cache value to reflect the command line values.
5164 ac_cv_have_x="have_x=yes\
5165 ac_x_includes='$x_includes'\
5166 ac_x_libraries='$x_libraries'"
5167 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5168 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
5171 if test "$no_x" = yes; then
5172 # Not all programs may use this symbol, but it does not hurt to define it.
5174 cat >>confdefs.h <<\_ACEOF
5175 #define X_DISPLAY_MISSING 1
5178 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5180 if test -n "$x_includes"; then
5181 X_CFLAGS="$X_CFLAGS -I$x_includes"
5184 # It would also be nice to do this for all -L options, not just this one.
5185 if test -n "$x_libraries"; then
5186 X_LIBS="$X_LIBS -L$x_libraries"
5187 # For Solaris; some versions of Sun CC require a space after -R and
5188 # others require no space. Words are not sufficient . . . .
5189 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5190 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
5191 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5192 ac_xsave_c_werror_flag=$ac_c_werror_flag
5193 ac_c_werror_flag=yes
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5209 rm -f conftest.$ac_objext conftest$ac_exeext
5210 if { (ac_try="$ac_link"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_link") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } && {
5223 test -z "$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 } && test -s conftest$ac_exeext &&
5226 $as_test_x conftest$ac_exeext; then
5227 { echo "$as_me:$LINENO: result: no" >&5
5228 echo "${ECHO_T}no" >&6; }
5229 X_LIBS="$X_LIBS -R$x_libraries"
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 LIBS="$ac_xsave_LIBS -R $x_libraries"
5235 cat >conftest.$ac_ext <<_ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5250 rm -f conftest.$ac_objext conftest$ac_exeext
5251 if { (ac_try="$ac_link"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_link") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest$ac_exeext &&
5267 $as_test_x conftest$ac_exeext; then
5268 { echo "$as_me:$LINENO: result: yes" >&5
5269 echo "${ECHO_T}yes" >&6; }
5270 X_LIBS="$X_LIBS -R $x_libraries"
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 { echo "$as_me:$LINENO: result: neither works" >&5
5276 echo "${ECHO_T}neither works" >&6; }
5279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5280 conftest$ac_exeext conftest.$ac_ext
5283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284 conftest$ac_exeext conftest.$ac_ext
5285 ac_c_werror_flag=$ac_xsave_c_werror_flag
5289 # Check for system-dependent libraries X programs must link with.
5290 # Do this before checking for the system-independent R6 libraries
5291 # (-lICE), since we may need -lsocket or whatever for X linking.
5293 if test "$ISC" = yes; then
5294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5296 # Martyn Johnson says this is needed for Ultrix, if the X
5297 # libraries were built with DECnet support. And Karl Berry says
5298 # the Alpha needs dnet_stub (dnet does not exist).
5299 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5307 /* Override any GCC internal prototype to avoid an error.
5308 Use char because int might match the return type of a GCC
5309 builtin and then its argument prototype would still apply. */
5313 char XOpenDisplay ();
5317 return XOpenDisplay ();
5322 rm -f conftest.$ac_objext conftest$ac_exeext
5323 if { (ac_try="$ac_link"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_link") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest$ac_exeext &&
5339 $as_test_x conftest$ac_exeext; then
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5346 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
5347 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 ac_check_lib_save_LIBS=$LIBS
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5359 /* Override any GCC internal prototype to avoid an error.
5360 Use char because int might match the return type of a GCC
5361 builtin and then its argument prototype would still apply. */
5369 return dnet_ntoa ();
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (ac_try="$ac_link"
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_link") 2>conftest.er1
5383 grep -v '^ *+' conftest.er1 >conftest.err
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest$ac_exeext &&
5391 $as_test_x conftest$ac_exeext; then
5392 ac_cv_lib_dnet_dnet_ntoa=yes
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5397 ac_cv_lib_dnet_dnet_ntoa=no
5400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5401 conftest$ac_exeext conftest.$ac_ext
5402 LIBS=$ac_check_lib_save_LIBS
5404 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5405 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5406 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
5407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5410 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5411 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5412 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
5413 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 ac_check_lib_save_LIBS=$LIBS
5417 LIBS="-ldnet_stub $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. */
5435 return dnet_ntoa ();
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_c_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_dnet_stub_dnet_ntoa=yes
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5463 ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
5471 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5472 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
5473 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5480 conftest$ac_exeext conftest.$ac_ext
5481 LIBS="$ac_xsave_LIBS"
5483 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5484 # to get the SysV transport functions.
5485 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5487 # The nsl library prevents programs from opening the X display
5488 # on Irix 5.2, according to T.E. Dickey.
5489 # The functions gethostbyname, getservbyname, and inet_addr are
5490 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5491 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
5492 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5493 if test "${ac_cv_func_gethostbyname+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5504 #define gethostbyname innocuous_gethostbyname
5506 /* System header to define __stub macros and hopefully few prototypes,
5507 which can conflict with char gethostbyname (); below.
5508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5509 <limits.h> exists even on freestanding compilers. */
5512 # include <limits.h>
5514 # include <assert.h>
5517 #undef gethostbyname
5519 /* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5525 char gethostbyname ();
5526 /* The GNU C library defines this for functions which it implements
5527 to always fail with ENOSYS. Some functions are actually named
5528 something starting with __ and the normal name is an alias. */
5529 #if defined __stub_gethostbyname || defined __stub___gethostbyname
5536 return gethostbyname ();
5541 rm -f conftest.$ac_objext conftest$ac_exeext
5542 if { (ac_try="$ac_link"
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_link") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } && {
5555 test -z "$ac_c_werror_flag" ||
5556 test ! -s conftest.err
5557 } && test -s conftest$ac_exeext &&
5558 $as_test_x conftest$ac_exeext; then
5559 ac_cv_func_gethostbyname=yes
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5564 ac_cv_func_gethostbyname=no
5567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5568 conftest$ac_exeext conftest.$ac_ext
5570 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5571 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5573 if test $ac_cv_func_gethostbyname = no; then
5574 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5575 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
5576 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 ac_check_lib_save_LIBS=$LIBS
5581 cat >conftest.$ac_ext <<_ACEOF
5584 cat confdefs.h >>conftest.$ac_ext
5585 cat >>conftest.$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 /* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5594 char gethostbyname ();
5598 return gethostbyname ();
5603 rm -f conftest.$ac_objext conftest$ac_exeext
5604 if { (ac_try="$ac_link"
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_link") 2>conftest.er1
5612 grep -v '^ *+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest$ac_exeext &&
5620 $as_test_x conftest$ac_exeext; then
5621 ac_cv_lib_nsl_gethostbyname=yes
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5626 ac_cv_lib_nsl_gethostbyname=no
5629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5630 conftest$ac_exeext conftest.$ac_ext
5631 LIBS=$ac_check_lib_save_LIBS
5633 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5634 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
5635 if test $ac_cv_lib_nsl_gethostbyname = yes; then
5636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5639 if test $ac_cv_lib_nsl_gethostbyname = no; then
5640 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5641 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
5642 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 ac_check_lib_save_LIBS=$LIBS
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5654 /* Override any GCC internal prototype to avoid an error.
5655 Use char because int might match the return type of a GCC
5656 builtin and then its argument prototype would still apply. */
5660 char gethostbyname ();
5664 return gethostbyname ();
5669 rm -f conftest.$ac_objext conftest$ac_exeext
5670 if { (ac_try="$ac_link"
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_link") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1 >conftest.err
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest$ac_exeext &&
5686 $as_test_x conftest$ac_exeext; then
5687 ac_cv_lib_bsd_gethostbyname=yes
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5692 ac_cv_lib_bsd_gethostbyname=no
5695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5696 conftest$ac_exeext conftest.$ac_ext
5697 LIBS=$ac_check_lib_save_LIBS
5699 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5700 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
5701 if test $ac_cv_lib_bsd_gethostbyname = yes; then
5702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5708 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5709 # socket/setsockopt and other routines are undefined under SCO ODT
5710 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5711 # on later versions), says Simon Leinen: it contains gethostby*
5712 # variants that don't use the name server (or something). -lsocket
5713 # must be given before -lnsl if both are needed. We assume that
5714 # if connect needs -lnsl, so does gethostbyname.
5715 { echo "$as_me:$LINENO: checking for connect" >&5
5716 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5717 if test "${ac_cv_func_connect+set}" = set; then
5718 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
5727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5728 #define connect innocuous_connect
5730 /* System header to define __stub macros and hopefully few prototypes,
5731 which can conflict with char connect (); below.
5732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 <limits.h> exists even on freestanding compilers. */
5736 # include <limits.h>
5738 # include <assert.h>
5743 /* Override any GCC internal prototype to avoid an error.
5744 Use char because int might match the return type of a GCC
5745 builtin and then its argument prototype would still apply. */
5750 /* The GNU C library defines this for functions which it implements
5751 to always fail with ENOSYS. Some functions are actually named
5752 something starting with __ and the normal name is an alias. */
5753 #if defined __stub_connect || defined __stub___connect
5765 rm -f conftest.$ac_objext conftest$ac_exeext
5766 if { (ac_try="$ac_link"
5768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5769 *) ac_try_echo=$ac_try;;
5771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5772 (eval "$ac_link") 2>conftest.er1
5774 grep -v '^ *+' conftest.er1 >conftest.err
5776 cat conftest.err >&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && {
5779 test -z "$ac_c_werror_flag" ||
5780 test ! -s conftest.err
5781 } && test -s conftest$ac_exeext &&
5782 $as_test_x conftest$ac_exeext; then
5783 ac_cv_func_connect=yes
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 ac_cv_func_connect=no
5791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5792 conftest$ac_exeext conftest.$ac_ext
5794 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5795 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
5797 if test $ac_cv_func_connect = no; then
5798 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5799 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
5800 if test "${ac_cv_lib_socket_connect+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 ac_check_lib_save_LIBS=$LIBS
5804 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5812 /* Override any GCC internal prototype to avoid an error.
5813 Use char because int might match the return type of a GCC
5814 builtin and then its argument prototype would still apply. */
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (ac_try="$ac_link"
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_link") 2>conftest.er1
5836 grep -v '^ *+' conftest.er1 >conftest.err
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest$ac_exeext &&
5844 $as_test_x conftest$ac_exeext; then
5845 ac_cv_lib_socket_connect=yes
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_cv_lib_socket_connect=no
5853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5854 conftest$ac_exeext conftest.$ac_ext
5855 LIBS=$ac_check_lib_save_LIBS
5857 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
5858 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
5859 if test $ac_cv_lib_socket_connect = yes; then
5860 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5865 # Guillermo Gomez says -lposix is necessary on A/UX.
5866 { echo "$as_me:$LINENO: checking for remove" >&5
5867 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
5868 if test "${ac_cv_func_remove+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
5878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5879 #define remove innocuous_remove
5881 /* System header to define __stub macros and hopefully few prototypes,
5882 which can conflict with char remove (); below.
5883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5884 <limits.h> exists even on freestanding compilers. */
5887 # include <limits.h>
5889 # include <assert.h>
5894 /* Override any GCC internal prototype to avoid an error.
5895 Use char because int might match the return type of a GCC
5896 builtin and then its argument prototype would still apply. */
5901 /* The GNU C library defines this for functions which it implements
5902 to always fail with ENOSYS. Some functions are actually named
5903 something starting with __ and the normal name is an alias. */
5904 #if defined __stub_remove || defined __stub___remove
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_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest$ac_exeext &&
5933 $as_test_x conftest$ac_exeext; then
5934 ac_cv_func_remove=yes
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5939 ac_cv_func_remove=no
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943 conftest$ac_exeext conftest.$ac_ext
5945 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5946 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
5948 if test $ac_cv_func_remove = no; then
5949 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5950 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
5951 if test "${ac_cv_lib_posix_remove+set}" = set; then
5952 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 ac_check_lib_save_LIBS=$LIBS
5955 LIBS="-lposix $LIBS"
5956 cat >conftest.$ac_ext <<_ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5963 /* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (ac_try="$ac_link"
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_link") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest$ac_exeext &&
5995 $as_test_x conftest$ac_exeext; then
5996 ac_cv_lib_posix_remove=yes
5998 echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_lib_posix_remove=no
6004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6005 conftest$ac_exeext conftest.$ac_ext
6006 LIBS=$ac_check_lib_save_LIBS
6008 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6009 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6010 if test $ac_cv_lib_posix_remove = yes; then
6011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6016 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6017 { echo "$as_me:$LINENO: checking for shmat" >&5
6018 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6019 if test "${ac_cv_func_shmat+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 cat >conftest.$ac_ext <<_ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6030 #define shmat innocuous_shmat
6032 /* System header to define __stub macros and hopefully few prototypes,
6033 which can conflict with char shmat (); below.
6034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6035 <limits.h> exists even on freestanding compilers. */
6038 # include <limits.h>
6040 # include <assert.h>
6045 /* Override any GCC internal prototype to avoid an error.
6046 Use char because int might match the return type of a GCC
6047 builtin and then its argument prototype would still apply. */
6052 /* The GNU C library defines this for functions which it implements
6053 to always fail with ENOSYS. Some functions are actually named
6054 something starting with __ and the normal name is an alias. */
6055 #if defined __stub_shmat || defined __stub___shmat
6067 rm -f conftest.$ac_objext conftest$ac_exeext
6068 if { (ac_try="$ac_link"
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_link") 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest$ac_exeext &&
6084 $as_test_x conftest$ac_exeext; then
6085 ac_cv_func_shmat=yes
6087 echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6094 conftest$ac_exeext conftest.$ac_ext
6096 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6097 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6099 if test $ac_cv_func_shmat = no; then
6100 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6101 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
6102 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 ac_check_lib_save_LIBS=$LIBS
6107 cat >conftest.$ac_ext <<_ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6114 /* Override any GCC internal prototype to avoid an error.
6115 Use char because int might match the return type of a GCC
6116 builtin and then its argument prototype would still apply. */
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (ac_try="$ac_link"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_link") 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } && {
6143 test -z "$ac_c_werror_flag" ||
6144 test ! -s conftest.err
6145 } && test -s conftest$ac_exeext &&
6146 $as_test_x conftest$ac_exeext; then
6147 ac_cv_lib_ipc_shmat=yes
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ac_cv_lib_ipc_shmat=no
6155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6156 conftest$ac_exeext conftest.$ac_ext
6157 LIBS=$ac_check_lib_save_LIBS
6159 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6160 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
6161 if test $ac_cv_lib_ipc_shmat = yes; then
6162 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6168 # Check for libraries that X11R6 Xt/Xaw programs need.
6169 ac_save_LDFLAGS=$LDFLAGS
6170 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6171 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6172 # check for ICE first), but we must link in the order -lSM -lICE or
6173 # we get undefined symbols. So assume we have SM if we have ICE.
6174 # These have to be linked with before -lX11, unlike the other
6175 # libraries we check for below, so use a different variable.
6176 # John Interrante, Karl Berry
6177 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6178 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
6179 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 ac_check_lib_save_LIBS=$LIBS
6183 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6191 /* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
6197 char IceConnectionNumber ();
6201 return IceConnectionNumber ();
6206 rm -f conftest.$ac_objext conftest$ac_exeext
6207 if { (ac_try="$ac_link"
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
6224 ac_cv_lib_ICE_IceConnectionNumber=yes
6226 echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6229 ac_cv_lib_ICE_IceConnectionNumber=no
6232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233 conftest$ac_exeext conftest.$ac_ext
6234 LIBS=$ac_check_lib_save_LIBS
6236 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6237 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6238 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6239 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6242 LDFLAGS=$ac_save_LDFLAGS
6247 if test "$ac_cv_func_gethostbyname" = no; then
6248 if test "$ac_cv_lib_nsl_gethostbyname" = no; then
6249 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6250 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6251 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 ac_check_lib_save_LIBS=$LIBS
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6263 /* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
6269 char gethostbyname ();
6273 return gethostbyname ();
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (ac_try="$ac_link"
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_link") 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest$ac_exeext &&
6295 $as_test_x conftest$ac_exeext; then
6296 ac_cv_lib_bsd_gethostbyname=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_lib_bsd_gethostbyname=no
6304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6305 conftest$ac_exeext conftest.$ac_ext
6306 LIBS=$ac_check_lib_save_LIBS
6308 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6309 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6310 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6311 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6317 if test "$no_x" != yes; then
6318 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6319 LIBRARIES_FOR_X="$X_LIBS -lX11 $X_EXTRA_LIBS"
6320 GNUPLOT_X11='gnuplot_x11${EXEEXT}'
6322 cat >>confdefs.h <<\_ACEOF
6332 { echo "$as_me:$LINENO: checking for MS-DOS/djgpp/libGRX" >&5
6333 echo $ECHO_N "checking for MS-DOS/djgpp/libGRX... $ECHO_C" >&6; }
6334 cat >conftest.$ac_ext <<_ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #if __DJGPP__ && __DJGPP__ == 2
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "yes" >/dev/null 2>&1; then
6347 { echo "$as_me:$LINENO: result: yes" >&5
6348 echo "${ECHO_T}yes" >&6; }
6351 cat >>confdefs.h <<\_ACEOF
6356 cat >>confdefs.h <<\_ACEOF
6361 { echo "$as_me:$LINENO: checking for GrLine in -lgrx20" >&5
6362 echo $ECHO_N "checking for GrLine in -lgrx20... $ECHO_C" >&6; }
6363 if test "${ac_cv_lib_grx20_GrLine+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 ac_check_lib_save_LIBS=$LIBS
6367 LIBS="-lgrx20 $LIBS"
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6375 /* Override any GCC internal prototype to avoid an error.
6376 Use char because int might match the return type of a GCC
6377 builtin and then its argument prototype would still apply. */
6390 rm -f conftest.$ac_objext conftest$ac_exeext
6391 if { (ac_try="$ac_link"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_link") 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest$ac_exeext &&
6407 $as_test_x conftest$ac_exeext; then
6408 ac_cv_lib_grx20_GrLine=yes
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6413 ac_cv_lib_grx20_GrLine=no
6416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6417 conftest$ac_exeext conftest.$ac_ext
6418 LIBS=$ac_check_lib_save_LIBS
6420 { echo "$as_me:$LINENO: result: $ac_cv_lib_grx20_GrLine" >&5
6421 echo "${ECHO_T}$ac_cv_lib_grx20_GrLine" >&6; }
6422 if test $ac_cv_lib_grx20_GrLine = yes; then
6423 LIBS="-lgrx20 $LIBS"
6424 CFLAGS="$CFLAGS -fno-inline-functions"
6426 cat >>confdefs.h <<\_ACEOF
6430 { echo "$as_me:$LINENO: checking for GrCustomLine in -lgrx20" >&5
6431 echo $ECHO_N "checking for GrCustomLine in -lgrx20... $ECHO_C" >&6; }
6432 if test "${ac_cv_lib_grx20_GrCustomLine+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_check_lib_save_LIBS=$LIBS
6436 LIBS="-lgrx20 $LIBS"
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6444 /* Override any GCC internal prototype to avoid an error.
6445 Use char because int might match the return type of a GCC
6446 builtin and then its argument prototype would still apply. */
6450 char GrCustomLine ();
6454 return GrCustomLine ();
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (ac_try="$ac_link"
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_link") 2>conftest.er1
6468 grep -v '^ *+' conftest.er1 >conftest.err
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest$ac_exeext &&
6476 $as_test_x conftest$ac_exeext; then
6477 ac_cv_lib_grx20_GrCustomLine=yes
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6482 ac_cv_lib_grx20_GrCustomLine=no
6485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6486 conftest$ac_exeext conftest.$ac_ext
6487 LIBS=$ac_check_lib_save_LIBS
6489 { echo "$as_me:$LINENO: result: $ac_cv_lib_grx20_GrCustomLine" >&5
6490 echo "${ECHO_T}$ac_cv_lib_grx20_GrCustomLine" >&6; }
6491 if test $ac_cv_lib_grx20_GrCustomLine = yes; then
6493 cat >>confdefs.h <<\_ACEOF
6503 { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6510 { echo "$as_me:$LINENO: checking for NeXT" >&5
6511 echo $ECHO_N "checking for NeXT... $ECHO_C" >&6; }
6512 cat >conftest.$ac_ext <<_ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524 $EGREP "yes" >/dev/null 2>&1; then
6525 { echo "$as_me:$LINENO: result: yes" >&5
6526 echo "${ECHO_T}yes" >&6; }
6527 LIBS="$LIBS -lsys_s -lNeXT_s"
6528 CFLAGS="$CFLAGS -ObjC"
6531 { echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6; }
6538 { echo "$as_me:$LINENO: checking for Apple MacOS X" >&5
6539 echo $ECHO_N "checking for Apple MacOS X... $ECHO_C" >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #if defined(__APPLE__) && defined(__MACH__)
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552 $EGREP "yes" >/dev/null 2>&1; then
6553 { echo "$as_me:$LINENO: result: yes" >&5
6554 echo "${ECHO_T}yes" >&6; }
6555 { echo "$as_me:$LINENO: checking for aqtInit in -laquaterm" >&5
6556 echo $ECHO_N "checking for aqtInit in -laquaterm... $ECHO_C" >&6; }
6557 if test "${ac_cv_lib_aquaterm_aqtInit+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_check_lib_save_LIBS=$LIBS
6561 LIBS="-laquaterm -lobjc $LIBS"
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6569 /* Override any GCC internal prototype to avoid an error.
6570 Use char because int might match the return type of a GCC
6571 builtin and then its argument prototype would still apply. */
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (ac_try="$ac_link"
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_link") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest$ac_exeext &&
6601 $as_test_x conftest$ac_exeext; then
6602 ac_cv_lib_aquaterm_aqtInit=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6607 ac_cv_lib_aquaterm_aqtInit=no
6610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6611 conftest$ac_exeext conftest.$ac_ext
6612 LIBS=$ac_check_lib_save_LIBS
6614 { echo "$as_me:$LINENO: result: $ac_cv_lib_aquaterm_aqtInit" >&5
6615 echo "${ECHO_T}$ac_cv_lib_aquaterm_aqtInit" >&6; }
6616 if test $ac_cv_lib_aquaterm_aqtInit = yes; then
6617 LIBS="-laquaterm $LIBS -framework Foundation"
6618 CFLAGS="$CFLAGS -ObjC"
6620 cat >>confdefs.h <<\_ACEOF
6621 #define HAVE_LIBAQUATERM 1
6630 { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6637 { echo "$as_me:$LINENO: checking for BeOS" >&5
6638 echo $ECHO_N "checking for BeOS... $ECHO_C" >&6; }
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "yes" >/dev/null 2>&1; then
6652 { echo "$as_me:$LINENO: result: yes" >&5
6653 echo "${ECHO_T}yes" >&6; }
6654 build_src_beos_subdir=yes
6656 build_src_beos_subdir=no
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6663 { echo "$as_me:$LINENO: checking for Alpha/AXP CPU" >&5
6664 echo $ECHO_N "checking for Alpha/AXP CPU... $ECHO_C" >&6; }
6665 cat >conftest.$ac_ext <<_ACEOF
6668 cat confdefs.h >>conftest.$ac_ext
6669 cat >>conftest.$ac_ext <<_ACEOF
6670 /* end confdefs.h. */
6676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6677 $EGREP "yes" >/dev/null 2>&1; then
6678 { echo "$as_me:$LINENO: result: yes" >&5
6679 echo "${ECHO_T}yes" >&6; }
6680 if test "$GCC" = "yes" ; then
6681 CFLAGS="-mieee $CFLAGS"
6683 CFLAGS="-ieee $CFLAGS"
6686 { echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6; }
6694 if test x$build_beos_subdir = xyes; then
6695 BUILD_SRC_BEOS_SUBDIR_TRUE=
6696 BUILD_SRC_BEOS_SUBDIR_FALSE='#'
6698 BUILD_SRC_BEOS_SUBDIR_TRUE='#'
6699 BUILD_SRC_BEOS_SUBDIR_FALSE=
6703 { echo "$as_me:$LINENO: checking for sin" >&5
6704 echo $ECHO_N "checking for sin... $ECHO_C" >&6; }
6705 if test "${ac_cv_func_sin+set}" = set; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
6715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6716 #define sin innocuous_sin
6718 /* System header to define __stub macros and hopefully few prototypes,
6719 which can conflict with char sin (); below.
6720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6721 <limits.h> exists even on freestanding compilers. */
6724 # include <limits.h>
6726 # include <assert.h>
6731 /* Override any GCC internal prototype to avoid an error.
6732 Use char because int might match the return type of a GCC
6733 builtin and then its argument prototype would still apply. */
6738 /* The GNU C library defines this for functions which it implements
6739 to always fail with ENOSYS. Some functions are actually named
6740 something starting with __ and the normal name is an alias. */
6741 #if defined __stub_sin || defined __stub___sin
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760 (eval "$ac_link") 2>conftest.er1
6762 grep -v '^ *+' conftest.er1 >conftest.err
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } && {
6767 test -z "$ac_c_werror_flag" ||
6768 test ! -s conftest.err
6769 } && test -s conftest$ac_exeext &&
6770 $as_test_x conftest$ac_exeext; then
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6780 conftest$ac_exeext conftest.$ac_ext
6782 { echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
6783 echo "${ECHO_T}$ac_cv_func_sin" >&6; }
6784 if test $ac_cv_func_sin = yes; then
6788 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
6789 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
6790 if test "${ac_cv_lib_m_sin+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_check_lib_save_LIBS=$LIBS
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6802 /* Override any GCC internal prototype to avoid an error.
6803 Use char because int might match the return type of a GCC
6804 builtin and then its argument prototype would still apply. */
6817 rm -f conftest.$ac_objext conftest$ac_exeext
6818 if { (ac_try="$ac_link"
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824 (eval "$ac_link") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest$ac_exeext &&
6834 $as_test_x conftest$ac_exeext; then
6837 echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844 conftest$ac_exeext conftest.$ac_ext
6845 LIBS=$ac_check_lib_save_LIBS
6847 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6848 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
6849 if test $ac_cv_lib_m_sin = yes; then
6850 cat >>confdefs.h <<_ACEOF
6861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6863 if test "${ac_cv_header_stdc+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 cat >conftest.$ac_ext <<_ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h. */
6885 rm -f conftest.$ac_objext
6886 if { (ac_try="$ac_compile"
6888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6889 *) ac_try_echo=$ac_try;;
6891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6892 (eval "$ac_compile") 2>conftest.er1
6894 grep -v '^ *+' conftest.er1 >conftest.err
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } && {
6899 test -z "$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6901 } && test -s conftest.$ac_objext; then
6902 ac_cv_header_stdc=yes
6904 echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 ac_cv_header_stdc=no
6910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6912 if test $ac_cv_header_stdc = yes; then
6913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6914 cat >conftest.$ac_ext <<_ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6924 $EGREP "memchr" >/dev/null 2>&1; then
6927 ac_cv_header_stdc=no
6933 if test $ac_cv_header_stdc = yes; then
6934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6945 $EGREP "free" >/dev/null 2>&1; then
6948 ac_cv_header_stdc=no
6954 if test $ac_cv_header_stdc = yes; then
6955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6956 if test "$cross_compiling" = yes; then
6959 cat >conftest.$ac_ext <<_ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6967 #if ((' ' & 0x0FF) == 0x020)
6968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6971 # define ISLOWER(c) \
6972 (('a' <= (c) && (c) <= 'i') \
6973 || ('j' <= (c) && (c) <= 'r') \
6974 || ('s' <= (c) && (c) <= 'z'))
6975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6983 for (i = 0; i < 256; i++)
6984 if (XOR (islower (i), ISLOWER (i))
6985 || toupper (i) != TOUPPER (i))
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_link") 2>&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7001 { (case "(($ac_try" in
7002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7003 *) ac_try_echo=$ac_try;;
7005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7006 (eval "$ac_try") 2>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; }; then
7012 echo "$as_me: program exited with status $ac_status" >&5
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7017 ac_cv_header_stdc=no
7019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7027 if test $ac_cv_header_stdc = yes; then
7029 cat >>confdefs.h <<\_ACEOF
7030 #define STDC_HEADERS 1
7063 for ac_header in dirent.h errno.h float.h limits.h locale.h math.h stdlib.h \
7064 string.h time.h sys/time.h sys/types.h \
7065 sys/bsdtypes.h sys/ioctl.h sys/param.h sys/select.h sys/socket.h \
7066 sys/stat.h sys/systeminfo.h sys/timeb.h sys/utsname.h \
7067 libc.h malloc.h poll.h sgtty.h termios.h values.h pwd.h
7070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7077 ac_res=`eval echo '${'$as_ac_Header'}'`
7078 { echo "$as_me:$LINENO: result: $ac_res" >&5
7079 echo "${ECHO_T}$ac_res" >&6; }
7081 # Is the header compilable?
7082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7084 cat >conftest.$ac_ext <<_ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h. */
7090 $ac_includes_default
7091 #include <$ac_header>
7093 rm -f conftest.$ac_objext
7094 if { (ac_try="$ac_compile"
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_compile") 2>conftest.er1
7102 grep -v '^ *+' conftest.er1 >conftest.err
7104 cat conftest.err >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); } && {
7107 test -z "$ac_c_werror_flag" ||
7108 test ! -s conftest.err
7109 } && test -s conftest.$ac_objext; then
7110 ac_header_compiler=yes
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7115 ac_header_compiler=no
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7120 echo "${ECHO_T}$ac_header_compiler" >&6; }
7122 # Is the header present?
7123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7125 cat >conftest.$ac_ext <<_ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 #include <$ac_header>
7133 if { (ac_try="$ac_cpp conftest.$ac_ext"
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7141 grep -v '^ *+' conftest.er1 >conftest.err
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } >/dev/null && {
7146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7147 test ! -s conftest.err
7149 ac_header_preproc=yes
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 ac_header_preproc=no
7157 rm -f conftest.err conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7159 echo "${ECHO_T}$ac_header_preproc" >&6; }
7161 # So? What about this header?
7162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7168 ac_header_preproc=yes
7171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 eval "$as_ac_Header=\$ac_header_preproc"
7193 ac_res=`eval echo '${'$as_ac_Header'}'`
7194 { echo "$as_me:$LINENO: result: $ac_res" >&5
7195 echo "${ECHO_T}$ac_res" >&6; }
7198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7199 cat >>confdefs.h <<_ACEOF
7200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7208 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
7209 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
7210 if test "${ac_cv_header_stdbool_h+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7220 #include <stdbool.h>
7222 "error: bool is not defined"
7225 "error: false is not defined"
7228 "error: false is not 0"
7231 "error: true is not defined"
7234 "error: true is not 1"
7236 #ifndef __bool_true_false_are_defined
7237 "error: __bool_true_false_are_defined is not defined"
7240 struct s { _Bool s: 1; _Bool t; } s;
7242 char a[true == 1 ? 1 : -1];
7243 char b[false == 0 ? 1 : -1];
7244 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7245 char d[(bool) 0.5 == true ? 1 : -1];
7247 char f[(_Bool) 0.0 == false ? 1 : -1];
7249 char h[sizeof (_Bool)];
7251 enum { j = false, k = true, l = false * true, m = true * 256 };
7253 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7254 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7255 # if defined __xlc__ || defined __GNUC__
7256 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7257 reported by James Lemley on 2005-10-05; see
7258 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7259 This test is not quite right, since xlc is allowed to
7260 reject this program, as the initializer for xlcbug is
7261 not one of the forms that C requires support for.
7262 However, doing the test right would require a runtime
7263 test, and that would make cross-compilation harder.
7264 Let us hope that IBM fixes the xlc bug, and also adds
7265 support for this kind of constant expression. In the
7266 meantime, this test will reject xlc, which is OK, since
7267 our stdbool.h substitute should suffice. We also test
7268 this with GCC, where it should work, to detect more
7269 quickly whether someone messes up the test in the
7271 char digs[] = "0123456789";
7272 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7274 /* Catch a bug in an HP-UX C compiler. See
7275 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7276 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7287 /* Refer to every declared value, to avoid compiler optimizations. */
7288 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7289 + !m + !n + !o + !p + !q + !pq);
7295 rm -f conftest.$ac_objext
7296 if { (ac_try="$ac_compile"
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7302 (eval "$ac_compile") 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
7312 ac_cv_header_stdbool_h=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_cv_header_stdbool_h=no
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
7323 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
7324 { echo "$as_me:$LINENO: checking for _Bool" >&5
7325 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
7326 if test "${ac_cv_type__Bool+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 typedef _Bool ac__type_new_;
7340 if ((ac__type_new_ *) 0)
7342 if (sizeof (ac__type_new_))
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_type__Bool=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
7376 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
7377 if test $ac_cv_type__Bool = yes; then
7379 cat >>confdefs.h <<_ACEOF
7380 #define HAVE__BOOL 1
7386 if test $ac_cv_header_stdbool_h = yes; then
7388 cat >>confdefs.h <<\_ACEOF
7389 #define HAVE_STDBOOL_H 1
7395 if test "$ac_cv_header_math_h" = yes ; then
7396 { echo "$as_me:$LINENO: checking for struct exception in math.h" >&5
7397 echo $ECHO_N "checking for struct exception in math.h... $ECHO_C" >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7408 struct exception *x; x->type; x->name;
7413 rm -f conftest.$ac_objext conftest$ac_exeext
7414 if { (ac_try="$ac_link"
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_link") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest$ac_exeext &&
7430 $as_test_x conftest$ac_exeext; then
7431 { echo "$as_me:$LINENO: result: yes" >&5
7432 echo "${ECHO_T}yes" >&6; }
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_STRUCT_EXCEPTION_IN_MATH_H 1
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 { echo "$as_me:$LINENO: result: no" >&5
7443 echo "${ECHO_T}no" >&6; }
7446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7447 conftest$ac_exeext conftest.$ac_ext
7450 if test "$ac_cv_header_sys_stat_h" = yes; then
7451 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7452 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7453 if test "${ac_cv_header_stat_broken+set}" = set; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #include <sys/types.h>
7463 #include <sys/stat.h>
7465 #if defined S_ISBLK && defined S_IFDIR
7466 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7469 #if defined S_ISBLK && defined S_IFCHR
7470 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7473 #if defined S_ISLNK && defined S_IFREG
7474 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7477 #if defined S_ISSOCK && defined S_IFREG
7478 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7482 rm -f conftest.$ac_objext
7483 if { (ac_try="$ac_compile"
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7489 (eval "$ac_compile") 2>conftest.er1
7491 grep -v '^ *+' conftest.er1 >conftest.err
7493 cat conftest.err >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); } && {
7496 test -z "$ac_c_werror_flag" ||
7497 test ! -s conftest.err
7498 } && test -s conftest.$ac_objext; then
7499 ac_cv_header_stat_broken=no
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7504 ac_cv_header_stat_broken=yes
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7510 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7511 if test $ac_cv_header_stat_broken = yes; then
7513 cat >>confdefs.h <<\_ACEOF
7514 #define STAT_MACROS_BROKEN 1
7521 { echo "$as_me:$LINENO: checking for unistd.h" >&5
7522 echo $ECHO_N "checking for unistd.h... $ECHO_C" >&6; }
7523 cat >conftest.$ac_ext <<_ACEOF
7526 cat confdefs.h >>conftest.$ac_ext
7527 cat >>conftest.$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7533 $EGREP "execv" >/dev/null 2>&1; then
7534 cat >>confdefs.h <<\_ACEOF
7535 #define HAVE_UNISTD_H 1
7537 { echo "$as_me:$LINENO: result: yes" >&5
7538 echo "${ECHO_T}yes" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7546 { echo "$as_me:$LINENO: checking if errno variable is declared" >&5
7547 echo $ECHO_N "checking if errno variable is declared... $ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 { echo "$as_me:$LINENO: result: yes" >&5
7584 echo "${ECHO_T}yes" >&6; }
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7590 cat >>confdefs.h <<\_ACEOF
7591 #define EXTERN_ERRNO 1
7594 { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601 { echo "$as_me:$LINENO: checking for size_t" >&5
7602 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7603 if test "${ac_cv_type_size_t+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7612 $ac_includes_default
7613 typedef size_t ac__type_new_;
7617 if ((ac__type_new_ *) 0)
7619 if (sizeof (ac__type_new_))
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7634 grep -v '^ *+' conftest.er1 >conftest.err
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7642 ac_cv_type_size_t=yes
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_type_size_t=no
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7653 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7654 if test $ac_cv_type_size_t = yes; then
7658 cat >>confdefs.h <<_ACEOF
7659 #define size_t unsigned int
7664 { echo "$as_me:$LINENO: checking for time_t in time.h" >&5
7665 echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6; }
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7676 $EGREP "time_t" >/dev/null 2>&1; then
7677 { echo "$as_me:$LINENO: result: yes" >&5
7678 echo "${ECHO_T}yes" >&6; }
7680 cat >>confdefs.h <<\_ACEOF
7681 #define HAVE_TIME_T_IN_TIME_H 1
7687 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7688 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7689 if test "${ac_cv_type_signal+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7692 cat >conftest.$ac_ext <<_ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 #include <sys/types.h>
7704 return *(signal (0, 0)) (0) == 1;
7709 rm -f conftest.$ac_objext
7710 if { (ac_try="$ac_compile"
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 ac_cv_type_signal=int
7728 echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 ac_cv_type_signal=void
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7737 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7739 cat >>confdefs.h <<_ACEOF
7740 #define RETSIGTYPE $ac_cv_type_signal
7784 for ac_func in atexit memcpy memmove memset \
7785 on_exit bcopy bzero \
7786 setvbuf strerror strchr strrchr strstr \
7789 erf erfc gamma lgamma \
7790 getcwd poll pclose popen select sleep stpcpy \
7791 strcspn strdup strcasecmp stricmp strncasecmp strnicmp \
7792 sysinfo tcgetattr vfprintf doprnt usleep
7795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 cat >conftest.$ac_ext <<_ACEOF
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7809 #define $ac_func innocuous_$ac_func
7811 /* System header to define __stub macros and hopefully few prototypes,
7812 which can conflict with char $ac_func (); below.
7813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7814 <limits.h> exists even on freestanding compilers. */
7817 # include <limits.h>
7819 # include <assert.h>
7824 /* Override any GCC internal prototype to avoid an error.
7825 Use char because int might match the return type of a GCC
7826 builtin and then its argument prototype would still apply. */
7831 /* The GNU C library defines this for functions which it implements
7832 to always fail with ENOSYS. Some functions are actually named
7833 something starting with __ and the normal name is an alias. */
7834 #if defined __stub_$ac_func || defined __stub___$ac_func
7846 rm -f conftest.$ac_objext conftest$ac_exeext
7847 if { (ac_try="$ac_link"
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7853 (eval "$ac_link") 2>conftest.er1
7855 grep -v '^ *+' conftest.er1 >conftest.err
7857 cat conftest.err >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && {
7860 test -z "$ac_c_werror_flag" ||
7861 test ! -s conftest.err
7862 } && test -s conftest$ac_exeext &&
7863 $as_test_x conftest$ac_exeext; then
7864 eval "$as_ac_var=yes"
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 eval "$as_ac_var=no"
7872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7873 conftest$ac_exeext conftest.$ac_ext
7875 ac_res=`eval echo '${'$as_ac_var'}'`
7876 { echo "$as_me:$LINENO: result: $ac_res" >&5
7877 echo "${ECHO_T}$ac_res" >&6; }
7878 if test `eval echo '${'$as_ac_var'}'` = yes; then
7879 cat >>confdefs.h <<_ACEOF
7880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7888 for ac_func in snprintf
7890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7904 #define $ac_func innocuous_$ac_func
7906 /* System header to define __stub macros and hopefully few prototypes,
7907 which can conflict with char $ac_func (); below.
7908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7909 <limits.h> exists even on freestanding compilers. */
7912 # include <limits.h>
7914 # include <assert.h>
7919 /* Override any GCC internal prototype to avoid an error.
7920 Use char because int might match the return type of a GCC
7921 builtin and then its argument prototype would still apply. */
7926 /* The GNU C library defines this for functions which it implements
7927 to always fail with ENOSYS. Some functions are actually named
7928 something starting with __ and the normal name is an alias. */
7929 #if defined __stub_$ac_func || defined __stub___$ac_func
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (ac_try="$ac_link"
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_link") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext &&
7958 $as_test_x conftest$ac_exeext; then
7959 eval "$as_ac_var=yes"
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 eval "$as_ac_var=no"
7967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7968 conftest$ac_exeext conftest.$ac_ext
7970 ac_res=`eval echo '${'$as_ac_var'}'`
7971 { echo "$as_me:$LINENO: result: $ac_res" >&5
7972 echo "${ECHO_T}$ac_res" >&6; }
7973 if test `eval echo '${'$as_ac_var'}'` = yes; then
7974 cat >>confdefs.h <<_ACEOF
7975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7979 { echo "$as_me:$LINENO: result:
7980 WARNING: Could not find a working version of snprintf.
7981 If a user provides gnuplot with an improper format statement
7982 then a buffer overflow and/or segfault can result.
7983 Please consider providing snprintf via an external library.
7986 WARNING: Could not find a working version of snprintf.
7987 If a user provides gnuplot with an improper format statement
7988 then a buffer overflow and/or segfault can result.
7989 Please consider providing snprintf via an external library.
7997 { echo "$as_me:$LINENO: checking whether signgam is declared" >&5
7998 echo $ECHO_N "checking whether signgam is declared... $ECHO_C" >&6; }
7999 if test "${ac_cv_have_decl_signgam+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_cv_have_decl_signgam=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 ac_cv_have_decl_signgam=no
8049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_signgam" >&5
8052 echo "${ECHO_T}$ac_cv_have_decl_signgam" >&6; }
8053 if test $ac_cv_have_decl_signgam = yes; then
8055 cat >>confdefs.h <<_ACEOF
8056 #define HAVE_DECL_SIGNGAM 1
8061 cat >>confdefs.h <<_ACEOF
8062 #define HAVE_DECL_SIGNGAM 0
8070 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
8071 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
8072 cat >conftest.$ac_ext <<_ACEOF
8075 cat confdefs.h >>conftest.$ac_ext
8076 cat >>conftest.$ac_ext <<_ACEOF
8077 /* end confdefs.h. */
8082 jmp_buf env; sigsetjmp(env, 1);
8087 rm -f conftest.$ac_objext conftest$ac_exeext
8088 if { (ac_try="$ac_link"
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>conftest.er1
8096 grep -v '^ *+' conftest.er1 >conftest.err
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100 (exit $ac_status); } && {
8101 test -z "$ac_c_werror_flag" ||
8102 test ! -s conftest.err
8103 } && test -s conftest$ac_exeext &&
8104 $as_test_x conftest$ac_exeext; then
8105 { echo "$as_me:$LINENO: result: yes" >&5
8106 echo "${ECHO_T}yes" >&6; }
8108 cat >>confdefs.h <<\_ACEOF
8109 #define HAVE_SIGSETJMP 1
8113 echo "$as_me: failed program was:" >&5
8114 sed 's/^/| /' conftest.$ac_ext >&5
8116 { echo "$as_me:$LINENO: result: no" >&5
8117 echo "${ECHO_T}no" >&6; }
8120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8121 conftest$ac_exeext conftest.$ac_ext
8123 if test "$ac_cv_func_pclose" = yes -a "$ac_cv_func_popen" = yes ; then
8125 cat >>confdefs.h <<\_ACEOF
8133 for ac_header in sys/select.h sys/socket.h
8135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8140 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_res=`eval echo '${'$as_ac_Header'}'`
8143 { echo "$as_me:$LINENO: result: $ac_res" >&5
8144 echo "${ECHO_T}$ac_res" >&6; }
8146 # Is the header compilable?
8147 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8148 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8156 #include <$ac_header>
8158 rm -f conftest.$ac_objext
8159 if { (ac_try="$ac_compile"
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_header_compiler=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 ac_header_compiler=no
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8185 echo "${ECHO_T}$ac_header_compiler" >&6; }
8187 # Is the header present?
8188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8190 cat >conftest.$ac_ext <<_ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 #include <$ac_header>
8198 if { (ac_try="$ac_cpp conftest.$ac_ext"
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } >/dev/null && {
8211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8214 ac_header_preproc=yes
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 ac_header_preproc=no
8222 rm -f conftest.err conftest.$ac_ext
8223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8224 echo "${ECHO_T}$ac_header_preproc" >&6; }
8226 # So? What about this header?
8227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8233 ac_header_preproc=yes
8236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8251 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 eval "$as_ac_Header=\$ac_header_preproc"
8258 ac_res=`eval echo '${'$as_ac_Header'}'`
8259 { echo "$as_me:$LINENO: result: $ac_res" >&5
8260 echo "${ECHO_T}$ac_res" >&6; }
8263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8264 cat >>confdefs.h <<_ACEOF
8265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8272 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
8273 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
8274 if test "${ac_cv_func_select_args+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8278 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8279 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 $ac_includes_default
8287 #ifdef HAVE_SYS_SELECT_H
8288 # include <sys/select.h>
8290 #ifdef HAVE_SYS_SOCKET_H
8291 # include <sys/socket.h>
8297 extern int select ($ac_arg1,
8298 $ac_arg234, $ac_arg234, $ac_arg234,
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.$ac_objext; then
8321 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 # Provide a safe default value.
8334 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8337 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
8338 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
8339 ac_save_IFS=$IFS; IFS=','
8340 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8344 cat >>confdefs.h <<_ACEOF
8345 #define SELECT_TYPE_ARG1 $1
8349 cat >>confdefs.h <<_ACEOF
8350 #define SELECT_TYPE_ARG234 ($2)
8354 cat >>confdefs.h <<_ACEOF
8355 #define SELECT_TYPE_ARG5 ($3)
8362 LASERGNU=lasergnu-noinstall
8364 # Check whether --with-lasergnu was given.
8365 if test "${with_lasergnu+set}" = set; then
8366 withval=$with_lasergnu; test "$withval" = yes && LASERGNU=lasergnu-install
8370 eval gp_datadir=$datadir
8371 if test "$gp_datadir" = NONE/share; then
8372 datadir="/usr/local/share"
8374 pkgdatadir="$datadir/$PACKAGE"
8376 # Check whether --with-gihdir was given.
8377 if test "${with_gihdir+set}" = set; then
8378 withval=$with_gihdir; GIHDIR="$withval"
8380 GIHDIR="$pkgdatadir/$VERSION_MAJOR"
8385 # Check whether --with-linux-vga was given.
8386 if test "${with_linux_vga+set}" = set; then
8387 withval=$with_linux_vga;
8389 test -z "$with_linux_vga" && with_linux_vga=no
8393 if test "$with_linux_vga" = yes; then
8394 { echo "$as_me:$LINENO: checking for linux vga library" >&5
8395 echo $ECHO_N "checking for linux vga library... $ECHO_C" >&6; }
8396 { echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5
8397 echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6; }
8398 if test "${ac_cv_lib_vga_vga_init+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 ac_check_lib_save_LIBS=$LIBS
8403 cat >conftest.$ac_ext <<_ACEOF
8406 cat confdefs.h >>conftest.$ac_ext
8407 cat >>conftest.$ac_ext <<_ACEOF
8408 /* end confdefs.h. */
8410 /* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (ac_try="$ac_link"
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_link") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1 >conftest.err
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest$ac_exeext &&
8442 $as_test_x conftest$ac_exeext; then
8443 ac_cv_lib_vga_vga_init=yes
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_lib_vga_vga_init=no
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8452 conftest$ac_exeext conftest.$ac_ext
8453 LIBS=$ac_check_lib_save_LIBS
8455 { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5
8456 echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6; }
8457 if test $ac_cv_lib_vga_vga_init = yes; then
8459 cat >>confdefs.h <<\_ACEOF
8463 LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot'
8464 TERMLIBS="-lvga $TERMLIBS"
8473 # Check whether --with-ggi was given.
8474 if test "${with_ggi+set}" = set; then
8475 withval=$with_ggi; if test "$withval" != no; then
8476 if test -d $withval/include; then
8477 CPPFLAGS="$CPPFLAGS -I$withval/include"
8479 if test -d $withval/lib; then
8480 LDFLAGS="$LDFLAGS -L$withval/lib"
8482 { echo "$as_me:$LINENO: checking for ggiInit in -lggi" >&5
8483 echo $ECHO_N "checking for ggiInit in -lggi... $ECHO_C" >&6; }
8484 if test "${ac_cv_lib_ggi_ggiInit+set}" = set; then
8485 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 ac_check_lib_save_LIBS=$LIBS
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8496 /* Override any GCC internal prototype to avoid an error.
8497 Use char because int might match the return type of a GCC
8498 builtin and then its argument prototype would still apply. */
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (ac_try="$ac_link"
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_link") 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } && {
8525 test -z "$ac_c_werror_flag" ||
8526 test ! -s conftest.err
8527 } && test -s conftest$ac_exeext &&
8528 $as_test_x conftest$ac_exeext; then
8529 ac_cv_lib_ggi_ggiInit=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_cv_lib_ggi_ggiInit=no
8537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8538 conftest$ac_exeext conftest.$ac_ext
8539 LIBS=$ac_check_lib_save_LIBS
8541 { echo "$as_me:$LINENO: result: $ac_cv_lib_ggi_ggiInit" >&5
8542 echo "${ECHO_T}$ac_cv_lib_ggi_ggiInit" >&6; }
8543 if test $ac_cv_lib_ggi_ggiInit = yes; then
8544 TERMLIBS="-lggi $TERMLIBS"
8546 cat >>confdefs.h <<\_ACEOF
8547 #define USE_GGI_DRIVER 1
8551 { echo "$as_me:$LINENO: checking for ggiWmhInit in -lggiwmh" >&5
8552 echo $ECHO_N "checking for ggiWmhInit in -lggiwmh... $ECHO_C" >&6; }
8553 if test "${ac_cv_lib_ggiwmh_ggiWmhInit+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_check_lib_save_LIBS=$LIBS
8557 LIBS="-lggiwmh $LIBS"
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8565 /* Override any GCC internal prototype to avoid an error.
8566 Use char because int might match the return type of a GCC
8567 builtin and then its argument prototype would still apply. */
8575 return ggiWmhInit ();
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (ac_try="$ac_link"
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_link") 2>conftest.er1
8589 grep -v '^ *+' conftest.er1 >conftest.err
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } && {
8594 test -z "$ac_c_werror_flag" ||
8595 test ! -s conftest.err
8596 } && test -s conftest$ac_exeext &&
8597 $as_test_x conftest$ac_exeext; then
8598 ac_cv_lib_ggiwmh_ggiWmhInit=yes
8600 echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_cv_lib_ggiwmh_ggiWmhInit=no
8606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8607 conftest$ac_exeext conftest.$ac_ext
8608 LIBS=$ac_check_lib_save_LIBS
8610 { echo "$as_me:$LINENO: result: $ac_cv_lib_ggiwmh_ggiWmhInit" >&5
8611 echo "${ECHO_T}$ac_cv_lib_ggiwmh_ggiWmhInit" >&6; }
8612 if test $ac_cv_lib_ggiwmh_ggiWmhInit = yes; then
8613 TERMLIBS="-lggiwmh $TERMLIBS"
8615 for ac_header in ggi/wmh.h
8617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 ac_res=`eval echo '${'$as_ac_Header'}'`
8625 { echo "$as_me:$LINENO: result: $ac_res" >&5
8626 echo "${ECHO_T}$ac_res" >&6; }
8628 # Is the header compilable?
8629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #include <$ac_header>
8640 rm -f conftest.$ac_objext
8641 if { (ac_try="$ac_compile"
8643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8647 (eval "$ac_compile") 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } && {
8654 test -z "$ac_c_werror_flag" ||
8655 test ! -s conftest.err
8656 } && test -s conftest.$ac_objext; then
8657 ac_header_compiler=yes
8659 echo "$as_me: failed program was:" >&5
8660 sed 's/^/| /' conftest.$ac_ext >&5
8662 ac_header_compiler=no
8665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8667 echo "${ECHO_T}$ac_header_compiler" >&6; }
8669 # Is the header present?
8670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8672 cat >conftest.$ac_ext <<_ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h. */
8678 #include <$ac_header>
8680 if { (ac_try="$ac_cpp conftest.$ac_ext"
8682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683 *) ac_try_echo=$ac_try;;
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8688 grep -v '^ *+' conftest.er1 >conftest.err
8690 cat conftest.err >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } >/dev/null && {
8693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8696 ac_header_preproc=yes
8698 echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_header_preproc=no
8704 rm -f conftest.err conftest.$ac_ext
8705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8706 echo "${ECHO_T}$ac_header_preproc" >&6; }
8708 # So? What about this header?
8709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8715 ac_header_preproc=yes
8718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 eval "$as_ac_Header=\$ac_header_preproc"
8740 ac_res=`eval echo '${'$as_ac_Header'}'`
8741 { echo "$as_me:$LINENO: result: $ac_res" >&5
8742 echo "${ECHO_T}$ac_res" >&6; }
8745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8746 cat >>confdefs.h <<_ACEOF
8747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8751 { echo "$as_me:$LINENO: WARNING: found ggiwmh library but not ggi/wmh.h
8752 please add path to ggi/wmh.h to CPPFLAGS in Makefile" >&5
8753 echo "$as_me: WARNING: found ggiwmh library but not ggi/wmh.h
8754 please add path to ggi/wmh.h to CPPFLAGS in Makefile" >&2;}
8769 # Check whether --with-xmi was given.
8770 if test "${with_xmi+set}" = set; then
8771 withval=$with_xmi; if test "$withval" != no -a "$GGI_SUPPORT" = yes; then
8772 if test -d $withval/include; then
8773 CPPFLAGS="$CPPFLAGS -I$withval/include"
8775 if test -d $withval/lib; then
8776 LDFLAGS="$LDFLAGS -L$withval/lib"
8778 { echo "$as_me:$LINENO: checking for xmiInit in -lxmi" >&5
8779 echo $ECHO_N "checking for xmiInit in -lxmi... $ECHO_C" >&6; }
8780 if test "${ac_cv_lib_xmi_xmiInit+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 ac_check_lib_save_LIBS=$LIBS
8785 cat >conftest.$ac_ext <<_ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8792 /* Override any GCC internal prototype to avoid an error.
8793 Use char because int might match the return type of a GCC
8794 builtin and then its argument prototype would still apply. */
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (ac_try="$ac_link"
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_link") 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest$ac_exeext &&
8824 $as_test_x conftest$ac_exeext; then
8825 ac_cv_lib_xmi_xmiInit=yes
8827 echo "$as_me: failed program was:" >&5
8828 sed 's/^/| /' conftest.$ac_ext >&5
8830 ac_cv_lib_xmi_xmiInit=no
8833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8834 conftest$ac_exeext conftest.$ac_ext
8835 LIBS=$ac_check_lib_save_LIBS
8837 { echo "$as_me:$LINENO: result: $ac_cv_lib_xmi_xmiInit" >&5
8838 echo "${ECHO_T}$ac_cv_lib_xmi_xmiInit" >&6; }
8839 if test $ac_cv_lib_xmi_xmiInit = yes; then
8840 TERMLIBS="-lxmi $TERMLIBS"
8842 for ac_header in ggi/xmi.h
8844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 ac_res=`eval echo '${'$as_ac_Header'}'`
8852 { echo "$as_me:$LINENO: result: $ac_res" >&5
8853 echo "${ECHO_T}$ac_res" >&6; }
8855 # Is the header compilable?
8856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8858 cat >conftest.$ac_ext <<_ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8865 #include <$ac_header>
8867 rm -f conftest.$ac_objext
8868 if { (ac_try="$ac_compile"
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_compile") 2>conftest.er1
8876 grep -v '^ *+' conftest.er1 >conftest.err
8878 cat conftest.err >&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); } && {
8881 test -z "$ac_c_werror_flag" ||
8882 test ! -s conftest.err
8883 } && test -s conftest.$ac_objext; then
8884 ac_header_compiler=yes
8886 echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8889 ac_header_compiler=no
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8894 echo "${ECHO_T}$ac_header_compiler" >&6; }
8896 # Is the header present?
8897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 #include <$ac_header>
8907 if { (ac_try="$ac_cpp conftest.$ac_ext"
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8915 grep -v '^ *+' conftest.er1 >conftest.err
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } >/dev/null && {
8920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8921 test ! -s conftest.err
8923 ac_header_preproc=yes
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8928 ac_header_preproc=no
8931 rm -f conftest.err conftest.$ac_ext
8932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8933 echo "${ECHO_T}$ac_header_preproc" >&6; }
8935 # So? What about this header?
8936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8942 ac_header_preproc=yes
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 eval "$as_ac_Header=\$ac_header_preproc"
8967 ac_res=`eval echo '${'$as_ac_Header'}'`
8968 { echo "$as_me:$LINENO: result: $ac_res" >&5
8969 echo "${ECHO_T}$ac_res" >&6; }
8972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8973 cat >>confdefs.h <<_ACEOF
8974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8988 # Check whether --with-readline was given.
8989 if test "${with_readline+set}" = set; then
8990 withval=$with_readline;
8992 test -z "$with_readline" && with_readline=gnu
8996 # Check whether --enable-history-file was given.
8997 if test "${enable_history_file+set}" = set; then
8998 enableval=$enable_history_file;
9000 test -z "$enable_history_file" && enable_history_file=yes
9004 if test "$with_readline" != no; then
9005 if test "$with_readline" != builtin; then
9007 if test "$with_readline" = bsd; then
9009 { echo "$as_me:$LINENO: checking for readline in -ledit" >&5
9010 echo $ECHO_N "checking for readline in -ledit... $ECHO_C" >&6; }
9011 if test "${ac_cv_lib_edit_readline+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 ac_check_lib_save_LIBS=$LIBS
9016 cat >conftest.$ac_ext <<_ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9023 /* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9056 ac_cv_lib_edit_readline=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_cv_lib_edit_readline=no
9064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9065 conftest$ac_exeext conftest.$ac_ext
9066 LIBS=$ac_check_lib_save_LIBS
9068 { echo "$as_me:$LINENO: result: $ac_cv_lib_edit_readline" >&5
9069 echo "${ECHO_T}$ac_cv_lib_edit_readline" >&6; }
9070 if test $ac_cv_lib_edit_readline = yes; then
9071 TERMLIBS="-ledit $TERMLIBS"
9073 { echo "$as_me:$LINENO: WARNING: Could not find BSD editline library " >&5
9074 echo "$as_me: WARNING: Could not find BSD editline library " >&2;}
9075 with_readline=builtin
9079 { echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
9080 echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6; }
9081 if test "${ac_cv_lib_curses_tputs+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 ac_check_lib_save_LIBS=$LIBS
9085 LIBS="-lcurses $LIBS"
9086 cat >conftest.$ac_ext <<_ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9093 /* Override any GCC internal prototype to avoid an error.
9094 Use char because int might match the return type of a GCC
9095 builtin and then its argument prototype would still apply. */
9108 rm -f conftest.$ac_objext conftest$ac_exeext
9109 if { (ac_try="$ac_link"
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_link") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1 >conftest.err
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest$ac_exeext &&
9125 $as_test_x conftest$ac_exeext; then
9126 ac_cv_lib_curses_tputs=yes
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9131 ac_cv_lib_curses_tputs=no
9134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9135 conftest$ac_exeext conftest.$ac_ext
9136 LIBS=$ac_check_lib_save_LIBS
9138 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
9139 echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6; }
9140 if test $ac_cv_lib_curses_tputs = yes; then
9141 TERMLIBS="-lcurses $TERMLIBS"
9145 if test "$ac_cv_lib_edit_readline" = yes; then
9147 cat >>confdefs.h <<\_ACEOF
9148 #define HAVE_LIBEDITLINE 1
9152 for ac_header in editline/readline.h
9154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 ac_res=`eval echo '${'$as_ac_Header'}'`
9162 { echo "$as_me:$LINENO: result: $ac_res" >&5
9163 echo "${ECHO_T}$ac_res" >&6; }
9165 # Is the header compilable?
9166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9168 cat >conftest.$ac_ext <<_ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 $ac_includes_default
9175 #include <$ac_header>
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1 >conftest.err
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && {
9191 test -z "$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 } && test -s conftest.$ac_objext; then
9194 ac_header_compiler=yes
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_header_compiler=no
9202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9204 echo "${ECHO_T}$ac_header_compiler" >&6; }
9206 # Is the header present?
9207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9209 cat >conftest.$ac_ext <<_ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 #include <$ac_header>
9217 if { (ac_try="$ac_cpp conftest.$ac_ext"
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } >/dev/null && {
9230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9231 test ! -s conftest.err
9233 ac_header_preproc=yes
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9238 ac_header_preproc=no
9241 rm -f conftest.err conftest.$ac_ext
9242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9243 echo "${ECHO_T}$ac_header_preproc" >&6; }
9245 # So? What about this header?
9246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9252 ac_header_preproc=yes
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 eval "$as_ac_Header=\$ac_header_preproc"
9277 ac_res=`eval echo '${'$as_ac_Header'}'`
9278 { echo "$as_me:$LINENO: result: $ac_res" >&5
9279 echo "${ECHO_T}$ac_res" >&6; }
9282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9283 cat >>confdefs.h <<_ACEOF
9284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9288 { echo "$as_me:$LINENO: WARNING: found BSD editline library but not readline.h please add path to readline.h to CPPFLAGS in Makefile" >&5
9289 echo "$as_me: WARNING: found BSD editline library but not readline.h please add path to readline.h to CPPFLAGS in Makefile" >&2;}
9295 if test "$enable_history_file" = yes; then
9297 cat >>confdefs.h <<\_ACEOF
9298 #define GNUPLOT_HISTORY 1
9307 for termlib in ncurses curses termcap terminfo termlib; do
9308 as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tputs" | $as_tr_sh`
9309 { echo "$as_me:$LINENO: checking for tputs in -l${termlib}" >&5
9310 echo $ECHO_N "checking for tputs in -l${termlib}... $ECHO_C" >&6; }
9311 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 ac_check_lib_save_LIBS=$LIBS
9315 LIBS="-l${termlib} $LIBS"
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9323 /* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_link") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest$ac_exeext &&
9355 $as_test_x conftest$ac_exeext; then
9356 eval "$as_ac_Lib=yes"
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9361 eval "$as_ac_Lib=no"
9364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9365 conftest$ac_exeext conftest.$ac_ext
9366 LIBS=$ac_check_lib_save_LIBS
9368 ac_res=`eval echo '${'$as_ac_Lib'}'`
9369 { echo "$as_me:$LINENO: result: $ac_res" >&5
9370 echo "${ECHO_T}$ac_res" >&6; }
9371 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9372 gp_tcap="$gp_tcap -l$termlib"
9382 if test "$with_readline" = gnu; then
9383 { echo "$as_me:$LINENO: checking for remove_history in -lreadline" >&5
9384 echo $ECHO_N "checking for remove_history in -lreadline... $ECHO_C" >&6; }
9385 if test "${ac_cv_lib_readline_remove_history+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 ac_check_lib_save_LIBS=$LIBS
9389 LIBS="-lreadline ${gp_tcap} $LIBS"
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9403 char remove_history ();
9407 return remove_history ();
9412 rm -f conftest.$ac_objext conftest$ac_exeext
9413 if { (ac_try="$ac_link"
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_link") 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } && {
9426 test -z "$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9428 } && test -s conftest$ac_exeext &&
9429 $as_test_x conftest$ac_exeext; then
9430 ac_cv_lib_readline_remove_history=yes
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9435 ac_cv_lib_readline_remove_history=no
9438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9439 conftest$ac_exeext conftest.$ac_ext
9440 LIBS=$ac_check_lib_save_LIBS
9442 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_remove_history" >&5
9443 echo "${ECHO_T}$ac_cv_lib_readline_remove_history" >&6; }
9444 if test $ac_cv_lib_readline_remove_history = yes; then
9445 TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
9449 if test -d $with_readline/include; then
9450 CPPFLAGS="$CPPFLAGS -I$with_readline/include"
9452 if test -d $with_readline/lib; then
9453 LDFLAGS="$LDFLAGS -L$with_readline/lib"
9456 { echo "$as_me:$LINENO: checking for remove_history in -lreadline" >&5
9457 echo $ECHO_N "checking for remove_history in -lreadline... $ECHO_C" >&6; }
9458 if test "${ac_cv_lib_readline_remove_history+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 ac_check_lib_save_LIBS=$LIBS
9462 LIBS="-lreadline ${gp_tcap} $LIBS"
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9476 char remove_history ();
9480 return remove_history ();
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest$ac_exeext &&
9502 $as_test_x conftest$ac_exeext; then
9503 ac_cv_lib_readline_remove_history=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_cv_lib_readline_remove_history=no
9511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9515 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_remove_history" >&5
9516 echo "${ECHO_T}$ac_cv_lib_readline_remove_history" >&6; }
9517 if test $ac_cv_lib_readline_remove_history = yes; then
9518 TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
9524 if test "$ac_cv_lib_readline_remove_history" = no; then
9525 { echo "$as_me:$LINENO: checking for remove_history in -lhistory" >&5
9526 echo $ECHO_N "checking for remove_history in -lhistory... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_history_remove_history+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 ac_check_lib_save_LIBS=$LIBS
9531 LIBS="-lhistory ${gp_tcap} $LIBS"
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9545 char remove_history ();
9549 return remove_history ();
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
9572 ac_cv_lib_history_remove_history=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_history_remove_history=no
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_history_remove_history" >&5
9585 echo "${ECHO_T}$ac_cv_lib_history_remove_history" >&6; }
9586 if test $ac_cv_lib_history_remove_history = yes; then
9587 TERMLIBS="-lreadline -lhistory $gp_tcap $TERMLIBS"
9589 { echo "$as_me:$LINENO: WARNING: GNU readline not found - falling back to builtin readline" >&5
9590 echo "$as_me: WARNING: GNU readline not found - falling back to builtin readline" >&2;}
9591 with_readline=builtin
9597 if test "$ac_cv_lib_readline_remove_history" != no || test "$ac_cv_lib_history_remove_history" != no; then
9598 if test "$with_readline" = bsd; then
9600 cat >>confdefs.h <<\_ACEOF
9601 #define HAVE_LIBEDITLINE 1
9606 cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_LIBREADLINE 1
9612 for ac_header in readline/readline.h
9614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 ac_res=`eval echo '${'$as_ac_Header'}'`
9622 { echo "$as_me:$LINENO: result: $ac_res" >&5
9623 echo "${ECHO_T}$ac_res" >&6; }
9625 # Is the header compilable?
9626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 $ac_includes_default
9635 #include <$ac_header>
9637 rm -f conftest.$ac_objext
9638 if { (ac_try="$ac_compile"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_compile") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest.$ac_objext; then
9654 ac_header_compiler=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9659 ac_header_compiler=no
9662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9664 echo "${ECHO_T}$ac_header_compiler" >&6; }
9666 # Is the header present?
9667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9669 cat >conftest.$ac_ext <<_ACEOF
9672 cat confdefs.h >>conftest.$ac_ext
9673 cat >>conftest.$ac_ext <<_ACEOF
9674 /* end confdefs.h. */
9675 #include <$ac_header>
9677 if { (ac_try="$ac_cpp conftest.$ac_ext"
9679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680 *) ac_try_echo=$ac_try;;
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } >/dev/null && {
9690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9691 test ! -s conftest.err
9693 ac_header_preproc=yes
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_header_preproc=no
9701 rm -f conftest.err conftest.$ac_ext
9702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9703 echo "${ECHO_T}$ac_header_preproc" >&6; }
9705 # So? What about this header?
9706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9712 ac_header_preproc=yes
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 eval "$as_ac_Header=\$ac_header_preproc"
9737 ac_res=`eval echo '${'$as_ac_Header'}'`
9738 { echo "$as_me:$LINENO: result: $ac_res" >&5
9739 echo "${ECHO_T}$ac_res" >&6; }
9742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9743 cat >>confdefs.h <<_ACEOF
9744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9748 { echo "$as_me:$LINENO: WARNING: found GNU readline library but not readline.h
9749 please add path to readline.h to CPPFLAGS in Makefile" >&5
9750 echo "$as_me: WARNING: found GNU readline library but not readline.h
9751 please add path to readline.h to CPPFLAGS in Makefile" >&2;}
9757 for ac_header in readline/history.h
9759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 ac_res=`eval echo '${'$as_ac_Header'}'`
9767 { echo "$as_me:$LINENO: result: $ac_res" >&5
9768 echo "${ECHO_T}$ac_res" >&6; }
9770 # Is the header compilable?
9771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9773 cat >conftest.$ac_ext <<_ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h. */
9779 $ac_includes_default
9780 #include <$ac_header>
9782 rm -f conftest.$ac_objext
9783 if { (ac_try="$ac_compile"
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_compile") 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } && {
9796 test -z "$ac_c_werror_flag" ||
9797 test ! -s conftest.err
9798 } && test -s conftest.$ac_objext; then
9799 ac_header_compiler=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_header_compiler=no
9807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9809 echo "${ECHO_T}$ac_header_compiler" >&6; }
9811 # Is the header present?
9812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9814 cat >conftest.$ac_ext <<_ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 #include <$ac_header>
9822 if { (ac_try="$ac_cpp conftest.$ac_ext"
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } >/dev/null && {
9835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9838 ac_header_preproc=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_header_preproc=no
9846 rm -f conftest.err conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9848 echo "${ECHO_T}$ac_header_preproc" >&6; }
9850 # So? What about this header?
9851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9857 ac_header_preproc=yes
9860 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9861 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9862 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9863 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9865 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9867 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9870 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9871 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 eval "$as_ac_Header=\$ac_header_preproc"
9882 ac_res=`eval echo '${'$as_ac_Header'}'`
9883 { echo "$as_me:$LINENO: result: $ac_res" >&5
9884 echo "${ECHO_T}$ac_res" >&6; }
9887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9888 cat >>confdefs.h <<_ACEOF
9889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9893 { echo "$as_me:$LINENO: WARNING: found GNU readline library but not history.h
9894 please add path to history.h to CPPFLAGS in Makefile" >&5
9895 echo "$as_me: WARNING: found GNU readline library but not history.h
9896 please add path to history.h to CPPFLAGS in Makefile" >&2;}
9902 if test "$enable_history_file" = yes; then
9904 for ac_header in readline/tilde.h
9906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9913 ac_res=`eval echo '${'$as_ac_Header'}'`
9914 { echo "$as_me:$LINENO: result: $ac_res" >&5
9915 echo "${ECHO_T}$ac_res" >&6; }
9917 # Is the header compilable?
9918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9920 cat >conftest.$ac_ext <<_ACEOF
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 $ac_includes_default
9927 #include <$ac_header>
9929 rm -f conftest.$ac_objext
9930 if { (ac_try="$ac_compile"
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_compile") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest.$ac_objext; then
9946 ac_header_compiler=yes
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_header_compiler=no
9954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9955 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9956 echo "${ECHO_T}$ac_header_compiler" >&6; }
9958 # Is the header present?
9959 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 #include <$ac_header>
9969 if { (ac_try="$ac_cpp conftest.$ac_ext"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } >/dev/null && {
9982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9985 ac_header_preproc=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_header_preproc=no
9993 rm -f conftest.err conftest.$ac_ext
9994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9995 echo "${ECHO_T}$ac_header_preproc" >&6; }
9997 # So? What about this header?
9998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10004 ac_header_preproc=yes
10007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 eval "$as_ac_Header=\$ac_header_preproc"
10029 ac_res=`eval echo '${'$as_ac_Header'}'`
10030 { echo "$as_me:$LINENO: result: $ac_res" >&5
10031 echo "${ECHO_T}$ac_res" >&6; }
10034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10035 cat >>confdefs.h <<_ACEOF
10036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10039 cat >>confdefs.h <<\_ACEOF
10040 #define GNUPLOT_HISTORY 1
10049 fi # ! ac_cv_lib_readline_readline = no
10051 fi # ! with_readline = bsd
10053 fi # ! with_readline != builtin
10055 if test "$with_readline" = builtin; then
10057 cat >>confdefs.h <<\_ACEOF
10061 if test "$enable_history_file" = yes; then
10063 cat >>confdefs.h <<\_ACEOF
10064 #define GNUPLOT_HISTORY 1
10073 # Check whether --with-plot was given.
10074 if test "${with_plot+set}" = set; then
10075 withval=$with_plot; if test "$withval" = yes; then
10076 { echo "$as_me:$LINENO: checking for openpl in -lplot" >&5
10077 echo $ECHO_N "checking for openpl in -lplot... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_plot_openpl+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-lplot $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 /* Override any GCC internal prototype to avoid an error.
10091 Use char because int might match the return type of a GCC
10092 builtin and then its argument prototype would still apply. */
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
10123 ac_cv_lib_plot_openpl=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_plot_openpl=no
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_plot_openpl" >&5
10136 echo "${ECHO_T}$ac_cv_lib_plot_openpl" >&6; }
10137 if test $ac_cv_lib_plot_openpl = yes; then
10139 cat >>confdefs.h <<\_ACEOF
10143 TERMLIBS="-lplot $TERMLIBS"
10148 elif test "$withval" != no; then
10149 if test -d $withval/include; then
10150 CPPFLAGS="$CPPFLAGS -I$withval/include"
10152 if test -d $withval/lib; then
10153 LDFLAGS="$LDFLAGS -L$withval/lib"
10155 TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11"
10156 { echo "$as_me:$LINENO: checking for pl_textangle in -lplot" >&5
10157 echo $ECHO_N "checking for pl_textangle in -lplot... $ECHO_C" >&6; }
10158 if test "${ac_cv_lib_plot_pl_textangle+set}" = set; then
10159 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 ac_check_lib_save_LIBS=$LIBS
10162 LIBS="-lplot $TERMXLIBS $LIBS"
10163 cat >conftest.$ac_ext <<_ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h. */
10170 /* Override any GCC internal prototype to avoid an error.
10171 Use char because int might match the return type of a GCC
10172 builtin and then its argument prototype would still apply. */
10176 char pl_textangle ();
10180 return pl_textangle ();
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (ac_try="$ac_link"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_link") 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } && {
10199 test -z "$ac_c_werror_flag" ||
10200 test ! -s conftest.err
10201 } && test -s conftest$ac_exeext &&
10202 $as_test_x conftest$ac_exeext; then
10203 ac_cv_lib_plot_pl_textangle=yes
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_cv_lib_plot_pl_textangle=no
10211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10212 conftest$ac_exeext conftest.$ac_ext
10213 LIBS=$ac_check_lib_save_LIBS
10215 { echo "$as_me:$LINENO: result: $ac_cv_lib_plot_pl_textangle" >&5
10216 echo "${ECHO_T}$ac_cv_lib_plot_pl_textangle" >&6; }
10217 if test $ac_cv_lib_plot_pl_textangle = yes; then
10218 TERMLIBS="-lplot $TERMLIBS"
10220 cat >>confdefs.h <<\_ACEOF
10225 { echo "$as_me:$LINENO: WARNING: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" >&5
10226 echo "$as_me: WARNING: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" >&2;}
10235 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
10236 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
10237 if test "${ac_cv_lib_z_deflate+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 ac_check_lib_save_LIBS=$LIBS
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10249 /* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
10264 rm -f conftest.$ac_objext conftest$ac_exeext
10265 if { (ac_try="$ac_link"
10266 case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_link") 2>conftest.er1
10273 grep -v '^ *+' conftest.er1 >conftest.err
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } && {
10278 test -z "$ac_c_werror_flag" ||
10279 test ! -s conftest.err
10280 } && test -s conftest$ac_exeext &&
10281 $as_test_x conftest$ac_exeext; then
10282 ac_cv_lib_z_deflate=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 ac_cv_lib_z_deflate=no
10290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
10295 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
10296 if test $ac_cv_lib_z_deflate = yes; then
10297 TERMLIBS="$TERMLIBS -lz"
10299 cat >>confdefs.h <<\_ACEOF
10300 #define HAVE_LIBZ 1
10303 if test "${ac_cv_header_zlib_h+set}" = set; then
10304 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10305 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10306 if test "${ac_cv_header_zlib_h+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10310 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10312 # Is the header compilable?
10313 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10314 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10315 cat >conftest.$ac_ext <<_ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 $ac_includes_default
10324 rm -f conftest.$ac_objext
10325 if { (ac_try="$ac_compile"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_compile") 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest.$ac_objext; then
10341 ac_header_compiler=yes
10343 echo "$as_me: failed program was:" >&5
10344 sed 's/^/| /' conftest.$ac_ext >&5
10346 ac_header_compiler=no
10349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10351 echo "${ECHO_T}$ac_header_compiler" >&6; }
10353 # Is the header present?
10354 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10355 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10356 cat >conftest.$ac_ext <<_ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10364 if { (ac_try="$ac_cpp conftest.$ac_ext"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10372 grep -v '^ *+' conftest.er1 >conftest.err
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } >/dev/null && {
10377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10378 test ! -s conftest.err
10380 ac_header_preproc=yes
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10385 ac_header_preproc=no
10388 rm -f conftest.err conftest.$ac_ext
10389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10390 echo "${ECHO_T}$ac_header_preproc" >&6; }
10392 # So? What about this header?
10393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10395 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10396 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10398 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10399 ac_header_preproc=yes
10402 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10403 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10404 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
10405 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
10406 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10407 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
10409 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
10410 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10411 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10413 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10417 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10418 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10419 if test "${ac_cv_header_zlib_h+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_cv_header_zlib_h=$ac_header_preproc
10424 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10425 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10428 if test $ac_cv_header_zlib_h = yes; then
10431 { echo "$as_me:$LINENO: WARNING: found z library but not zlib.h
10432 please add path to zlib.h to CPPFLAGS in Makefile" >&5
10433 echo "$as_me: WARNING: found z library but not zlib.h
10434 please add path to zlib.h to CPPFLAGS in Makefile" >&2;}
10439 { echo "$as_me:$LINENO: WARNING: zlib is required - see http://www.gzip.org/zlib/" >&5
10440 echo "$as_me: WARNING: zlib is required - see http://www.gzip.org/zlib/" >&2;}
10445 # Check whether --with-gd was given.
10446 if test "${with_gd+set}" = set; then
10453 if test "$with_gd" != no; then
10454 # Extract the first word of "gdlib-config", so it can be a program name with args.
10455 set dummy gdlib-config; ac_word=$2
10456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10458 if test "${ac_cv_path_GDLIB_CONFIG+set}" = set; then
10459 echo $ECHO_N "(cached) $ECHO_C" >&6
10461 case $GDLIB_CONFIG in
10463 ac_cv_path_GDLIB_CONFIG="$GDLIB_CONFIG" # Let the user override the test with a path.
10466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467 for as_dir in $PATH
10470 test -z "$as_dir" && as_dir=.
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10473 ac_cv_path_GDLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10484 GDLIB_CONFIG=$ac_cv_path_GDLIB_CONFIG
10485 if test -n "$GDLIB_CONFIG"; then
10486 { echo "$as_me:$LINENO: result: $GDLIB_CONFIG" >&5
10487 echo "${ECHO_T}$GDLIB_CONFIG" >&6; }
10489 { echo "$as_me:$LINENO: result: no" >&5
10490 echo "${ECHO_T}no" >&6; }
10494 if test -n "$GDLIB_CONFIG"; then
10495 libgd_CPPFLAGS=`gdlib-config --cflags`
10496 libgd_LDFLAGS=`gdlib-config --ldflags`
10497 elif test -d "$with_gd"; then
10498 libgd_CPPFLAGS="-I$with_gd/include"
10499 libgd_LDFLAGS="-L$with_gd/lib"
10502 _cppflags="$CPPFLAGS"
10503 _ldflags="$LDFLAGS"
10504 CPPFLAGS="$CPPFLAGS $libgd_CPPFLAGS"
10505 LDFLAGS="$LDFLAGS $libgd_LDFLAGS"
10507 { echo "$as_me:$LINENO: checking for gdImageCreate in -lgd" >&5
10508 echo $ECHO_N "checking for gdImageCreate in -lgd... $ECHO_C" >&6; }
10509 if test "${ac_cv_lib_gd_gdImageCreate+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_check_lib_save_LIBS=$LIBS
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10527 char gdImageCreate ();
10531 return gdImageCreate ();
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest$ac_exeext &&
10553 $as_test_x conftest$ac_exeext; then
10554 ac_cv_lib_gd_gdImageCreate=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 ac_cv_lib_gd_gdImageCreate=no
10562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563 conftest$ac_exeext conftest.$ac_ext
10564 LIBS=$ac_check_lib_save_LIBS
10566 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageCreate" >&5
10567 echo "${ECHO_T}$ac_cv_lib_gd_gdImageCreate" >&6; }
10568 if test $ac_cv_lib_gd_gdImageCreate = yes; then
10570 cat >>confdefs.h <<\_ACEOF
10571 #define HAVE_LIBGD 1
10575 for ac_header in gd.h
10577 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10582 echo $ECHO_N "(cached) $ECHO_C" >&6
10584 ac_res=`eval echo '${'$as_ac_Header'}'`
10585 { echo "$as_me:$LINENO: result: $ac_res" >&5
10586 echo "${ECHO_T}$ac_res" >&6; }
10588 # Is the header compilable?
10589 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 $ac_includes_default
10598 #include <$ac_header>
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest.$ac_objext; then
10617 ac_header_compiler=yes
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_header_compiler=no
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10627 echo "${ECHO_T}$ac_header_compiler" >&6; }
10629 # Is the header present?
10630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10632 cat >conftest.$ac_ext <<_ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10638 #include <$ac_header>
10640 if { (ac_try="$ac_cpp conftest.$ac_ext"
10641 case "(($ac_try" in
10642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643 *) ac_try_echo=$ac_try;;
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10648 grep -v '^ *+' conftest.er1 >conftest.err
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } >/dev/null && {
10653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10654 test ! -s conftest.err
10656 ac_header_preproc=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_header_preproc=no
10664 rm -f conftest.err conftest.$ac_ext
10665 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10666 echo "${ECHO_T}$ac_header_preproc" >&6; }
10668 # So? What about this header?
10669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10675 ac_header_preproc=yes
10678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 eval "$as_ac_Header=\$ac_header_preproc"
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10706 cat >>confdefs.h <<_ACEOF
10707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711 { echo "$as_me:$LINENO: WARNING: please add path to gd.h to CPPFLAGS in Makefile" >&5
10712 echo "$as_me: WARNING: please add path to gd.h to CPPFLAGS in Makefile" >&2;}
10718 { echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
10719 echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6; }
10720 if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
10721 echo $ECHO_N "(cached) $ECHO_C" >&6
10723 ac_check_lib_save_LIBS=$LIBS
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10738 char gdImageGif ();
10742 return gdImageGif ();
10747 rm -f conftest.$ac_objext conftest$ac_exeext
10748 if { (ac_try="$ac_link"
10749 case "(($ac_try" in
10750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751 *) ac_try_echo=$ac_try;;
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754 (eval "$ac_link") 2>conftest.er1
10756 grep -v '^ *+' conftest.er1 >conftest.err
10758 cat conftest.err >&5
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); } && {
10761 test -z "$ac_c_werror_flag" ||
10762 test ! -s conftest.err
10763 } && test -s conftest$ac_exeext &&
10764 $as_test_x conftest$ac_exeext; then
10765 ac_cv_lib_gd_gdImageGif=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ac_cv_lib_gd_gdImageGif=no
10773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
10778 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6; }
10779 if test $ac_cv_lib_gd_gdImageGif = yes; then
10781 cat >>confdefs.h <<\_ACEOF
10782 #define HAVE_GD_GIF 1
10787 { echo "$as_me:$LINENO: checking for gdImageGifAnimBegin in -lgd" >&5
10788 echo $ECHO_N "checking for gdImageGifAnimBegin in -lgd... $ECHO_C" >&6; }
10789 if test "${ac_cv_lib_gd_gdImageGifAnimBegin+set}" = set; then
10790 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 ac_check_lib_save_LIBS=$LIBS
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10801 /* Override any GCC internal prototype to avoid an error.
10802 Use char because int might match the return type of a GCC
10803 builtin and then its argument prototype would still apply. */
10807 char gdImageGifAnimBegin ();
10811 return gdImageGifAnimBegin ();
10816 rm -f conftest.$ac_objext conftest$ac_exeext
10817 if { (ac_try="$ac_link"
10818 case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_link") 2>conftest.er1
10825 grep -v '^ *+' conftest.er1 >conftest.err
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_c_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest$ac_exeext &&
10833 $as_test_x conftest$ac_exeext; then
10834 ac_cv_lib_gd_gdImageGifAnimBegin=yes
10836 echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10839 ac_cv_lib_gd_gdImageGifAnimBegin=no
10842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10843 conftest$ac_exeext conftest.$ac_ext
10844 LIBS=$ac_check_lib_save_LIBS
10846 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGifAnimBegin" >&5
10847 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGifAnimBegin" >&6; }
10848 if test $ac_cv_lib_gd_gdImageGifAnimBegin = yes; then
10850 cat >>confdefs.h <<\_ACEOF
10851 #define GIF_ANIMATION 1
10858 LIBS="$LIBS -ljpeg"
10859 { echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5
10860 echo $ECHO_N "checking for gdImageJpeg in -lgd... $ECHO_C" >&6; }
10861 if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 ac_check_lib_save_LIBS=$LIBS
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10873 /* Override any GCC internal prototype to avoid an error.
10874 Use char because int might match the return type of a GCC
10875 builtin and then its argument prototype would still apply. */
10879 char gdImageJpeg ();
10883 return gdImageJpeg ();
10888 rm -f conftest.$ac_objext conftest$ac_exeext
10889 if { (ac_try="$ac_link"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_link") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest$ac_exeext &&
10905 $as_test_x conftest$ac_exeext; then
10906 ac_cv_lib_gd_gdImageJpeg=yes
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10911 ac_cv_lib_gd_gdImageJpeg=no
10914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5
10919 echo "${ECHO_T}$ac_cv_lib_gd_gdImageJpeg" >&6; }
10920 if test $ac_cv_lib_gd_gdImageJpeg = yes; then
10922 cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_GD_JPEG 1
10926 libgd_LIBS="$libgd_LIBS -ljpeg"
10930 LIBS="$_libs $libgd_LIBS -lfreetype"
10931 { echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
10932 echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6; }
10933 if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 ac_check_lib_save_LIBS=$LIBS
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10945 /* Override any GCC internal prototype to avoid an error.
10946 Use char because int might match the return type of a GCC
10947 builtin and then its argument prototype would still apply. */
10951 char gdImageStringFT ();
10955 return gdImageStringFT ();
10960 rm -f conftest.$ac_objext conftest$ac_exeext
10961 if { (ac_try="$ac_link"
10962 case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_link") 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_c_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest$ac_exeext &&
10977 $as_test_x conftest$ac_exeext; then
10978 ac_cv_lib_gd_gdImageStringFT=yes
10980 echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10983 ac_cv_lib_gd_gdImageStringFT=no
10986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10987 conftest$ac_exeext conftest.$ac_ext
10988 LIBS=$ac_check_lib_save_LIBS
10990 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
10991 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6; }
10992 if test $ac_cv_lib_gd_gdImageStringFT = yes; then
10995 { echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
10996 echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6; }
10997 if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 ac_check_lib_save_LIBS=$LIBS
11002 cat >conftest.$ac_ext <<_ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11009 /* Override any GCC internal prototype to avoid an error.
11010 Use char because int might match the return type of a GCC
11011 builtin and then its argument prototype would still apply. */
11015 char gdImageStringTTF ();
11019 return gdImageStringTTF ();
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028 *) ac_try_echo=$ac_try;;
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031 (eval "$ac_link") 2>conftest.er1
11033 grep -v '^ *+' conftest.er1 >conftest.err
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } && {
11038 test -z "$ac_c_werror_flag" ||
11039 test ! -s conftest.err
11040 } && test -s conftest$ac_exeext &&
11041 $as_test_x conftest$ac_exeext; then
11042 ac_cv_lib_gd_gdImageStringTTF=yes
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 ac_cv_lib_gd_gdImageStringTTF=no
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051 conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11054 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
11055 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6; }
11056 if test $ac_cv_lib_gd_gdImageStringTTF = yes; then
11058 cat >>confdefs.h <<\_ACEOF
11059 #define gdImageStringFT gdImageStringTTF
11068 if test "$have_ttf" = yes; then
11070 cat >>confdefs.h <<\_ACEOF
11071 #define HAVE_GD_TTF 1
11074 libgd_LIBS="$libgd_LIBS -lfreetype"
11077 LIBS="$_libs $libgd_LIBS -lpng"
11078 { echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
11079 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6; }
11080 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 ac_check_lib_save_LIBS=$LIBS
11085 cat >conftest.$ac_ext <<_ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11092 /* Override any GCC internal prototype to avoid an error.
11093 Use char because int might match the return type of a GCC
11094 builtin and then its argument prototype would still apply. */
11098 char gdImagePng ();
11102 return gdImagePng ();
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_link") 2>conftest.er1
11116 grep -v '^ *+' conftest.er1 >conftest.err
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); } && {
11121 test -z "$ac_c_werror_flag" ||
11122 test ! -s conftest.err
11123 } && test -s conftest$ac_exeext &&
11124 $as_test_x conftest$ac_exeext; then
11125 ac_cv_lib_gd_gdImagePng=yes
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11130 ac_cv_lib_gd_gdImagePng=no
11133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
11138 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6; }
11139 if test $ac_cv_lib_gd_gdImagePng = yes; then
11141 cat >>confdefs.h <<\_ACEOF
11142 #define HAVE_GD_PNG 1
11145 libgd_LIBS="$libgd_LIBS -lpng"
11157 if test -n "$GDLIB_CONFIG"; then
11158 libgd_LIBS=`gdlib-config --libs`
11161 if test "$with_gd" = no; then
11162 CPPFLAGS="$_cppflags"
11163 LDFLAGS="$_ldflags"
11165 TERMLIBS="$TERMLIBS -lgd $libgd_LIBS"
11171 # Check whether --with-pdf was given.
11172 if test "${with_pdf+set}" = set; then
11179 if test "$with_pdf" != no; then
11180 # Extract the first word of "pdflib-config", so it can be a program name with args.
11181 set dummy pdflib-config; ac_word=$2
11182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11184 if test "${ac_cv_path_PDFLIB_CONFIG+set}" = set; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 case $PDFLIB_CONFIG in
11189 ac_cv_path_PDFLIB_CONFIG="$PDFLIB_CONFIG" # Let the user override the test with a path.
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_path_PDFLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210 PDFLIB_CONFIG=$ac_cv_path_PDFLIB_CONFIG
11211 if test -n "$PDFLIB_CONFIG"; then
11212 { echo "$as_me:$LINENO: result: $PDFLIB_CONFIG" >&5
11213 echo "${ECHO_T}$PDFLIB_CONFIG" >&6; }
11215 { echo "$as_me:$LINENO: result: no" >&5
11216 echo "${ECHO_T}no" >&6; }
11220 if test -n "$PDFLIB_CONFIG"; then
11221 libpdf_CPPFLAGS=`pdflib-config --cflags`
11222 # D'oh - libraries don't belong here
11223 libpdf_LDFLAGS=`pdflib-config --ldflags |sed 's/ -l[^ ][^ ]*//g'`
11224 elif test -d "$with_pdf"; then
11225 libpdf_CPPFLAGS="-I$with_pdf/include"
11226 libpdf_LDFLAGS="-L$with_pdf/lib"
11229 _cppflags="$CPPFLAGS"
11230 _ldflags="$LDFLAGS"
11232 CPPFLAGS="$CPPFLAGS $libpdf_CPPFLAGS"
11233 LDFLAGS="$LDFLAGS $libpdf_LDFLAGS"
11235 { echo "$as_me:$LINENO: checking for PDF_get_majorversion in -lpdf" >&5
11236 echo $ECHO_N "checking for PDF_get_majorversion in -lpdf... $ECHO_C" >&6; }
11237 if test "${ac_cv_lib_pdf_PDF_get_majorversion+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 ac_check_lib_save_LIBS=$LIBS
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11255 char PDF_get_majorversion ();
11259 return PDF_get_majorversion ();
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (ac_try="$ac_link"
11266 case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_link") 2>conftest.er1
11273 grep -v '^ *+' conftest.er1 >conftest.err
11275 cat conftest.err >&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && {
11278 test -z "$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 } && test -s conftest$ac_exeext &&
11281 $as_test_x conftest$ac_exeext; then
11282 ac_cv_lib_pdf_PDF_get_majorversion=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_lib_pdf_PDF_get_majorversion=no
11290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11291 conftest$ac_exeext conftest.$ac_ext
11292 LIBS=$ac_check_lib_save_LIBS
11294 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_get_majorversion" >&5
11295 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_get_majorversion" >&6; }
11296 if test $ac_cv_lib_pdf_PDF_get_majorversion = yes; then
11298 cat >>confdefs.h <<\_ACEOF
11299 #define HAVE_LIBPDF 1
11303 for ac_header in pdflib.h
11305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 ac_res=`eval echo '${'$as_ac_Header'}'`
11313 { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11316 # Is the header compilable?
11317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11319 cat >conftest.$ac_ext <<_ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 $ac_includes_default
11326 #include <$ac_header>
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11337 grep -v '^ *+' conftest.er1 >conftest.err
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.$ac_objext; then
11345 ac_header_compiler=yes
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 ac_header_compiler=no
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11355 echo "${ECHO_T}$ac_header_compiler" >&6; }
11357 # Is the header present?
11358 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11359 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 #include <$ac_header>
11368 if { (ac_try="$ac_cpp conftest.$ac_ext"
11369 case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11376 grep -v '^ *+' conftest.er1 >conftest.err
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } >/dev/null && {
11381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11384 ac_header_preproc=yes
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_header_preproc=no
11392 rm -f conftest.err conftest.$ac_ext
11393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11394 echo "${ECHO_T}$ac_header_preproc" >&6; }
11396 # So? What about this header?
11397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11403 ac_header_preproc=yes
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11421 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 eval "$as_ac_Header=\$ac_header_preproc"
11428 ac_res=`eval echo '${'$as_ac_Header'}'`
11429 { echo "$as_me:$LINENO: result: $ac_res" >&5
11430 echo "${ECHO_T}$ac_res" >&6; }
11433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11434 cat >>confdefs.h <<_ACEOF
11435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11439 { echo "$as_me:$LINENO: WARNING: please add path to pdflib.h to CPPFLAGS in Makefile" >&5
11440 echo "$as_me: WARNING: please add path to pdflib.h to CPPFLAGS in Makefile" >&2;}
11451 if test "$with_pdf" != no; then
11453 { echo "$as_me:$LINENO: checking for PDF_begin_pattern in -lpdf" >&5
11454 echo $ECHO_N "checking for PDF_begin_pattern in -lpdf... $ECHO_C" >&6; }
11455 if test "${ac_cv_lib_pdf_PDF_begin_pattern+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_check_lib_save_LIBS=$LIBS
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11473 char PDF_begin_pattern ();
11477 return PDF_begin_pattern ();
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (ac_try="$ac_link"
11484 case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest$ac_exeext &&
11499 $as_test_x conftest$ac_exeext; then
11500 ac_cv_lib_pdf_PDF_begin_pattern=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_cv_lib_pdf_PDF_begin_pattern=no
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_begin_pattern" >&5
11513 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_begin_pattern" >&6; }
11514 if test $ac_cv_lib_pdf_PDF_begin_pattern = yes; then
11515 cat >>confdefs.h <<_ACEOF
11516 #define HAVE_LIBPDF 1
11523 cat >>confdefs.h <<\_ACEOF
11524 #define HAVE_OLD_LIBPDF 1
11527 { echo "$as_me:$LINENO: WARNING: your version of libpdf is too old!" >&5
11528 echo "$as_me: WARNING: your version of libpdf is too old!" >&2;}
11534 if test "$with_pdf" != no; then
11536 { echo "$as_me:$LINENO: checking for PDF_setdashpattern in -lpdf" >&5
11537 echo $ECHO_N "checking for PDF_setdashpattern in -lpdf... $ECHO_C" >&6; }
11538 if test "${ac_cv_lib_pdf_PDF_setdashpattern+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 ac_check_lib_save_LIBS=$LIBS
11543 cat >conftest.$ac_ext <<_ACEOF
11546 cat confdefs.h >>conftest.$ac_ext
11547 cat >>conftest.$ac_ext <<_ACEOF
11548 /* end confdefs.h. */
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11556 char PDF_setdashpattern ();
11560 return PDF_setdashpattern ();
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (ac_try="$ac_link"
11567 case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_link") 2>conftest.er1
11574 grep -v '^ *+' conftest.er1 >conftest.err
11576 cat conftest.err >&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_c_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest$ac_exeext &&
11582 $as_test_x conftest$ac_exeext; then
11583 ac_cv_lib_pdf_PDF_setdashpattern=yes
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_cv_lib_pdf_PDF_setdashpattern=no
11591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11592 conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11595 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_setdashpattern" >&5
11596 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_setdashpattern" >&6; }
11597 if test $ac_cv_lib_pdf_PDF_setdashpattern = yes; then
11598 cat >>confdefs.h <<_ACEOF
11599 #define HAVE_LIBPDF 1
11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_NODASH_LIBPDF 1
11610 { echo "$as_me:$LINENO: WARNING: your version of libpdf is too old!" >&5
11611 echo "$as_me: WARNING: your version of libpdf is too old!" >&2;}
11617 if test "$with_pdf" != no; then
11619 { echo "$as_me:$LINENO: checking for PDF_begin_document in -lpdf" >&5
11620 echo $ECHO_N "checking for PDF_begin_document in -lpdf... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_pdf_PDF_begin_document+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_check_lib_save_LIBS=$LIBS
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11639 char PDF_begin_document ();
11643 return PDF_begin_document ();
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1 >conftest.err
11659 cat conftest.err >&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 } && test -s conftest$ac_exeext &&
11665 $as_test_x conftest$ac_exeext; then
11666 ac_cv_lib_pdf_PDF_begin_document=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_cv_lib_pdf_PDF_begin_document=no
11674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675 conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11678 { echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_begin_document" >&5
11679 echo "${ECHO_T}$ac_cv_lib_pdf_PDF_begin_document" >&6; }
11680 if test $ac_cv_lib_pdf_PDF_begin_document = yes; then
11681 cat >>confdefs.h <<_ACEOF
11682 #define HAVE_LIBPDF 1
11689 cat >>confdefs.h <<\_ACEOF
11690 #define HAVE_LIBPDF_OPEN_FILE 1
11693 { echo "$as_me:$LINENO: WARNING: your version of libpdf is rather old." >&5
11694 echo "$as_me: WARNING: your version of libpdf is rather old." >&2;}
11701 if test "$with_pdf" = no; then
11702 CPPFLAGS="$_cppflags"
11703 LDFLAGS="$_ldflags"
11705 TERMLIBS="$TERMLIBS -lpdf"
11712 cat >conftest.$ac_ext <<_ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11724 $EGREP "yes" >/dev/null 2>&1; then
11725 { echo "$as_me:$LINENO: checking for v_opnwk in -lccgi" >&5
11726 echo $ECHO_N "checking for v_opnwk in -lccgi... $ECHO_C" >&6; }
11727 if test "${ac_cv_lib_ccgi_v_opnwk+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11730 ac_check_lib_save_LIBS=$LIBS
11731 LIBS="-lccgi $LIBS"
11732 cat >conftest.$ac_ext <<_ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h. */
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (ac_try="$ac_link"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_link") 2>conftest.er1
11763 grep -v '^ *+' conftest.er1 >conftest.err
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest$ac_exeext &&
11771 $as_test_x conftest$ac_exeext; then
11772 ac_cv_lib_ccgi_v_opnwk=yes
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_cv_lib_ccgi_v_opnwk=no
11780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 { echo "$as_me:$LINENO: result: $ac_cv_lib_ccgi_v_opnwk" >&5
11785 echo "${ECHO_T}$ac_cv_lib_ccgi_v_opnwk" >&6; }
11786 if test $ac_cv_lib_ccgi_v_opnwk = yes; then
11788 cat >>confdefs.h <<\_ACEOF
11792 TERMLIBS="-lccgi $TERMLIBS"
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11811 $EGREP "yes" >/dev/null 2>&1; then
11812 { echo "$as_me:$LINENO: checking for window_create in -lsuntool" >&5
11813 echo $ECHO_N "checking for window_create in -lsuntool... $ECHO_C" >&6; }
11814 if test "${ac_cv_lib_suntool_window_create+set}" = set; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 ac_check_lib_save_LIBS=$LIBS
11818 LIBS="-lsuntool -lsunwindow -lpixrect $LIBS"
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11832 char window_create ();
11836 return window_create ();
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (ac_try="$ac_link"
11843 case "(($ac_try" in
11844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845 *) ac_try_echo=$ac_try;;
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848 (eval "$ac_link") 2>conftest.er1
11850 grep -v '^ *+' conftest.er1 >conftest.err
11852 cat conftest.err >&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); } && {
11855 test -z "$ac_c_werror_flag" ||
11856 test ! -s conftest.err
11857 } && test -s conftest$ac_exeext &&
11858 $as_test_x conftest$ac_exeext; then
11859 ac_cv_lib_suntool_window_create=yes
11861 echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11864 ac_cv_lib_suntool_window_create=no
11867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11868 conftest$ac_exeext conftest.$ac_ext
11869 LIBS=$ac_check_lib_save_LIBS
11871 { echo "$as_me:$LINENO: result: $ac_cv_lib_suntool_window_create" >&5
11872 echo "${ECHO_T}$ac_cv_lib_suntool_window_create" >&6; }
11873 if test $ac_cv_lib_suntool_window_create = yes; then
11874 if test "${ac_cv_header_suntool_sunview_h+set}" = set; then
11875 { echo "$as_me:$LINENO: checking for suntool/sunview.h" >&5
11876 echo $ECHO_N "checking for suntool/sunview.h... $ECHO_C" >&6; }
11877 if test "${ac_cv_header_suntool_sunview_h+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 { echo "$as_me:$LINENO: result: $ac_cv_header_suntool_sunview_h" >&5
11881 echo "${ECHO_T}$ac_cv_header_suntool_sunview_h" >&6; }
11883 # Is the header compilable?
11884 { echo "$as_me:$LINENO: checking suntool/sunview.h usability" >&5
11885 echo $ECHO_N "checking suntool/sunview.h usability... $ECHO_C" >&6; }
11886 cat >conftest.$ac_ext <<_ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 $ac_includes_default
11893 #include <suntool/sunview.h>
11895 rm -f conftest.$ac_objext
11896 if { (ac_try="$ac_compile"
11897 case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_compile") 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } && {
11909 test -z "$ac_c_werror_flag" ||
11910 test ! -s conftest.err
11911 } && test -s conftest.$ac_objext; then
11912 ac_header_compiler=yes
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_header_compiler=no
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11922 echo "${ECHO_T}$ac_header_compiler" >&6; }
11924 # Is the header present?
11925 { echo "$as_me:$LINENO: checking suntool/sunview.h presence" >&5
11926 echo $ECHO_N "checking suntool/sunview.h presence... $ECHO_C" >&6; }
11927 cat >conftest.$ac_ext <<_ACEOF
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 #include <suntool/sunview.h>
11935 if { (ac_try="$ac_cpp conftest.$ac_ext"
11936 case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11943 grep -v '^ *+' conftest.er1 >conftest.err
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } >/dev/null && {
11948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11949 test ! -s conftest.err
11951 ac_header_preproc=yes
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11956 ac_header_preproc=no
11959 rm -f conftest.err conftest.$ac_ext
11960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11961 echo "${ECHO_T}$ac_header_preproc" >&6; }
11963 # So? What about this header?
11964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11966 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: accepted by the compiler, rejected by the preprocessor!" >&5
11967 echo "$as_me: WARNING: suntool/sunview.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11968 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: proceeding with the compiler's result" >&5
11969 echo "$as_me: WARNING: suntool/sunview.h: proceeding with the compiler's result" >&2;}
11970 ac_header_preproc=yes
11973 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: present but cannot be compiled" >&5
11974 echo "$as_me: WARNING: suntool/sunview.h: present but cannot be compiled" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: check for missing prerequisite headers?" >&5
11976 echo "$as_me: WARNING: suntool/sunview.h: check for missing prerequisite headers?" >&2;}
11977 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: see the Autoconf documentation" >&5
11978 echo "$as_me: WARNING: suntool/sunview.h: see the Autoconf documentation" >&2;}
11979 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: section \"Present But Cannot Be Compiled\"" >&5
11980 echo "$as_me: WARNING: suntool/sunview.h: section \"Present But Cannot Be Compiled\"" >&2;}
11981 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: proceeding with the preprocessor's result" >&5
11982 echo "$as_me: WARNING: suntool/sunview.h: proceeding with the preprocessor's result" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: suntool/sunview.h: in the future, the compiler will take precedence" >&5
11984 echo "$as_me: WARNING: suntool/sunview.h: in the future, the compiler will take precedence" >&2;}
11988 { echo "$as_me:$LINENO: checking for suntool/sunview.h" >&5
11989 echo $ECHO_N "checking for suntool/sunview.h... $ECHO_C" >&6; }
11990 if test "${ac_cv_header_suntool_sunview_h+set}" = set; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 ac_cv_header_suntool_sunview_h=$ac_header_preproc
11995 { echo "$as_me:$LINENO: result: $ac_cv_header_suntool_sunview_h" >&5
11996 echo "${ECHO_T}$ac_cv_header_suntool_sunview_h" >&6; }
11999 if test $ac_cv_header_suntool_sunview_h = yes; then
12001 cat >>confdefs.h <<\_ACEOF
12005 TERMLIBS="-lsuntool -lsunwindow -lpixrect $TERMLIBS"
12017 # Check whether --with-cwdrc was given.
12018 if test "${with_cwdrc+set}" = set; then
12019 withval=$with_cwdrc;
12021 if test "$withval" = yes; then
12023 cat >>confdefs.h <<\_ACEOF
12032 # Check whether --with-lisp-files was given.
12033 if test "${with_lisp_files+set}" = set; then
12034 withval=$with_lisp_files;
12039 # Check whether --with-row-help was given.
12040 if test "${with_row_help+set}" = set; then
12041 withval=$with_row_help; if test "$with_row_help" = no; then
12043 cat >>confdefs.h <<\_ACEOF
12044 #define COLUMN_HELP 1
12053 # Check whether --with-tutorial was given.
12054 if test "${with_tutorial+set}" = set; then
12055 withval=$with_tutorial;
12058 if test "$LATEX" = no -o "$with_tutorial" = no ; then
12059 TUTORIAL=notutorial
12063 # Check whether --enable-mouse was given.
12064 if test "${enable_mouse+set}" = set; then
12065 enableval=$enable_mouse;
12067 test -z "$enable_mouse" && enable_mouse=yes
12071 if test "$enable_mouse" = yes; then
12073 cat >>confdefs.h <<\_ACEOF
12074 #define USE_MOUSE 1
12078 cat >>confdefs.h <<\_ACEOF
12084 # Check whether --enable-x11-mbfonts was given.
12085 if test "${enable_x11_mbfonts+set}" = set; then
12086 enableval=$enable_x11_mbfonts;
12088 test -z "$enable_x11_mbfonts" && enable_x11_mbfonts=yes
12091 if test "$enable_x11_mbfonts" = yes; then
12093 _ldflags="$LDFLAGS"
12094 LDFLAGS="$LDFLAGS $LIBRARIES_FOR_X"
12096 { echo "$as_me:$LINENO: checking for multi-byte support in x11" >&5
12097 echo $ECHO_N "checking for multi-byte support in x11... $ECHO_C" >&6; }
12098 { echo "$as_me:$LINENO: checking for XmbDrawString in -lX11" >&5
12099 echo $ECHO_N "checking for XmbDrawString in -lX11... $ECHO_C" >&6; }
12100 if test "${ac_cv_lib_X11_XmbDrawString+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 ac_check_lib_save_LIBS=$LIBS
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12118 char XmbDrawString ();
12122 return XmbDrawString ();
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>conftest.er1
12136 grep -v '^ *+' conftest.er1 >conftest.err
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest$ac_exeext &&
12144 $as_test_x conftest$ac_exeext; then
12145 ac_cv_lib_X11_XmbDrawString=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ac_cv_lib_X11_XmbDrawString=no
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XmbDrawString" >&5
12158 echo "${ECHO_T}$ac_cv_lib_X11_XmbDrawString" >&6; }
12159 if test $ac_cv_lib_X11_XmbDrawString = yes; then
12161 cat >>confdefs.h <<\_ACEOF
12162 #define USE_X11_MULTIBYTE 1
12166 enable_x11_mbfonts=no
12170 LDFLAGS="$_ldflags"
12174 # Check whether --enable-binary_data_file was given.
12175 if test "${enable_binary_data_file+set}" = set; then
12176 enableval=$enable_binary_data_file;
12178 test -z "$enable_binary_data_file" && enable_binary_data_file=yes
12182 if test "$enable_binary_data_file" = yes; then
12184 cat >>confdefs.h <<\_ACEOF
12185 #define BINARY_DATA_FILE 1
12192 if test "$enable_binary_data_file" = no; then
12193 INCLUDE_BINARY_C_TRUE=
12194 INCLUDE_BINARY_C_FALSE='#'
12196 INCLUDE_BINARY_C_TRUE='#'
12197 INCLUDE_BINARY_C_FALSE=
12201 # Check whether --enable-with_image was given.
12202 if test "${enable_with_image+set}" = set; then
12203 enableval=$enable_with_image;
12205 test -z "$enable_with_image" && enable_with_image=yes
12209 if test "$enable_with_image" = yes; then
12210 if test "$enable_binary_data_file" = yes; then
12212 cat >>confdefs.h <<\_ACEOF
12213 #define WITH_IMAGE 1
12217 enable_with_image=no
12218 { echo "$as_me:$LINENO: WARNING: The with-image option requires --enable-binary-data-file. " >&5
12219 echo "$as_me: WARNING: The with-image option requires --enable-binary-data-file. " >&2;}
12223 # Check whether --enable-binary_x11_polygon was given.
12224 if test "${enable_binary_x11_polygon+set}" = set; then
12225 enableval=$enable_binary_x11_polygon;
12227 test -z "$enable_binary_x11_polygon" && enable_binary_x11_polygon=yes
12231 if test "$enable_binary_x11_polygon" = yes; then
12233 cat >>confdefs.h <<\_ACEOF
12234 #define BINARY_X11_POLYGON 1
12239 if test "$with_linux_vga" = yes; then
12241 LIBS="$TERMLIBS $LIBS"
12242 { echo "$as_me:$LINENO: checking for the vgagl library" >&5
12243 echo $ECHO_N "checking for the vgagl library... $ECHO_C" >&6; }
12244 { echo "$as_me:$LINENO: checking for gl_hline in -lvgagl" >&5
12245 echo $ECHO_N "checking for gl_hline in -lvgagl... $ECHO_C" >&6; }
12246 if test "${ac_cv_lib_vgagl_gl_hline+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-lvgagl $LIBS"
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12268 return gl_hline ();
12273 rm -f conftest.$ac_objext conftest$ac_exeext
12274 if { (ac_try="$ac_link"
12275 case "(($ac_try" in
12276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12277 *) ac_try_echo=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_link") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest$ac_exeext &&
12290 $as_test_x conftest$ac_exeext; then
12291 ac_cv_lib_vgagl_gl_hline=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_cv_lib_vgagl_gl_hline=no
12299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12300 conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 { echo "$as_me:$LINENO: result: $ac_cv_lib_vgagl_gl_hline" >&5
12304 echo "${ECHO_T}$ac_cv_lib_vgagl_gl_hline" >&6; }
12305 if test $ac_cv_lib_vgagl_gl_hline = yes; then
12306 LIBS="-lvgagl $LIBS"
12308 for ac_header in vgagl.h
12310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_res=`eval echo '${'$as_ac_Header'}'`
12318 { echo "$as_me:$LINENO: result: $ac_res" >&5
12319 echo "${ECHO_T}$ac_res" >&6; }
12321 # Is the header compilable?
12322 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12331 #include <$ac_header>
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compile") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.$ac_objext; then
12350 ac_header_compiler=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_header_compiler=no
12358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12360 echo "${ECHO_T}$ac_header_compiler" >&6; }
12362 # Is the header present?
12363 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12364 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 #include <$ac_header>
12373 if { (ac_try="$ac_cpp conftest.$ac_ext"
12374 case "(($ac_try" in
12375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12376 *) ac_try_echo=$ac_try;;
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12381 grep -v '^ *+' conftest.er1 >conftest.err
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } >/dev/null && {
12386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12389 ac_header_preproc=yes
12391 echo "$as_me: failed program was:" >&5
12392 sed 's/^/| /' conftest.$ac_ext >&5
12394 ac_header_preproc=no
12397 rm -f conftest.err conftest.$ac_ext
12398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12399 echo "${ECHO_T}$ac_header_preproc" >&6; }
12401 # So? What about this header?
12402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12408 ac_header_preproc=yes
12411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 eval "$as_ac_Header=\$ac_header_preproc"
12433 ac_res=`eval echo '${'$as_ac_Header'}'`
12434 { echo "$as_me:$LINENO: result: $ac_res" >&5
12435 echo "${ECHO_T}$ac_res" >&6; }
12438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12439 cat >>confdefs.h <<_ACEOF
12440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443 cat >>confdefs.h <<\_ACEOF
12447 { echo "$as_me:$LINENO: checking for gl_striangle in -l3dkit" >&5
12448 echo $ECHO_N "checking for gl_striangle in -l3dkit... $ECHO_C" >&6; }
12449 if test "${ac_cv_lib_3dkit_gl_striangle+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 ac_check_lib_save_LIBS=$LIBS
12453 LIBS="-l3dkit $LIBS"
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12467 char gl_striangle ();
12471 return gl_striangle ();
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest$ac_exeext &&
12493 $as_test_x conftest$ac_exeext; then
12494 ac_cv_lib_3dkit_gl_striangle=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_3dkit_gl_striangle=no
12502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { echo "$as_me:$LINENO: result: $ac_cv_lib_3dkit_gl_striangle" >&5
12507 echo "${ECHO_T}$ac_cv_lib_3dkit_gl_striangle" >&6; }
12508 if test $ac_cv_lib_3dkit_gl_striangle = yes; then
12510 for ac_header in 3dkit.h
12512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 ac_res=`eval echo '${'$as_ac_Header'}'`
12520 { echo "$as_me:$LINENO: result: $ac_res" >&5
12521 echo "${ECHO_T}$ac_res" >&6; }
12523 # Is the header compilable?
12524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 $ac_includes_default
12533 #include <$ac_header>
12535 rm -f conftest.$ac_objext
12536 if { (ac_try="$ac_compile"
12537 case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_compile") 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest.$ac_objext; then
12552 ac_header_compiler=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_header_compiler=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12562 echo "${ECHO_T}$ac_header_compiler" >&6; }
12564 # Is the header present?
12565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12573 #include <$ac_header>
12575 if { (ac_try="$ac_cpp conftest.$ac_ext"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } >/dev/null && {
12588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12589 test ! -s conftest.err
12591 ac_header_preproc=yes
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12596 ac_header_preproc=no
12599 rm -f conftest.err conftest.$ac_ext
12600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6; }
12603 # So? What about this header?
12604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12610 ac_header_preproc=yes
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12620 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12631 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 eval "$as_ac_Header=\$ac_header_preproc"
12635 ac_res=`eval echo '${'$as_ac_Header'}'`
12636 { echo "$as_me:$LINENO: result: $ac_res" >&5
12637 echo "${ECHO_T}$ac_res" >&6; }
12640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12641 cat >>confdefs.h <<_ACEOF
12642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645 cat >>confdefs.h <<\_ACEOF
12646 #define THREEDKIT 1
12650 cat >>confdefs.h <<\_ACEOF
12651 #define EXTENDED_COLOR_SPECS 1
12654 VGAGLLIB="-l3dkit -lvgagl"
12659 { echo "$as_me:$LINENO: result: unable to find 3dkit.h" >&5
12660 echo "${ECHO_T}unable to find 3dkit.h" >&6; }
12670 { echo "$as_me:$LINENO: result: unable to find lib3dkit" >&5
12671 echo "${ECHO_T}unable to find lib3dkit" >&6; }
12679 { echo "$as_me:$LINENO: result: unable to find vgagl.h" >&5
12680 echo "${ECHO_T}unable to find vgagl.h" >&6; }
12689 { echo "$as_me:$LINENO: result: unable to find libvgagl" >&5
12690 echo "${ECHO_T}unable to find libvgagl" >&6; }
12699 TERMLIBS="$VGAGLLIB $TERMLIBS"
12701 # Check whether --enable-thin-splines was given.
12702 if test "${enable_thin_splines+set}" = set; then
12703 enableval=$enable_thin_splines; if test "$enableval" = yes; then
12705 cat >>confdefs.h <<\_ACEOF
12706 #define THIN_PLATE_SPLINES_GRID 1
12713 # Check whether --enable-datastrings was given.
12714 if test "${enable_datastrings+set}" = set; then
12715 enableval=$enable_datastrings;
12717 test -z "$enable_datastrings" && enable_datastrings=yes
12721 if test "$enable_datastrings" = yes; then
12723 cat >>confdefs.h <<\_ACEOF
12724 #define EAM_DATASTRINGS 1
12729 # Check whether --enable-histograms was given.
12730 if test "${enable_histograms+set}" = set; then
12731 enableval=$enable_histograms;
12733 test -z "$enable_histograms" && enable_histograms=yes
12736 if test "$enable_histograms" = yes; then
12738 if test "$enable_datastrings" = yes; then
12740 cat >>confdefs.h <<\_ACEOF
12741 #define EAM_HISTOGRAMS 1
12745 enable_histograms=no
12746 { echo "$as_me:$LINENO: WARNING: The --enable-histograms option requires --enable-datastrings. " >&5
12747 echo "$as_me: WARNING: The --enable-histograms option requires --enable-datastrings. " >&2;}
12752 # Check whether --enable-objects was given.
12753 if test "${enable_objects+set}" = set; then
12754 enableval=$enable_objects;
12756 test -z "$enable_objects" && enable_objects=yes
12760 if test "$enable_objects" = yes; then
12762 cat >>confdefs.h <<\_ACEOF
12763 #define EAM_OBJECTS 1
12768 # Check whether --enable-stringvariables was given.
12769 if test "${enable_stringvariables+set}" = set; then
12770 enableval=$enable_stringvariables;
12772 test -z "$enable_stringvariables" && enable_stringvariables=yes
12775 if test "$enable_stringvariables" = yes; then
12777 cat >>confdefs.h <<\_ACEOF
12778 #define GP_STRING_VARS 2
12783 # Check whether --enable-macros was given.
12784 if test "${enable_macros+set}" = set; then
12785 enableval=$enable_macros;
12787 test -z "$enable_macros" && enable_macros=yes
12790 if test "$enable_macros" = yes; then
12792 if test "$enable_stringvariables" = yes; then
12794 cat >>confdefs.h <<\_ACEOF
12795 #define GP_MACROS 1
12800 { echo "$as_me:$LINENO: WARNING: The --enable-macros option requires --enable-stringvariables. " >&5
12801 echo "$as_me: WARNING: The --enable-macros option requires --enable-stringvariables. " >&2;}
12806 # Check whether --enable-iris was given.
12807 if test "${enable_iris+set}" = set; then
12808 enableval=$enable_iris; if test "$enableval" = yes; then
12809 { echo "$as_me:$LINENO: checking for winopen in -lgl_s" >&5
12810 echo $ECHO_N "checking for winopen in -lgl_s... $ECHO_C" >&6; }
12811 if test "${ac_cv_lib_gl_s_winopen+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12814 ac_check_lib_save_LIBS=$LIBS
12815 LIBS="-lgl_s $LIBS"
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12823 /* Override any GCC internal prototype to avoid an error.
12824 Use char because int might match the return type of a GCC
12825 builtin and then its argument prototype would still apply. */
12838 rm -f conftest.$ac_objext conftest$ac_exeext
12839 if { (ac_try="$ac_link"
12840 case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest$ac_exeext &&
12855 $as_test_x conftest$ac_exeext; then
12856 ac_cv_lib_gl_s_winopen=yes
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12861 ac_cv_lib_gl_s_winopen=no
12864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12865 conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12868 { echo "$as_me:$LINENO: result: $ac_cv_lib_gl_s_winopen" >&5
12869 echo "${ECHO_T}$ac_cv_lib_gl_s_winopen" >&6; }
12870 if test $ac_cv_lib_gl_s_winopen = yes; then
12872 cat >>confdefs.h <<\_ACEOF
12876 TERMLIBS="-lgl_s $TERMLIBS"
12885 # Check whether --enable-mgr was given.
12886 if test "${enable_mgr+set}" = set; then
12887 enableval=$enable_mgr; if test "$enableval" = yes; then
12888 { echo "$as_me:$LINENO: checking for m_getinfo in -lmgr" >&5
12889 echo $ECHO_N "checking for m_getinfo in -lmgr... $ECHO_C" >&6; }
12890 if test "${ac_cv_lib_mgr_m_getinfo+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 ac_check_lib_save_LIBS=$LIBS
12894 LIBS="-lmgr -lpixrect $LIBS"
12895 cat >conftest.$ac_ext <<_ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12902 /* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */
12912 return m_getinfo ();
12917 rm -f conftest.$ac_objext conftest$ac_exeext
12918 if { (ac_try="$ac_link"
12919 case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_link") 2>conftest.er1
12926 grep -v '^ *+' conftest.er1 >conftest.err
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } && {
12931 test -z "$ac_c_werror_flag" ||
12932 test ! -s conftest.err
12933 } && test -s conftest$ac_exeext &&
12934 $as_test_x conftest$ac_exeext; then
12935 ac_cv_lib_mgr_m_getinfo=yes
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12940 ac_cv_lib_mgr_m_getinfo=no
12943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12944 conftest$ac_exeext conftest.$ac_ext
12945 LIBS=$ac_check_lib_save_LIBS
12947 { echo "$as_me:$LINENO: result: $ac_cv_lib_mgr_m_getinfo" >&5
12948 echo "${ECHO_T}$ac_cv_lib_mgr_m_getinfo" >&6; }
12949 if test $ac_cv_lib_mgr_m_getinfo = yes; then
12951 cat >>confdefs.h <<\_ACEOF
12955 TERMLIBS="-lmgr -lpixrect $TERMLIBS"
12964 # Check whether --enable-fiterrvars was given.
12965 if test "${enable_fiterrvars+set}" = set; then
12966 enableval=$enable_fiterrvars;
12968 test -z "${enable_fiterrvars}" && enable_fiterrvars=yes
12971 if test "$enable_fiterrvars" = yes; then
12973 cat >>confdefs.h <<\_ACEOF
12974 #define GP_FIT_ERRVARS 1
12979 # Check whether --enable-rgip was given.
12980 if test "${enable_rgip+set}" = set; then
12981 enableval=$enable_rgip; if test "$enableval" = yes; then
12983 cat >>confdefs.h <<\_ACEOF
12991 # Check whether --enable-h3d-quadtree was given.
12992 if test "${enable_h3d_quadtree+set}" = set; then
12993 enableval=$enable_h3d_quadtree;
12995 test -z "${enable_h3d_quadtree}" && enable_h3d_quadtree=yes
12998 if test "$enable_h3d_quadtree" = yes; then
13000 cat >>confdefs.h <<\_ACEOF
13001 #define HIDDEN3D_QUADTREE 1
13006 # Check whether --enable-h3d-gridbox was given.
13007 if test "${enable_h3d_gridbox+set}" = set; then
13008 enableval=$enable_h3d_gridbox; if test "$enable_h3d_quadtree" = yes; then
13009 { { echo "$as_me:$LINENO: error: Only one of the hidden3d options quadtree and gridbox may be enabled." >&5
13010 echo "$as_me: error: Only one of the hidden3d options quadtree and gridbox may be enabled." >&2;}
13011 { (exit 1); exit 1; }; }
13013 if test "$enableval" = yes; then
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HIDDEN3D_GRIDBOX 1
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HIDDEN3D_VAR_PTSIZE 1
13030 if test ! -f src/graphics.c ; then
13031 { echo "$as_me:$LINENO: result: Compiling outside source directory - copying needed files" >&5
13032 echo "${ECHO_T}Compiling outside source directory - copying needed files" >&6; }
13033 mkdir tutorial >/dev/null 2>&1
13034 cp ${srcdir}/tutorial/eg3.dat tutorial
13041 ac_cpp='$CXXCPP $CPPFLAGS'
13042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13045 if test -z "$CXX"; then
13046 if test -n "$CCC"; then
13049 if test -n "$ac_tool_prefix"; then
13050 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13056 if test "${ac_cv_prog_CXX+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 if test -n "$CXX"; then
13060 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 CXX=$ac_cv_prog_CXX
13080 if test -n "$CXX"; then
13081 { echo "$as_me:$LINENO: result: $CXX" >&5
13082 echo "${ECHO_T}$CXX" >&6; }
13084 { echo "$as_me:$LINENO: result: no" >&5
13085 echo "${ECHO_T}no" >&6; }
13089 test -n "$CXX" && break
13092 if test -z "$CXX"; then
13094 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13096 # Extract the first word of "$ac_prog", so it can be a program name with args.
13097 set dummy $ac_prog; ac_word=$2
13098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13100 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13103 if test -n "$ac_ct_CXX"; then
13104 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13113 ac_cv_prog_ac_ct_CXX="$ac_prog"
13114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13124 if test -n "$ac_ct_CXX"; then
13125 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13126 echo "${ECHO_T}$ac_ct_CXX" >&6; }
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13133 test -n "$ac_ct_CXX" && break
13136 if test "x$ac_ct_CXX" = x; then
13139 case $cross_compiling:$ac_tool_warned in
13141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13142 whose name does not start with the host triplet. If you think this
13143 configuration is useful to you, please write to autoconf@gnu.org." >&5
13144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13145 whose name does not start with the host triplet. If you think this
13146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13147 ac_tool_warned=yes ;;
13155 # Provide some information about the compiler.
13156 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
13157 ac_compiler=`set X $ac_compile; echo $2`
13158 { (ac_try="$ac_compiler --version >&5"
13159 case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compiler --version >&5") 2>&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }
13168 { (ac_try="$ac_compiler -v >&5"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_compiler -v >&5") 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }
13178 { (ac_try="$ac_compiler -V >&5"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_compiler -V >&5") 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }
13189 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13190 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
13191 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 cat >conftest.$ac_ext <<_ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_compile") 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_cxx_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest.$ac_objext; then
13229 ac_compiler_gnu=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13241 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13242 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
13243 GXX=`test $ac_compiler_gnu = yes && echo yes`
13244 ac_test_CXXFLAGS=${CXXFLAGS+set}
13245 ac_save_CXXFLAGS=$CXXFLAGS
13246 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13247 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
13248 if test "${ac_cv_prog_cxx_g+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13252 ac_cxx_werror_flag=yes
13253 ac_cv_prog_cxx_g=no
13255 cat >conftest.$ac_ext <<_ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && {
13284 test -z "$ac_cxx_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
13287 ac_cv_prog_cxx_g=yes
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13308 rm -f conftest.$ac_objext
13309 if { (ac_try="$ac_compile"
13310 case "(($ac_try" in
13311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_compile") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1 >conftest.err
13319 cat conftest.err >&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } && {
13322 test -z "$ac_cxx_werror_flag" ||
13323 test ! -s conftest.err
13324 } && test -s conftest.$ac_objext; then
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13332 cat >conftest.$ac_ext <<_ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h. */
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_compile") 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } && {
13361 test -z "$ac_cxx_werror_flag" ||
13362 test ! -s conftest.err
13363 } && test -s conftest.$ac_objext; then
13364 ac_cv_prog_cxx_g=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13382 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
13383 if test "$ac_test_CXXFLAGS" = set; then
13384 CXXFLAGS=$ac_save_CXXFLAGS
13385 elif test $ac_cv_prog_cxx_g = yes; then
13386 if test "$GXX" = yes; then
13392 if test "$GXX" = yes; then
13399 ac_cpp='$CPP $CPPFLAGS'
13400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13404 depcc="$CXX" am_compiler_list=
13406 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13408 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13412 # We make a subdir and do the tests there. Otherwise we can end up
13413 # making bogus files that we don't know about and never remove. For
13414 # instance it was reported that on HP-UX the gcc test will end up
13415 # making a dummy file named `D' -- because `-MD' means `put the output
13418 # Copy depcomp to subdir because otherwise we won't find it if we're
13419 # using a relative directory.
13420 cp "$am_depcomp" conftest.dir
13422 # We will build objects and dependencies in a subdirectory because
13423 # it helps to detect inapplicable dependency modes. For instance
13424 # both Tru64's cc and ICC support -MD to output dependencies as a
13425 # side effect of compilation, but ICC will put the dependencies in
13426 # the current directory while Tru64 will put them in the object
13430 am_cv_CXX_dependencies_compiler_type=none
13431 if test "$am_compiler_list" = ""; then
13432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13434 for depmode in $am_compiler_list; do
13435 # Setup a source with many dependencies, because some compilers
13436 # like to wrap large dependency lists on column 80 (with \), and
13437 # we should not choose a depcomp mode which is confused by this.
13439 # We need to recreate these files for each test, as the compiler may
13440 # overwrite some of them when testing with obscure command lines.
13441 # This happens at least with the AIX C compiler.
13443 for i in 1 2 3 4 5 6; do
13444 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13445 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13446 # Solaris 8's {/usr,}/bin/sh.
13447 touch sub/conftst$i.h
13449 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13453 # after this tag, mechanisms are not by side-effect, so they'll
13454 # only be used when explicitly requested
13455 if test "x$enable_dependency_tracking" = xyes; then
13463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13464 # mode. It turns out that the SunPro C++ compiler does not properly
13465 # handle `-M -o', and we need to detect this.
13466 if depmode=$depmode \
13467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13470 >/dev/null 2>conftest.err &&
13471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13472 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13474 # icc doesn't choke on unknown options, it will just issue warnings
13475 # or remarks (even with -Werror). So we grep stderr for any message
13476 # that says an option was ignored or not supported.
13477 # When given -MP, icc 7.0 and 7.1 complain thusly:
13478 # icc: Command line warning: ignoring option '-M'; no argument required
13479 # The diagnosis changed in icc 8.0:
13480 # icc: Command line remark: option '-MP' not supported
13481 if (grep 'ignoring option' conftest.err ||
13482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13483 am_cv_CXX_dependencies_compiler_type=$depmode
13490 rm -rf conftest.dir
13492 am_cv_CXX_dependencies_compiler_type=none
13496 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13497 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
13498 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13503 test "x$enable_dependency_tracking" != xno \
13504 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13505 am__fastdepCXX_TRUE=
13506 am__fastdepCXX_FALSE='#'
13508 am__fastdepCXX_TRUE='#'
13509 am__fastdepCXX_FALSE=
13515 if test "x${cxxerror}" != "xyes"; then
13517 ac_cpp='$CXXCPP $CPPFLAGS'
13518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13523 cat >conftest.$ac_ext <<_ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 #include <iostream>
13533 const char hw[] = "Hello, World\n"; std::cout << hw;
13538 rm -f conftest.$ac_objext
13539 if { (ac_try="$ac_compile"
13540 case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_compile") 2>conftest.er1
13547 grep -v '^ *+' conftest.er1 >conftest.err
13549 cat conftest.err >&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } && {
13552 test -z "$ac_cxx_werror_flag" ||
13553 test ! -s conftest.err
13554 } && test -s conftest.$ac_objext; then
13557 ac_cpp='$CXXCPP $CPPFLAGS'
13558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13561 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13562 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
13563 if test -z "$CXXCPP"; then
13564 if test "${ac_cv_prog_CXXCPP+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13567 # Double quotes because CXXCPP needs to be expanded
13568 for CXXCPP in "$CXX -E" "/lib/cpp"
13570 ac_preproc_ok=false
13571 for ac_cxx_preproc_warn_flag in '' yes
13573 # Use a header file that comes with gcc, so configuring glibc
13574 # with a fresh cross-compiler works.
13575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13576 # <limits.h> exists even on freestanding compilers.
13577 # On the NeXT, cc -E runs the code through the compiler's parser,
13578 # not just through cpp. "Syntax error" is here to catch this case.
13579 cat >conftest.$ac_ext <<_ACEOF
13582 cat confdefs.h >>conftest.$ac_ext
13583 cat >>conftest.$ac_ext <<_ACEOF
13584 /* end confdefs.h. */
13586 # include <limits.h>
13588 # include <assert.h>
13592 if { (ac_try="$ac_cpp conftest.$ac_ext"
13593 case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } >/dev/null && {
13605 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13606 test ! -s conftest.err
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13613 # Broken: fails on valid input.
13617 rm -f conftest.err conftest.$ac_ext
13619 # OK, works on sane cases. Now check whether nonexistent headers
13620 # can be detected and how.
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 #include <ac_nonexistent.h>
13629 if { (ac_try="$ac_cpp conftest.$ac_ext"
13630 case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13637 grep -v '^ *+' conftest.er1 >conftest.err
13639 cat conftest.err >&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } >/dev/null && {
13642 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13643 test ! -s conftest.err
13645 # Broken: success on invalid input.
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 # Passes both tests.
13656 rm -f conftest.err conftest.$ac_ext
13659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13660 rm -f conftest.err conftest.$ac_ext
13661 if $ac_preproc_ok; then
13666 ac_cv_prog_CXXCPP=$CXXCPP
13669 CXXCPP=$ac_cv_prog_CXXCPP
13671 ac_cv_prog_CXXCPP=$CXXCPP
13673 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
13674 echo "${ECHO_T}$CXXCPP" >&6; }
13675 ac_preproc_ok=false
13676 for ac_cxx_preproc_warn_flag in '' yes
13678 # Use a header file that comes with gcc, so configuring glibc
13679 # with a fresh cross-compiler works.
13680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681 # <limits.h> exists even on freestanding compilers.
13682 # On the NeXT, cc -E runs the code through the compiler's parser,
13683 # not just through cpp. "Syntax error" is here to catch this case.
13684 cat >conftest.$ac_ext <<_ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13691 # include <limits.h>
13693 # include <assert.h>
13697 if { (ac_try="$ac_cpp conftest.$ac_ext"
13698 case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13705 grep -v '^ *+' conftest.er1 >conftest.err
13707 cat conftest.err >&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } >/dev/null && {
13710 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13711 test ! -s conftest.err
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 # Broken: fails on valid input.
13722 rm -f conftest.err conftest.$ac_ext
13724 # OK, works on sane cases. Now check whether nonexistent headers
13725 # can be detected and how.
13726 cat >conftest.$ac_ext <<_ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <ac_nonexistent.h>
13734 if { (ac_try="$ac_cpp conftest.$ac_ext"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } >/dev/null && {
13747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13748 test ! -s conftest.err
13750 # Broken: success on invalid input.
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13756 # Passes both tests.
13761 rm -f conftest.err conftest.$ac_ext
13764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13765 rm -f conftest.err conftest.$ac_ext
13766 if $ac_preproc_ok; then
13769 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13770 See \`config.log' for more details." >&5
13771 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13772 See \`config.log' for more details." >&2;}
13773 { (exit 1); exit 1; }; }
13777 ac_cpp='$CXXCPP $CPPFLAGS'
13778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799 # Check whether --enable-wxwidgets was given.
13800 if test "${enable_wxwidgets+set}" = set; then
13801 enableval=$enable_wxwidgets;
13803 test -z "${enable_wxwidgets}" && enable_wxwidgets=yes
13807 if test "${enable_wxwidgets}" = yes ; then
13808 enable_wxwidgets_ok=yes
13810 if test "x${cxxerror}" = "xyes"; then
13811 { echo "$as_me:$LINENO: WARNING: No C++ compiler found. The wxWidgets terminal will not be compiled." >&5
13812 echo "$as_me: WARNING: No C++ compiler found. The wxWidgets terminal will not be compiled." >&2;}
13813 enable_wxwidgets_ok=no
13816 WXWIDGETS_PATH="${PATH}"
13818 # Check whether --with-wx-config was given.
13819 if test "${with_wx_config+set}" = set; then
13820 withval=$with_wx_config; if test "${with_wx_config}" != "no" ; then
13821 WXWIDGETS_PATH="${with_wx_config}:${PATH}"
13826 # Extract the first word of "wx-config", so it can be a program name with args.
13827 set dummy wx-config; ac_word=$2
13828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13830 if test "${ac_cv_path_WX_CONFIG+set}" = set; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 ac_cv_path_WX_CONFIG="$WX_CONFIG" # Let the user override the test with a path.
13838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839 for as_dir in ${WXWIDGETS_PATH}
13842 test -z "$as_dir" && as_dir=.
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13845 ac_cv_path_WX_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13853 test -z "$ac_cv_path_WX_CONFIG" && ac_cv_path_WX_CONFIG="no"
13857 WX_CONFIG=$ac_cv_path_WX_CONFIG
13858 if test -n "$WX_CONFIG"; then
13859 { echo "$as_me:$LINENO: result: $WX_CONFIG" >&5
13860 echo "${ECHO_T}$WX_CONFIG" >&6; }
13862 { echo "$as_me:$LINENO: result: no" >&5
13863 echo "${ECHO_T}no" >&6; }
13867 if test "${WX_CONFIG}" = "no"; then
13868 { echo "$as_me:$LINENO: WARNING: wxWidgets can't be found. You can try --with-wx-config-path to give the right path to wx-config. The wxWidgets terminal will not be compiled." >&5
13869 echo "$as_me: WARNING: wxWidgets can't be found. You can try --with-wx-config-path to give the right path to wx-config. The wxWidgets terminal will not be compiled." >&2;}
13870 enable_wxwidgets_ok=no
13873 if expr 2.5.3 \> `${WX_CONFIG} --version` >/dev/null; then
13874 { echo "$as_me:$LINENO: WARNING: Your development package for wxWidgets is too old, you need at least version 2.5.3. The wxWidgets terminal will not be compiled." >&5
13875 echo "$as_me: WARNING: Your development package for wxWidgets is too old, you need at least version 2.5.3. The wxWidgets terminal will not be compiled." >&2;}
13876 enable_wxwidgets_ok=no
13882 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13883 if test -n "$ac_tool_prefix"; then
13884 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13885 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13888 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 case $PKG_CONFIG in
13893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897 for as_dir in $PATH
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
13902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13903 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13914 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13915 if test -n "$PKG_CONFIG"; then
13916 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13917 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13919 { echo "$as_me:$LINENO: result: no" >&5
13920 echo "${ECHO_T}no" >&6; }
13925 if test -z "$ac_cv_path_PKG_CONFIG"; then
13926 ac_pt_PKG_CONFIG=$PKG_CONFIG
13927 # Extract the first word of "pkg-config", so it can be a program name with args.
13928 set dummy pkg-config; ac_word=$2
13929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13931 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
13932 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 case $ac_pt_PKG_CONFIG in
13936 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13940 for as_dir in $PATH
13943 test -z "$as_dir" && as_dir=.
13944 for ac_exec_ext in '' $ac_executable_extensions; do
13945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13946 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13957 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13958 if test -n "$ac_pt_PKG_CONFIG"; then
13959 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
13960 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
13962 { echo "$as_me:$LINENO: result: no" >&5
13963 echo "${ECHO_T}no" >&6; }
13966 if test "x$ac_pt_PKG_CONFIG" = x; then
13969 case $cross_compiling:$ac_tool_warned in
13971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13972 whose name does not start with the host triplet. If you think this
13973 configuration is useful to you, please write to autoconf@gnu.org." >&5
13974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13975 whose name does not start with the host triplet. If you think this
13976 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13977 ac_tool_warned=yes ;;
13979 PKG_CONFIG=$ac_pt_PKG_CONFIG
13982 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13986 if test -n "$PKG_CONFIG"; then
13987 _pkg_min_version=0.9.0
13988 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
13989 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
13990 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13991 { echo "$as_me:$LINENO: result: yes" >&5
13992 echo "${ECHO_T}yes" >&6; }
13994 { echo "$as_me:$LINENO: result: no" >&5
13995 echo "${ECHO_T}no" >&6; }
14002 { echo "$as_me:$LINENO: checking for CAIROPANGO" >&5
14003 echo $ECHO_N "checking for CAIROPANGO... $ECHO_C" >&6; }
14005 if test -n "$PKG_CONFIG"; then
14006 if test -n "$CAIROPANGO_CFLAGS"; then
14007 pkg_cv_CAIROPANGO_CFLAGS="$CAIROPANGO_CFLAGS"
14009 if test -n "$PKG_CONFIG" && \
14010 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10\"") >&5
14011 ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10") 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; then
14015 pkg_cv_CAIROPANGO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10" 2>/dev/null`
14023 if test -n "$PKG_CONFIG"; then
14024 if test -n "$CAIROPANGO_LIBS"; then
14025 pkg_cv_CAIROPANGO_LIBS="$CAIROPANGO_LIBS"
14027 if test -n "$PKG_CONFIG" && \
14028 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10\"") >&5
14029 ($PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10") 2>&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; then
14033 pkg_cv_CAIROPANGO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10" 2>/dev/null`
14044 if test $pkg_failed = yes; then
14046 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14047 _pkg_short_errors_supported=yes
14049 _pkg_short_errors_supported=no
14051 if test $_pkg_short_errors_supported = yes; then
14052 CAIROPANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10"`
14054 CAIROPANGO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10"`
14056 # Put the nasty error message in config.log where it belongs
14057 echo "$CAIROPANGO_PKG_ERRORS" >&5
14059 if test $pkg_failed = yes; then
14060 { echo "$as_me:$LINENO: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14061 wxWidgets terminal were not met:
14063 $CAIROPANGO_PKG_ERRORS
14065 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14066 installed software in a non-standard prefix.
14068 Alternatively, you can avoid the need to call pkg-config if you set the
14069 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14070 corresponding flags for cairo, pango, and pangocairo.
14071 See the pkg-config man page for more details.
14073 The wxWidgets terminal will not be compiled." >&5
14074 echo "$as_me: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14075 wxWidgets terminal were not met:
14077 $CAIROPANGO_PKG_ERRORS
14079 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14080 installed software in a non-standard prefix.
14082 Alternatively, you can avoid the need to call pkg-config if you set the
14083 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14084 corresponding flags for cairo, pango, and pangocairo.
14085 See the pkg-config man page for more details.
14087 The wxWidgets terminal will not be compiled." >&2;}
14088 elif test $pkg_failed = untried; then
14089 { echo "$as_me:$LINENO: WARNING: The pkg-config script could not be found or is too old. Make sure it
14090 is in your PATH or set the PKG_CONFIG environment variable to the full
14091 path to pkg-config.
14093 Alternatively, you can avoid the need to call pkg-config if you set the
14094 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14095 corresponding flags for cairo, pango, and pangocairo.
14096 See the pkg-config man page for more details.
14098 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14100 The wxWidgets terminal will not be compiled." >&5
14101 echo "$as_me: WARNING: The pkg-config script could not be found or is too old. Make sure it
14102 is in your PATH or set the PKG_CONFIG environment variable to the full
14103 path to pkg-config.
14105 Alternatively, you can avoid the need to call pkg-config if you set the
14106 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14107 corresponding flags for cairo, pango, and pangocairo.
14108 See the pkg-config man page for more details.
14110 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14112 The wxWidgets terminal will not be compiled." >&2;}
14114 enable_wxwidgets_ok=no
14115 elif test $pkg_failed = untried; then
14116 if test $pkg_failed = yes; then
14117 { echo "$as_me:$LINENO: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14118 wxWidgets terminal were not met:
14120 $CAIROPANGO_PKG_ERRORS
14122 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14123 installed software in a non-standard prefix.
14125 Alternatively, you can avoid the need to call pkg-config if you set the
14126 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14127 corresponding flags for cairo, pango, and pangocairo.
14128 See the pkg-config man page for more details.
14130 The wxWidgets terminal will not be compiled." >&5
14131 echo "$as_me: WARNING: Package requirements (cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10) for the
14132 wxWidgets terminal were not met:
14134 $CAIROPANGO_PKG_ERRORS
14136 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14137 installed software in a non-standard prefix.
14139 Alternatively, you can avoid the need to call pkg-config if you set the
14140 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14141 corresponding flags for cairo, pango, and pangocairo.
14142 See the pkg-config man page for more details.
14144 The wxWidgets terminal will not be compiled." >&2;}
14145 elif test $pkg_failed = untried; then
14146 { echo "$as_me:$LINENO: WARNING: The pkg-config script could not be found or is too old. Make sure it
14147 is in your PATH or set the PKG_CONFIG environment variable to the full
14148 path to pkg-config.
14150 Alternatively, you can avoid the need to call pkg-config if you set the
14151 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14152 corresponding flags for cairo, pango, and pangocairo.
14153 See the pkg-config man page for more details.
14155 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14157 The wxWidgets terminal will not be compiled." >&5
14158 echo "$as_me: WARNING: The pkg-config script could not be found or is too old. Make sure it
14159 is in your PATH or set the PKG_CONFIG environment variable to the full
14160 path to pkg-config.
14162 Alternatively, you can avoid the need to call pkg-config if you set the
14163 environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to the
14164 corresponding flags for cairo, pango, and pangocairo.
14165 See the pkg-config man page for more details.
14167 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14169 The wxWidgets terminal will not be compiled." >&2;}
14171 enable_wxwidgets_ok=no
14173 CAIROPANGO_CFLAGS=$pkg_cv_CAIROPANGO_CFLAGS
14174 CAIROPANGO_LIBS=$pkg_cv_CAIROPANGO_LIBS
14175 { echo "$as_me:$LINENO: result: yes" >&5
14176 echo "${ECHO_T}yes" >&6; }
14182 { echo "$as_me:$LINENO: checking for PANGO_1_10_2" >&5
14183 echo $ECHO_N "checking for PANGO_1_10_2... $ECHO_C" >&6; }
14185 if test -n "$PKG_CONFIG"; then
14186 if test -n "$PANGO_1_10_2_CFLAGS"; then
14187 pkg_cv_PANGO_1_10_2_CFLAGS="$PANGO_1_10_2_CFLAGS"
14189 if test -n "$PKG_CONFIG" && \
14190 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango = 1.10.2\"") >&5
14191 ($PKG_CONFIG --exists --print-errors "pango = 1.10.2") 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; then
14195 pkg_cv_PANGO_1_10_2_CFLAGS=`$PKG_CONFIG --cflags "pango = 1.10.2" 2>/dev/null`
14203 if test -n "$PKG_CONFIG"; then
14204 if test -n "$PANGO_1_10_2_LIBS"; then
14205 pkg_cv_PANGO_1_10_2_LIBS="$PANGO_1_10_2_LIBS"
14207 if test -n "$PKG_CONFIG" && \
14208 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pango = 1.10.2\"") >&5
14209 ($PKG_CONFIG --exists --print-errors "pango = 1.10.2") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; then
14213 pkg_cv_PANGO_1_10_2_LIBS=`$PKG_CONFIG --libs "pango = 1.10.2" 2>/dev/null`
14224 if test $pkg_failed = yes; then
14226 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14227 _pkg_short_errors_supported=yes
14229 _pkg_short_errors_supported=no
14231 if test $_pkg_short_errors_supported = yes; then
14232 PANGO_1_10_2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pango = 1.10.2"`
14234 PANGO_1_10_2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pango = 1.10.2"`
14236 # Put the nasty error message in config.log where it belongs
14237 echo "$PANGO_1_10_2_PKG_ERRORS" >&5
14239 { echo "$as_me:$LINENO: result: no" >&5
14240 echo "${ECHO_T}no" >&6; }
14241 HAVE_PANGO_1_10_2=0
14242 elif test $pkg_failed = untried; then
14243 { echo "$as_me:$LINENO: result: no" >&5
14244 echo "${ECHO_T}no" >&6; }
14245 HAVE_PANGO_1_10_2=0
14247 PANGO_1_10_2_CFLAGS=$pkg_cv_PANGO_1_10_2_CFLAGS
14248 PANGO_1_10_2_LIBS=$pkg_cv_PANGO_1_10_2_LIBS
14249 { echo "$as_me:$LINENO: result: yes" >&5
14250 echo "${ECHO_T}yes" >&6; }
14251 { echo "$as_me:$LINENO: WARNING: Pango 1.10.2 has been found. This version has a bug which gives unexpected
14252 results in the wxWidgets terminal. If you want to use this terminal, please
14253 install a different version of Pango." >&5
14254 echo "$as_me: WARNING: Pango 1.10.2 has been found. This version has a bug which gives unexpected
14255 results in the wxWidgets terminal. If you want to use this terminal, please
14256 install a different version of Pango." >&2;}
14257 enable_wxwidgets_ok=no
14261 if test "${enable_wxwidgets_ok}" = yes ; then
14262 WX_CXXFLAGS="`$WX_CONFIG --cxxflags | sed 's/-fno-exceptions//'` $CAIROPANGO_CFLAGS"
14263 WX_LIBS="`$WX_CONFIG --libs` $CAIROPANGO_LIBS"
14265 { echo "$as_me:$LINENO: checking for pid_t" >&5
14266 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14267 if test "${ac_cv_type_pid_t+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14276 $ac_includes_default
14277 typedef pid_t ac__type_new_;
14281 if ((ac__type_new_ *) 0)
14283 if (sizeof (ac__type_new_))
14289 rm -f conftest.$ac_objext
14290 if { (ac_try="$ac_compile"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_compile") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest.$ac_objext; then
14306 ac_cv_type_pid_t=yes
14308 echo "$as_me: failed program was:" >&5
14309 sed 's/^/| /' conftest.$ac_ext >&5
14311 ac_cv_type_pid_t=no
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14317 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14318 if test $ac_cv_type_pid_t = yes; then
14322 cat >>confdefs.h <<_ACEOF
14329 for ac_header in vfork.h
14331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 ac_res=`eval echo '${'$as_ac_Header'}'`
14339 { echo "$as_me:$LINENO: result: $ac_res" >&5
14340 echo "${ECHO_T}$ac_res" >&6; }
14342 # Is the header compilable?
14343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14345 cat >conftest.$ac_ext <<_ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 $ac_includes_default
14352 #include <$ac_header>
14354 rm -f conftest.$ac_objext
14355 if { (ac_try="$ac_compile"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14361 (eval "$ac_compile") 2>conftest.er1
14363 grep -v '^ *+' conftest.er1 >conftest.err
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && {
14368 test -z "$ac_c_werror_flag" ||
14369 test ! -s conftest.err
14370 } && test -s conftest.$ac_objext; then
14371 ac_header_compiler=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_compiler=no
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381 echo "${ECHO_T}$ac_header_compiler" >&6; }
14383 # Is the header present?
14384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <$ac_header>
14394 if { (ac_try="$ac_cpp conftest.$ac_ext"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null && {
14407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14410 ac_header_preproc=yes
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ac_header_preproc=no
14418 rm -f conftest.err conftest.$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14420 echo "${ECHO_T}$ac_header_preproc" >&6; }
14422 # So? What about this header?
14423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14429 ac_header_preproc=yes
14432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 eval "$as_ac_Header=\$ac_header_preproc"
14454 ac_res=`eval echo '${'$as_ac_Header'}'`
14455 { echo "$as_me:$LINENO: result: $ac_res" >&5
14456 echo "${ECHO_T}$ac_res" >&6; }
14459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14460 cat >>confdefs.h <<_ACEOF
14461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14470 for ac_func in fork vfork
14472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14486 #define $ac_func innocuous_$ac_func
14488 /* System header to define __stub macros and hopefully few prototypes,
14489 which can conflict with char $ac_func (); below.
14490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14491 <limits.h> exists even on freestanding compilers. */
14494 # include <limits.h>
14496 # include <assert.h>
14501 /* Override any GCC internal prototype to avoid an error.
14502 Use char because int might match the return type of a GCC
14503 builtin and then its argument prototype would still apply. */
14508 /* The GNU C library defines this for functions which it implements
14509 to always fail with ENOSYS. Some functions are actually named
14510 something starting with __ and the normal name is an alias. */
14511 #if defined __stub_$ac_func || defined __stub___$ac_func
14518 return $ac_func ();
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (ac_try="$ac_link"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_link") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest$ac_exeext &&
14540 $as_test_x conftest$ac_exeext; then
14541 eval "$as_ac_var=yes"
14543 echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14546 eval "$as_ac_var=no"
14549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14550 conftest$ac_exeext conftest.$ac_ext
14552 ac_res=`eval echo '${'$as_ac_var'}'`
14553 { echo "$as_me:$LINENO: result: $ac_res" >&5
14554 echo "${ECHO_T}$ac_res" >&6; }
14555 if test `eval echo '${'$as_ac_var'}'` = yes; then
14556 cat >>confdefs.h <<_ACEOF
14557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14563 if test "x$ac_cv_func_fork" = xyes; then
14564 { echo "$as_me:$LINENO: checking for working fork" >&5
14565 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
14566 if test "${ac_cv_func_fork_works+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 if test "$cross_compiling" = yes; then
14570 ac_cv_func_fork_works=cross
14572 cat >conftest.$ac_ext <<_ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14583 /* By Ruediger Kuhlmann. */
14584 return fork () < 0;
14590 rm -f conftest$ac_exeext
14591 if { (ac_try="$ac_link"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_link") 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_func_fork_works=yes
14612 echo "$as_me: program exited with status $ac_status" >&5
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14616 ( exit $ac_status )
14617 ac_cv_func_fork_works=no
14619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14624 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14625 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
14628 ac_cv_func_fork_works=$ac_cv_func_fork
14630 if test "x$ac_cv_func_fork_works" = xcross; then
14632 *-*-amigaos* | *-*-msdosdjgpp*)
14633 # Override, as these systems have only a dummy fork() stub
14634 ac_cv_func_fork_works=no
14637 ac_cv_func_fork_works=yes
14640 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14641 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14643 ac_cv_func_vfork_works=$ac_cv_func_vfork
14644 if test "x$ac_cv_func_vfork" = xyes; then
14645 { echo "$as_me:$LINENO: checking for working vfork" >&5
14646 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
14647 if test "${ac_cv_func_vfork_works+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 if test "$cross_compiling" = yes; then
14651 ac_cv_func_vfork_works=cross
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 /* Thanks to Paul Eggert for this test. */
14660 $ac_includes_default
14661 #include <sys/wait.h>
14662 #ifdef HAVE_VFORK_H
14663 # include <vfork.h>
14665 /* On some sparc systems, changes by the child to local and incoming
14666 argument registers are propagated back to the parent. The compiler
14667 is told about this with #include <vfork.h>, but some compilers
14668 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14669 static variable whose address is put into a register that is
14670 clobbered by the vfork. */
14673 sparc_address_test (int arg)
14675 sparc_address_test (arg) int arg;
14678 static pid_t child;
14696 pid_t parent = getpid ();
14699 sparc_address_test (0);
14704 /* Here is another test for sparc vfork register problems. This
14705 test uses lots of local variables, at least as many local
14706 variables as main has allocated so far including compiler
14707 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14708 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14709 reuse the register of parent for one of the local variables,
14710 since it will think that parent can't possibly be used any more
14711 in this routine. Assigning to the local variable will thus
14712 munge parent in the parent process. */
14714 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14715 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14716 /* Convince the compiler that p..p7 are live; otherwise, it might
14717 use the same hardware register for all 8 local variables. */
14718 if (p != p1 || p != p2 || p != p3 || p != p4
14719 || p != p5 || p != p6 || p != p7)
14722 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14723 from child file descriptors. If the child closes a descriptor
14724 before it execs or exits, this munges the parent's descriptor
14725 as well. Test for this by closing stdout in the child. */
14726 _exit(close(fileno(stdout)) != 0);
14731 while (wait(&status) != child)
14734 /* Was there some problem with vforking? */
14737 /* Did the child fail? (This shouldn't happen.) */
14740 /* Did the vfork/compiler bug occur? */
14741 || parent != getpid()
14743 /* Did the file descriptor bug occur? */
14744 || fstat(fileno(stdout), &st) != 0
14749 rm -f conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14760 { (case "(($ac_try" in
14761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14762 *) ac_try_echo=$ac_try;;
14764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14765 (eval "$ac_try") 2>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); }; }; then
14769 ac_cv_func_vfork_works=yes
14771 echo "$as_me: program exited with status $ac_status" >&5
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14775 ( exit $ac_status )
14776 ac_cv_func_vfork_works=no
14778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
14784 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
14787 if test "x$ac_cv_func_fork_works" = xcross; then
14788 ac_cv_func_vfork_works=$ac_cv_func_vfork
14789 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14790 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14793 if test "x$ac_cv_func_vfork_works" = xyes; then
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_WORKING_VFORK 1
14801 cat >>confdefs.h <<\_ACEOF
14806 if test "x$ac_cv_func_fork_works" = xyes; then
14808 cat >>confdefs.h <<\_ACEOF
14809 #define HAVE_WORKING_FORK 1
14817 { echo "$as_me:$LINENO: checking for GTK" >&5
14818 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
14820 if test -n "$PKG_CONFIG"; then
14821 if test -n "$GTK_CFLAGS"; then
14822 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
14824 if test -n "$PKG_CONFIG" && \
14825 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
14826 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; then
14830 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
14838 if test -n "$PKG_CONFIG"; then
14839 if test -n "$GTK_LIBS"; then
14840 pkg_cv_GTK_LIBS="$GTK_LIBS"
14842 if test -n "$PKG_CONFIG" && \
14843 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
14844 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; then
14848 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
14859 if test $pkg_failed = yes; then
14861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14862 _pkg_short_errors_supported=yes
14864 _pkg_short_errors_supported=no
14866 if test $_pkg_short_errors_supported = yes; then
14867 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
14869 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
14871 # Put the nasty error message in config.log where it belongs
14872 echo "$GTK_PKG_ERRORS" >&5
14875 elif test $pkg_failed = untried; then
14878 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
14879 GTK_LIBS=$pkg_cv_GTK_LIBS
14880 { echo "$as_me:$LINENO: result: yes" >&5
14881 echo "${ECHO_T}yes" >&6; }
14884 if test "${have_gtk}" = yes ; then
14886 cat >>confdefs.h <<\_ACEOF
14890 WX_CXXFLAGS="$WX_CXXFLAGS $GTK_CFLAGS"
14891 WX_LIBS="$WX_LIBS $GTK_LIBS"
14896 { echo "$as_me:$LINENO: checking for GTK28" >&5
14897 echo $ECHO_N "checking for GTK28... $ECHO_C" >&6; }
14899 if test -n "$PKG_CONFIG"; then
14900 if test -n "$GTK28_CFLAGS"; then
14901 pkg_cv_GTK28_CFLAGS="$GTK28_CFLAGS"
14903 if test -n "$PKG_CONFIG" && \
14904 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8.0\"") >&5
14905 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8.0") 2>&5
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; then
14909 pkg_cv_GTK28_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8.0" 2>/dev/null`
14917 if test -n "$PKG_CONFIG"; then
14918 if test -n "$GTK28_LIBS"; then
14919 pkg_cv_GTK28_LIBS="$GTK28_LIBS"
14921 if test -n "$PKG_CONFIG" && \
14922 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.8.0\"") >&5
14923 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.8.0") 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; then
14927 pkg_cv_GTK28_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8.0" 2>/dev/null`
14938 if test $pkg_failed = yes; then
14940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14941 _pkg_short_errors_supported=yes
14943 _pkg_short_errors_supported=no
14945 if test $_pkg_short_errors_supported = yes; then
14946 GTK28_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8.0"`
14948 GTK28_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8.0"`
14950 # Put the nasty error message in config.log where it belongs
14951 echo "$GTK28_PKG_ERRORS" >&5
14954 elif test $pkg_failed = untried; then
14957 GTK28_CFLAGS=$pkg_cv_GTK28_CFLAGS
14958 GTK28_LIBS=$pkg_cv_GTK28_LIBS
14959 { echo "$as_me:$LINENO: result: yes" >&5
14960 echo "${ECHO_T}yes" >&6; }
14963 if test "${have_gtk28}" = yes ; then
14965 cat >>confdefs.h <<\_ACEOF
14966 #define HAVE_GTK28 1
14971 CPPFLAGS="$CPPFLAGS $CAIROPANGO_CFLAGS"
14972 CXXFLAGS="$CXXFLAGS $WX_CXXFLAGS"
14975 cat >>confdefs.h <<\_ACEOF
14976 #define WXWIDGETS 1
14983 if test "${enable_wxwidgets_ok}" = yes; then
14984 BUILD_WXWIDGETS_TRUE=
14985 BUILD_WXWIDGETS_FALSE='#'
14987 BUILD_WXWIDGETS_TRUE='#'
14988 BUILD_WXWIDGETS_FALSE=
14993 # Check whether --enable-backwards-compatibility was given.
14994 if test "${enable_backwards_compatibility+set}" = set; then
14995 enableval=$enable_backwards_compatibility;
14997 test -z "$enable_backwards_compatibility" && enable_backwards_compatibility=yes
15001 if test "$enable_backwards_compatibility" = yes; then
15003 cat >>confdefs.h <<\_ACEOF
15004 #define BACKWARDS_COMPATIBLE 1
15009 if test "$with_lisp_files" != no; then
15010 subdirs="$subdirs lisp"
15028 ac_config_files="$ac_config_files Makefile config/Makefile demo/Makefile docs/Makefile m4/Makefile man/Makefile share/Makefile share/LaTeX/Makefile src/Makefile src/beos/Makefile src/wxterminal/Makefile term/Makefile maemo/Makefile tutorial/Makefile"
15030 ac_config_commands="$ac_config_commands default"
15032 cat >confcache <<\_ACEOF
15033 # This file is a shell script that caches the results of configure
15034 # tests run on this system so they can be shared between configure
15035 # scripts and configure runs, see configure's option --config-cache.
15036 # It is not useful on other systems. If it contains results you don't
15037 # want to keep, you may remove or edit it.
15039 # config.status only pays attention to the cache file if you give it
15040 # the --recheck option to rerun configure.
15042 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15043 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15044 # following values.
15048 # The following way of writing the cache mishandles newlines in values,
15049 # but we know of no workaround that is simple, portable, and efficient.
15050 # So, we kill variables containing newlines.
15051 # Ultrix sh set writes to stderr and can't be redirected directly,
15052 # and sets the high bit in the cache file unless we assign to the vars.
15054 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15055 eval ac_val=\$$ac_var
15059 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15060 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15063 _ | IFS | as_nl) ;; #(
15064 *) $as_unset $ac_var ;;
15070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15071 *${as_nl}ac_space=\ *)
15072 # `set' does not quote correctly, so add quotes (double-quote
15073 # substitution turns \\\\ into \\, and sed turns \\ into \).
15076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15079 # `set' quotes correctly as required by POSIX, so do not add quotes.
15080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15093 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15094 if test -w "$cache_file"; then
15095 test "x$cache_file" != "x/dev/null" &&
15096 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15097 echo "$as_me: updating cache $cache_file" >&6;}
15098 cat confcache >$cache_file
15100 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15101 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15106 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15107 # Let make expand exec_prefix.
15108 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15110 DEFS=-DHAVE_CONFIG_H
15114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15115 # 1. Remove the extension, and $U if already installed.
15116 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15117 ac_i=`echo "$ac_i" | sed "$ac_script"`
15118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15119 # will be set to the directory where LIBOBJS objects are built.
15120 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15121 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15123 LIBOBJS=$ac_libobjs
15125 LTLIBOBJS=$ac_ltlibobjs
15128 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15129 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15130 Usually this means the macro was only invoked conditionally." >&5
15131 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15132 Usually this means the macro was only invoked conditionally." >&2;}
15133 { (exit 1); exit 1; }; }
15135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15136 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15137 Usually this means the macro was only invoked conditionally." >&5
15138 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15139 Usually this means the macro was only invoked conditionally." >&2;}
15140 { (exit 1); exit 1; }; }
15142 if test -z "${BUILD_SRC_BEOS_SUBDIR_TRUE}" && test -z "${BUILD_SRC_BEOS_SUBDIR_FALSE}"; then
15143 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SRC_BEOS_SUBDIR\" was never defined.
15144 Usually this means the macro was only invoked conditionally." >&5
15145 echo "$as_me: error: conditional \"BUILD_SRC_BEOS_SUBDIR\" was never defined.
15146 Usually this means the macro was only invoked conditionally." >&2;}
15147 { (exit 1); exit 1; }; }
15149 if test -z "${INCLUDE_BINARY_C_TRUE}" && test -z "${INCLUDE_BINARY_C_FALSE}"; then
15150 { { echo "$as_me:$LINENO: error: conditional \"INCLUDE_BINARY_C\" was never defined.
15151 Usually this means the macro was only invoked conditionally." >&5
15152 echo "$as_me: error: conditional \"INCLUDE_BINARY_C\" was never defined.
15153 Usually this means the macro was only invoked conditionally." >&2;}
15154 { (exit 1); exit 1; }; }
15156 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15157 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15158 Usually this means the macro was only invoked conditionally." >&5
15159 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15160 Usually this means the macro was only invoked conditionally." >&2;}
15161 { (exit 1); exit 1; }; }
15163 if test -z "${BUILD_WXWIDGETS_TRUE}" && test -z "${BUILD_WXWIDGETS_FALSE}"; then
15164 { { echo "$as_me:$LINENO: error: conditional \"BUILD_WXWIDGETS\" was never defined.
15165 Usually this means the macro was only invoked conditionally." >&5
15166 echo "$as_me: error: conditional \"BUILD_WXWIDGETS\" was never defined.
15167 Usually this means the macro was only invoked conditionally." >&2;}
15168 { (exit 1); exit 1; }; }
15171 : ${CONFIG_STATUS=./config.status}
15172 ac_clean_files_save=$ac_clean_files
15173 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15174 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15175 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15176 cat >$CONFIG_STATUS <<_ACEOF
15178 # Generated by $as_me.
15179 # Run this file to recreate the current configuration.
15180 # Compiler output produced by configure, useful for debugging
15181 # configure, is in config.log if it exists.
15184 ac_cs_recheck=false
15186 SHELL=\${CONFIG_SHELL-$SHELL}
15189 cat >>$CONFIG_STATUS <<\_ACEOF
15190 ## --------------------- ##
15191 ## M4sh Initialization. ##
15192 ## --------------------- ##
15194 # Be more Bourne compatible
15195 DUALCASE=1; export DUALCASE # for MKS sh
15196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15199 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15200 # is contrary to our usage. Disable this feature.
15201 alias -g '${1+"$@"}'='"$@"'
15202 setopt NO_GLOB_SUBST
15204 case `(set -o) 2>/dev/null` in
15205 *posix*) set -o posix ;;
15214 # Avoid depending upon Character Ranges.
15215 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15216 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15217 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15218 as_cr_digits='0123456789'
15219 as_cr_alnum=$as_cr_Letters$as_cr_digits
15221 # The user is always right.
15222 if test "${PATH_SEPARATOR+set}" != set; then
15223 echo "#! /bin/sh" >conf$$.sh
15224 echo "exit 0" >>conf$$.sh
15226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15234 # Support unset when possible.
15235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15243 # We need space, tab and new line, in precisely that order. Quoting is
15244 # there to prevent editors from complaining about space-tab.
15245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15246 # splitting by setting IFS to empty value.)
15251 # Find who we are. Look in the path if we contain no directory separator.
15253 *[\\/]* ) as_myself=$0 ;;
15254 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15255 for as_dir in $PATH
15258 test -z "$as_dir" && as_dir=.
15259 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15265 # We did not find ourselves, most probably we were run as `sh COMMAND'
15266 # in which case we are not to be found in the path.
15267 if test "x$as_myself" = x; then
15270 if test ! -f "$as_myself"; then
15271 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15272 { (exit 1); exit 1; }
15275 # Work around bugs in pre-3.0 UWIN ksh.
15276 for as_var in ENV MAIL MAILPATH
15277 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15285 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15286 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15287 LC_TELEPHONE LC_TIME
15289 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15290 eval $as_var=C; export $as_var
15292 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15296 # Required to use basename.
15297 if expr a : '\(a\)' >/dev/null 2>&1 &&
15298 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15304 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15305 as_basename=basename
15311 # Name of the executable.
15312 as_me=`$as_basename -- "$0" ||
15313 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15314 X"$0" : 'X\(//\)$' \| \
15315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15317 sed '/^.*\/\([^/][^/]*\)\/*$/{
15336 as_lineno_1=$LINENO
15337 as_lineno_2=$LINENO
15338 test "x$as_lineno_1" != "x$as_lineno_2" &&
15339 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15341 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15342 # uniformly replaced by the line number. The first 'sed' inserts a
15343 # line-number line after each line using $LINENO; the second 'sed'
15344 # does the real work. The second script uses 'N' to pair each
15345 # line-number line with the line containing $LINENO, and appends
15346 # trailing '-' during substitution so that $LINENO is not a special
15347 # case at line end.
15348 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15349 # scripts with optimization help from Paolo Bonzini. Blame Lee
15350 # E. McMahon (1931-1989) for sed's syntax. :-)
15362 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15365 ' >$as_me.lineno &&
15366 chmod +x "$as_me.lineno" ||
15367 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15368 { (exit 1); exit 1; }; }
15370 # Don't try to exec as it changes $[0], causing all sort of problems
15371 # (the dirname of $[0] is not the place where we might find the
15372 # original and so on. Autoconf is especially sensitive to this).
15373 . "./$as_me.lineno"
15374 # Exit status is that of the last command.
15379 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15385 ECHO_C= ECHO_N= ECHO_T=
15386 case `echo -n x` in
15388 case `echo 'x\c'` in
15389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15396 if expr a : '\(a\)' >/dev/null 2>&1 &&
15397 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15403 rm -f conf$$ conf$$.exe conf$$.file
15404 if test -d conf$$.dir; then
15405 rm -f conf$$.dir/conf$$.file
15411 if ln -s conf$$.file conf$$ 2>/dev/null; then
15413 # ... but there are two gotchas:
15414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15416 # In both cases, we have to default to `cp -p'.
15417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15419 elif ln conf$$.file conf$$ 2>/dev/null; then
15424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15425 rmdir conf$$.dir 2>/dev/null
15427 if mkdir -p . 2>/dev/null; then
15430 test -d ./-p && rmdir ./-p
15434 if test -x / >/dev/null 2>&1; then
15435 as_test_x='test -x'
15437 if ls -dL / >/dev/null 2>&1; then
15444 if test -d "$1"; then
15450 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15451 ???[sx]*):;;*)false;;esac;fi
15455 as_executable_p=$as_test_x
15457 # Sed expression to map a string onto a valid CPP name.
15458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15460 # Sed expression to map a string onto a valid variable name.
15461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15466 # Save the log message, to keep $[0] and so on meaningful, and to
15467 # report actual input values of CONFIG_FILES etc. instead of their
15468 # values after options handling.
15470 This file was extended by gnuplot $as_me 4.2.6, which was
15471 generated by GNU Autoconf 2.61. Invocation command line was
15473 CONFIG_FILES = $CONFIG_FILES
15474 CONFIG_HEADERS = $CONFIG_HEADERS
15475 CONFIG_LINKS = $CONFIG_LINKS
15476 CONFIG_COMMANDS = $CONFIG_COMMANDS
15479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15484 cat >>$CONFIG_STATUS <<_ACEOF
15485 # Files that config.status was made for.
15486 config_files="$ac_config_files"
15487 config_headers="$ac_config_headers"
15488 config_commands="$ac_config_commands"
15492 cat >>$CONFIG_STATUS <<\_ACEOF
15494 \`$as_me' instantiates files from templates according to the
15495 current configuration.
15497 Usage: $0 [OPTIONS] [FILE]...
15499 -h, --help print this help, then exit
15500 -V, --version print version number and configuration settings, then exit
15501 -q, --quiet do not print progress messages
15502 -d, --debug don't remove temporary files
15503 --recheck update $as_me by reconfiguring in the same conditions
15504 --file=FILE[:TEMPLATE]
15505 instantiate the configuration file FILE
15506 --header=FILE[:TEMPLATE]
15507 instantiate the configuration header FILE
15509 Configuration files:
15512 Configuration headers:
15515 Configuration commands:
15518 Report bugs to <bug-autoconf@gnu.org>."
15521 cat >>$CONFIG_STATUS <<_ACEOF
15523 gnuplot config.status 4.2.6
15524 configured by $0, generated by GNU Autoconf 2.61,
15525 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15527 Copyright (C) 2006 Free Software Foundation, Inc.
15528 This config.status script is free software; the Free Software Foundation
15529 gives unlimited permission to copy, distribute and modify it."
15536 cat >>$CONFIG_STATUS <<\_ACEOF
15537 # If no file are specified by the user, then we need to provide default
15538 # value. By we need to know if files were specified by the user.
15544 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15545 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15556 # Handling of the options.
15557 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15559 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15560 echo "$ac_cs_version"; exit ;;
15561 --debug | --debu | --deb | --de | --d | -d )
15563 --file | --fil | --fi | --f )
15565 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15566 ac_need_defaults=false;;
15567 --header | --heade | --head | --hea )
15569 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15570 ac_need_defaults=false;;
15572 # Conflict between --help and --header
15573 { echo "$as_me: error: ambiguous option: $1
15574 Try \`$0 --help' for more information." >&2
15575 { (exit 1); exit 1; }; };;
15576 --help | --hel | -h )
15577 echo "$ac_cs_usage"; exit ;;
15578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15579 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15582 # This is an error.
15583 -*) { echo "$as_me: error: unrecognized option: $1
15584 Try \`$0 --help' for more information." >&2
15585 { (exit 1); exit 1; }; } ;;
15587 *) ac_config_targets="$ac_config_targets $1"
15588 ac_need_defaults=false ;;
15594 ac_configure_extra_args=
15596 if $ac_cs_silent; then
15598 ac_configure_extra_args="$ac_configure_extra_args --silent"
15602 cat >>$CONFIG_STATUS <<_ACEOF
15603 if \$ac_cs_recheck; then
15604 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15605 CONFIG_SHELL=$SHELL
15606 export CONFIG_SHELL
15607 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15611 cat >>$CONFIG_STATUS <<\_ACEOF
15615 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15616 ## Running $as_me. ##
15622 cat >>$CONFIG_STATUS <<_ACEOF
15626 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15630 cat >>$CONFIG_STATUS <<\_ACEOF
15632 # Handling of arguments.
15633 for ac_config_target in $ac_config_targets
15635 case $ac_config_target in
15636 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
15637 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15638 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15639 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
15640 "demo/Makefile") CONFIG_FILES="$CONFIG_FILES demo/Makefile" ;;
15641 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15642 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15643 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15644 "share/Makefile") CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
15645 "share/LaTeX/Makefile") CONFIG_FILES="$CONFIG_FILES share/LaTeX/Makefile" ;;
15646 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15647 "src/beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/beos/Makefile" ;;
15648 "src/wxterminal/Makefile") CONFIG_FILES="$CONFIG_FILES src/wxterminal/Makefile" ;;
15649 "term/Makefile") CONFIG_FILES="$CONFIG_FILES term/Makefile" ;;
15650 "maemo/Makefile") CONFIG_FILES="$CONFIG_FILES maemo/Makefile" ;;
15651 "tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES tutorial/Makefile" ;;
15652 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15654 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15655 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15656 { (exit 1); exit 1; }; };;
15661 # If the user did not use the arguments to specify the items to instantiate,
15662 # then the envvar interface is used. Set only those that are not.
15663 # We use the long form for the default assignment because of an extremely
15664 # bizarre bug on SunOS 4.1.3.
15665 if $ac_need_defaults; then
15666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15667 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15668 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15671 # Have a temporary directory for convenience. Make it in the build tree
15672 # simply because there is no reason against having it here, and in addition,
15673 # creating and moving files from /tmp can sometimes cause problems.
15674 # Hook for its removal unless debugging.
15675 # Note that there is a small window in which the directory will not be cleaned:
15676 # after its creation but before its name has been assigned to `$tmp'.
15680 trap 'exit_status=$?
15681 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15683 trap '{ (exit 1); exit 1; }' 1 2 13 15
15685 # Create a (secure) tmp directory for tmp files.
15688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15689 test -n "$tmp" && test -d "$tmp"
15692 tmp=./conf$$-$RANDOM
15693 (umask 077 && mkdir "$tmp")
15696 echo "$me: cannot create a temporary directory in ." >&2
15697 { (exit 1); exit 1; }
15701 # Set up the sed scripts for CONFIG_FILES section.
15704 # No need to generate the scripts if there are no CONFIG_FILES.
15705 # This happens for instance when ./config.status config.h
15706 if test -n "$CONFIG_FILES"; then
15713 for ac_last_try in false false false false false :; do
15714 cat >conf$$subs.sed <<_ACEOF
15715 SHELL!$SHELL$ac_delim
15716 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15717 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15718 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15719 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15720 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15721 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15722 exec_prefix!$exec_prefix$ac_delim
15723 prefix!$prefix$ac_delim
15724 program_transform_name!$program_transform_name$ac_delim
15725 bindir!$bindir$ac_delim
15726 sbindir!$sbindir$ac_delim
15727 libexecdir!$libexecdir$ac_delim
15728 datarootdir!$datarootdir$ac_delim
15729 datadir!$datadir$ac_delim
15730 sysconfdir!$sysconfdir$ac_delim
15731 sharedstatedir!$sharedstatedir$ac_delim
15732 localstatedir!$localstatedir$ac_delim
15733 includedir!$includedir$ac_delim
15734 oldincludedir!$oldincludedir$ac_delim
15735 docdir!$docdir$ac_delim
15736 infodir!$infodir$ac_delim
15737 htmldir!$htmldir$ac_delim
15738 dvidir!$dvidir$ac_delim
15739 pdfdir!$pdfdir$ac_delim
15740 psdir!$psdir$ac_delim
15741 libdir!$libdir$ac_delim
15742 localedir!$localedir$ac_delim
15743 mandir!$mandir$ac_delim
15744 DEFS!$DEFS$ac_delim
15745 ECHO_C!$ECHO_C$ac_delim
15746 ECHO_N!$ECHO_N$ac_delim
15747 ECHO_T!$ECHO_T$ac_delim
15748 LIBS!$LIBS$ac_delim
15749 build_alias!$build_alias$ac_delim
15750 host_alias!$host_alias$ac_delim
15751 target_alias!$target_alias$ac_delim
15752 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15753 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15754 INSTALL_DATA!$INSTALL_DATA$ac_delim
15755 CYGPATH_W!$CYGPATH_W$ac_delim
15756 PACKAGE!$PACKAGE$ac_delim
15757 VERSION!$VERSION$ac_delim
15758 ACLOCAL!$ACLOCAL$ac_delim
15759 AUTOCONF!$AUTOCONF$ac_delim
15760 AUTOMAKE!$AUTOMAKE$ac_delim
15761 AUTOHEADER!$AUTOHEADER$ac_delim
15762 MAKEINFO!$MAKEINFO$ac_delim
15763 AMTAR!$AMTAR$ac_delim
15764 install_sh!$install_sh$ac_delim
15765 STRIP!$STRIP$ac_delim
15766 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15767 mkdir_p!$mkdir_p$ac_delim
15769 SET_MAKE!$SET_MAKE$ac_delim
15770 am__leading_dot!$am__leading_dot$ac_delim
15772 CFLAGS!$CFLAGS$ac_delim
15773 LDFLAGS!$LDFLAGS$ac_delim
15774 CPPFLAGS!$CPPFLAGS$ac_delim
15775 ac_ct_CC!$ac_ct_CC$ac_delim
15776 EXEEXT!$EXEEXT$ac_delim
15777 OBJEXT!$OBJEXT$ac_delim
15778 DEPDIR!$DEPDIR$ac_delim
15779 am__include!$am__include$ac_delim
15780 am__quote!$am__quote$ac_delim
15781 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15782 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15783 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15784 CCDEPMODE!$CCDEPMODE$ac_delim
15785 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15786 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15788 GREP!$GREP$ac_delim
15789 EGREP!$EGREP$ac_delim
15791 ANSI2KNR!$ANSI2KNR$ac_delim
15792 EMACS!$EMACS$ac_delim
15793 PLAINTEX!$PLAINTEX$ac_delim
15794 LATEX!$LATEX$ac_delim
15795 PDFLATEX!$PDFLATEX$ac_delim
15796 DVIPS!$DVIPS$ac_delim
15797 TROFF!$TROFF$ac_delim
15798 LIBRARIES_FOR_X!$LIBRARIES_FOR_X$ac_delim
15799 XMKMF!$XMKMF$ac_delim
15800 X_CFLAGS!$X_CFLAGS$ac_delim
15801 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
15802 X_LIBS!$X_LIBS$ac_delim
15803 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
15804 GNUPLOT_X11!$GNUPLOT_X11$ac_delim
15805 BUILD_SRC_BEOS_SUBDIR_TRUE!$BUILD_SRC_BEOS_SUBDIR_TRUE$ac_delim
15806 BUILD_SRC_BEOS_SUBDIR_FALSE!$BUILD_SRC_BEOS_SUBDIR_FALSE$ac_delim
15807 GDLIB_CONFIG!$GDLIB_CONFIG$ac_delim
15808 PDFLIB_CONFIG!$PDFLIB_CONFIG$ac_delim
15809 INCLUDE_BINARY_C_TRUE!$INCLUDE_BINARY_C_TRUE$ac_delim
15810 INCLUDE_BINARY_C_FALSE!$INCLUDE_BINARY_C_FALSE$ac_delim
15814 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15816 elif $ac_last_try; then
15817 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15818 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15819 { (exit 1); exit 1; }; }
15821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15825 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15826 if test -n "$ac_eof"; then
15827 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15828 ac_eof=`expr $ac_eof + 1`
15831 cat >>$CONFIG_STATUS <<_ACEOF
15832 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15836 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15837 s/^/s,@/; s/!/@,|#_!!_#|/
15840 s/'"$ac_delim"'$/,g/; t
15842 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15843 ' >>$CONFIG_STATUS <conf$$subs.sed
15844 rm -f conf$$subs.sed
15845 cat >>$CONFIG_STATUS <<_ACEOF
15851 for ac_last_try in false false false false false :; do
15852 cat >conf$$subs.sed <<_ACEOF
15853 CXXFLAGS!$CXXFLAGS$ac_delim
15854 ac_ct_CXX!$ac_ct_CXX$ac_delim
15855 CXXDEPMODE!$CXXDEPMODE$ac_delim
15856 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
15857 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
15858 CXXCPP!$CXXCPP$ac_delim
15859 WX_CONFIG!$WX_CONFIG$ac_delim
15860 PKG_CONFIG!$PKG_CONFIG$ac_delim
15861 CAIROPANGO_CFLAGS!$CAIROPANGO_CFLAGS$ac_delim
15862 CAIROPANGO_LIBS!$CAIROPANGO_LIBS$ac_delim
15863 PANGO_1_10_2_CFLAGS!$PANGO_1_10_2_CFLAGS$ac_delim
15864 PANGO_1_10_2_LIBS!$PANGO_1_10_2_LIBS$ac_delim
15865 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
15866 GTK_LIBS!$GTK_LIBS$ac_delim
15867 GTK28_CFLAGS!$GTK28_CFLAGS$ac_delim
15868 GTK28_LIBS!$GTK28_LIBS$ac_delim
15869 WX_LIBS!$WX_LIBS$ac_delim
15870 BUILD_WXWIDGETS_TRUE!$BUILD_WXWIDGETS_TRUE$ac_delim
15871 BUILD_WXWIDGETS_FALSE!$BUILD_WXWIDGETS_FALSE$ac_delim
15872 subdirs!$subdirs$ac_delim
15873 LISPDIR!$LISPDIR$ac_delim
15874 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
15875 GIHDIR!$GIHDIR$ac_delim
15876 LASERGNU!$LASERGNU$ac_delim
15877 LINUXSUID!$LINUXSUID$ac_delim
15878 TERMLIBS!$TERMLIBS$ac_delim
15879 TERMXLIBS!$TERMXLIBS$ac_delim
15880 TUTORIAL!$TUTORIAL$ac_delim
15881 LIBOBJS!$LIBOBJS$ac_delim
15882 LTLIBOBJS!$LTLIBOBJS$ac_delim
15885 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
15887 elif $ac_last_try; then
15888 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15889 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15890 { (exit 1); exit 1; }; }
15892 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15896 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15897 if test -n "$ac_eof"; then
15898 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15899 ac_eof=`expr $ac_eof + 1`
15902 cat >>$CONFIG_STATUS <<_ACEOF
15903 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15904 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15907 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15908 s/^/s,@/; s/!/@,|#_!!_#|/
15911 s/'"$ac_delim"'$/,g/; t
15913 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15914 ' >>$CONFIG_STATUS <conf$$subs.sed
15915 rm -f conf$$subs.sed
15916 cat >>$CONFIG_STATUS <<_ACEOF
15923 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15924 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15925 # trailing colons and then remove the whole line if VPATH becomes empty
15926 # (actually we leave an empty line to preserve line numbers).
15927 if test "x$srcdir" = x.; then
15928 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15929 s/:*\$(srcdir):*/:/
15930 s/:*\${srcdir}:*/:/
15932 s/^\([^=]*=[ ]*\):*/\1/
15938 cat >>$CONFIG_STATUS <<\_ACEOF
15939 fi # test -n "$CONFIG_FILES"
15942 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
15945 :[FHLC]) ac_mode=$ac_tag; continue;;
15947 case $ac_mode$ac_tag in
15949 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15950 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15951 { (exit 1); exit 1; }; };;
15952 :[FH]-) ac_tag=-:-;;
15953 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15970 -) ac_f="$tmp/stdin";;
15971 *) # Look for the file first in the build tree, then in the source tree
15972 # (if the path is not absolute). The absolute path cannot be DOS-style,
15973 # because $ac_f cannot contain `:'.
15977 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15979 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15980 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15981 { (exit 1); exit 1; }; };;
15983 ac_file_inputs="$ac_file_inputs $ac_f"
15986 # Let's still pretend it is `configure' which instantiates (i.e., don't
15987 # use $as_me), people would be surprised to read:
15988 # /* config.h. Generated by config.status. */
15989 configure_input="Generated from "`IFS=:
15990 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15991 if test x"$ac_file" != x-; then
15992 configure_input="$ac_file. $configure_input"
15993 { echo "$as_me:$LINENO: creating $ac_file" >&5
15994 echo "$as_me: creating $ac_file" >&6;}
15998 *:-:* | *:-) cat >"$tmp/stdin";;
16003 ac_dir=`$as_dirname -- "$ac_file" ||
16004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16005 X"$ac_file" : 'X\(//\)[^/]' \| \
16006 X"$ac_file" : 'X\(//\)$' \| \
16007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16013 /^X\(\/\/\)[^/].*/{
16028 -*) as_dir=./$as_dir;;
16030 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16034 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16035 *) as_qdir=$as_dir;;
16037 as_dirs="'$as_qdir' $as_dirs"
16038 as_dir=`$as_dirname -- "$as_dir" ||
16039 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040 X"$as_dir" : 'X\(//\)[^/]' \| \
16041 X"$as_dir" : 'X\(//\)$' \| \
16042 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 /^X\(\/\/\)[^/].*/{
16061 test -d "$as_dir" && break
16063 test -z "$as_dirs" || eval "mkdir $as_dirs"
16064 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16065 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16066 { (exit 1); exit 1; }; }; }
16070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16072 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16073 # A ".." for each directory in $ac_dir_suffix.
16074 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16075 case $ac_top_builddir_sub in
16076 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16077 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16080 ac_abs_top_builddir=$ac_pwd
16081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16082 # for backward compatibility:
16083 ac_top_builddir=$ac_top_build_prefix
16086 .) # We are building in place.
16088 ac_top_srcdir=$ac_top_builddir_sub
16089 ac_abs_top_srcdir=$ac_pwd ;;
16090 [\\/]* | ?:[\\/]* ) # Absolute name.
16091 ac_srcdir=$srcdir$ac_dir_suffix;
16092 ac_top_srcdir=$srcdir
16093 ac_abs_top_srcdir=$srcdir ;;
16094 *) # Relative name.
16095 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16096 ac_top_srcdir=$ac_top_build_prefix$srcdir
16097 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16110 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16114 cat >>$CONFIG_STATUS <<\_ACEOF
16115 # If the template does not know about datarootdir, expand it.
16116 # FIXME: This hack should be removed a few years after 2.60.
16117 ac_datarootdir_hack=; ac_datarootdir_seen=
16119 case `sed -n '/datarootdir/ {
16128 ' $ac_file_inputs` in
16129 *datarootdir*) ac_datarootdir_seen=yes;;
16130 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16131 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16132 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16134 cat >>$CONFIG_STATUS <<_ACEOF
16135 ac_datarootdir_hack='
16136 s&@datadir@&$datadir&g
16137 s&@docdir@&$docdir&g
16138 s&@infodir@&$infodir&g
16139 s&@localedir@&$localedir&g
16140 s&@mandir@&$mandir&g
16141 s&\\\${datarootdir}&$datarootdir&g' ;;
16145 # Neutralize VPATH when `$srcdir' = `.'.
16146 # Shell code in configure.ac might set extrasub.
16147 # FIXME: do we really want to maintain this feature?
16148 cat >>$CONFIG_STATUS <<_ACEOF
16152 cat >>$CONFIG_STATUS <<\_ACEOF
16154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16155 s&@configure_input@&$configure_input&;t t
16156 s&@top_builddir@&$ac_top_builddir_sub&;t t
16157 s&@srcdir@&$ac_srcdir&;t t
16158 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16159 s&@top_srcdir@&$ac_top_srcdir&;t t
16160 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16161 s&@builddir@&$ac_builddir&;t t
16162 s&@abs_builddir@&$ac_abs_builddir&;t t
16163 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16164 s&@INSTALL@&$ac_INSTALL&;t t
16165 $ac_datarootdir_hack
16166 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16168 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16169 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16170 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16171 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16172 which seems to be undefined. Please make sure it is defined." >&5
16173 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16174 which seems to be undefined. Please make sure it is defined." >&2;}
16178 -) cat "$tmp/out"; rm -f "$tmp/out";;
16179 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16188 # Transform confdefs.h into a sed script `conftest.defines', that
16189 # substitutes the proper values into config.h.in to produce config.h.
16190 rm -f conftest.defines conftest.tail
16191 # First, append a space to every undef/define line, to ease matching.
16192 echo 's/$/ /' >conftest.defines
16193 # Then, protect against being on the right side of a sed subst, or in
16194 # an unquoted here document, in config.status. If some macros were
16195 # called several times there might be several #defines for the same
16196 # symbol, which is useless. But do not sort them, since the last
16197 # AC_DEFINE must be honored.
16198 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16199 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16200 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16201 # PARAMS is the parameter list in the macro definition--in most cases, it's
16202 # just an empty string.
16203 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16204 ac_dB='\\)[ (].*,\\1define\\2'
16212 s/^[ ]*#[ ]*define[ ][ ]*//
16217 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16218 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16219 ' >>conftest.defines
16221 # Remove the space that was appended to ease matching.
16222 # Then replace #undef with comments. This is necessary, for
16223 # example, in the case of _POSIX_SOURCE, which is predefined and required
16224 # on some systems where configure will not decide to define it.
16225 # (The regexp can be short, since the line contains either #define or #undef.)
16227 s,^[ #]*u.*,/* & */,' >>conftest.defines
16229 # Break up conftest.defines:
16230 ac_max_sed_lines=50
16232 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16233 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16234 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16236 ac_in='$ac_file_inputs'
16237 ac_out='"$tmp/out1"'
16238 ac_nxt='"$tmp/out2"'
16242 # Write a here document:
16243 cat >>$CONFIG_STATUS <<_ACEOF
16244 # First, check the format of the line:
16245 cat >"\$tmp/defines.sed" <<\\CEOF
16246 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16247 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16251 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16253 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16254 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16255 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16256 grep . conftest.tail >/dev/null || break
16257 rm -f conftest.defines
16258 mv conftest.tail conftest.defines
16260 rm -f conftest.defines conftest.tail
16262 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16263 cat >>$CONFIG_STATUS <<\_ACEOF
16264 if test x"$ac_file" != x-; then
16265 echo "/* $configure_input */" >"$tmp/config.h"
16266 cat "$ac_result" >>"$tmp/config.h"
16267 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16268 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16269 echo "$as_me: $ac_file is unchanged" >&6;}
16272 mv "$tmp/config.h" $ac_file
16275 echo "/* $configure_input */"
16279 # Compute $ac_file's index in $config_headers.
16281 for _am_header in $config_headers :; do
16282 case $_am_header in
16283 $ac_file | $ac_file:* )
16286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16289 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16290 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291 X$ac_file : 'X\(//\)[^/]' \| \
16292 X$ac_file : 'X\(//\)$' \| \
16293 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16299 /^X\(\/\/\)[^/].*/{
16311 s/.*/./; q'`/stamp-h$_am_stamp_count
16314 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16315 echo "$as_me: executing $ac_file commands" >&6;}
16320 case $ac_file$ac_mode in
16321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16322 # Strip MF so we end up with the name of the file.
16323 mf=`echo "$mf" | sed -e 's/:.*$//'`
16324 # Check whether this is an Automake generated Makefile or not.
16325 # We used to match only the files named `Makefile.in', but
16326 # some people rename them; so instead we look at the file content.
16327 # Grep'ing the first line is not enough: some people post-process
16328 # each Makefile.in and add a new line on top of each file to say so.
16329 # So let's grep whole file.
16330 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16331 dirpart=`$as_dirname -- "$mf" ||
16332 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16333 X"$mf" : 'X\(//\)[^/]' \| \
16334 X"$mf" : 'X\(//\)$' \| \
16335 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16341 /^X\(\/\/\)[^/].*/{
16357 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16358 # Extract the definition of DEP_FILES from the Makefile without
16360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16361 test -z "$DEPDIR" && continue
16362 # When using ansi2knr, U may be empty or an underscore; expand it
16363 U=`sed -n 's/^U = //p' < "$mf"`
16364 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16365 # We invoke sed twice because it is the simplest approach to
16366 # changing $(DEPDIR) to its actual value in the expansion.
16367 for file in `sed -n '
16368 /^DEP_FILES = .*\\\\$/ {
16377 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16378 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16379 # Make sure the directory exists.
16380 test -f "$dirpart/$file" && continue
16381 fdir=`$as_dirname -- "$file" ||
16382 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16383 X"$file" : 'X\(//\)[^/]' \| \
16384 X"$file" : 'X\(//\)$' \| \
16385 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16391 /^X\(\/\/\)[^/].*/{
16404 { as_dir=$dirpart/$fdir
16406 -*) as_dir=./$as_dir;;
16408 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16412 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16413 *) as_qdir=$as_dir;;
16415 as_dirs="'$as_qdir' $as_dirs"
16416 as_dir=`$as_dirname -- "$as_dir" ||
16417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16418 X"$as_dir" : 'X\(//\)[^/]' \| \
16419 X"$as_dir" : 'X\(//\)$' \| \
16420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16426 /^X\(\/\/\)[^/].*/{
16439 test -d "$as_dir" && break
16441 test -z "$as_dirs" || eval "mkdir $as_dirs"
16442 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16443 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16444 { (exit 1); exit 1; }; }; }
16445 # echo "creating $dirpart/$file"
16446 echo '# dummy' > "$dirpart/$file"
16450 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h ;;
16456 { (exit 0); exit 0; }
16458 chmod +x $CONFIG_STATUS
16459 ac_clean_files=$ac_clean_files_save
16462 # configure is writing to config.log, and then calls config.status.
16463 # config.status does its own redirection, appending to config.log.
16464 # Unfortunately, on DOS this fails, as config.log is still kept open
16465 # by configure, so config.status won't be able to write to it; its
16466 # output is simply discarded. So we exec the FD to /dev/null,
16467 # effectively closing config.log, so it can be properly (re)opened and
16468 # appended to by config.status. When coming back to configure, we
16469 # need to make the FD available again.
16470 if test "$no_create" != yes; then
16472 ac_config_status_args=
16473 test "$silent" = yes &&
16474 ac_config_status_args="$ac_config_status_args --quiet"
16476 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16478 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16479 # would make configure fail if this is the last instruction.
16480 $ac_cs_success || { (exit 1); exit 1; }
16484 # CONFIG_SUBDIRS section.
16486 if test "$no_recursion" != yes; then
16488 # Remove --cache-file and --srcdir arguments so they do not pile up.
16489 ac_sub_configure_args=
16491 eval "set x $ac_configure_args"
16495 if test -n "$ac_prev"; then
16500 -cache-file | --cache-file | --cache-fil | --cache-fi \
16501 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16502 ac_prev=cache_file ;;
16503 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16504 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16507 --config-cache | -C)
16509 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16511 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16513 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16515 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16519 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16521 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
16525 # Always prepend --prefix to ensure using the same prefix
16526 # in subdir configurations.
16527 ac_arg="--prefix=$prefix"
16529 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16531 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16534 if test "$silent" = yes; then
16535 ac_sub_configure_args="--silent $ac_sub_configure_args"
16539 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16541 # Do not complain, so a configure script can configure whichever
16542 # parts of a large source tree are present.
16543 test -d "$srcdir/$ac_dir" || continue
16545 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16546 echo "$as_me:$LINENO: $ac_msg" >&5
16550 -*) as_dir=./$as_dir;;
16552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16557 *) as_qdir=$as_dir;;
16559 as_dirs="'$as_qdir' $as_dirs"
16560 as_dir=`$as_dirname -- "$as_dir" ||
16561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16562 X"$as_dir" : 'X\(//\)[^/]' \| \
16563 X"$as_dir" : 'X\(//\)$' \| \
16564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16570 /^X\(\/\/\)[^/].*/{
16583 test -d "$as_dir" && break
16585 test -z "$as_dirs" || eval "mkdir $as_dirs"
16586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16588 { (exit 1); exit 1; }; }; }
16592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16595 # A ".." for each directory in $ac_dir_suffix.
16596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16597 case $ac_top_builddir_sub in
16598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16602 ac_abs_top_builddir=$ac_pwd
16603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16604 # for backward compatibility:
16605 ac_top_builddir=$ac_top_build_prefix
16608 .) # We are building in place.
16610 ac_top_srcdir=$ac_top_builddir_sub
16611 ac_abs_top_srcdir=$ac_pwd ;;
16612 [\\/]* | ?:[\\/]* ) # Absolute name.
16613 ac_srcdir=$srcdir$ac_dir_suffix;
16614 ac_top_srcdir=$srcdir
16615 ac_abs_top_srcdir=$srcdir ;;
16616 *) # Relative name.
16617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16618 ac_top_srcdir=$ac_top_build_prefix$srcdir
16619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16626 # Check for guested configure; otherwise get Cygnus style configure.
16627 if test -f "$ac_srcdir/configure.gnu"; then
16628 ac_sub_configure=$ac_srcdir/configure.gnu
16629 elif test -f "$ac_srcdir/configure"; then
16630 ac_sub_configure=$ac_srcdir/configure
16631 elif test -f "$ac_srcdir/configure.in"; then
16632 # This should be Cygnus configure.
16633 ac_sub_configure=$ac_aux_dir/configure
16635 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16636 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16640 # The recursion is here.
16641 if test -n "$ac_sub_configure"; then
16642 # Make the cache file name correct relative to the subdirectory.
16643 case $cache_file in
16644 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16645 *) # Relative name.
16646 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16649 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16650 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16651 # The eval makes quoting arguments work.
16652 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16653 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16654 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16655 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16656 { (exit 1); exit 1; }; }
16665 { echo "$as_me:$LINENO: result: " >&5
16666 echo "${ECHO_T}" >&6; }
16667 { echo "$as_me:$LINENO: result: ** Configuration summary for $PACKAGE $VERSION:" >&5
16668 echo "${ECHO_T}** Configuration summary for $PACKAGE $VERSION:" >&6; }
16669 { echo "$as_me:$LINENO: result: " >&5
16670 echo "${ECHO_T}" >&6; }
16672 { echo "$as_me:$LINENO: result: gnuplot will be compiled with the following terminals:" >&5
16673 echo "${ECHO_T}gnuplot will be compiled with the following terminals:" >&6; }
16674 { echo "$as_me:$LINENO: result: " >&5
16675 echo "${ECHO_T}" >&6; }
16677 { echo "$as_me:$LINENO: result: Standalone terminals: yes (always builtin)" >&5
16678 echo "${ECHO_T} Standalone terminals: yes (always builtin)" >&6; }
16679 { echo "$as_me:$LINENO: result: (aed512, aed767, aifm, bitgraph, cgm, corel, dumb, dxf, eepic, emf, emtex," >&5
16680 echo "${ECHO_T} (aed512, aed767, aifm, bitgraph, cgm, corel, dumb, dxf, eepic, emf, emtex," >&6; }
16681 { echo "$as_me:$LINENO: result: epslatex, epson_180dpi, epson_60dpi, epson_lx800, fig, gpic, hp2623A," >&5
16682 echo "${ECHO_T} epslatex, epson_180dpi, epson_60dpi, epson_lx800, fig, gpic, hp2623A," >&6; }
16683 { echo "$as_me:$LINENO: result: hp2648, hp500c, hpdj, hpgl, hpljii, hppj, imagen, kc_tek40xx, km_tek40xx," >&5
16684 echo "${ECHO_T} hp2648, hp500c, hpdj, hpgl, hpljii, hppj, imagen, kc_tek40xx, km_tek40xx," >&6; }
16685 { echo "$as_me:$LINENO: result: latex, metafont, metapost, mif, pbm, postscript, pslatex, nec_cp6, okidata," >&5
16686 echo "${ECHO_T} latex, metafont, metapost, mif, pbm, postscript, pslatex, nec_cp6, okidata," >&6; }
16687 { echo "$as_me:$LINENO: result: pcl5, pstex, pstricks, qms, regis, selanar, svg, starc, tandy_60dpi," >&5
16688 echo "${ECHO_T} pcl5, pstex, pstricks, qms, regis, selanar, svg, starc, tandy_60dpi," >&6; }
16689 { echo "$as_me:$LINENO: result: tek40xx, tek410x, texdraw, tgif, tkcanvas, tpic, vttek)" >&5
16690 echo "${ECHO_T} tek40xx, tek410x, texdraw, tgif, tkcanvas, tpic, vttek)" >&6; }
16692 if test "$no_x" != yes; then
16693 if test "$enable_mouse" = yes; then
16694 { echo "$as_me:$LINENO: result: x11/xlib terminal: yes (with mouse support)" >&5
16695 echo "${ECHO_T} x11/xlib terminal: yes (with mouse support)" >&6; }
16697 { echo "$as_me:$LINENO: result: x11/xlib terminal: yes (without mouse support)" >&5
16698 echo "${ECHO_T} x11/xlib terminal: yes (without mouse support)" >&6; }
16700 if test "$enable_x11_mbfonts" = yes; then
16701 { echo "$as_me:$LINENO: result: (with multi-byte fonts)" >&5
16702 echo "${ECHO_T} (with multi-byte fonts)" >&6; }
16704 { echo "$as_me:$LINENO: result: (without multi-byte fonts, requires support in libX11)" >&5
16705 echo "${ECHO_T} (without multi-byte fonts, requires support in libX11)" >&6; }
16707 if test "$enable_binary_x11_polygon" = yes; then
16708 { echo "$as_me:$LINENO: result: (with binary polygon protocol)" >&5
16709 echo "${ECHO_T} (with binary polygon protocol)" >&6; }
16711 { echo "$as_me:$LINENO: result: (without binary polygon protocol)" >&5
16712 echo "${ECHO_T} (without binary polygon protocol)" >&6; }
16715 { echo "$as_me:$LINENO: result: X Window System terminal: no (requires X libraries)" >&5
16716 echo "${ECHO_T} X Window System terminal: no (requires X libraries)" >&6; }
16719 if test "$ac_cv_lib_gd_gdImageJpeg" = yes; then
16720 { echo "$as_me:$LINENO: result: jpeg terminal: yes" >&5
16721 echo "${ECHO_T} jpeg terminal: yes" >&6; }
16723 { echo "$as_me:$LINENO: result: jpeg terminal: no (requires libgd with jpeg support)" >&5
16724 echo "${ECHO_T} jpeg terminal: no (requires libgd with jpeg support)" >&6; }
16727 if test "$ac_cv_lib_gd_gdImageGif" = yes; then
16728 if test "$ac_cv_lib_gd_gdImageGifAnimBegin" = yes; then
16729 { echo "$as_me:$LINENO: result: gif terminal: yes (with animated gif)" >&5
16730 echo "${ECHO_T} gif terminal: yes (with animated gif)" >&6; }
16732 { echo "$as_me:$LINENO: result: gif terminal: yes (without animated gif, requires libgd support)" >&5
16733 echo "${ECHO_T} gif terminal: yes (without animated gif, requires libgd support)" >&6; }
16736 { echo "$as_me:$LINENO: result: gif terminal: no (requires libgd with gif support)" >&5
16737 echo "${ECHO_T} gif terminal: no (requires libgd with gif support)" >&6; }
16741 if test "$ac_cv_lib_gd_gdImagePng" = yes; then
16742 { echo "$as_me:$LINENO: result: png terminal: yes" >&5
16743 echo "${ECHO_T} png terminal: yes" >&6; }
16745 { echo "$as_me:$LINENO: result: png terminal: no (requires libgd with png support)" >&5
16746 echo "${ECHO_T} png terminal: no (requires libgd with png support)" >&6; }
16749 if test "$have_ttf" = yes; then
16750 { echo "$as_me:$LINENO: result: (jpeg, gif and png terminals can use TTF fonts)" >&5
16751 echo "${ECHO_T} (jpeg, gif and png terminals can use TTF fonts)" >&6; }
16753 { echo "$as_me:$LINENO: result: (jpeg, gif and png terminals cannot use TTF fonts, requires libgd support)" >&5
16754 echo "${ECHO_T} (jpeg, gif and png terminals cannot use TTF fonts, requires libgd support)" >&6; }
16757 if test "$ac_cv_header_pdflib_h" = yes; then
16758 { echo "$as_me:$LINENO: result: pdf terminal: yes" >&5
16759 echo "${ECHO_T} pdf terminal: yes" >&6; }
16760 if test "$ac_cv_lib_pdf_PDF_begin_pattern" != yes; then
16761 { echo "$as_me:$LINENO: result: (pattern fills not supported, libpdf too old)" >&5
16762 echo "${ECHO_T} (pattern fills not supported, libpdf too old)" >&6; }
16764 if test "$ac_cv_lib_pdf_PDF_setdashpattern" != yes; then
16765 { echo "$as_me:$LINENO: result: (dash patterns not supported, libpdf too old)" >&5
16766 echo "${ECHO_T} (dash patterns not supported, libpdf too old)" >&6; }
16769 { echo "$as_me:$LINENO: result: pdf terminal: no (requires libpdf)" >&5
16770 echo "${ECHO_T} pdf terminal: no (requires libpdf)" >&6; }
16773 if test x"$with_plot" != x; then
16774 if test "$with_plot" = yes; then
16775 { echo "$as_me:$LINENO: result: plot library terminal: yes (unixplot - UNIX version)" >&5
16776 echo "${ECHO_T} plot library terminal: yes (unixplot - UNIX version)" >&6; }
16777 elif test "$with_plot" != no; then
16778 { echo "$as_me:$LINENO: result: plot library terminal: yes (gnugraph - GNU version)" >&5
16779 echo "${ECHO_T} plot library terminal: yes (gnugraph - GNU version)" >&6; }
16781 { echo "$as_me:$LINENO: result: plot library terminal: no (requires GNU plotutils or UNIX plot)" >&5
16782 echo "${ECHO_T} plot library terminal: no (requires GNU plotutils or UNIX plot)" >&6; }
16785 { echo "$as_me:$LINENO: result: plot library terminal: no (use --with-plot to enable, requires GNU plotutils" >&5
16786 echo "${ECHO_T} plot library terminal: no (use --with-plot to enable, requires GNU plotutils" >&6; }
16787 { echo "$as_me:$LINENO: result: or UNIX plot)" >&5
16788 echo "${ECHO_T} or UNIX plot)" >&6; }
16791 if test "$with_linux_vga" = yes; then
16792 { echo "$as_me:$LINENO: result: linux terminal (vga console): yes" >&5
16793 echo "${ECHO_T} linux terminal (vga console): yes" >&6; }
16794 if test "$with_vgagl" = yes; then
16795 { echo "$as_me:$LINENO: result: vgagl terminal ((s)vga console): yes" >&5
16796 echo "${ECHO_T} vgagl terminal ((s)vga console): yes" >&6; }
16798 { echo "$as_me:$LINENO: result: vgagl terminal ((s)vga console): no (requires vgagl)" >&5
16799 echo "${ECHO_T} vgagl terminal ((s)vga console): no (requires vgagl)" >&6; }
16801 { echo "$as_me:$LINENO: result: SECURITY NOTICE: SVGAlib requires that gnuplot is installed suid root!" >&5
16802 echo "${ECHO_T} SECURITY NOTICE: SVGAlib requires that gnuplot is installed suid root!" >&6; }
16804 { echo "$as_me:$LINENO: result: linux terminal (vga console): no (use --with-linux-vga to enable," >&5
16805 echo "${ECHO_T} linux terminal (vga console): no (use --with-linux-vga to enable," >&6; }
16806 { echo "$as_me:$LINENO: result: requires SVGAlib)" >&5
16807 echo "${ECHO_T} requires SVGAlib)" >&6; }
16808 { echo "$as_me:$LINENO: result: vgagl terminal ((s)vga console): no (use --with-linux-vga to enable," >&5
16809 echo "${ECHO_T} vgagl terminal ((s)vga console): no (use --with-linux-vga to enable," >&6; }
16810 { echo "$as_me:$LINENO: result: requires SVGAlib with vgagl)" >&5
16811 echo "${ECHO_T} requires SVGAlib with vgagl)" >&6; }
16814 if test "$GGI_SUPPORT" = yes; then
16815 if test "$ac_cv_header_ggi_xmi_h" = yes; then
16816 { echo "$as_me:$LINENO: result: ggi terminal: yes (EXPERIMENTAL) (with pm3d support)" >&5
16817 echo "${ECHO_T} ggi terminal: yes (EXPERIMENTAL) (with pm3d support)" >&6; }
16819 { echo "$as_me:$LINENO: result: ggi terminal: yes (EXPERIMENTAL) (without pm3d support, requires libxmi)" >&5
16820 echo "${ECHO_T} ggi terminal: yes (EXPERIMENTAL) (without pm3d support, requires libxmi)" >&6; }
16823 { echo "$as_me:$LINENO: result: ggi terminal: no (use --with-ggi to enable, requires libggi)" >&5
16824 echo "${ECHO_T} ggi terminal: no (use --with-ggi to enable, requires libggi)" >&6; }
16827 if test "$enable_iris" = yes; then
16828 { echo "$as_me:$LINENO: result: iris4d terminal: yes" >&5
16829 echo "${ECHO_T} iris4d terminal: yes" >&6; }
16831 { echo "$as_me:$LINENO: result: iris4d terminal: no (use --enable-iris to enable, requires libgl_s)" >&5
16832 echo "${ECHO_T} iris4d terminal: no (use --enable-iris to enable, requires libgl_s)" >&6; }
16835 if test "$enable_mgr" = yes; then
16836 { echo "$as_me:$LINENO: result: mgr terminal: yes" >&5
16837 echo "${ECHO_T} mgr terminal: yes" >&6; }
16839 { echo "$as_me:$LINENO: result: mgr terminal: no (use --enable-mgr to enable, requires libpixrect)" >&5
16840 echo "${ECHO_T} mgr terminal: no (use --enable-mgr to enable, requires libpixrect)" >&6; }
16843 if test "$enable_rgip" = yes ; then
16844 { echo "$as_me:$LINENO: result: rgip/uniplex terminal: yes" >&5
16845 echo "${ECHO_T} rgip/uniplex terminal: yes" >&6; }
16847 { echo "$as_me:$LINENO: result: rgip/uniplex terminal: no (use --enable-rgip to enable)" >&5
16848 echo "${ECHO_T} rgip/uniplex terminal: no (use --enable-rgip to enable)" >&6; }
16851 if test "$is_msdos" = yes; then
16852 { echo "$as_me:$LINENO: result: svga terminal (MSDOS/djgpp): yes" >&5
16853 echo "${ECHO_T} svga terminal (MSDOS/djgpp): yes" >&6; }
16855 { echo "$as_me:$LINENO: result: svga terminal (MSDOS/djgpp): no" >&5
16856 echo "${ECHO_T} svga terminal (MSDOS/djgpp): no" >&6; }
16859 if test "$build_src_beos_subdir" = yes; then
16860 { echo "$as_me:$LINENO: result: be terminal (BeOS): yes" >&5
16861 echo "${ECHO_T} be terminal (BeOS): yes" >&6; }
16863 { echo "$as_me:$LINENO: result: be terminal (BeOS): no" >&5
16864 echo "${ECHO_T} be terminal (BeOS): no" >&6; }
16867 if test "$is_next" = yes; then
16868 { echo "$as_me:$LINENO: result: next terminal: yes" >&5
16869 echo "${ECHO_T} next terminal: yes" >&6; }
16871 { echo "$as_me:$LINENO: result: next terminal: no" >&5
16872 echo "${ECHO_T} next terminal: no" >&6; }
16875 if test "$is_apple" = yes; then
16876 { echo "$as_me:$LINENO: result: aqua terminal (MacOS X): yes" >&5
16877 echo "${ECHO_T} aqua terminal (MacOS X): yes" >&6; }
16879 { echo "$as_me:$LINENO: result: aqua terminal (MacOS X): no" >&5
16880 echo "${ECHO_T} aqua terminal (MacOS X): no" >&6; }
16883 if test "$enable_wxwidgets_ok" = yes; then
16884 { echo "$as_me:$LINENO: result: wxt terminal: yes " >&5
16885 echo "${ECHO_T} wxt terminal: yes " >&6; }
16887 { echo "$as_me:$LINENO: result: wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)" >&5
16888 echo "${ECHO_T} wxt terminal: no (requires C++, wxWidgets>2.6, cairo>0.9, pango>1.10)" >&6; }
16891 { echo "$as_me:$LINENO: result: " >&5
16892 echo "${ECHO_T}" >&6; }
16893 { echo "$as_me:$LINENO: result: Additional terminals are availaible in platform-specific makefiles:" >&5
16894 echo "${ECHO_T} Additional terminals are availaible in platform-specific makefiles:" >&6; }
16895 { echo "$as_me:$LINENO: result: amiga (makefile.amg and makefile.ami), apollo/gpr (makefile.unx), atari/vdi" >&5
16896 echo "${ECHO_T} amiga (makefile.amg and makefile.ami), apollo/gpr (makefile.unx), atari/vdi" >&6; }
16897 { echo "$as_me:$LINENO: result: (makefile.st), cgi (makefile.unx), mtos (makefile.mto), pm (makefile.os2)," >&5
16898 echo "${ECHO_T} (makefile.st), cgi (makefile.unx), mtos (makefile.mto), pm (makefile.os2)," >&6; }
16899 { echo "$as_me:$LINENO: result: sun (makefile.unx), unixpc (makefile.unx), windows (various Windows" >&5
16900 echo "${ECHO_T} sun (makefile.unx), unixpc (makefile.unx), windows (various Windows" >&6; }
16901 { echo "$as_me:$LINENO: result: makefiles)" >&5
16902 echo "${ECHO_T} makefiles)" >&6; }
16904 { echo "$as_me:$LINENO: result: Additional terminals are built automatically if possible at compile-time:" >&5
16905 echo "${ECHO_T} Additional terminals are built automatically if possible at compile-time:" >&6; }
16906 { echo "$as_me:$LINENO: result: vesa (MSDOS), emxvga (MSDOS, OS/2), ega/vga/svga/ssvga/hercules (Windows with" >&5
16907 echo "${ECHO_T} vesa (MSDOS), emxvga (MSDOS, OS/2), ega/vga/svga/ssvga/hercules (Windows with" >&6; }
16908 { echo "$as_me:$LINENO: result: Zortec compiler), macintosh" >&5
16909 echo "${ECHO_T} Zortec compiler), macintosh" >&6; }
16912 { echo "$as_me:$LINENO: result: " >&5
16913 echo "${ECHO_T}" >&6; }
16914 { echo "$as_me:$LINENO: result: gnuplot will be compiled with the following features:" >&5
16915 echo "${ECHO_T}gnuplot will be compiled with the following features:" >&6; }
16916 { echo "$as_me:$LINENO: result: " >&5
16917 echo "${ECHO_T}" >&6; }
16919 if test "$enable_fiterrvars" = yes; then
16920 { echo "$as_me:$LINENO: result: Fitting error variables: yes" >&5
16921 echo "${ECHO_T} Fitting error variables: yes" >&6; }
16923 { echo "$as_me:$LINENO: result: Fitting error variables: no" >&5
16924 echo "${ECHO_T} Fitting error variables: no" >&6; }
16927 if test "$enable_datastrings" = yes; then
16928 { echo "$as_me:$LINENO: result: String-handling in datafiles: yes" >&5
16929 echo "${ECHO_T} String-handling in datafiles: yes" >&6; }
16931 { echo "$as_me:$LINENO: result: String-handling in datafiles: no" >&5
16932 echo "${ECHO_T} String-handling in datafiles: no" >&6; }
16935 if test "$enable_histograms" = yes; then
16936 { echo "$as_me:$LINENO: result: Plot style histograms: yes" >&5
16937 echo "${ECHO_T} Plot style histograms: yes" >&6; }
16939 { echo "$as_me:$LINENO: result: Plot style histograms: no (requires string-handling in datafiles)" >&5
16940 echo "${ECHO_T} Plot style histograms: no (requires string-handling in datafiles)" >&6; }
16943 if test "$enable_stringvariables" = yes; then
16944 { echo "$as_me:$LINENO: result: String variables: yes" >&5
16945 echo "${ECHO_T} String variables: yes" >&6; }
16947 { echo "$as_me:$LINENO: result: String variables: no" >&5
16948 echo "${ECHO_T} String variables: no" >&6; }
16951 if test "$enable_macros" = yes; then
16952 { echo "$as_me:$LINENO: result: Command line macros: yes (EXPERIMENTAL)" >&5
16953 echo "${ECHO_T} Command line macros: yes (EXPERIMENTAL)" >&6; }
16955 { echo "$as_me:$LINENO: result: Command line macros: no (requires string variables)" >&5
16956 echo "${ECHO_T} Command line macros: no (requires string variables)" >&6; }
16959 if test "$enable_objects" = yes; then
16960 { echo "$as_me:$LINENO: result: Placement of rectangles and other objects: yes (EXPERIMENTAL)" >&5
16961 echo "${ECHO_T} Placement of rectangles and other objects: yes (EXPERIMENTAL)" >&6; }
16963 { echo "$as_me:$LINENO: result: Placement of rectangles and other objects: no" >&5
16964 echo "${ECHO_T} Placement of rectangles and other objects: no" >&6; }
16967 if test "$enable_with_image" = yes; then
16968 { echo "$as_me:$LINENO: result: Plot style image: yes (EXPERIMENTAL)" >&5
16969 echo "${ECHO_T} Plot style image: yes (EXPERIMENTAL)" >&6; }
16971 { echo "$as_me:$LINENO: result: Plot style image: no" >&5
16972 echo "${ECHO_T} Plot style image: no" >&6; }
16975 if test "$enable_binary_data_file" = yes; then
16976 { echo "$as_me:$LINENO: result: General binary data file reading: yes (EXPERIMENTAL)" >&5
16977 echo "${ECHO_T} General binary data file reading: yes (EXPERIMENTAL)" >&6; }
16979 { echo "$as_me:$LINENO: result: General binary data file reading: no" >&5
16980 echo "${ECHO_T} General binary data file reading: no" >&6; }
16983 { echo "$as_me:$LINENO: result: " >&5
16984 echo "${ECHO_T}" >&6; }
16985 { echo "$as_me:$LINENO: result: gnuplot will be compiled with the following options:" >&5
16986 echo "${ECHO_T}gnuplot will be compiled with the following options:" >&6; }
16987 { echo "$as_me:$LINENO: result: " >&5
16988 echo "${ECHO_T}" >&6; }
16990 if test "$with_readline" = no; then
16991 { echo "$as_me:$LINENO: result: No readline support (use --with-readline=gnu or --with-readline=builtin)" >&5
16992 echo "${ECHO_T} No readline support (use --with-readline=gnu or --with-readline=builtin)" >&6; }
16995 if test "$with_readline" = bsd; then
16996 if test -n "$gp_tcap"; then
16997 { echo "$as_me:$LINENO: result: Readline library: BSD editline with $gp_tcap" >&5
16998 echo "${ECHO_T} Readline library: BSD editline with $gp_tcap" >&6; }
17000 { echo "$as_me:$LINENO: result: Readline library: BSD editline library" >&5
17001 echo "${ECHO_T} Readline library: BSD editline library" >&6; }
17003 else if test "$with_readline" != builtin; then
17004 if test -n "$gp_tcap"; then
17005 { echo "$as_me:$LINENO: result: Readline library: GNU readline library with $gp_tcap" >&5
17006 echo "${ECHO_T} Readline library: GNU readline library with $gp_tcap" >&6; }
17008 { echo "$as_me:$LINENO: result: Readline library: GNU readline library" >&5
17009 echo "${ECHO_T} Readline library: GNU readline library" >&6; }
17012 { echo "$as_me:$LINENO: result: Readline library: builtin minimal (use --with-readline=gnu for GNU readline)" >&5
17013 echo "${ECHO_T} Readline library: builtin minimal (use --with-readline=gnu for GNU readline)" >&6; }
17017 if test "$enable_history_file" = yes; then
17018 { echo "$as_me:$LINENO: result: Command-line history file: yes" >&5
17019 echo "${ECHO_T} Command-line history file: yes" >&6; }
17021 { echo "$as_me:$LINENO: result: Command-line history file: no" >&5
17022 echo "${ECHO_T} Command-line history file: no" >&6; }
17025 if test "$with_cwdrc" = yes; then
17026 { echo "$as_me:$LINENO: result: Check current directory for .gnuplot file: yes" >&5
17027 echo "${ECHO_T} Check current directory for .gnuplot file: yes" >&6; }
17029 { echo "$as_me:$LINENO: result: Check current directory for .gnuplot file: no (use --with-cwdrc to enable)" >&5
17030 echo "${ECHO_T} Check current directory for .gnuplot file: no (use --with-cwdrc to enable)" >&6; }
17033 if test "$with_row_help" = no; then
17034 { echo "$as_me:$LINENO: result: Sort help/subtopic tables by column: yes" >&5
17035 echo "${ECHO_T} Sort help/subtopic tables by column: yes" >&6; }
17037 { echo "$as_me:$LINENO: result: Sort help/subtopic tables by column: no (use --without-row-help to enable)" >&5
17038 echo "${ECHO_T} Sort help/subtopic tables by column: no (use --without-row-help to enable)" >&6; }
17041 if test "$with_kpsexpand" = yes; then
17042 { echo "$as_me:$LINENO: result: Use TeX kpsexpand to search for fonts: yes" >&5
17043 echo "${ECHO_T} Use TeX kpsexpand to search for fonts: yes" >&6; }
17045 { echo "$as_me:$LINENO: result: Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)" >&5
17046 echo "${ECHO_T} Use TeX kpsexpand to search for fonts: no (use --with-kpsexpand to enable)" >&6; }
17049 if test "$enable_thin_splines" = yes; then
17050 { echo "$as_me:$LINENO: result: Thin plate splines: yes" >&5
17051 echo "${ECHO_T} Thin plate splines: yes" >&6; }
17053 { echo "$as_me:$LINENO: result: Thin plate splines: no (use --enable-thin-spline to enable)" >&5
17054 echo "${ECHO_T} Thin plate splines: no (use --enable-thin-spline to enable)" >&6; }
17057 if test "$enable_h3d_gridbox" = yes; then
17058 { echo "$as_me:$LINENO: result: Hidden3d optimization: gridbox" >&5
17059 echo "${ECHO_T} Hidden3d optimization: gridbox" >&6; }
17061 if test "$enable_h3d_quadtree" = no; then
17062 { echo "$as_me:$LINENO: result: Hidden3d optimization: none" >&5
17063 echo "${ECHO_T} Hidden3d optimization: none" >&6; }
17065 { echo "$as_me:$LINENO: result: Hidden3d optimization: quadtree" >&5
17066 echo "${ECHO_T} Hidden3d optimization: quadtree" >&6; }
17070 if test "$enable_backwards_compatibility" = yes; then
17071 { echo "$as_me:$LINENO: result: Deprecated syntax and terminal options : yes" >&5
17072 echo "${ECHO_T} Deprecated syntax and terminal options : yes" >&6; }
17074 { echo "$as_me:$LINENO: result: Deprecated syntax and terminal options : no (use --enable-backwards-compatibility to enable)" >&5
17075 echo "${ECHO_T} Deprecated syntax and terminal options : no (use --enable-backwards-compatibility to enable)" >&6; }
17079 { echo "$as_me:$LINENO: result: " >&5
17080 echo "${ECHO_T}" >&6; }
17081 { echo "$as_me:$LINENO: result: gnuplot will install the following additional materials:" >&5
17082 echo "${ECHO_T}gnuplot will install the following additional materials:" >&6; }
17083 { echo "$as_me:$LINENO: result: " >&5
17084 echo "${ECHO_T}" >&6; }
17086 if test "$with_lasergnu" = yes; then
17087 { echo "$as_me:$LINENO: result: lasergnu printer script: yes" >&5
17088 echo "${ECHO_T} lasergnu printer script: yes" >&6; }
17090 { echo "$as_me:$LINENO: result: lasergnu printer script: no (use --with-lasergnu to enable)" >&5
17091 echo "${ECHO_T} lasergnu printer script: no (use --with-lasergnu to enable)" >&6; }
17094 if test "$with_lisp_files" != no; then
17095 { echo "$as_me:$LINENO: result: gnuplot-mode for X/Emacs: yes" >&5
17096 echo "${ECHO_T} gnuplot-mode for X/Emacs: yes" >&6; }
17098 { echo "$as_me:$LINENO: result: gnuplot-mode for X/Emacs: no" >&5
17099 echo "${ECHO_T} gnuplot-mode for X/Emacs: no" >&6; }
17102 if test "$TUTORIAL" = tutorial; then
17103 { echo "$as_me:$LINENO: result: LaTeX tutorial: yes" >&5
17104 echo "${ECHO_T} LaTeX tutorial: yes" >&6; }
17106 { echo "$as_me:$LINENO: result: LaTeX tutorial: no" >&5
17107 echo "${ECHO_T} LaTeX tutorial: no" >&6; }
17110 { echo "$as_me:$LINENO: result: Help file: yes (always), in $GIHDIR/gnuplot.gih" >&5
17111 echo "${ECHO_T} Help file: yes (always), in $GIHDIR/gnuplot.gih" >&6; }
17113 { echo "$as_me:$LINENO: result: PostScript prologue files: yes (always)" >&5
17114 echo "${ECHO_T} PostScript prologue files: yes (always)" >&6; }