Matej Tyc wrote:

> unfortunatelly the macro you proposed is broken at the moment, but I
> have notified the developer, so hopefully, it is going to work.
> By the way, do you have an idea what's the cause of this failiure? It is

The macro seems to be broken because this:

ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
extern "C"
#endif
])dnl

is an autoconf 2.13-ism that isn't compatible with 2.5x and later
because AC_LANG became a function instead of a variable.  But it seems
that whatever reason for conditionalizing this has gone as well, so you
can just replace that with 

#ifdef __cplusplus
extern "C"
#endif

> quite annoying since one can't use AC_SEARCH_LIBS that is so useful when
> cross-compiling.

I don't see why you keep mentioning cross-compiling.  The problem is not
specific to cross compilation at all, it affects native use as well. 
It's as Keith explained: the w32api functions use the WINAPI (which is
defined as __stdcall on versions of Windows except WinCE) calling
convention, which is not the C default and so they are required to have
proper prototypes.

Brian


_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to