Hi,

Here's another patch which should improve mysql include/libs detection with 
fallback to the old method.

Btw. this and my other mysql patch was done against openser-1.2.0. Should 
apply nicely to 1.2.1 though.

-- 
Regards,
Tais M. Hansen
Change Networks

___________________________________________________________
http://www.linkedin.com/in/thansen
Index: modules/mysql/Makefile
===================================================================
--- modules/mysql/Makefile	(revision 121)
+++ modules/mysql/Makefile	(working copy)
@@ -6,6 +6,11 @@
 auto_gen=
 NAME=mysql.so
 
+MYSQLCFG = $(shell which mysql_config)
+ifdef MYSQLCFG
+DEFS += $(shell $(MYSQLCFG) --include)
+LIBS = $(shell $(MYSQLCFG) --libs)
+else
 # mysql.h locations (freebsd,openbsd  solaris)
 DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/mysql \
 		-I$(LOCALBASE)/mysql/include/mysql -I$(LOCALBASE)/mysql/include \
@@ -18,5 +23,6 @@
 		-L$(LOCALBASE)/mysql/lib \
 		-L$(SYSBASE)/lib64/mysql \
 		-lm -lmysqlclient -lz
+endif
 
 include ../../Makefile.modules

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to