From e544ce8f82cccef9e4328217b20c44a5b9d4a27d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 23 Feb 2015 22:34:53 +0000 Subject: [PATCH] Update AX_PATH_GENERIC for spaces support Fix when the _CFLAGS and _LIBS are provided and they contain a space For example: ./configure PCRE_LIBS='-L/home/me/pcre/lib -lpcre' Serial number 13 in autoconf macro archive --- Tools/config/ax_path_generic.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/config/ax_path_generic.m4 b/Tools/config/ax_path_generic.m4 index 6960d612a..f77fc78d6 100644 --- a/Tools/config/ax_path_generic.m4 +++ b/Tools/config/ax_path_generic.m4 @@ -69,7 +69,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 11 +#serial 13 AU_ALIAS([AC_PATH_GENERIC], [AX_PATH_GENERIC]) AC_DEFUN([AX_PATH_GENERIC],[ @@ -89,7 +89,7 @@ AC_DEFUN([AX_PATH_GENERIC],[ AC_ARG_VAR(UP[]_CFLAGS, [CFLAGS used for $1]) AC_ARG_VAR(UP[]_LIBS, [LIBS used for $1]) - AS_IF([test x$UP[]_CFLAGS != x -o x$UP[]_LIBS != x],[ + AS_IF([test x"$UP[]_CFLAGS" != x -o x"$UP[]_LIBS" != x],[ dnl Don't run config script at all, use user-provided values instead. AC_SUBST(UP[]_CFLAGS) AC_SUBST(UP[]_LIBS)