autotools: fix generating pkg-config files (by substituting CMAKE_DEBUG_POSTFIX)

Fixes: #1459
This commit is contained in:
Azat Khuzhin 2023-05-22 08:21:01 +02:00
parent 4effaee523
commit 2112c3969a

View File

@ -881,5 +881,11 @@ DX_INIT_DOXYGEN([libevent], [${top_srcdir}/Doxyfile], [doxygen])
AM_CONDITIONAL([ENABLE_DOXYGEN], [test "$DX_FLAG_doc" = "1"])
AM_CONDITIONAL([ENABLE_DOXYGEN_MAN], [test "$DX_FLAG_man" = "1"])
dnl autotools uses the same pkg-config templates as cmake, and in cmake we have
dnl CMAKE_DEBUG_POSTFIX, so define it to empty value to simply replcae it in
dnl *.pc.in
CMAKE_DEBUG_POSTFIX=""
AC_SUBST([CMAKE_DEBUG_POSTFIX])
AC_CONFIG_FILES([Makefile libevent.pc libevent_mbedtls.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc] )
AC_OUTPUT