From ce0a01e9adbc6fc4c906aa3ce87cc896e64cb9c6 Mon Sep 17 00:00:00 2001 From: Szymon Siwek Date: Tue, 27 Oct 2009 22:08:48 +0000 Subject: [PATCH] - 3store.pc and 3store-config should know about glib-2.0 --cflags-only-I (or should it be full --cflags?) Changed files: glib2.patch -> 1.2 --- glib2.patch | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/glib2.patch b/glib2.patch index 51b129d..1693fb4 100644 --- a/glib2.patch +++ b/glib2.patch @@ -1,6 +1,6 @@ --- 3store-2.2.22/configure.in.orig 2009-10-26 14:54:36.757604429 +0100 +++ 3store-2.2.22/configure.in 2009-10-26 15:02:47.223895797 +0100 -@@ -45,10 +45,7 @@ +@@ -45,10 +45,9 @@ if test "$MYSQL_CONFIG" = false; then AC_MSG_ERROR([Can't find mysql_config - are MySQL and the development tools installed?]) fi @@ -9,6 +9,8 @@ - AC_MSG_ERROR([Can't find glib-config - You need to install libglib (and appropriate -devel package if using packages)]) -fi +PKG_CHECK_MODULES(GLIB, glib-2.0) ++GLIB_INCLUDEDIR=`pkg-config --cflags-only-I glib-2.0` ++AC_SUBST([GLIB_INCLUDEDIR]) AC_PATH_PROG([RAPTOR_CONFIG], [raptor-config], [false], [$PATH:/sbin:/usr/sbin:/usr/local/sbin]) if test "$RAPTOR_CONFIG" = false; then AC_MSG_ERROR([Can't find raptor-config - You need to install libraptor 0.9.10+ from http://www.redland.opensource.ac.uk/raptor/]) @@ -22,3 +24,25 @@ MYSQL_LIBS=`$MYSQL_CONFIG --libs` MYSQL_CFLAGS=`$MYSQL_CONFIG --cflags` +--- 3store-2.2.22/3store.pc.in.orig 2009-10-27 22:28:58.364827273 +0100 ++++ 3store-2.2.22/3store.pc.in 2009-10-27 22:38:52.324005811 +0100 +@@ -7,4 +7,4 @@ + Version: @VERSION@ + Description: A fast, persistant RDF knowledgebase + Libs: -L${libdir} -lrdfsql +-Cflags: -I${includedir} ++Cflags: -I${includedir} @GLIB_INCLUDEDIR@ +--- 3store-2.2.22/3store-config.in.orig 2009-10-27 22:52:05.769474111 +0100 ++++ 3store-2.2.22/3store-config.in 2009-10-27 22:52:56.765969239 +0100 +@@ -29,9 +29,9 @@ + version=@VERSION@ + + if test @includedir@ != /usr/include ; then +- cflags=-I@includedir@ ++ cflags="-I@includedir@ @GLIB_INCLUDEDIR@" + else +- cflags='' ++ cflags="@GLIB_INCLUDEDIR@" + fi + + opts=`getopt -n 3store-config -a -u -l 'prefix,exec-prefix,bindir,libs,cflags,version,help' '' -- $*` -- 2.43.0