From: Peter van Dijk Date: Mon, 12 Jan 2015 15:47:57 +0000 (+0100) Subject: use = instead of == in shell tests, this makes the configure 'Portability.' patch... X-Git-Tag: rec-3.7.0-rc2~28^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14cd37570e6772dc2bd866f503302c5eb46c7f11;p=pdns use = instead of == in shell tests, this makes the configure 'Portability.' patch from pkgsrc obsolete --- diff --git a/m4/pdns_with_mysql.m4 b/m4/pdns_with_mysql.m4 index 10b22890a..8bfe29103 100644 --- a/m4/pdns_with_mysql.m4 +++ b/m4/pdns_with_mysql.m4 @@ -38,7 +38,7 @@ AC_DEFUN([PDNS_WITH_MYSQL],[ MYSQL_config="" if test "x$MYSQL_config_check" != "xskip"; then - if test "x$MYSQL_config_check" == "x"; then + if test "x$MYSQL_config_check" = "x"; then AC_PATH_PROG([MYSQL_config], [mysql_config]) else AC_MSG_CHECKING([for $MYSQL_config_check]) diff --git a/m4/pdns_with_postgresql.m4 b/m4/pdns_with_postgresql.m4 index cbf538ec7..d8655adda 100644 --- a/m4/pdns_with_postgresql.m4 +++ b/m4/pdns_with_postgresql.m4 @@ -27,7 +27,7 @@ AC_DEFUN([PDNS_WITH_POSTGRESQL],[ [location of pg_config] ), [PGSQL_pg_config="$withval" - if test "x$PGSQL_pg_config" == "xyes" || test ! -x "$PGSQL_pg_config"; then + if test "x$PGSQL_pg_config" = "xyes" || test ! -x "$PGSQL_pg_config"; then AC_MSG_ERROR([--with-pgsql-config must provide a valid path to pg_config executable]) fi ], @@ -35,20 +35,20 @@ AC_DEFUN([PDNS_WITH_POSTGRESQL],[ ) if test "x$PGSQL_pg_config" != "x"; then - if test "x$PGSQL_lib_check" == "x"; then + if test "x$PGSQL_lib_check" = "x"; then PGSQL_lib_check=$($PGSQL_pg_config --libdir) fi - if test "x$PGSQL_inc_check" == "x"; then + if test "x$PGSQL_inc_check" = "x"; then PGSQL_inc_check=$($PGSQL_pg_config --includedir) fi PGSQL_CFLAGS= fi - if test "x$PGSQL_lib_check" == "x"; then + if test "x$PGSQL_lib_check" = "x"; then PGSQL_lib_check="/usr/local/pgsql/lib/pgsql /usr/local/lib/pgsql /opt/pgsql/lib/pgsql /usr/lib/pgsql /usr/local/pgsql/lib /usr/local/lib /opt/pgsql/lib /usr/lib /usr/lib64 $full_libdir" fi - if test "x$PGSQL_inc_check" == "x"; then + if test "x$PGSQL_inc_check" = "x"; then PGSQL_inc_check="/usr/local/pgsql/include/pgsql /usr/include /usr/local/include/postgresql/ /usr/local/include /opt/pgsql/include/pgsql /opt/pgsql/include /usr/include/pgsql/ /usr/include/postgresql" fi