mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-02 15:45:25 +00:00
2381. [port] dlz/mysql: support multiple install layouts for
mysql. <prefix>/include/{,mysql/}mysql.h and <prefix>/lib/{,mysql/}. [RT #18152]
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
|||||||
|
2381. [port] dlz/mysql: support multiple install layouts for
|
||||||
|
mysql. <prefix>/include/{,mysql/}mysql.h and
|
||||||
|
<prefix>/lib/{,mysql/}. [RT #18152]
|
||||||
|
|
||||||
2380. [bug] dns_view_find() was not returning NXDOMAIN/NXRRSET
|
2380. [bug] dns_view_find() was not returning NXDOMAIN/NXRRSET
|
||||||
proofs which, in turn, caused validation failures
|
proofs which, in turn, caused validation failures
|
||||||
for insecure zones immediately below a secure zone
|
for insecure zones immediately below a secure zone
|
||||||
|
@@ -123,6 +123,8 @@ AC_ARG_WITH(dlz_mysql,
|
|||||||
(Required to use MySQL with DLZ)],
|
(Required to use MySQL with DLZ)],
|
||||||
use_dlz_mysql="$withval", use_dlz_mysql="no")
|
use_dlz_mysql="$withval", use_dlz_mysql="no")
|
||||||
|
|
||||||
|
mysql_include=""
|
||||||
|
mysql_lib=""
|
||||||
if test "$use_dlz_mysql" = "yes"
|
if test "$use_dlz_mysql" = "yes"
|
||||||
then
|
then
|
||||||
# User did not specify a path - guess it
|
# User did not specify a path - guess it
|
||||||
@@ -132,9 +134,49 @@ then
|
|||||||
if test -f $d/include/mysql/mysql.h
|
if test -f $d/include/mysql/mysql.h
|
||||||
then
|
then
|
||||||
use_dlz_mysql=$d
|
use_dlz_mysql=$d
|
||||||
|
mysql_include=$d/include/mysql
|
||||||
|
if test -d $d/lib/mysql
|
||||||
|
then
|
||||||
|
mysql_lib=$d/lib/mysql
|
||||||
|
else
|
||||||
|
mysql_lib=$d/lib
|
||||||
|
fi
|
||||||
|
break
|
||||||
|
elif test -f $d/include/mysql.h
|
||||||
|
then
|
||||||
|
use_dlz_mysql=$d
|
||||||
|
mysql_include=$d/include
|
||||||
|
if test -d $d/lib/mysql
|
||||||
|
then
|
||||||
|
mysql_lib=$d/lib/mysql
|
||||||
|
else
|
||||||
|
mysql_lib=$d/lib
|
||||||
|
fi
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
elif test "$use_dlz_mysql" != "no"
|
||||||
|
then
|
||||||
|
d = $use_dlz_mysql
|
||||||
|
if test -f $d/include/mysql/mysql.h
|
||||||
|
then
|
||||||
|
mysql_include=$d/include/mysql
|
||||||
|
if test -d $d/lib/mysql
|
||||||
|
then
|
||||||
|
mysql_lib=$d/lib/mysql
|
||||||
|
else
|
||||||
|
mysql_lib=$d/lib
|
||||||
|
fi
|
||||||
|
elif test -f $d/include/mysql.h
|
||||||
|
then
|
||||||
|
mysql_include=$d/include
|
||||||
|
if test -d $d/lib/mysql
|
||||||
|
then
|
||||||
|
mysql_lib=$d/lib/mysql
|
||||||
|
else
|
||||||
|
mysql_lib=$d/lib
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$use_dlz_mysql" = "yes"
|
if test "$use_dlz_mysql" = "yes"
|
||||||
@@ -150,11 +192,11 @@ case "$use_dlz_mysql" in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
DLZ_ADD_DRIVER(MYSQL, dlz_mysql_driver,
|
DLZ_ADD_DRIVER(MYSQL, dlz_mysql_driver,
|
||||||
[-I$use_dlz_mysql/include/mysql],
|
[-I${mysql_include}],
|
||||||
[-L$use_dlz_mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm])
|
[-L${mysql_lib} -lmysqlclient -lz -lcrypt -lm])
|
||||||
|
|
||||||
AC_MSG_RESULT(
|
AC_MSG_RESULT(
|
||||||
[using mysql from $use_dlz_mysql/lib/mysql and $use_dlz_mysql/include/mysql])
|
[using mysql from ${mysql_lib} and ${mysql_include}])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user