=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/Attic/configure,v retrieving revision 1.1 retrieving revision 1.1.1.3 diff -u -p -r1.1 -r1.1.1.3 --- OpenXM_contrib/gnuplot/Attic/configure 2000/01/09 17:00:49 1.1 +++ OpenXM_contrib/gnuplot/Attic/configure 2003/09/15 07:09:22 1.1.1.3 @@ -1,80 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.90 - - - -# Do all the work for Automake. This macro actually does too much -- -# some checks are only needed if your package does certain things. -# But this isn't really a big deal. - -# serial 1 - - - - -# -# Check to make sure that the build environment is sane. -# - - - - - - -# serial 1 - - - - -# serial 1 - -# @defmac AC_PROG_CC_STDC -# @maindex PROG_CC_STDC -# @ovindex CC -# If the C compiler in not in ANSI C mode by default, try to add an option -# to output variable @code{CC} to make it so. This macro tries various -# options that select ANSI C on some system or another. It considers the -# compiler to be in ANSI C mode if it handles function prototypes correctly. -# -# If you use this macro, you should check after calling it whether the C -# compiler has been set to accept ANSI C; if not, the shell variable -# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source -# code in ANSI C, you can make an un-ANSIfied copy of it by using the -# program @code{ansi2knr}, which comes with Ghostscript. -# @end defmac - - - - -# serial 1 - - - - - -# serial 1 - - - - - -# serial 1 - - - - -# serial 1 - - - - - -# serial 1 - - - - # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. @@ -87,50 +12,42 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - --with-readline use the included minimal readline function (default) - --without-readline do not use the included readline function" + --disable-dependency-tracking Speeds up one-time builds + --enable-dependency-tracking Do not reject slow dependency extractors" ac_help="$ac_help - --with-gnu-readline use the GNU readline library - --with-gnu-readline=PATH Specify the location of GNU readline" + --with-x use the X Window System" ac_help="$ac_help - --with-plot use the Unix plot library - --with-plot=PATH Specify the location of GNU libplot" + --with-lasergnu install lasergnu printer script" ac_help="$ac_help - --with-gd enable gif terminal with Tom Boutell's gd library - (requires GD library) - --with-gd=PATH Specify the location of libgd" + --with-linux-vga use the Linux SVGA console driver + (requires /usr/lib/libvga)" ac_help="$ac_help - --with-png enable png terminal - (requires libpng and libz) - --with-png=PATH Specify the location of libpng" + --with-readline use the builtin minimal readline function (default) + --without-readline do not use the builtin readline function + --with-readline=gnu use the GNU readline library + --with-readline=PATH Specify the location of GNU readline" ac_help="$ac_help - --with-cwdrc check current directory for .gnuplot file, - normally disabled for security reasons" + --with-gd[=PATH] enable gif terminal with Tom Boutell's gd library + (requires GD library)" ac_help="$ac_help - --with-lasergnu install lasergnu printer script" + --with-plot[=PATH] use the Unix plot library" ac_help="$ac_help - --without-linux-vga do not use the Linux console driver - (requires Linux SVGAlib /usr/lib/libvga)" + --with-png[=PATH] enable png terminal + (requires libpng and libz)" ac_help="$ac_help - --enable-apollo Apollo Graphics Primitive Resource" + --with-pdf[=PATH] enable pdf terminal + (requires PDFLib)" ac_help="$ac_help - --enable-gpr Apollo Graphics Primitive Resource (fixed-size window)" + --with-cwdrc check current directory for .gnuplot file, + normally disabled for security reasons" ac_help="$ac_help - --enable-cgi enable CGI terminal (SCO only)" + --enable-ggi enable ggi driver (EXPERIMENTAL)" ac_help="$ac_help --enable-iris enable IRIS terminal (IRIS4D only)" ac_help="$ac_help --enable-mgr enable MGR terminal" ac_help="$ac_help --enable-rgip enable Redwood Graphics Interface Protocol" -ac_help="$ac_help - --enable-sun enable sunview terminal (Sun only)" -ac_help="$ac_help - --enable-unixpc enable unixpc terminal (ATT 3b1 or ATT 7300)" -ac_help="$ac_help - --enable-system-time use the system time routines in time.c" -ac_help="$ac_help - --with-x use the X Window System" # Initialize some variables set by options. # The variables have the same names as the options, with @@ -641,7 +558,13 @@ else fi + + + + + VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '` +PL=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '` ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then @@ -661,6 +584,10 @@ ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. + +# expand $ac_aux_dir to an absolute path +am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -673,7 +600,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cy # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:677: checking for a BSD compatible install" >&5 +echo "configure:604: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -726,23 +653,24 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 -echo "configure:730: checking whether build environment is sane" >&5 +echo "configure:657: checking whether build environment is sane" >&5 # Just in case sleep 1 -echo timestamp > conftestfile +echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. - set X `ls -t $srcdir/configure conftestfile` + set X `ls -t $srcdir/configure conftest.file` fi - if test "$*" != "X $srcdir/configure conftestfile" \ - && test "$*" != "X conftestfile $srcdir/configure"; then + rm -f conftest.file + if test "$*" != "X $srcdir/configure conftest.file" \ + && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a @@ -752,7 +680,7 @@ if ( alias in your environment" 1>&2; exit 1; } fi - test "$2" = conftestfile + test "$2" = conftest.file ) then # Ok. @@ -761,7 +689,6 @@ else { echo "configure: error: newly created file is older than distributed files! Check your system clock" 1>&2; exit 1; } fi -rm -f conftest* echo "$ac_t""yes" 1>&6 if test "$program_transform_name" = s,x,x,; then program_transform_name= @@ -782,8 +709,52 @@ test "$program_suffix" != NONE && # sed with no file args requires a program. test "$program_transform_name" = "" && program_transform_name="s,x,x," +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " +else + am_missing_run= + am_backtick='`' + echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2 +fi + +for ac_prog in mawk gawk nawk awk +do +# Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 +echo "configure:728: checking for $ac_word" >&5 +if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -n "$AWK"; then + ac_cv_prog_AWK="$AWK" # Let the user override the test. +else + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" + ac_dummy="$PATH" + for ac_dir in $ac_dummy; do + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$ac_word; then + ac_cv_prog_AWK="$ac_prog" + break + fi + done + IFS="$ac_save_ifs" +fi +fi +AWK="$ac_cv_prog_AWK" +if test -n "$AWK"; then + echo "$ac_t""$AWK" 1>&6 +else + echo "$ac_t""no" 1>&6 +fi + +test -n "$AWK" && break +done + echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:787: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:758: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -809,259 +780,101 @@ else SET_MAKE="MAKE=${MAKE-make}" fi - -PACKAGE=gnuplot - -VERSION=$VERSION - -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. +if test "${enable_dependency_tracking+set}" = set; then + enableval="$enable_dependency_tracking" + : fi -cat >> confdefs.h <> confdefs.h <&6 -echo "configure:833: checking for working aclocal" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then - ACLOCAL=aclocal - echo "$ac_t""found" 1>&6 -else - ACLOCAL="$missing_dir/missing aclocal" - echo "$ac_t""missing" 1>&6 +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' fi -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 -echo "configure:846: checking for working autoconf" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoconf --version) < /dev/null > /dev/null 2>&1; then - AUTOCONF=autoconf - echo "$ac_t""found" 1>&6 -else - AUTOCONF="$missing_dir/missing autoconf" - echo "$ac_t""missing" 1>&6 -fi -echo $ac_n "checking for working automake""... $ac_c" 1>&6 -echo "configure:859: checking for working automake" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (automake --version) < /dev/null > /dev/null 2>&1; then - AUTOMAKE=automake - echo "$ac_t""found" 1>&6 +if test "x$enable_dependency_tracking" != xno; then + AMDEP_TRUE= + AMDEP_FALSE='#' else - AUTOMAKE="$missing_dir/missing automake" - echo "$ac_t""missing" 1>&6 + AMDEP_TRUE='#' + AMDEP_FALSE= fi -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 -echo "configure:872: checking for working autoheader" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (autoheader --version) < /dev/null > /dev/null 2>&1; then - AUTOHEADER=autoheader - echo "$ac_t""found" 1>&6 -else - AUTOHEADER="$missing_dir/missing autoheader" - echo "$ac_t""missing" 1>&6 -fi -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 -echo "configure:885: checking for working makeinfo" >&5 -# Run test in a subshell; some versions of sh will print an error if -# an executable is not found, even if stderr is redirected. -# Redirect stdin to placate older versions of autoconf. Sigh. -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then - MAKEINFO=makeinfo - echo "$ac_t""found" 1>&6 -else - MAKEINFO="$missing_dir/missing makeinfo" - echo "$ac_t""missing" 1>&6 -fi - - - -# Check whether --with-readline or --without-readline was given. -if test "${with_readline+set}" = set; then - withval="$with_readline" - : +rm -f .deps 2>/dev/null +mkdir .deps 2>/dev/null +if test -d .deps; then + DEPDIR=.deps else - test -z "$with_readline" && with_readline=yes - + # MS-DOS does not allow filenames that begin with a dot. + DEPDIR=_deps fi +rmdir .deps 2>/dev/null -# Check whether --with-gnu-readline or --without-gnu-readline was given. -if test "${with_gnu_readline+set}" = set; then - withval="$with_gnu_readline" - : -else - test -z "$with_gnu_readline" && with_gnu_readline=no +# test to see if srcdir already configured +if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; } fi -# Check whether --with-plot or --without-plot was given. -if test "${with_plot+set}" = set; then - withval="$with_plot" - : -else - test -z "$with_plot" && with_plot=no - -fi - -# Check whether --with-gd or --without-gd was given. -if test "${with_gd+set}" = set; then - withval="$with_gd" - : -else - test -z "$with_gd" && with_gd=yes - -fi - -# Check whether --with-png or --without-png was given. -if test "${with_png+set}" = set; then - withval="$with_png" - : -else - test -z "$with_png" && with_png=yes - -fi - -# Check whether --with-cwdrc or --without-cwdrc was given. -if test "${with_cwdrc+set}" = set; then - withval="$with_cwdrc" - test "$withval" = no && cat >> confdefs.h <<\EOF -#define NOCWDRC 1 +# Define the identity of the package. +PACKAGE=gnuplot +VERSION=$VERSION.$PL +cat >> confdefs.h <> confdefs.h <<\EOF -#define NOCWDRC 1 +cat >> confdefs.h <&6 -echo "configure:1065: checking for $ac_word" >&5 +echo "configure:878: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1091,7 +904,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1095: checking for $ac_word" >&5 +echo "configure:908: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1142,7 +955,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1146: checking for $ac_word" >&5 +echo "configure:959: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1174,7 +987,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1178: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1185,12 +998,12 @@ cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF -#line 1189 "configure" +#line 1002 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1216,12 +1029,12 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1220: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1225: checking whether we are using GNU C" >&5 +echo "configure:1038: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1230,7 +1043,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1249,7 +1062,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1253: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1066: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1281,10 +1094,118 @@ else fi +am_make=${MAKE-make} +cat > confinc << 'END' +doit: + @echo done +END +# If we don't find an include directive, just comment out the code. +echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6 +echo "configure:1105: checking for style of include used by $am_make" >&5 +am__include='#' +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote='"' + _am_result=BSD + fi +fi +echo "$ac_t""$_am_result" 1>&6 +rm -f confinc confmf + + +depcc="$CC" am_compiler_list= + +echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 +echo "configure:1139: checking dependency style of $depcc" >&5 +if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + + am_cv_CC_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + echo '#include "conftest.h"' > conftest.c + echo 'int i;' > conftest.h + echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=conftest.c object=conftest.o \ + depfile=conftest.Po tmpdepfile=conftest.TPo \ + $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && + grep conftest.h conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + am_cv_CC_dependencies_compiler_type=$depmode + break + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CC_dependencies_compiler_type=none +fi + +fi + +echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6 +CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" + + + + + echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 -echo "configure:1288: checking for ${CC-cc} option to accept ANSI C" >&5 +echo "configure:1209: checking for ${CC-cc} option to accept ANSI C" >&5 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1294,13 +1215,14 @@ ac_save_CC="$CC" # breaks some systems' header files. # AIX -qlanglvl=ansi # Ultrix and OSF/1 -std1 -# HP-UX -Aa -D_HPUX_SOURCE +# HP-UX 10.20 and later -Ae +# HP-UX older versions -Aa -D_HPUX_SOURCE # SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" cat > conftest.$ac_ext < #include @@ -1337,7 +1259,7 @@ return f (e, argv, 0) != argv[0] || f (e, argv, 1) ! ; return 0; } EOF -if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* am_cv_prog_cc_stdc="$ac_arg"; break else @@ -1361,7 +1283,7 @@ case "x$am_cv_prog_cc_stdc" in esac echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1365: checking how to run the C preprocessor" >&5 +echo "configure:1287: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1376,13 +1298,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1393,13 +1315,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1410,13 +1332,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1443,7 +1365,7 @@ echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 -echo "configure:1447: checking for function prototypes" >&5 +echo "configure:1369: checking for function prototypes" >&5 if test "$am_cv_prog_cc_stdc" != no; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF @@ -1454,14 +1376,15 @@ EOF else echo "$ac_t""no" 1>&6 U=_ ANSI2KNR=./ansi2knr - # Ensure some checks needed by ansi2knr itself. - echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:1460: checking for ANSI C header files" >&5 +fi +# Ensure some checks needed by ansi2knr itself. +echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 +echo "configure:1383: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -1469,7 +1392,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1486,7 +1409,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -1504,7 +1427,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -1525,7 +1448,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -1536,7 +1459,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != T exit (0); } EOF -if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -1559,21 +1482,21 @@ EOF fi - for ac_hdr in string.h +for ac_hdr in string.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:1567: checking for $ac_hdr" >&5 +echo "configure:1490: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1599,10 +1522,9 @@ else fi done -fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:1606: checking how to run the C preprocessor" >&5 +echo "configure:1528: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -1617,13 +1539,13 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1634,13 +1556,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1651,13 +1573,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -1682,12 +1604,12 @@ fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:1686: checking for working const" >&5 +echo "configure:1608: checking for working const" >&5 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -1757,21 +1679,21 @@ EOF fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:1761: checking for inline" >&5 +echo "configure:1683: checking for inline" >&5 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -1799,12 +1721,12 @@ esac echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 -echo "configure:1803: checking for preprocessor stringizing operator" >&5 +echo "configure:1725: checking for preprocessor stringizing operator" >&5 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 echo $ac_n "checking if compiler handles warn and error directives correctly""... $ac_c" 1>&6 -echo "configure:1839: checking if compiler handles warn and error directives correctly" >&5 +echo "configure:1761: checking if compiler handles warn and error directives correctly" >&5 cat > conftest.$ac_ext < conftest.$ac_ext <&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -1869,7 +1791,7 @@ rm -f conftest* # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:1873: checking for X" >&5 +echo "configure:1795: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then @@ -1931,12 +1853,12 @@ if test "$ac_x_includes" = NO; then # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2005,14 +1927,14 @@ if test "$ac_x_libraries" = NO; then ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -2118,17 +2040,17 @@ else case "`(uname -sr) 2>/dev/null`" in "SunOS 5"*) echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 -echo "configure:2122: checking whether -R must be followed by a space" >&5 +echo "configure:2044: checking whether -R must be followed by a space" >&5 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_nospace=yes else @@ -2144,14 +2066,14 @@ rm -f conftest* else LIBS="$ac_xsave_LIBS -R $x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_space=yes else @@ -2183,7 +2105,7 @@ rm -f conftest* # libraries were built with DECnet support. And karl@cs.umb.edu says # the Alpha needs dnet_stub (dnet does not exist). echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 -echo "configure:2187: checking for dnet_ntoa in -ldnet" >&5 +echo "configure:2109: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2191,7 +2113,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2224,7 +2146,7 @@ fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 -echo "configure:2228: checking for dnet_ntoa in -ldnet_stub" >&5 +echo "configure:2150: checking for dnet_ntoa in -ldnet_stub" >&5 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2232,7 +2154,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2272,12 +2194,12 @@ fi # The nsl library prevents programs from opening the X display # on Irix 5.2, according to dickey@clark.net. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:2276: checking for gethostbyname" >&5 +echo "configure:2198: checking for gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else @@ -2321,7 +2243,7 @@ fi if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:2325: checking for gethostbyname in -lnsl" >&5 +echo "configure:2247: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2329,7 +2251,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2370,12 +2292,12 @@ fi # -lsocket must be given before -lnsl if both are needed. # We assume that if connect needs -lnsl, so does gethostbyname. echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:2374: checking for connect" >&5 +echo "configure:2296: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else @@ -2419,7 +2341,7 @@ fi if test $ac_cv_func_connect = no; then echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 -echo "configure:2423: checking for connect in -lsocket" >&5 +echo "configure:2345: checking for connect in -lsocket" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2427,7 +2349,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2462,12 +2384,12 @@ fi # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. echo $ac_n "checking for remove""... $ac_c" 1>&6 -echo "configure:2466: checking for remove" >&5 +echo "configure:2388: checking for remove" >&5 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_remove=yes" else @@ -2511,7 +2433,7 @@ fi if test $ac_cv_func_remove = no; then echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 -echo "configure:2515: checking for remove in -lposix" >&5 +echo "configure:2437: checking for remove in -lposix" >&5 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2519,7 +2441,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2554,12 +2476,12 @@ fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo $ac_n "checking for shmat""... $ac_c" 1>&6 -echo "configure:2558: checking for shmat" >&5 +echo "configure:2480: checking for shmat" >&5 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shmat=yes" else @@ -2603,7 +2525,7 @@ fi if test $ac_cv_func_shmat = no; then echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 -echo "configure:2607: checking for shmat in -lipc" >&5 +echo "configure:2529: checking for shmat in -lipc" >&5 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2611,7 +2533,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lipc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2655,7 +2577,7 @@ fi # libraries we check for below, so use a different variable. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 -echo "configure:2659: checking for IceConnectionNumber in -lICE" >&5 +echo "configure:2581: checking for IceConnectionNumber in -lICE" >&5 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2663,7 +2585,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2698,9 +2620,55 @@ fi fi + +if test "$ac_cv_func_gethostbyname" = no; then + if test "$ac_cv_lib_nsl_gethostbyname" = no; then + echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6 +echo "configure:2628: checking for gethostbyname in -lbsd" >&5 +ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lbsd $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +else + echo "$ac_t""no" 1>&6 +fi + + fi +fi + if test "$no_x" != yes; then CPPFLAGS="$CPPFLAGS $X_CFLAGS" - X_LIBRARIES="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" + LIBRARIES_FOR_X="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS" GNUPLOT_X11=gnuplot_x11 cat >> confdefs.h <<\EOF #define X11 1 @@ -2710,9 +2678,9 @@ fi echo $ac_n "checking for MS-DOS/djgpp/libGRX""... $ac_c" 1>&6 -echo "configure:2714: checking for MS-DOS/djgpp/libGRX" >&5 +echo "configure:2682: checking for MS-DOS/djgpp/libGRX" >&5 cat > conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* echo "$ac_t""yes" 1>&6 - LIBS="-lpc $LIBS" - cat >> confdefs.h <<\EOF + LIBS="-lpc $LIBS" + cat >> confdefs.h <<\EOF #define MSDOS 1 EOF - cat >> confdefs.h <<\EOF + cat >> confdefs.h <<\EOF #define DOS32 1 EOF - with_linux_vga=no - echo $ac_n "checking for GrLine in -lgrx20""... $ac_c" 1>&6 -echo "configure:2738: checking for GrLine in -lgrx20" >&5 + with_linux_vga=no + echo $ac_n "checking for GrLine in -lgrx20""... $ac_c" 1>&6 +echo "configure:2706: checking for GrLine in -lgrx20" >&5 ac_lib_var=`echo grx20'_'GrLine | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2742,7 +2710,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgrx20 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2768,14 +2736,14 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - LIBS="-lgrx20 $LIBS" - CFLAGS="$CFLAGS -fno-inline-functions" - cat >> confdefs.h <<\EOF + LIBS="-lgrx20 $LIBS" + CFLAGS="$CFLAGS -fno-inline-functions" + cat >> confdefs.h <<\EOF #define DJSVGA 1 EOF - echo $ac_n "checking for GrCustomLine in -lgrx20""... $ac_c" 1>&6 -echo "configure:2779: checking for GrCustomLine in -lgrx20" >&5 + echo $ac_n "checking for GrCustomLine in -lgrx20""... $ac_c" 1>&6 +echo "configure:2747: checking for GrCustomLine in -lgrx20" >&5 ac_lib_var=`echo grx20'_'GrCustomLine | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2783,7 +2751,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgrx20 $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -2812,26 +2780,26 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye cat >> confdefs.h <<\EOF #define GRX21 1 EOF - + else echo "$ac_t""no" 1>&6 fi - + else echo "$ac_t""no" 1>&6 fi else rm -rf conftest* - echo "$ac_t""no" 1>&6 - + echo "$ac_t""no" 1>&6 + fi rm -f conftest* echo $ac_n "checking for NeXT""... $ac_c" 1>&6 -echo "configure:2833: checking for NeXT" >&5 +echo "configure:2801: checking for NeXT" >&5 cat > conftest.$ac_ext <&5 | rm -rf conftest* echo "$ac_t""yes" 1>&6 LIBS="$LIBS -lsys_s -lNeXT_s" - NEXTOBJS=epsviewe.o CFLAGS="$CFLAGS -ObjC" else rm -rf conftest* - NEXTOBJS= + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + +echo $ac_n "checking for Apple MacOS X""... $ac_c" 1>&6 +echo "configure:2824: checking for Apple MacOS X" >&5 +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6 + LIBS="$LIBS -framework Foundation -framework AppKit" + CFLAGS="$CFLAGS -ObjC" +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + +echo $ac_n "checking for BeOS""... $ac_c" 1>&6 +echo "configure:2847: checking for BeOS" >&5 +cat > conftest.$ac_ext <&5 | + egrep "yes" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6 + build_src_beos_subdir=yes +else + rm -rf conftest* + build_src_beos_subdir=no echo "$ac_t""no" 1>&6 fi rm -f conftest* -LIBS="$LIBS -lm" +echo $ac_n "checking for sin""... $ac_c" 1>&6 +echo "configure:2871: checking for sin" >&5 +if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char sin(); +int main() { +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_sin) || defined (__stub___sin) +choke me +#else +sin(); +#endif + +; return 0; } +EOF +if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_sin=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_sin=no" +fi +rm -f conftest* +fi + +if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +fi + +if test "$ac_cv_func_sin" = no ; then + echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 +echo "configure:2920: checking for sin in -lm" >&5 +ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lm $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ + -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` + cat >> confdefs.h <&6 +fi + +fi +dnlLIBS="$LIBS -lm" + + echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:2862: checking for ANSI C header files" >&5 +echo "configure:2971: checking for ANSI C header files" >&5 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -2871,7 +2980,7 @@ else #include EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -2888,7 +2997,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -2906,7 +3015,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -2927,7 +3036,7 @@ if test "$cross_compiling" = yes; then : else cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -2938,7 +3047,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != T exit (0); } EOF -if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null +if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null then : else @@ -2963,62 +3072,24 @@ fi for ac_hdr in errno.h float.h limits.h locale.h math.h stdlib.h string.h \ - time.h sys/time.h sys/timeb.h sys/types.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:2971: checking for $ac_hdr" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >> confdefs.h <&6 -fi -done - -for ac_hdr in sys/bsdtypes.h sys/select.h sys/socket.h sys/stat.h \ + time.h sys/time.h sys/timeb.h sys/types.h \ + sys/bsdtypes.h sys/select.h sys/socket.h sys/stat.h \ sys/systeminfo.h sys/utsname.h libc.h malloc.h sgtty.h termios.h values.h + do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3012: checking for $ac_hdr" >&5 +echo "configure:3083: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3044,13 +3115,14 @@ else fi done + test "$ac_cv_header_sys_stat_h" = yes && echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 -echo "configure:3049: checking whether stat file-mode macros are broken" >&5 +echo "configure:3121: checking whether stat file-mode macros are broken" >&5 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3102,9 +3174,9 @@ fi echo $ac_n "checking for unistd.h""... $ac_c" 1>&6 -echo "configure:3106: checking for unistd.h" >&5 +echo "configure:3178: checking for unistd.h" >&5 cat > conftest.$ac_ext < EOF @@ -3123,9 +3195,9 @@ rm -f conftest* echo $ac_n "checking if errno variable is declared""... $ac_c" 1>&6 -echo "configure:3127: checking if errno variable is declared" >&5 +echo "configure:3199: checking if errno variable is declared" >&5 cat > conftest.$ac_ext < #ifdef HAVE_ERRNO_H @@ -3135,7 +3207,7 @@ int main() { errno=0 ; return 0; } EOF -if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -3145,18 +3217,19 @@ else cat >> confdefs.h <<\EOF #define EXTERN_ERRNO 1 EOF - echo "$ac_t""no" 1>&6 + + echo "$ac_t""no" 1>&6 + fi rm -f conftest* - echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3155: checking for size_t" >&5 +echo "configure:3228: checking for size_t" >&5 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3184,61 +3257,30 @@ EOF fi echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6 -echo "configure:3188: checking for time_t in time.h" >&5 +echo "configure:3261: checking for time_t in time.h" >&5 cat > conftest.$ac_ext < EOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "time_t" >/dev/null 2>&1; then rm -rf conftest* - ac_cv_type_time_t=yes; echo "$ac_t""yes" 1>&6 -else - rm -rf conftest* - echo "$ac_t""no" 1>&6 echo $ac_n "checking for time_t""... $ac_c" 1>&6 -echo "configure:3201: checking for time_t" >&5 -if eval "test \"`echo '$''{'ac_cv_type_time_t'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -#if STDC_HEADERS -#include -#include -#endif + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_TIME_T_IN_TIME_H 1 EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "(^|[^a-zA-Z_0-9])time_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_type_time_t=yes -else - rm -rf conftest* - ac_cv_type_time_t=no -fi -rm -f conftest* fi -echo "$ac_t""$ac_cv_type_time_t" 1>&6 -if test $ac_cv_type_time_t = no; then - cat >> confdefs.h <<\EOF -#define time_t long -EOF - -fi - -fi rm -f conftest* echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:3237: checking return type of signal handlers" >&5 +echo "configure:3279: checking return type of signal handlers" >&5 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < #include @@ -3255,7 +3297,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:3259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -3276,16 +3318,23 @@ EOF -for ac_func in atexit on_exit memcpy memmove memset bcopy bzero setvbuf \ - strerror strchr index strrchr rindex strstr +for ac_func in atexit memcpy memmove memset \ + on_exit bcopy bzero \ + setvbuf strerror strchr strrchr strstr \ + index rindex \ + erf erfc gamma lgamma \ + getcwd poll pclose popen select sleep snprintf stpcpy \ + strcspn strdup strcasecmp stricmp strncasecmp strnicmp \ + sysinfo tcgetattr vfprintf doprnt + do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3284: checking for $ac_func" >&5 +echo "configure:3333: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3333,16 +3382,48 @@ fi done -for ac_func in erf erfc gamma lgamma getcwd pclose popen sleep snprintf \ - strncasecmp strnicmp sysinfo tcgetattr +echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 +echo "configure:3387: checking for sigsetjmp" >&5 +cat > conftest.$ac_ext < +int main() { +jmp_buf env; sigsetjmp(env, 1); +; return 0; } +EOF +if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define HAVE_SIGSETJMP 1 +EOF + +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + echo "$ac_t""no" 1>&6 + +fi +rm -f conftest* + +if test "$ac_cv_func_pclose" = yes && test "$ac_cv_func_popen" = yes ; then + cat >> confdefs.h <<\EOF +#define PIPES 1 +EOF + +fi + +for ac_func in select do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3341: checking for $ac_func" >&5 +echo "configure:3422: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3389,28 +3470,22 @@ else fi done -if test "$ac_cv_func_pclose" = yes && test "$ac_cv_func_popen" = yes ; then - cat >> confdefs.h <<\EOF -#define PIPES 1 -EOF - -fi - -for ac_hdr in sys/types.h sys/time.h sys/select.h sys/socket.h +if test "$ac_cv_func_select" = yes; then + for ac_hdr in unistd.h sys/types.h sys/time.h sys/select.h sys/socket.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3404: checking for $ac_hdr" >&5 +echo "configure:3479: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3436,85 +3511,147 @@ else fi done - echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6 -echo "configure:3441: checking types of arguments for select()" >&5 - if eval "test \"`echo '$''{'ac_cv_func_select_arg234'+set}'`\" = set"; then + echo $ac_n "checking argument types of select()""... $ac_c" 1>&6 +echo "configure:3516: checking argument types of select()" >&5 + if eval "test \"`echo '$''{'ac_cv_type_fd_set_size_t'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if eval "test \"`echo '$''{'ac_cv_func_select_arg1'+set}'`\" = set"; then + if eval "test \"`echo '$''{'ac_cv_type_fd_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else - if eval "test \"`echo '$''{'ac_cv_func_select_arg5'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do - for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do - for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do - cat > conftest.$ac_ext < conftest.$ac_ext < +#endif #ifdef HAVE_SYS_TYPES_H -#include +# include #endif -#ifdef HAVE_SYS_TIME_H -#include +#ifdef HAVE_UNISTD_H +# include #endif #ifdef HAVE_SYS_SELECT_H -#include +# include #endif #ifdef HAVE_SYS_SOCKET_H -#include +# include #endif -extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5); + int main() { +#ifdef __STDC__ +extern int select ($ac_cv_type_fd_set_size_t, + $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, + $ac_type_timeval *); +#else +extern int select (); + $ac_cv_type_fd_set_size_t s; + $ac_cv_type_fd_set *p; + $ac_type_timeval *t; +#endif ; return 0; } EOF -if { (eval echo configure:3474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* - ac_not_found=no ; break 3 + ac_found=yes ; break 3 else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* - ac_not_found=yes + ac_found=no fi rm -f conftest* + done + done done - done - done - + fi fi - -fi - if test "$ac_not_found" = yes; then - ac_cv_func_select_arg1=int - ac_cv_func_select_arg234='int *' - ac_cv_func_select_arg5='struct timeval *' - fi - echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6 - cat >> confdefs.h <&2; exit 1; } + fi + + echo "$ac_t""select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)" 1>&6 + cat >> confdefs.h <> confdefs.h < conftest.$ac_ext < +#endif +#ifdef HAVE_SYS_TYPES_H +# include +#endif +#ifdef HAVE_UNISTD_H +# include +#endif +#ifdef HAVE_SYS_SELECT_H +# include +#endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif + EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then + rm -rf conftest* + # We found fd_set type in a header, need special cast + ac_cast="($ac_cv_type_fd_set *)" +else + rm -rf conftest* + # No fd_set type; it is safe to define it + cat >> confdefs.h <> confdefs.h <> confdefs.h <&6 -echo "configure:3516: checking for linux vga library" >&5 +echo "configure:3653: checking for linux vga library" >&5 echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6 -echo "configure:3518: checking for vga_init in -lvga" >&5 +echo "configure:3655: checking for vga_init in -lvga" >&5 ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3522,7 +3659,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lvga $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3553,19 +3690,29 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = ye EOF LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot' - TERMLIBS="$TERMLIBS -lvga" + TERMLIBS="-lvga $TERMLIBS" else echo "$ac_t""no" 1>&6 - with_linux_vga=no +with_linux_vga=no fi fi -if test "$with_gnu_readline" != no; then - gp_tcap="" - for termlib in ncurses curses termcap terminfo termlib; do - echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6 -echo "configure:3569: checking for tputs in -l${termlib}" >&5 +# Check whether --with-readline or --without-readline was given. +if test "${with_readline+set}" = set; then + withval="$with_readline" + : +else + test -z "$with_readline" && with_readline=yes +fi + + +if test "$with_readline" != no; then + if test "$with_readline" != yes; then + gp_tcap="" + for termlib in ncurses curses termcap terminfo termlib; do + echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6 +echo "configure:3716: checking for tputs in -l${termlib}" >&5 ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -3573,7 +3720,7 @@ else ac_save_LIBS="$LIBS" LIBS="-l${termlib} $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3599,30 +3746,29 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - gp_tcap="${gp_tcap} -l${termlib}" + gp_tcap="$gp_tcap -l$termlib" else echo "$ac_t""no" 1>&6 fi - case "${gp_tcap}" in - *-l${termlib}*) - echo "$ac_t""using ${gp_tcap} with readline" 1>&6 - break - ;; - esac - done + case "$gp_tcap" in + *-l${termlib}*) + break + ;; + esac + done - if test "$with_gnu_readline" = yes; then - echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 -echo "configure:3618: checking for readline in -lreadline" >&5 + if test "$with_readline" = gnu; then + echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 +echo "configure:3764: checking for readline in -lreadline" >&5 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lreadline ${gp_tcap} $LIBS" +LIBS="-lreadline ${gp_tcap} $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3648,70 +3794,114 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - LIBS="$LIBS -lreadline $gp_tcap" - cat >> confdefs.h <<\EOF -#define GNU_READLINE 1 + TERMLIBS="-lreadline $gp_tcap $TERMLIBS" +else + echo "$ac_t""no" 1>&6 +fi + + else + if test -d $with_readline/include; then + CPPFLAGS="$CPPFLAGS -I$with_readline/include" + fi + if test -d $with_readline/lib; then + LDFLAGS="$LDFLAGS -L$with_readline/lib" + fi + + echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 +echo "configure:3812: checking for readline in -lreadline" >&5 +ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lreadline ${gp_tcap} $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" - with_readline=no +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 + TERMLIBS="-lreadline $gp_tcap $TERMLIBS" else echo "$ac_t""no" 1>&6 - { echo "configure: error: Can't find -lreadline in a standard path -- specify its location using --with-gnu-readline=/path/to/libreadline.a" 1>&2; exit 1; } fi - else - if test ! -f $with_gnu_readline ; then - if test ! -f ${with_gnu_readline}/lib/libreadline.a ; then - if test ! -f ${with_gnu_readline}/libreadline.a ; then - { echo "configure: error: GNU readline library not found" 1>&2; exit 1; } - else - echo "$ac_t""using ${with_gnu_readline}/libreadline.a" 1>&6 - LIBS="$LIBS ${with_gnu_readline}/libreadline.a $gp_tcap" - fi - else - echo "$ac_t""using ${with_gnu_readline}/lib/libreadline.a" 1>&6 - LIBS="$LIBS ${with_gnu_readline}/lib/libreadline.a $gp_tcap" - fi - else - echo "$ac_t""using ${with_gnu_readline}" 1>&6 - LIBS="$LIBS $with_gnu_readline $gp_tcap" + + fi - cat >> confdefs.h <<\EOF -#define GNU_READLINE 1 + if test "$ac_cv_lib_readline_readline" = no; then + echo "configure: warning: GNU readline not found - falling back to builtin readline" 1>&2 + with_readline=yes + else + cat >> confdefs.h <<\EOF +#define HAVE_LIBREADLINE 1 EOF - with_readline=no - fi -fi + fi # ! ac_cv_lib_readline_readline = no -test "$with_readline" = yes && cat >> confdefs.h <<\EOF + fi # with_readline" != yes + + if test "$with_readline" = yes; then + cat >> confdefs.h <<\EOF #define READLINE 1 EOF + fi -if test "$with_plot" != no; then - if test "$with_plot" = yes; then - echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6 -echo "configure:3696: checking for openpl in -lplot" >&5 -ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'` +fi + +# Check whether --with-gd or --without-gd was given. +if test "${with_gd+set}" = set; then + withval="$with_gd" + if test "$withval" != no; then + if test -d $withval/include; then + CPPFLAGS="$CPPFLAGS -I$withval/include" + fi + if test -d $withval/lib; then + LDFLAGS="$LDFLAGS -L$withval/lib" + fi + echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6 +echo "configure:3886: checking for gdImageGif in -lgd" >&5 +ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lplot $LIBS" +LIBS="-lgd $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3726,49 +3916,88 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define UNIXPLOT 1 + TERMLIBS="-lgd $TERMLIBS" + for ac_hdr in gd.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:3925: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <> confdefs.h <<\EOF +#define HAVE_LIBGD 1 +EOF - TERMLIBS="$TERMLIBS -lplot" else echo "$ac_t""no" 1>&6 - with_plot=no +echo "configure: warning: found gd library but not gd.h +please add path to gd.h to CPPFLAGS in Makefile" 1>&2 + fi +done - else - TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11" - echo $ac_n "checking for textangle in -lplot""... $ac_c" 1>&6 -echo "configure:3743: checking for textangle in -lplot" >&5 -gp_save_TERMLIBS="$TERMLIBS" - gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` -case "$with_plot" in - yes|no) - gp_lib_list="";; - *) - gp_lib_path=`echo $with_plot | sed -e 's%/libplot\.a$%%'` - gp_lib_prefix=`echo $gp_lib_path | sed 's%/lib$%%'` - gp_lib_list="$gp_lib_prefix $gp_lib_prefix/lib $gp_lib_path" -esac -for ac_dir in '' /usr/local/lib $gp_lib_list ; do - TERMLIBS="`test x${ac_dir} != x && echo -L${ac_dir}` $gp_save_TERMLIBS" - ac_lib_var=`echo plot'_'textangle | sed 'y%./+-%__p_%'` -ac_save_LIBS="$LIBS" -LIBS="$TERMLIBS $TERMXLIBS -lplot $TERMXLIBS $LIBS" +else + echo "$ac_t""no" 1>&6 +echo "$ac_t"" GD library not found or cannot create gif images. + See term/gif.trm for download details" 1>&6 +fi + + fi +fi + + +# Check whether --with-plot or --without-plot was given. +if test "${with_plot+set}" = set; then + withval="$with_plot" + if test "$withval" = yes; then + echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6 +echo "configure:3982: checking for openpl in -lplot" >&5 +ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lplot $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3779,51 +4008,49 @@ else fi rm -f conftest* LIBS="$ac_save_LIBS" -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - TERMLIBS="$TERMLIBS -lplot"; break -else - TERMLIBS="$gp_save_TERMLIBS" + fi - done if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define UNIXPLOT 1 +EOF + + TERMLIBS="-lplot $TERMLIBS" else echo "$ac_t""no" 1>&6 +with_plot=no fi - if test "$ac_cv_lib_plot_textangle" = no; then - TERMXLIBS= - echo $ac_n "checking for rotate in -lplot""... $ac_c" 1>&6 -echo "configure:3798: checking for rotate in -lplot" >&5 -gp_save_TERMLIBS="$TERMLIBS" - gp_tr_lib=HAVE_LIB`echo plot | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` -case "$with_plot" in - yes|no) - gp_lib_list="";; - *) - gp_lib_path=`echo $with_plot | sed -e 's%/libplot\.a$%%'` - gp_lib_prefix=`echo $gp_lib_path | sed 's%/lib$%%'` - gp_lib_list="$gp_lib_prefix $gp_lib_prefix/lib $gp_lib_path" -esac -for ac_dir in '' /usr/local/lib $gp_lib_list ; do - TERMLIBS="`test x${ac_dir} != x && echo -L${ac_dir}` $gp_save_TERMLIBS" - ac_lib_var=`echo plot'_'rotate | sed 'y%./+-%__p_%'` -ac_save_LIBS="$LIBS" -LIBS="$TERMLIBS $TERMXLIBS -lplot $LIBS" + elif test "$withval" != no; then + if test -d $withval/include; then + CPPFLAGS="$CPPFLAGS -I$withval/include" + fi + if test -d $withval/lib; then + LDFLAGS="$LDFLAGS -L$withval/lib" + fi + TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11" + echo $ac_n "checking for pl_textangle in -lplot""... $ac_c" 1>&6 +echo "configure:4035: checking for pl_textangle in -lplot" >&5 +ac_lib_var=`echo plot'_'pl_textangle | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lplot $TERMXLIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3834,74 +4061,65 @@ else fi rm -f conftest* LIBS="$ac_save_LIBS" -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - TERMLIBS="$TERMLIBS -lplot"; break -else - TERMLIBS="$gp_save_TERMLIBS" + fi - done if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test "$ac_cv_lib_plot_rotate" = no; then - echo "configure: warning: can't find GNU libplot -- disabling gnugraph terminal" 1>&2 - with_plot=no - else - echo "$ac_t"" - using obsolete GNU graphics library" 1>&6 + TERMLIBS="-lplot $TERMLIBS" cat >> confdefs.h <<\EOF #define GNUGRAPH 1 EOF - fi # old GNU plotlib - else - echo "$ac_t"" - using GNU plotutils library" 1>&6 - cat >> confdefs.h <<\EOF -#define GNUGRAPH 1 -EOF +else + echo "$ac_t""no" 1>&6 +echo "configure: warning: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" 1>&2 + TERMXLIBS= + with_plot=no +fi - cat >> confdefs.h <<\EOF -#define GNU_PLOTUTILS 1 -EOF + fi +fi - fi # new GNU plotlib - fi # Unix plotlib + +# Check whether --with-png or --without-png was given. +if test "${with_png+set}" = set; then + withval="$with_png" + if test "$withval" != no; then + if test -d $withval/include; then + CPPFLAGS="$CPPFLAGS -I$withval/include" + fi + if test -d $withval/lib; then + LDFLAGS="$LDFLAGS -L$withval/lib" + fi + with_png=yes + fi +else + with_png=yes fi -if test "$with_gd" != no; then - echo $ac_n "checking for gdImageCreate in -lgd""... $ac_c" 1>&6 -echo "configure:3876: checking for gdImageCreate in -lgd" >&5 -gp_save_TERMLIBS="$TERMLIBS" - gp_tr_lib=HAVE_LIB`echo gd | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` -case "$with_gd" in - yes|no) - gp_lib_list="";; - *) - gp_lib_path=`echo $with_gd | sed -e 's%/libgd\.a$%%'` - gp_lib_prefix=`echo $gp_lib_path | sed 's%/lib$%%'` - gp_lib_list="$gp_lib_prefix $gp_lib_prefix/lib $gp_lib_path" -esac -for ac_dir in '' /usr/local/lib $gp_lib_list ; do - TERMLIBS="`test x${ac_dir} != x && echo -L${ac_dir}` $gp_save_TERMLIBS" - ac_lib_var=`echo gd'_'gdImageCreate | sed 'y%./+-%__p_%'` -ac_save_LIBS="$LIBS" -LIBS="$TERMLIBS $TERMXLIBS -lgd $LIBS" + +if test "$with_png" = yes; then + echo $ac_n "checking for png_init_io in -lpng""... $ac_c" 1>&6 +echo "configure:4104: checking for png_init_io in -lpng" >&5 +ac_lib_var=`echo png'_'png_init_io | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lpng -lz $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3912,33 +4130,60 @@ else fi rm -f conftest* LIBS="$ac_save_LIBS" -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - TERMLIBS="$TERMLIBS -lgd"; break -else - TERMLIBS="$gp_save_TERMLIBS" + fi - done if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 + TERMLIBS="-lpng -lz $TERMLIBS" + for ac_hdr in png.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4143: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 else - echo "$ac_t""no" 1>&6 + cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" fi - - if test "$ac_cv_lib_gd_gdImageCreate" = yes; then - -echo $ac_n "checking for gd.h""... $ac_c" 1>&6 -echo "configure:3931: checking for gd.h" >&5 -ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'` -gp_save_CPPFLAGS="$CPPFLAGS" -for ac_dir in '' /usr/local/include $gp_lib_prefix $gp_lib_prefix/include ; do - CPPFLAGS="$gp_save_CPPFLAGS `test x${ac_dir} != x && echo -I${ac_dir}`" +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 +echo "configure:4177: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else cat > conftest.$ac_ext < +#include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3951,62 +4196,99 @@ else eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - break - else - CPPFLAGS="${ac_save_CPPFLAGS}" - fi -done +fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - : + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 -echo "configure: warning: found gd library but not gd.h" 1>&2 - echo "configure: warning: please add path to gd.h to CPPFLAGS in Makefile" 1>&2 - +echo "configure: warning: found z library but not zlib.h +please add path to zlib.h to CPPFLAGS in Makefile" 1>&2 fi +done + + cat > conftest.$ac_ext <&5 | + egrep "You lose" >/dev/null 2>&1; then + rm -rf conftest* + echo "configure: warning: - libpng too old - not including png driver" 1>&2 + ac_cv_header_png_h=no +fi +rm -f conftest* + +else + echo "$ac_t""no" 1>&6 +echo "configure: warning: found png library but not png.h +please add path to png.h to CPPFLAGS in Makefile" 1>&2 +fi +done + +else + echo "$ac_t""no" 1>&6 +echo "$ac_t"" PNG library not found. + See term/png.trm for download details" 1>&6 +fi + + + if test "$ac_cv_header_png_h" = yes; then cat >> confdefs.h <<\EOF -#define HAVE_LIBGD 1 +#define HAVE_LIBPNG 1 EOF - else - echo "$ac_t""- see term/gif.trm for download details" 1>&6 fi fi -if test "$with_png" != no; then - echo $ac_n "checking for png_info_init in -lpng""... $ac_c" 1>&6 -echo "configure:3981: checking for png_info_init in -lpng" >&5 -gp_save_TERMLIBS="$TERMLIBS" - gp_tr_lib=HAVE_LIB`echo png | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` -case "$with_png" in - yes|no) - gp_lib_list="";; - *) - gp_lib_path=`echo $with_png | sed -e 's%/libpng\.a$%%'` - gp_lib_prefix=`echo $gp_lib_path | sed 's%/lib$%%'` - gp_lib_list="$gp_lib_prefix $gp_lib_prefix/lib $gp_lib_path" -esac -for ac_dir in '' /usr/local/lib $gp_lib_list ; do - TERMLIBS="`test x${ac_dir} != x && echo -L${ac_dir}` $gp_save_TERMLIBS" - ac_lib_var=`echo png'_'png_info_init | sed 'y%./+-%__p_%'` -ac_save_LIBS="$LIBS" -LIBS="$TERMLIBS $TERMXLIBS -lpng -lz $LIBS" +# Check whether --with-pdf or --without-pdf was given. +if test "${with_pdf+set}" = set; then + withval="$with_pdf" + if test "$withval" != no; then + if test -d $withval/include; then + CPPFLAGS="$CPPFLAGS -I$withval/include" + fi + if test -d $withval/lib; then + LDFLAGS="$LDFLAGS -L$withval/lib" + fi + with_pdf=yes + fi +else + with_pdf=no +fi + + +if test "$with_pdf" = yes; then + echo $ac_n "checking for PDF_get_majorversion in -lpdf""... $ac_c" 1>&6 +echo "configure:4273: checking for PDF_get_majorversion in -lpdf" >&5 +ac_lib_var=`echo pdf'_'PDF_get_majorversion | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lpdf $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4017,34 +4299,30 @@ else fi rm -f conftest* LIBS="$ac_save_LIBS" -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - TERMLIBS="$TERMLIBS -lpng"; break -else - TERMLIBS="$gp_save_TERMLIBS" + fi - done if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi + TERMLIBS="-lpdf $TERMLIBS" + cat >> confdefs.h <<\EOF +#define HAVE_LIBPDF 1 +EOF - if test "$ac_cv_lib_png_png_info_init" = yes; then - TERMLIBS="$TERMLIBS -lz" - -echo $ac_n "checking for png.h""... $ac_c" 1>&6 -echo "configure:4037: checking for png.h" >&5 -ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` -gp_save_CPPFLAGS="$CPPFLAGS" -for ac_dir in '' /usr/local/include $gp_lib_prefix $gp_lib_prefix/include ; do - CPPFLAGS="$gp_save_CPPFLAGS `test x${ac_dir} != x && echo -I${ac_dir}`" + for ac_hdr in pdflib.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4316: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else cat > conftest.$ac_ext < +#include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4057,35 +4335,36 @@ else eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - break - else - CPPFLAGS="${ac_save_CPPFLAGS}" - fi -done +fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - : + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 -echo "configure: warning: found png library but not png.h" 1>&2 - echo "configure: warning: please add path to png.h to CPPFLAGS in Makefile" 1>&2 - +echo "configure: warning: found pdf library but not pdflib.h +please add path to pdflib.h to CPPFLAGS in Makefile" 1>&2 fi - -echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 -echo "configure:4078: checking for zlib.h" >&5 -ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` -gp_save_CPPFLAGS="$CPPFLAGS" -for ac_dir in '' /usr/local/include $gp_lib_prefix $gp_lib_prefix/include ; do - CPPFLAGS="$gp_save_CPPFLAGS `test x${ac_dir} != x && echo -I${ac_dir}`" +done + + for ac_hdr in zlib.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:4358: checking for $ac_hdr" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else cat > conftest.$ac_ext < +#include <$ac_hdr> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:4089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -4098,150 +4377,129 @@ else eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* - if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - break - else - CPPFLAGS="${ac_save_CPPFLAGS}" - fi -done +fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 - : + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + cat >> confdefs.h <&6 -echo "configure: warning: found z library but not zlib.h" 1>&2 - echo "configure: warning: please add path to zlib.h to CPPFLAGS in Makefile" 1>&2 - +echo "configure: warning: found z library but not zlib.h +please add path to zlib.h to CPPFLAGS in Makefile" 1>&2 fi - if test "$ac_cv_header_png_h" = yes; then - cat > conftest.$ac_ext <&5 | - egrep "You lose" >/dev/null 2>&1; then - rm -rf conftest* - echo "configure: warning: - libpng too old - not including png driver" 1>&2 else - rm -rf conftest* - cat >> confdefs.h <<\EOF -#define HAVE_LIBPNG 1 -EOF - + echo "$ac_t""no" 1>&6 +echo "$ac_t"" PDF library not found. + See term/pdf.trm for download details" 1>&6 fi -rm -f conftest* - else - echo "configure: warning: - cannot check png version - compilation may fail" 1>&2 - cat >> confdefs.h <<\EOF -#define HAVE_LIBPNG 1 + + if test "$ac_cv_header_pdflib_h" = yes; then + cat >> confdefs.h <<\EOF +#define HAVE_LIBPDF 1 EOF - fi - else - echo "$ac_t""- see term/png.trm for download details" 1>&6 fi fi -echo $ac_n "checking terminal driver sources""... $ac_c" 1>&6 -echo "configure:4153: checking terminal driver sources" >&5 -( cd $srcdir/term && for i in *.trm ; do echo '${srcdir}'/../term/$i ; done )\ - |(tr '\012' @; echo) |sed 's/@$/%/;s/@/ \\@/g' |tr @% '\012\012' >termlist -TERM_LIST=termlist -echo "$ac_t""list created" 1>&6 - - -if test "$enable_apollo" = yes; then - cat > conftest.$ac_ext < conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* - cat >> confdefs.h <<\EOF -#define APOLLO 1 -EOF + echo $ac_n "checking for v_opnwk in -lccgi""... $ac_c" 1>&6 +echo "configure:4425: checking for v_opnwk in -lccgi" >&5 +ac_lib_var=`echo ccgi'_'v_opnwk | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lccgi $LIBS" +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 rm -rf conftest* - enable_apollo=no + eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* +LIBS="$ac_save_LIBS" fi - -if test "$enable_gpr" = yes; then - cat > conftest.$ac_ext <&5 | - egrep "yes" >/dev/null 2>&1; then - rm -rf conftest* +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF -#define APOLLO 1 +#define CGI 1 EOF - cat >> confdefs.h <<\EOF -#define GPR 1 -EOF + TERMLIBS="-lccgi $TERMLIBS" else - rm -rf conftest* - enable_gpr=no + echo "$ac_t""no" 1>&6 fi -rm -f conftest* fi +rm -f conftest* -if test "$enable_cgi" = yes; then - cat > conftest.$ac_ext < conftest.$ac_ext <&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* - echo $ac_n "checking for v_opnwk in -lccgi""... $ac_c" 1>&6 -echo "configure:4226: checking for v_opnwk in -lccgi" >&5 -ac_lib_var=`echo ccgi'_'v_opnwk | sed 'y%./+-%__p_%'` + echo $ac_n "checking for window_create in -lsuntool""... $ac_c" 1>&6 +echo "configure:4484: checking for window_create in -lsuntool" >&5 +ac_lib_var=`echo suntool'_'window_create | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lccgi $LIBS" +LIBS="-lsuntool -lsunwindow -lpixrect $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4256,45 +4514,90 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define CGI 1 + ac_safe=`echo "suntool/sunview.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for suntool/sunview.h""... $ac_c" 1>&6 +echo "configure:4520: checking for suntool/sunview.h" >&5 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + cat > conftest.$ac_ext < EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + cat >> confdefs.h <<\EOF +#define SUN 1 +EOF - TERMLIBS="$TERMLIBS -lccgi" + TERMLIBS="-lsuntool -lsunwindow -lpixrect $TERMLIBS" else echo "$ac_t""no" 1>&6 fi else - rm -rf conftest* - enable_cgi=no + echo "$ac_t""no" 1>&6 fi + +fi rm -f conftest* + + +# Check whether --with-cwdrc or --without-cwdrc was given. +if test "${with_cwdrc+set}" = set; then + withval="$with_cwdrc" + : +else + if test "$withval" = yes; then + cat >> confdefs.h <<\EOF +#define NOCWDRC 1 +EOF + + fi fi -if test "$enable_iris" = yes; then - echo $ac_n "checking for winopen in -lgl_s""... $ac_c" 1>&6 -echo "configure:4279: checking for winopen in -lgl_s" >&5 -ac_lib_var=`echo gl_s'_'winopen | sed 'y%./+-%__p_%'` + +# Check whether --enable-ggi or --disable-ggi was given. +if test "${enable_ggi+set}" = set; then + enableval="$enable_ggi" + echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6 +echo "configure:4582: checking for ggiInit in -lggi" >&5 +ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lgl_s $LIBS" +LIBS="-lggi $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4309,40 +4612,27 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define IRIS 1 -EOF - - TERMLIBS="$TERMLIBS -lgl_s" -else - echo "$ac_t""no" 1>&6 - enable_iris=no -fi - -fi - -if test "$enable_mgr" = yes; then - echo $ac_n "checking for m_getinfo in -lmgr""... $ac_c" 1>&6 -echo "configure:4327: checking for m_getinfo in -lmgr" >&5 -ac_lib_var=`echo mgr'_'m_getinfo | sed 'y%./+-%__p_%'` + echo $ac_n "checking for ggiWmhInit in -lggiwmh""... $ac_c" 1>&6 +echo "configure:4617: checking for ggiWmhInit in -lggiwmh" >&5 +ac_lib_var=`echo ggiwmh'_'ggiWmhInit | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lmgr -lpixrect $LIBS" +LIBS="-lggiwmh $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4357,46 +4647,49 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define MGR 1 + cat >> confdefs.h <<\EOF +#define HAVE_GGI 1 EOF - TERMLIBS="$TERMLIBS -lmgr -lpixrect" + else echo "$ac_t""no" 1>&6 - enable_mgr=no +enable_ggi=no fi +else + echo "$ac_t""no" 1>&6 +enable_ggi=no fi -if test "$enable_rgip" = yes; then - cat >> confdefs.h <<\EOF -#define RGIP 1 -EOF + fi -if test "$enable_sun" = yes; then - echo $ac_n "checking for window_create in -lsuntool""... $ac_c" 1>&6 -echo "configure:4381: checking for window_create in -lsuntool" >&5 -ac_lib_var=`echo suntool'_'window_create | sed 'y%./+-%__p_%'` +# Check whether --enable-iris or --disable-iris was given. +if test "${enable_iris+set}" = set; then + enableval="$enable_iris" + if test "$enableval" = yes; then + echo $ac_n "checking for winopen in -lgl_s""... $ac_c" 1>&6 +echo "configure:4674: checking for winopen in -lgl_s" >&5 +ac_lib_var=`echo gl_s'_'winopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lsuntool -lsunwindow -lpixrect $LIBS" +LIBS="-lgl_s $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4411,48 +4704,82 @@ LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define SUN 1 + cat >> confdefs.h <<\EOF +#define IRIS 1 EOF - TERMLIBS="$TERMLIBS -lsuntool -lsunwindow -lpixrect" + + TERMLIBS="-lgl_s $TERMLIBS" else echo "$ac_t""no" 1>&6 - enable_sun=no +enable_iris=no fi + fi fi -if test "$enable_unixpc" = yes; then - cat > conftest.$ac_ext <&6 +echo "configure:4727: checking for m_getinfo in -lmgr" >&5 +ac_lib_var=`echo mgr'_'m_getinfo | sed 'y%./+-%__p_%'` +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 +else + ac_save_LIBS="$LIBS" +LIBS="-lmgr -lpixrect $LIBS" +cat > conftest.$ac_ext <&5 | - egrep "yes" >/dev/null 2>&1; then +if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +LIBS="$ac_save_LIBS" + +fi +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then + echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF -#define UNIXPC 1 +#define MGR 1 EOF + TERMLIBS="-lmgr -lpixrect $TERMLIBS" else - rm -rf conftest* - enable_unixpc=no + echo "$ac_t""no" 1>&6 +enable_mgr=no fi -rm -f conftest* + fi fi -if test "$enable_system_time" = yes; then - cat >> confdefs.h <<\EOF -#define USE_SYSTEM_TIME 1 + +# Check whether --enable-rgip or --disable-rgip was given. +if test "${enable_rgip+set}" = set; then + enableval="$enable_rgip" + if test "$enableval" = yes; then + cat >> confdefs.h <<\EOF +#define RGIP 1 EOF + fi fi @@ -4471,64 +4798,69 @@ echo "$ac_t"" Where is the help file? $gp_datadir/gnuplot.gih " 1>&6 -test "$ac_cv_header_gd_h" = yes && \ - echo "$ac_t"" Enable generation of GIF files." 1>&6 +if test "$ac_cv_header_gd_h" = yes; then + echo "$ac_t"" Enable generation of GIF files" 1>&6 +fi -test "$ac_cv_header_zlib_h" = yes && \ - echo "$ac_t"" Enable generation of PNG files." 1>&6 +if test "$ac_cv_header_pdflib_h" = yes; then + echo "$ac_t"" Enable generation of PDF files" 1>&6 +fi -test "$with_cwdrc" = yes && \ - echo "$ac_t"" Check current directory for .gnuplot file." 1>&6 +if test "$ac_cv_header_png_h" = yes; then + echo "$ac_t"" Enable generation of PNG files" 1>&6 +fi -if test "$with_gnu_readline" != no; then - echo "$ac_t"" Use GNU readline library." 1>&6 -else - test "$with_readline" != no && \ - echo "$ac_t"" Use included readline." 1>&6 +if test "$with_cwdrc" = yes; then + echo "$ac_t"" Check current directory for .gnuplot file" 1>&6 fi -if test "$with_plot" = yes; then - echo "$ac_t"" Use the Unix plot library." 1>&6 -elif test "$with_plot" != no; then - echo "$ac_t"" Use the GNU plot library." 1>&6 +if test "$with_readline" != no; then + if test "$with_readline" != yes; then + echo "$ac_t"" Use GNU readline library" 1>&6 + test -n "$gp_tcap" && echo "$ac_t"" with ${gp_tcap}" 1>&6 + else + echo "$ac_t"" Use builtin minimal readline" 1>&6 + fi fi -test "$with_lasergnu" = yes && \ - echo "$ac_t"" Install lasergnu printer script." 1>&6 +if test x"$with_plot" != x; then + if test "$with_plot" = yes; then + echo "$ac_t"" Use the Unix plot library" 1>&6 + else + echo "$ac_t"" Use the GNU plot library v2.2 or better" 1>&6 + fi +fi -test "$with_linux_vga" = yes && \ - echo "$ac_t"" Use the Linux console driver." 1>&6 +if test "$with_lasergnu" = yes; then + echo "$ac_t"" Install lasergnu printer script" 1>&6 +fi -test "$enable_apollo" = yes && \ - echo "$ac_t"" Enable Apollo terminal (resizeable window)." 1>&6 +if test "$with_linux_vga" = yes; then + echo "$ac_t"" Use the Linux SVGA console driver" 1>&6 + echo "$ac_t"" SECURITY NOTICE: SVGAlib requires that" 1>&6 + echo "$ac_t"" gnuplot is installed suid root!" 1>&6 +fi -test "$enable_cgi" = yes && \ - echo "$ac_t"" Enable cgi terminal (SCO)." 1>&6 +if test "$enable_ggi" = yes; then + echo "$ac_t"" Enable ggi terminal (EXPERIMENTAL)" 1>&6 +fi -test "$enable_gpr" = yes && \ - echo "$ac_t"" Enable Apollo terminal (fixed-size window)." 1>&6 +if test "$enable_iris" = yes; then + echo "$ac_t"" Enable IRIS terminal" 1>&6 +fi -test "$enable_iris" = yes && \ - echo "$ac_t"" Enable IRIS terminal." 1>&6 +if test "$enable_mgr" = yes; then + echo "$ac_t"" Enable MGR terminal" 1>&6 +fi -test "$enable_mgr" = yes && \ - echo "$ac_t"" Enable MGR terminal." 1>&6 +if test "$enable_rgip" = yes; then + echo "$ac_t"" Enable RGIP terminal" 1>&6 +fi -test "$enable_rgip" = yes && \ - echo "$ac_t"" Enable RGIP terminal." 1>&6 - -test "$enable_sun" = yes && \ - echo "$ac_t"" Enable sunview terminal." 1>&6 - -test "$enable_unixpc" = yes && \ - echo "$ac_t"" Enable unixpc terminal (ATT 3b1 or ATT 7300)." 1>&6 - -test "$enable_system_time" = yes && \ - echo "$ac_t"" Use system time routines in time.c." 1>&6 - -test "$no_x" != yes && \ - echo "$ac_t"" Use the X Window System. +if test "$no_x" != yes; then + echo "$ac_t"" Use the X Window System " 1>&6 +fi trap '' 1 2 15 cat > confcache <<\EOF @@ -4668,28 +5000,38 @@ s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@PACKAGE@%$PACKAGE%g s%@VERSION@%$VERSION%g +s%@EXEEXT@%$EXEEXT%g +s%@OBJEXT@%$OBJEXT%g s%@ACLOCAL@%$ACLOCAL%g s%@AUTOCONF@%$AUTOCONF%g s%@AUTOMAKE@%$AUTOMAKE%g s%@AUTOHEADER@%$AUTOHEADER%g s%@MAKEINFO@%$MAKEINFO%g +s%@AMTAR@%$AMTAR%g +s%@install_sh@%$install_sh%g +s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g +s%@AWK@%$AWK%g s%@SET_MAKE@%$SET_MAKE%g +s%@AMDEP_TRUE@%$AMDEP_TRUE%g +s%@AMDEP_FALSE@%$AMDEP_FALSE%g +s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g +s%@DEPDIR@%$DEPDIR%g s%@CC@%$CC%g +s%@am__include@%$am__include%g +s%@am__quote@%$am__quote%g +s%@CCDEPMODE@%$CCDEPMODE%g s%@CPP@%$CPP%g s%@U@%$U%g s%@ANSI2KNR@%$ANSI2KNR%g s%@ERRORFIX@%$ERRORFIX%g -s%@X_LIBRARIES@%$X_LIBRARIES%g +s%@LIBRARIES_FOR_X@%$LIBRARIES_FOR_X%g s%@GNUPLOT_X11@%$GNUPLOT_X11%g s%@X_CFLAGS@%$X_CFLAGS%g s%@X_PRE_LIBS@%$X_PRE_LIBS%g s%@X_LIBS@%$X_LIBS%g s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g -/@TERM_LIST@/r $TERM_LIST -s%@TERM_LIST@%%g s%@LASERGNU@%$LASERGNU%g s%@LINUXSUID@%$LINUXSUID%g -s%@NEXTOBJS@%$NEXTOBJS%g s%@TERMLIBS@%$TERMLIBS%g s%@TERMXLIBS@%$TERMXLIBS%g @@ -4901,11 +5243,72 @@ fi; done EOF cat >> $CONFIG_STATUS < "\$am_dir"stamp-h\$am_indx + ;; + esac + am_indx=\`expr \$am_indx + 1\` +done +AMDEP_TRUE="$AMDEP_TRUE" +ac_aux_dir="$ac_aux_dir" EOF cat >> $CONFIG_STATUS <<\EOF +test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h + +test x"$AMDEP_TRUE" != x"" || +for mf in $CONFIG_FILES; do + case "$mf" in + Makefile) dirpart=.;; + */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; + *) continue;; + esac + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue + # Extract the definition of DEP_FILES from the Makefile without + # running `make'. + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` + test -z "$DEPDIR" && continue + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n -e '/^U = / s///p' < "$mf"` + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" + # We invoke sed twice because it is the simplest approach to + # changing $(DEPDIR) to its actual value in the expansion. + for file in `sed -n -e ' + /^DEP_FILES = .*\\\\$/ { + s/^DEP_FILES = // + :loop + s/\\\\$// + p + n + /\\\\$/ b loop + p + } + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`echo "$file" | sed -e 's|/[^/]*$||'` + $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done + \ -test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h ; rm -f termlist +test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h exit 0 EOF chmod +x $CONFIG_STATUS