win32 macro version 3
Robert Collins
robert.collins@itdomain.com.au
Thu Mar 15 05:35:00 GMT 2001
This has a better test that <windows.h>; a high level interface and two
low level interfaces.
I had _no_ idea what the high level interface should be called, so I
called it AC_API_WIN32 - please suggest a better name.
The low level interface sets WIN32FLAGS to the needed flags for that
language (but doesn't check the current language is infact C or C++). It
defines WIN32 so that the user _can test if they want to_ in
configure.in in order to skip other tests or turn on compilation of
win32 specific programs.
basic use:
AC_API_WIN32
can't get easier really.
advanced use
AC_API_WIN32
if test -z "$WIN32" ; then
dnl we are able to build win32 code. Compile the win32 only bonus
programs
dnl within all source files any win32 code is #ifdef WIN32
EXTRA_PROGRAMS="$EXTRA_PROGRAMS servicemon serviceinstall"
fi
Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acinclude.m4
Type: text/x-c
Size: 3636 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20010315/3d6ededd/attachment.bin>
More information about the Cygwin-apps
mailing list