Commit 722abaec authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[5567] Re-add support for --with-dhcp-mysql and --with-dhcp-pgsql

configure.ac
  Re-added support --with-dhcp-mysql and --with-dhcp-pgsql but emit a
  deprecation warning message encouraging their replacement with
  --with-mysql and --with-pgsql.
parent e82693dd
......@@ -646,6 +646,14 @@ AC_ARG_WITH([mysql],
[path to the MySQL 'mysql_config' script (MySQL is used for the DHCP database)]),
[mysql_config="$withval"])
deprec_msg="no"
AC_ARG_WITH([dhcp-mysql],,
[mysql_config="$withval";deprec_msg="yes"])
if test "${deprec_msg}" = "yes" ; then
AC_MSG_WARN([--with-dhcp-mysql has been deprecated, please use --with-mysql])
fi
if test "${mysql_config}" = "yes" ; then
MYSQL_CONFIG="/usr/bin/mysql_config"
elif test "${mysql_config}" != "no" ; then
......@@ -700,6 +708,14 @@ AC_ARG_WITH([pgsql],
[path to the PostgreSQL 'pg_config' script]),
[pg_config="$withval"])
deprec_msg="no"
AC_ARG_WITH([dhcp-pgsql],,
[pg_config="$withval";deprec_msg="yes"])
if test "${deprec_msg}" = "yes" ; then
AC_MSG_WARN([--with-dhcp-pgsql has been deprecated, please use --with-pgsql])
fi
if test "${pg_config}" = "yes" ; then
PG_CONFIG="/usr/bin/pg_config"
elif test "${pg_config}" != "no" ; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment