Enable containing package CFLAGS etc.

Add AC_SUBST of LIBEVENT_FLAGS, LIBEVENT_CPPFLAGS, and LIBEVENT_LDFLAGS so they are relayed from the configure command line to the Makefile
This commit is contained in:
Dave Hart 2023-06-17 00:16:41 +00:00 committed by Azat Khuzhin
parent 57bb630ce3
commit 242f767684

View File

@ -859,6 +859,11 @@ AC_SUBST([LIBEVENT_GC_SECTIONS])
AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"]) AM_CONDITIONAL([INSTALL_LIBEVENT], [test "$enable_libevent_install" = "yes"])
dnl Allow additional flags from a containing package such as NTP
AC_SUBST([LIBEVENT_CFLAGS])
AC_SUBST([LIBEVENT_CPPFLAGS])
AC_SUBST([LIBEVENT_LDFLAGS])
AC_C_BIGENDIAN([CFLAGS="$CFLAGS -DBIG_ENDIAN"], [CFLAGS="$CFLAGS -DLITTLE_ENDIAN"]) AC_C_BIGENDIAN([CFLAGS="$CFLAGS -DBIG_ENDIAN"], [CFLAGS="$CFLAGS -DLITTLE_ENDIAN"])
dnl Doxygen support dnl Doxygen support