changeset 156:3af7523b395a

build: Properly quote AC_LANG_PROGRAM body to silence m4 warnings * m4/ax_octave.m4, m4/ax_python_numpy.m4: Properly quote AC_LANG_PROGRAM calls in AC_LINK_IFELSE to silence m4 warnings.
author Mike Miller <mtmiller@octave.org>
date Tue, 05 Apr 2016 16:29:14 -0700
parents 5cfff4925d14
children 5cf3cd041b1c
files m4/ax_octave.m4 m4/ax_python_numpy.m4
diffstat 2 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ax_octave.m4	Tue Apr 05 16:22:51 2016 -0700
+++ b/m4/ax_octave.m4	Tue Apr 05 16:29:14 2016 -0700
@@ -164,11 +164,10 @@
 			LIBS="$OCTAVE_LIBS $ax_octave_old_libs"
 
 			AC_LANG_ASSERT(C++)
-			AC_LINK_IFELSE(
-			AC_LANG_PROGRAM(
+			AC_LINK_IFELSE([AC_LANG_PROGRAM(
 				[[#include <octave/oct.h>
 				#include <octave/Matrix.h> ]],
-				[[MatrixType()]]),
+				[[MatrixType()]])],
 				[ax_octave_cv_lib_octave=yes],
 				[ax_octave_cv_lib_octave=no])
 
--- a/m4/ax_python_numpy.m4	Tue Apr 05 16:22:51 2016 -0700
+++ b/m4/ax_python_numpy.m4	Tue Apr 05 16:29:14 2016 -0700
@@ -74,15 +74,14 @@
 			LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS $PYTHON_LIBS"
 			
 			AC_LANG_ASSERT(C++)
-			AC_LINK_IFELSE(
-			AC_LANG_PROGRAM(
+			AC_LINK_IFELSE([AC_LANG_PROGRAM(
 				[[
 #define PY_ARRAY_UNIQUE_SYMBOL my_array_symbol
 #include <Python.h>
 #include <numpy/oldnumeric.h>
 #include <numpy/old_defines.h>
 ]],
-				[[ &PyArray_FromDims; ]]),
+				[[ &PyArray_FromDims; ]])],
 				[ax_python_numpy_cv_check=yes],
 				[ax_python_numpy_cv_check=no])
 			CPPFLAGS="$ax_python_numpy_cppflags"