瀏覽代碼

configure: support MariaDB Connector/C

If libmariadb is installed from the MariaDB server package, the pc file
is "mariadb.pc". But when MariaDB Connector/C is used, it's actually
"libmariadb.pc". This commit adds the latter to the detection.

Signed-off-by: Sebastian Kemper <[email protected]>
Sebastian Kemper 3 年之前
父節點
當前提交
10c91c65a3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      configure

+ 1 - 1
configure

@@ -945,7 +945,7 @@ fi
 ###########################
 
 if [ -z "${TURN_NO_MYSQL}" ] ; then
-    if testpkg_db mariadb || testpkg_db mysqlclient || test_mysql_config; then
+    if testpkg_db libmariadb || testpkg_db mariadb || testpkg_db mysqlclient || test_mysql_config; then
         ${ECHO_CMD} "MySQL found."
     else
         ${ECHO_CMD} "MySQL not found. Building without MySQL support."