autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11-include-default-newline.patch


From: Akim Demaille
Subject: 11-include-default-newline.patch
Date: Thu, 18 Jan 2001 01:03:19 +0100

Index: ChangeLog
from  Akim Demaille  <address@hidden>
        * acgeneral.m4 (AC_INCLUDES_DEFAULT): Force the newline to avoid
        bad surprises.
        Reported by Jim.
        
Index: acgeneral.m4
--- acgeneral.m4 Thu, 18 Jan 2001 00:13:44 +0100 akim (ace/27_acgeneral. 
1.169.8.118 644)
+++ 0.581(w)/acgeneral.m4 Thu, 18 Jan 2001 00:16:30 +0100 akim 
(ace/27_acgeneral. 1.169.8.119 644)
@@ -2304,8 +2304,15 @@
 # -------------------------------
 # If INCLUDES is empty, expand in default includes, otherwise in
 # INCLUDES.
+# In most cases INCLUDES is not double quoted as it should, and if
+# for instance INCLUDES = `#include <stdio.h>' then unless we force
+# a newline, the hash will swallow the closing paren etc. etc.
+# The usual failure.
+# Take no risk: for the newline.
 AC_DEFUN([AC_INCLUDES_DEFAULT],
-[m4_default([$1], [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl
+[m4_ifval([$1], [$1
+],
+          [AC_REQUIRE([_AC_INCLUDES_DEFAULT_REQUIREMENTS])dnl
 $ac_includes_default])])
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]