Fix CXXFLAGS for huge_val.m4.
authorEric Christopher <echristo@apple.com>
Mon, 2 Apr 2012 06:54:01 +0000 (06:54 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 2 Apr 2012 06:54:01 +0000 (06:54 +0000)
Patch by Jeremy Huddleston!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153862 91177308-0d34-0410-b5e6-96231b3b80d8

autoconf/m4/huge_val.m4
configure

index 7ef9dcae6943081bf4946fd96ee1db7820794bc7..9dc76f22350cbb5b2296c7b9487998d333211ec9 100644 (file)
@@ -6,7 +6,7 @@ AC_DEFUN([AC_HUGE_VAL_CHECK],[
   AC_CACHE_CHECK([for HUGE_VAL sanity], [ac_cv_huge_val_sanity],[
     AC_LANG_PUSH([C++])
     ac_save_CXXFLAGS=$CXXFLAGS
-    CXXFLAGS+=" -pedantic"
+    CXXFLAGS="$CXXFLAGS -pedantic"
     AC_RUN_IFELSE(
       AC_LANG_PROGRAM(
         [#include <math.h>],
index f4c5670de6e9a70f8bbc0a292b333f55abee954c..5c2d466774d210a81eb046002d1edd4c243c0c6b 100755 (executable)
--- a/configure
+++ b/configure
@@ -16371,7 +16371,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex
 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
     ac_save_CXXFLAGS=$CXXFLAGS
-    CXXFLAGS+=" -pedantic"
+    CXXFLAGS="$CXXFLAGS -pedantic"
     if test "$cross_compiling" = yes; then
   ac_cv_huge_val_sanity=yes
 else