1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Index: xplot-xplot.org/configure.in
===================================================================
--- xplot-xplot.org.orig/configure.in
+++ xplot-xplot.org/configure.in
@@ -1,10 +1,11 @@
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(xplot.c)
-AC_CONFIG_HEADER(config.h)
+AC_INIT
+AC_CONFIG_SRCDIR([xplot.c])
+AC_CONFIG_HEADERS([config.h])
dnl Checks for programs.
AC_PROG_CC
-if test $ac_cv_prog_gcc = yes; then
+if test $ac_cv_c_compiler_gnu = yes; then
CFLAGS="$CFLAGS -Wall"
fi
@@ -24,13 +25,11 @@ AC_CHECK_LIB(m, main)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
-AC_HEADER_STDC
-AC_HEADER_TIME
AC_STRUCT_TM
-AC_TM_GMTOFF
dnl Checks for library functions.
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
Index: xplot-xplot.org/acconfig.h
===================================================================
--- xplot-xplot.org.orig/acconfig.h
+++ /dev/null
@@ -1,2 +0,0 @@
-/* Define if your struct tm has gmtoff */
-#undef HAVE_TM_GMTOFF
Index: xplot-xplot.org/xplot.h
===================================================================
--- xplot-xplot.org.orig/xplot.h
+++ xplot-xplot.org/xplot.h
@@ -42,11 +42,7 @@ to preserve same.
#error xplot requires X11
#endif
-#ifdef STDC_HEADERS
#include <stdlib.h>
-#else
-#include <malloc.h>
-#endif
#ifdef HAVE_LIBM
#include <math.h>
|