Source: netatalk
Version: 3.1.12~ds-5
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

netatalk fails to cross build from source, because it fails detecting
mysql libraries using mysql_config. During cross compilation,
mysql_config does not work. Please use pkg-config instead. I'm attaching
a patch that makes netatalk consult pkg-config before mysql_config.
Please consider applying it. Once done, netatalk fails like #973120.

Helmut
--- netatalk-3.1.12~ds.orig/macros/cnid-backend.m4
+++ netatalk-3.1.12~ds/macros/cnid-backend.m4
@@ -120,7 +120,9 @@
     )
 
     if test -z "$MYSQL_CONFIG" -a -z "$MYSQL_CFLAGS" -a -z "$MYSQL_LIBS" ; then
-        AC_PATH_PROG(MYSQL_CONFIG, mysql_config)
+	PKG_CHECK_MODULES([MYSQL],[mysqlclient],[],[
+          AC_PATH_PROG(MYSQL_CONFIG, mysql_config)
+        ])
     fi
 
     if test -x "$MYSQL_CONFIG" ; then

Reply via email to