From 2112c3969a63703662fa90796723ba50754f11c9 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Mon, 22 May 2023 08:21:01 +0200 Subject: [PATCH] autotools: fix generating pkg-config files (by substituting CMAKE_DEBUG_POSTFIX) Fixes: #1459 --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 9a1ab09f..07ba1b72 100644 --- a/configure.ac +++ b/configure.ac @@ -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