For PR876:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 14 Aug 2006 23:19:57 +0000 (23:19 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 14 Aug 2006 23:19:57 +0000 (23:19 +0000)
Fix problem setting the USE_{program} variable. It should be set to a
Makefile variable definition line, not just "1". Problem noted by
Kenneth Hoste.

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

autoconf/m4/find_std_program.m4

index 05d3bf77c8eb824b8f1fcd6df55a6b5cfad09643..c789df8e641d96e67928ba3c2421692f39448682 100644 (file)
@@ -64,7 +64,7 @@ elif test "${binval}" != "nada" ; then
             AC_SUBST(allcapsname()[_BIN],${binval})
             AC_SUBST(allcapsname()[_INC],${incval})
             AC_SUBST(allcapsname()[_LIB],${libval})
             AC_SUBST(allcapsname()[_BIN],${binval})
             AC_SUBST(allcapsname()[_INC],${incval})
             AC_SUBST(allcapsname()[_LIB],${libval})
-            AC_SUBST([USE_]allcapsname(),[1])
+            AC_SUBST([USE_]allcapsname(),["USE_]allcapsname()[ = 1"])
             AC_MSG_RESULT([found via --with options])
           else
             AC_MSG_RESULT([failed])
             AC_MSG_RESULT([found via --with options])
           else
             AC_MSG_RESULT([failed])