diff -Nurd -x'*~' xplot-0.90.7.1.orig/Makefile.in xplot-0.90.7.1/Makefile.in --- xplot-0.90.7.1.orig/Makefile.in 2000-05-04 17:04:20.000000000 -0400 +++ xplot-0.90.7.1/Makefile.in 2018-05-05 23:50:34.000000000 -0400 @@ -37,8 +37,9 @@ DEFINES= CC= @CC@ -CFLAGS=@CFLAGS@ ${DEFINES} -LIBS= @LIBS@ +CFLAGS=@CFLAGS@ +CPPFLAGS=@CPPFLAGS@ ${DEFINES} +LIBS= @LDFLAGS@ @LIBS@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ @@ -49,8 +50,8 @@ exec_prefix = @exec_prefix@ -bindir = $(exec_prefix)/bin -mandir = $(exec_prefix)/man/man1 +bindir = ${DESTDIR}$(exec_prefix)/bin +mandir = ${DESTDIR}$(exec_prefix)/share/man/man1 CFILES= xplot.c version_string.c coord.c unsigned.c signed.c timeval.c double.c dtime.c OFILES= xplot.o version_string.o coord.o unsigned.o signed.o timeval.o double.o dtime.o @@ -62,9 +63,7 @@ all: ${PROG} ${PROG}: ${OFILES} - ${CC} ${CFLAGS} -o $@.new ${OFILES} ${LIBS} - -mv -f $@ $@.old - mv -f $@.new $@ + ${CC} ${CFLAGS} -o $@ ${OFILES} ${LIBS} version_string.c: version echo 'char *version_string = "'`cat version`'";' >version_string.c diff -Nurd -x'*~' xplot-0.90.7.1.orig/configure.in xplot-0.90.7.1/configure.in --- xplot-0.90.7.1.orig/configure.in 1998-06-18 13:50:40.000000000 -0400 +++ xplot-0.90.7.1/configure.in 2018-05-05 23:37:59.000000000 -0400 @@ -14,11 +14,11 @@ dnl This must be done BEFORE checking for the X libraries AC_PATH_XTRA LIBS="$LIBS $X_LIBS" -CFLAGS="$CFLAGS $X_CFLAGS" +CPPFLAGS="$CPPFLAGS $X_CFLAGS" dnl Checks for libraries. dnl Replace `main' with a function in -lX11: -AC_CHECK_LIB(X11, main) +AC_CHECK_LIB(X11, XOpenDisplay) dnl Replace `main' with a function in -lm: AC_CHECK_LIB(m, main) @@ -26,8 +26,21 @@ AC_C_INLINE AC_HEADER_STDC AC_HEADER_TIME - AC_STRUCT_TM + +AC_DEFUN([AC_TM_GMTOFF], +[AC_MSG_CHECKING([whether struct tm has tm_gmtoff]) +AC_CACHE_VAL(ac_cv_tm_gmtoff, +[AC_TRY_COMPILE([#include +#include ], +[struct tm *tp; tp->tm_gmtoff;], + ac_cv_tm_gmtoff=yes, ac_cv_tm_gmtoff=0)])dnl +AC_MSG_RESULT($ac_cv_tm_gmtoff) +if test $ac_cv_tm_gmtoff = yes; then + AC_DEFINE([TM_GMTOFF], 1, [Define if struct tm has gmtoff]) +fi +]) + AC_TM_GMTOFF dnl Checks for library functions. diff -Nurd -x'*~' xplot-0.90.7.1.orig/version_string.c xplot-0.90.7.1/version_string.c --- xplot-0.90.7.1.orig/version_string.c 1969-12-31 19:00:00.000000000 -0500 +++ xplot-0.90.7.1/version_string.c 2006-06-27 01:38:18.000000000 -0400 @@ -0,0 +1 @@ +char *version_string = "0.90.7.1"; diff -Nurd -x'*~' xplot-0.90.7.1.orig/xplot.1 xplot-0.90.7.1/xplot.1 --- xplot-0.90.7.1.orig/xplot.1 1999-02-04 12:49:57.000000000 -0500 +++ xplot-0.90.7.1/xplot.1 2006-06-27 01:46:32.000000000 -0400 @@ -103,9 +103,9 @@ .Pa demo.1, .Pa demo.2, etc., -stored with the -.Nm xplot -sources. +available in +.Pa @PREFIX@/share/doc/xplot +For your perusal. .Pa demo.0 lists all the commands. .Dl xplot demo.0