[341] in Hesiod

home help back first fref pref prev next nref lref last post

PATCH: hesiod3.0.0

daemon@ATHENA.MIT.EDU (Larry Schwimmer)
Thu Dec 19 07:42:19 1996

Date: Thu, 19 Dec 1996 04:41:52 -0800 (PST)
From: Larry Schwimmer <rosebud@cyclone.Stanford.EDU>
To: hesiod@MIT.EDU

	I have two small patches for hesiod 3.0.0.

1) Makefile.in

	* distclean missed config.h
	* Install binaries so they can be stripped.  Mode 755
	  is pretty standard for packages.
	* honor CFLAGS passed to configure.

2) configure.in

	* Default CFLAGS to -g if not passed to configure.  This
	  keeps the old default while allowing people who wish to
	  override it a simple way to do so without having to edit
	  code.

			yours,
				Larry Schwimmer
				schwim@cyclone.stanford.edu
				Distributed Computing Operations

--- Makefile.in.orig	Sun Dec  8 13:23:52 1996
+++ Makefile.in	Thu Dec 19 04:26:09 1996
@@ -19,7 +19,7 @@
 lbindir=@lbindir@
 
 CFLAGS=-I. ${CDEBUGFLAGS} -DSYSCONFDIR=\"${sysconfdir}\"
-CDEBUGFLAGS=-g
+CDEBUGFLAGS=@CFLAGS@
 OBJS=hesiod.o hesmailhost.o hespwnam.o hesservbyname.o hescompat.o
 
 all: libhesiod.a hesinfo hestest
@@ -50,7 +50,7 @@
 	${INSTALL} -c -m 644 libhesiod.a ${DESTDIR}${libdir}
 	${RANLIB} ${DESTDIR}${libdir}/libhesiod.a
 	chmod u-w ${DESTDIR}${libdir}/libhesiod.a
-	${INSTALL_PROGRAM} -c -m 555 hesinfo ${DESTDIR}${lbindir}
+	${INSTALL_PROGRAM} -c -m 755 hesinfo ${DESTDIR}${lbindir}
 	${INSTALL} -c -m 444 ${srcdir}/hesiod.h ${DESTDIR}${includedir}
 	${INSTALL} -c -m 444 ${srcdir}/hesinfo.1 ${DESTDIR}${mandir}/man1
 	${INSTALL} -c -m 444 ${srcdir}/hesiod.3 ${DESTDIR}${mandir}/man3
@@ -83,4 +83,4 @@
 	rm -f ${OBJS} libhesiod.a hesinfo.o hesinfo hestest.o hestest
 
 distclean: clean
-	rm -f config.cache config.log config.status Makefile
+	rm -f config.cache config.log config.status Makefile config.h
--- configure.in.orig	Sun Dec  8 13:27:59 1996
+++ configure.in	Thu Dec 19 04:13:40 1996
@@ -1,6 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(hesiod.c)
 
+test -z "$CFLAGS" && CFLAGS=-g AC_SUBST(CFLAGS)
 test -z "$lbindir" && lbindir='${bindir}'
 AC_SUBST(lbindir)
 

home help back first fref pref prev next nref lref last post