source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Do not hardcode stuff in ./configure that is actually
@ 2014-08-08 23:47 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-08-08 23:47 UTC (permalink / raw)
  To: source

Log Message:
-----------
Do not hardcode stuff in ./configure that is actually user-configurable
in the Makefile; instead, pass it down via the environment just
like CFLAGS.
Nice suggestion from kristaps@ hoping to make MacOS X happier.

Modified Files:
--------------
    mdocml:
        Makefile
        configure

Revision Data
-------------
Index: configure
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/configure,v
retrieving revision 1.6
retrieving revision 1.7
diff -Lconfigure -Lconfigure -u -p -r1.6 -r1.7
--- configure
+++ configure
@@ -33,10 +33,9 @@ echo "#define VERSION \"${VERSION}\""
 runtest fgetln FGETLN
 runtest getsubopt GETSUBOPT
 runtest mmap MMAP
-runtest ohash OHASH -lutil
+runtest ohash OHASH "${DBLIB}"
 runtest reallocarray REALLOCARRAY
-runtest sqlite3_errstr SQLITE3_ERRSTR \
-	"-I/usr/local/include -L/usr/local/lib -lsqlite3"
+runtest sqlite3_errstr SQLITE3_ERRSTR "${DBLIB}"
 runtest strcasestr STRCASESTR
 runtest strlcat STRLCAT
 runtest strlcpy STRLCPY
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.433
retrieving revision 1.434
diff -LMakefile -LMakefile -u -p -r1.433 -r1.434
--- Makefile
+++ Makefile
@@ -488,7 +488,8 @@ mdocml.tar.gz: $(DISTFILES)
 
 config.h: configure config.h.pre config.h.post $(TESTSRCS)
 	rm -f config.log
-	CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure
+	CC="$(CC)" CFLAGS="$(CFLAGS)" DBLIB="$(DBLIB)" \
+		VERSION="$(VERSION)" ./configure
 
 .PHONY: 	 base-install cgi-install db-install install www-install
 .PHONY: 	 clean depend
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-08 23:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 23:47 mdocml: Do not hardcode stuff in ./configure that is actually schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).