From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: pkg-config support for guile Date: 27 Feb 2003 10:21:20 -0500 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <87of50tdcz.fsf@raven.i.defaultvalue.org> <873cmbpyij.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1046359650 16870 80.91.224.249 (27 Feb 2003 15:27:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 15:27:30 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oPwB-0004MO-00 for ; Thu, 27 Feb 2003 16:27:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oPuf-0002GK-00 for guile-devel@m.gmane.org; Thu, 27 Feb 2003 10:25:33 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oPtk-0001nL-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 10:24:36 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oPtC-0001Sr-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 10:24:09 -0500 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oPqb-0000OY-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 10:21:21 -0500 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id DC34D861; Thu, 27 Feb 2003 10:21:20 -0500 (EST) Original-To: Rob Browning In-Reply-To: Original-Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:1991 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1991 --=-=-= Here is a patch against guile-1.6.1 to add pkg-config support. This is noninvasive - it doesn't require pkg-config to be installed to build guile, or even to run the autogen.sh. pkg-config haters, should there be any, will just see a small turd in $(prefix)/lib/pkgconfig/guile.pc. The file won't be useful without pkg-config installed, of course, but this gives users a choice of configuration means. I have not tested building programs using pkgconfig instead of guile-config, but they give almost the same output (pkgconfig moves all the -L to the front, and allows one to ask for -L separate from -l). Greg Troxel --=-=-= Content-Disposition: attachment; filename=guile-pkgconfig Content-Description: pkgconfig support for guile 1.6 Index: Makefile.am =================================================================== RCS file: /QUIST-CVS/guile/Makefile.am,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 Makefile.am --- Makefile.am 2002/12/07 22:41:28 1.1.1.3 +++ Makefile.am 2003/02/27 14:36:25 @@ -29,7 +29,7 @@ include_HEADERS = libguile.h EXTRA_DIST = HACKING GUILE-VERSION ANON-CVS SNAPSHOTS \ - $(ACLOCAL) BUGS README-PACKAGING + $(ACLOCAL) BUGS README-PACKAGING guile.pc.in TESTS = check-guile @@ -37,5 +37,8 @@ # The rule will cd to $(top_srcdir). ACLOCAL = ./guile-aclocal.sh + +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = guile.pc # Makefile.am ends here Index: configure.in =================================================================== RCS file: /QUIST-CVS/guile/configure.in,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 configure.in --- configure.in 2002/12/08 01:48:52 1.1.1.3 +++ configure.in 2003/02/27 14:37:37 @@ -745,6 +745,8 @@ AC_CONFIG_FILES([libguile/guile-snarf-docs], [chmod +x libguile/guile-snarf-docs]) +AC_CONFIG_FILES([guile.pc]) + AC_OUTPUT dnl Local Variables: Index: guile.pc.in =================================================================== RCS file: guile.pc.in diff -N guile.pc.in --- /dev/null Thu Feb 27 03:35:16 2003 +++ guile.pc.in Thu Feb 27 09:37:37 2003 @@ -0,0 +1,12 @@ +# pkgconfig file for guile +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: guile +Version: 1.6 +Description: guile extension language +Requires: +Libs: -L${libdir} -lguile -lguile-ltdl @LDFLAGS@ @LIBS@ +Cflags: -I${includedir} --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel --=-=-=--