[Groonga-commit] pgroonga/pgroonga at b5bb2c3 [master] Add Groonga version check

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Sep 27 18:32:20 JST 2015


Kouhei Sutou	2015-09-27 18:32:20 +0900 (Sun, 27 Sep 2015)

  New Revision: b5bb2c31472f739274278c5e38eba62bc2d0da39
  https://github.com/pgroonga/pgroonga/commit/b5bb2c31472f739274278c5e38eba62bc2d0da39

  Message:
    Add Groonga version check

  Modified files:
    Makefile

  Modified: Makefile (+6 -3)
===================================================================
--- Makefile    2015-09-27 18:14:40 +0900 (3e29788)
+++ Makefile    2015-09-27 18:32:20 +0900 (73caae9)
@@ -1,3 +1,6 @@
+REQUIRED_GROONGA_VERSION = 5.0.7 # TODO: Update to 5.0.8
+GROONGA_PKG = "groonga >= $(REQUIRED_GROONGA_VERSION)"
+
 MODULE_big = pgroonga
 SRCS =						\
 	pgroonga.c				\
@@ -10,15 +13,15 @@ EXTENSION_VERSION =						\
 DATA =						\
 	pgroonga--$(EXTENSION_VERSION).sql	\
 	$(shell echo pgroonga--*--*.sql)
-PG_CPPFLAGS = $(shell pkg-config --cflags groonga)
-SHLIB_LINK = $(shell pkg-config --libs groonga) -lm
+PG_CPPFLAGS = $(shell pkg-config --cflags $(GROONGA_PKG))
+SHLIB_LINK = $(shell pkg-config --libs $(GROONGA_PKG)) -lm
 REGRESS = $(shell find sql -name '*.sql' | sed -e 's,\(^sql/\|\.sql$$\),,g')
 REGRESS_OPTS = --load-extension=pgroonga
 
 COPT += -Ivendor/xxHash
 ifdef DEBUG
 COPT += -O0 -g3 -DPGROONGA_DEBUG=1
-SHLIB_LINK += -Wl,--rpath=$(shell pkg-config --libs-only-L groonga | sed -e 's/^-L//')
+SHLIB_LINK += -Wl,--rpath=$(shell pkg-config --libs-only-L $(GROONGA_PKG) | sed -e 's/^-L//')
 endif
 
 PG_CONFIG = pg_config
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index