Studying a bit more the code, this weird macro gets called like so:
AC_SUBST_INT_HEX(T_FPU, native/task.h)
This line substitutes a variable in a file task_mode.hh.in ( notice the
.in at the end ):
typedef flag<@T_FPU@> fpu_flag;
And fetches the value of the T_FPU macro ( XNFPU ) in the native/task.h
file:
#define T_FPU XNFPU
The resulting file task_mode.hh gets generated like so:
typedef flag<XNFPU> fpu_flag;
Does autoconf support anything like this ?? I've been searching the
manual but haven't found anything like it ...
El 02/08/2013 11:52 AM, Eric Blake escribió:
On 02/08/2013 08:32 AM, raespi wrote:
Hi ... I've been googlin' around and I stumbled upon a project called
XENO for providing a C++ wrapper for Xenomai. The project's outdated
and I'm trying to port it to the newer versions of Xenomai and Autotools
( for the build part ). I noticed in the configure.ac something like this:
AC_SUBST_INT_HEX
and in the m4/general.m4 file these two lines:
AC_SUBST_INT_HEX(EXPRESSION, HEADER, SYMBOL)
AC_SUBST_INT_HEX(EXPRESSION-AND-SYMBOL, HEADER)
This macro doesn't show up anywhere on the web. If you search for it
only 2 links pop up. Are these macros defined by you ?? If so, how can
I get them??
Sorry, but 'git grep AC_SUBST_INT_HEX' in autoconf.git has no hits.
Whoever wrote them was stupid to collide with the autoconf namespace,
but they are not official autoconf macros. I hope you can find the
original source, and convince the author to rename the macros to
something that doesn't infringe on autoconf's namespace.
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf