build: restore original CFLAGS after event.h test
Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
9fa1c4ea96
commit
6f64865d06
|
@ -66,6 +66,7 @@ AC_CHECK_HEADER([event.h],
|
||||||
EVENT_CFLAGS=$EVENTINC
|
EVENT_CFLAGS=$EVENTINC
|
||||||
AC_SUBST(EVENT_CFLAGS)
|
AC_SUBST(EVENT_CFLAGS)
|
||||||
|
|
||||||
|
CFLAGS_KEEP=$CFLAGS
|
||||||
CFLAGS=$EVENT_CFLAGS
|
CFLAGS=$EVENT_CFLAGS
|
||||||
if [[ "$EVENT_LDFLAGS" == "-levent" ]]; then
|
if [[ "$EVENT_LDFLAGS" == "-levent" ]]; then
|
||||||
AC_MSG_CHECKING([checking whether event.h is compatible with libevent])
|
AC_MSG_CHECKING([checking whether event.h is compatible with libevent])
|
||||||
|
@ -90,6 +91,7 @@ else
|
||||||
[AC_MSG_ERROR([incompatible event.h header for libev])]
|
[AC_MSG_ERROR([incompatible event.h header for libev])]
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
CFLAGS=$CFLAGS_KEEP
|
||||||
|
|
||||||
# Checks for typedefs, structures, and compiler characteristics.
|
# Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_HEADER_STDBOOL
|
AC_HEADER_STDBOOL
|
||||||
|
|
Reference in New Issue