X-Git-Url: http://git.home-dn.net/?p=manu%2Flibnss-mysql-bg.git;a=blobdiff_plain;f=debian%2Fpatches%2F05_fix_acinclude;fp=debian%2Fpatches%2F05_fix_acinclude;h=357314b906789a0a749bed5bb4f5da3ea5484eea;hp=0000000000000000000000000000000000000000;hb=9895664b909eb089f2e01a7eeffd0bce0e0d747b;hpb=ad2a46c07cb3ccc0898a94925ead1800820de018 diff --git a/debian/patches/05_fix_acinclude b/debian/patches/05_fix_acinclude new file mode 100644 index 0000000..357314b --- /dev/null +++ b/debian/patches/05_fix_acinclude @@ -0,0 +1,32 @@ +Index: libnss-mysql-bg-1.5/acinclude.m4 +=================================================================== +--- libnss-mysql-bg-1.5.orig/acinclude.m4 2012-04-18 10:20:01.205313859 +0200 ++++ libnss-mysql-bg-1.5/acinclude.m4 2012-04-18 11:18:19.681344131 +0200 +@@ -50,6 +50,7 @@ + fi + + AC_MSG_CHECKING([for MySQL libraries]) ++ + dnl Check for share first, then static, such that static + dnl will take precedence + for f in $baselist; do +@@ -80,6 +81,19 @@ + fi + done + ++dnl Get dir from mysql_config (for multi-arch libs) ++MYSQL_CONFIG=`which mysql_config` ++if test -n "$MYSQL_CONFIG" -a -x "$MYSQL_CONFIG" ++then ++ MYSQL_LIB_DIR=`$MYSQL_CONFIG --variable=pkglibdir` ++dnl Old versions of mysql_config does not have "--variable" option ++ if test $? -ne 0 ++ then ++ MYSQL_LIB_DIR=`mysql_config --libs | sed 's/^.*-L\([^ ]\+\).*$/\1/'` ++ fi ++fi ++ ++ + if test -n "$MYSQL_LIB_DIR" + then + AC_MSG_RESULT([$MYSQL_LIB_DIR])