[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with AC_DEFINE in autoconf 2.59
From: |
Aleksander Morgado |
Subject: |
Problem with AC_DEFINE in autoconf 2.59 |
Date: |
Thu, 06 Nov 2008 14:27:16 +0100 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080925) |
Hi all,
I am trying to define in configure.ac a macro which will be included in
config.h.
The code in configure.ac is as follows:
if test "x$release_mode" = "xyes" ; then
AC_DEFINE([my_debug(s, ...)],[], [Disable my_debug calls])
else
AC_DEFINE([my_debug(s, ...)],[g_debug(s, ##__VA_ARGS__)], [Enable
my_debug calls])
fi
The problem is that using autoconf 2.59, the previous code will generate
in config.h:
/* Enable my_debug calls */
/* #undef my_debug */(s, ...)
So, it's not working, and not only that, it's also breaking the
compilation as the last parenthesis are not included inside the
commented part.
The previous code works ok with latest 2.61 version in Debian Lenny &
Ubuntu Intrepid, but fails with 2.59 in RHEL5.
Any idea how to make this work with version 2.59?
Thanks in advance,
-Aleksander
- Problem with AC_DEFINE in autoconf 2.59,
Aleksander Morgado <=