[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AC_PROG_CXX_EXIT_DECLARATION
From: |
Jens Petersen |
Subject: |
AC_PROG_CXX_EXIT_DECLARATION |
Date: |
26 Jun 2001 16:54:03 -0400 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor) |
Th little patch below improves AC_PROG_CXX_EXIT_DECLARATION
so that it only adds the prototype declaration to
"confdefs.h" when it is non-empty (the first (commonest?)
case). I lightly tested it on gnomemm.
Jens
2001-06-26 Jens Petersen <address@hidden>
* aclang.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Only add declaration to
confdefs.h when non-zero.
Index: aclang.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/aclang.m4,v
retrieving revision 1.137
diff -u -r1.137 aclang.m4
--- aclang.m4 2001/06/25 06:14:43 1.137
+++ aclang.m4 2001/06/26 07:51:46
@@ -1221,9 +1221,11 @@
[exit (42);])],
[break])
done
-echo '#ifdef __cplusplus' >>confdefs.h
-echo $ac_declaration >>confdefs.h
-echo '#endif' >>confdefs.h
+if test -n "$ac_declaration"; then
+ echo '#ifdef __cplusplus' >>confdefs.h
+ echo $ac_declaration >>confdefs.h
+ echo '#endif' >>confdefs.h
+fi
])# _AC_PROG_CXX_EXIT_DECLARATION
- AC_PROG_CXX_EXIT_DECLARATION,
Jens Petersen <=