* acinclude.m4: Improve formatting.
* configure.ac: Ditto. Don't check for headers whose presence is
never tested. Don't use AC_C_CONST (we can assume that "const" is
implemented these days). Don't pass default sizes to
AC_CHECK_SIZEOF, since modern Autoconf doesn't need them. Don't
define FPREP_IEEE754, since it was not tested for. Don't use
AC_FUNC_VPRINTF, since we never tested for it.
* float-format.h (enum float_format): Don't check for
FPREP_IEEE754 macro any longer.
* magic.h: Ditto.
* src/ui/debugger.c: Use debugger if HAVE_FORK is defined, not
HAVE_SYS_TYPES_H. The latter is almost universal, but the former
is only available where it can be implemented.
+2007-10-10 Ben Pfaff <blp@gnu.org>
+
+ * acinclude.m4: Improve formatting.
+
+ * configure.ac: Ditto. Don't check for headers whose presence is
+ never tested. Don't use AC_C_CONST (we can assume that "const" is
+ implemented these days). Don't pass default sizes to
+ AC_CHECK_SIZEOF, since modern Autoconf doesn't need them. Don't
+ define FPREP_IEEE754, since it was not tested for. Don't use
+ AC_FUNC_VPRINTF, since we never tested for it.
+
2007-10-06 John Darrington <john@darrington.wattle.id.au>
* configure.ac INSTALL: Change libglade version requirement.
dnl Check that libplot is available.
AC_DEFUN([PSPP_LIBPLOT],
[
- AC_ARG_WITH(libplot, [ --without-libplot don't compile in support of charts (using libplot)])
+ AC_ARG_WITH(
+ libplot,
+ [AS_HELP_STRING([--without-libplot],
+ [don't compile in support of charts (using libplot)])])
if test x"$with_libplot" != x"no" ; then
# Check whether we can link against libplot without any extra libraries.
AM_CONDITIONAL(WITHCHARTS, test x"$with_libplot" != x"no")
-AC_ARG_WITH(gui, [ --without-gui don't build the PSPPIRE gui])
+AC_ARG_WITH(
+ gui,
+ [AS_HELP_STRING([--without-gui], [don't build the PSPPIRE gui])])
if test x"$with_gui" != x"no" ; then
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0,,
fi
AM_CONDITIONAL(WITHGUI, test x"$with_gui" != x"no")
-AC_ARG_WITH(gui_tools, [ --with-gui-tools build the gui developer tools])
+AC_ARG_WITH(
+ gui_tools,
+ [AS_HELP_STRING([--with-gui-tools], [build the gui developer tools])])
if test x"$with_gui_tools" = x"yes" ; then
PKG_CHECK_MODULES(GLADE_UI, gladeui-1.0)
fi
PSPP_READLINE
dnl Checks for header files.
-AC_CHECK_HEADERS([limits.h memory.h sys/stat.h sys/time.h sys/types.h \
- fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h] )
+AC_CHECK_HEADERS([sys/wait.h fpu_control.h ieeefp.h fenv.h])
# For gnulib.
gl_INIT
-AC_C_CONST
AC_C_INLINE
dnl Dont use AC_TYPE_OFF_T --- it doesnt generate the HAVE_TYPE macro
AC_CHECK_TYPES(off_t)
-AC_CHECK_SIZEOF(float, 0)
-AC_CHECK_SIZEOF(double, 8)
-AC_CHECK_SIZEOF(long double, 0)
-
-AC_DEFINE(FPREP_IEEE754, 1,
- [Define for machines that have IEEE 754 floating point arithmetic,
- the most common format today.])
+AC_CHECK_SIZEOF(float)
+AC_CHECK_SIZEOF(double)
+AC_CHECK_SIZEOF(long double)
AC_C_BIGENDIAN
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([__setfpucw execl fork isinf isnan finite getpid feholdexcept fpsetmask popen round trunc])
+AC_CHECK_FUNCS([__setfpucw fork execl execlp isinf isnan finite getpid feholdexcept fpsetmask popen round trunc])
AC_PROG_LN_S
dnl This is needed otherwise --with-included-gettext fails
AH_BOTTOM([#include <locale.h>])
-AC_ARG_ENABLE(debug, [ --enable-debug Turn on diagnostic features in the program])
+AC_ARG_ENABLE(
+ debug,
+ [AS_HELP_STRING([--enable-debug],
+ [Turn on diagnostic features in the program])])
if test x"$enable_debug" = x"yes" ; then
AC_DEFINE(DEBUGGING, 1, [Define to 1 if debugging is enabled.])
fi
+2007-10-10 Ben Pfaff <blp@gnu.org>
+
+ We assume IEEE-754 now.
+
+ * float-format.h (enum float_format): Don't check for
+ FPREP_IEEE754 macro any longer.
+
+ * magic.h: Ditto.
+
2007-09-16 Ben Pfaff <blp@gnu.org>
* copyleft.c: Add trailing new-lines to lack-of-warranty
FLOAT_FP, /* Neutral intermediate format. */
FLOAT_HEX, /* C99 hexadecimal floating constant. */
-#ifdef FPREP_IEEE754
#ifdef WORDS_BIGENDIAN
FLOAT_NATIVE_FLOAT = FLOAT_IEEE_SINGLE_BE,
FLOAT_NATIVE_DOUBLE = FLOAT_IEEE_DOUBLE_BE,
FLOAT_NATIVE_DOUBLE = FLOAT_IEEE_DOUBLE_LE,
FLOAT_NATIVE_32_BIT = FLOAT_IEEE_SINGLE_LE,
FLOAT_NATIVE_64_BIT = FLOAT_IEEE_DOUBLE_LE
-#endif
-#else
-#error Only IEEE-754 floating point currently supported for PSPP hosts.
#endif
};
#include <float.h>
#include <limits.h>
-/* Check that the floating-point representation is one that we
- understand. */
-#ifndef FPREP_IEEE754
-#error Only IEEE-754 floating point currently supported.
-#endif
-
/* Allows us to specify individual bytes of a double. */
union cvt_dbl {
unsigned char cvt_dbl_i[8];
+2007-10-10 Ben Pfaff <blp@gnu.org>
+
+ * src/ui/debugger.c: Use debugger if HAVE_FORK is defined, not
+ HAVE_SYS_TYPES_H. The latter is almost universal, but the former
+ is only available where it can be implemented.
+
2007-06-06 Ben Pfaff <blp@gnu.org>
Adapt case sources, sinks, and clients of procedure code to the
#include "debugger.h"
-#if HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H
+#if HAVE_FORK && HAVE_EXECLP
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
exit (EXIT_FAILURE);
}
-#else /* !(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H) */
+#else /* !(HAVE_FORK && HAVE_EXECLP) */
/* Don't know how to connect to gdb.
Just return.
*/
connect_debugger (void)
{
}
-#endif /* !(HAVE_SYS_TYPES_H && HAVE_SYS_WAIT_H) */
+#endif /* !(HAVE_FORK && HAVE_EXECLP) */