Section: admin
Priority: optional
Maintainer: Emmanuel Lacour <elacour@home-dn.net>
-Build-Depends: debhelper (>= 7.0.50~), libmysqlclient15-dev, quilt (>= 0.40), autotools-dev
+Build-Depends: debhelper (>= 7.0.50~), libmysqlclient15-dev, quilt (>= 0.40), autotools-dev, dh-autoreconf
Standards-Version: 3.9.3
Package: libnss-mysql-bg
--- /dev/null
+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])
#export DH_VERBOSE=1
%:
- dh $@ --with quilt,autotools-dev
+ dh $@ --with quilt,autotools-dev,autoreconf
override_dh_install:
dh_install