mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
Add configure check for midipix
Fixes: #540 (cherry picked from commit 94e5cc84d5adf8075a1a98263d16756faec8ea30)
This commit is contained in:
parent
43d92a6dab
commit
d433201e13
16
configure.ac
16
configure.ac
@ -160,6 +160,19 @@ die horribly
|
|||||||
bwin32=false; AC_MSG_RESULT(no),
|
bwin32=false; AC_MSG_RESULT(no),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
dnl - check if the macro __midipix__ is defined on this compiler.
|
||||||
|
dnl - (this is how we check for a midipix version of GCC)
|
||||||
|
AC_MSG_CHECKING(for MIDIPIX)
|
||||||
|
AC_TRY_COMPILE(,
|
||||||
|
[
|
||||||
|
#ifndef __midipix__
|
||||||
|
die horribly
|
||||||
|
#endif
|
||||||
|
],
|
||||||
|
midipix=true; AC_MSG_RESULT(yes),
|
||||||
|
midipix=false; AC_MSG_RESULT(no),
|
||||||
|
)
|
||||||
|
|
||||||
dnl - check if the macro __CYGWIN__ is defined on this compiler.
|
dnl - check if the macro __CYGWIN__ is defined on this compiler.
|
||||||
dnl - (this is how we check for a cygwin version of GCC)
|
dnl - (this is how we check for a cygwin version of GCC)
|
||||||
AC_MSG_CHECKING(for CYGWIN)
|
AC_MSG_CHECKING(for CYGWIN)
|
||||||
@ -326,7 +339,8 @@ fi
|
|||||||
|
|
||||||
AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
|
AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
|
||||||
AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue)
|
AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue)
|
||||||
AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue)
|
AM_CONDITIONAL(BUILD_MIDIPIX, test x$midipix = xtrue)
|
||||||
|
AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue)
|
||||||
|
|
||||||
if test x$bwin32 = xtrue; then
|
if test x$bwin32 = xtrue; then
|
||||||
AC_SEARCH_LIBS([getservbyname],[ws2_32])
|
AC_SEARCH_LIBS([getservbyname],[ws2_32])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user