This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

win32 macro version 3


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

acinclude.m4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]