From: Karel Zak Date: Mon, 9 Oct 2023 10:18:31 +0000 (+0200) Subject: autotools: fix AC_DEFINE_UNQUOTED() use X-Git-Tag: v2.40-rc1~211 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2458cf9cd9a576589db2a6c09be802b367bdeb6;p=thirdparty%2Futil-linux.git autotools: fix AC_DEFINE_UNQUOTED() use Let's use AC_DEFINE_UNQUOTED() for string-like content, otherwise use a simple AC_DEFINE(). Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index a32ce7dcac..d7c5155c9c 100644 --- a/configure.ac +++ b/configure.ac @@ -695,13 +695,13 @@ AC_CHECK_FUNCS([timer_create], [AC_CHECK_LIB([rt], [timer_create], [ have_timer="yes" REALTIME_LIBS="-lrt" - AC_DEFINE_UNQUOTED([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt]) + AC_DEFINE([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt]) ],[ AC_SEARCH_LIBS([timer_create], [rt], [ AC_MSG_RESULT(yes) have_timer="yes" REALTIME_LIBS="-lrt -lpthread" - AC_DEFINE_UNQUOTED([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt -lpthread]) + AC_DEFINE([HAVE_TIMER_CREATE], [1], [Define if timer_create exist in -lrt -lpthread]) ],[], [-lpthread] ) ])] @@ -716,13 +716,13 @@ AS_IF([test x"$have_timer" = xno], [ AC_CHECK_LIB([rtas], [rtas_get_sysparm], [ RTAS_LIBS="-lrtas" - AC_DEFINE_UNQUOTED([HAVE_LIBRTAS], [1], [Define if librtas exists]) + AC_DEFINE([HAVE_LIBRTAS], [1], [Define if librtas exists]) ]) AC_SUBST([RTAS_LIBS]) AC_CHECK_MEMBER([struct sockaddr.sa_len], - AC_DEFINE_UNQUOTED([HAVE_SA_LEN], [1], [Define if struct sockaddr contains sa_len]), [], + AC_DEFINE([HAVE_SA_LEN], [1], [Define if struct sockaddr contains sa_len]), [], [#include #include ]) @@ -2805,7 +2805,7 @@ AS_IF([test "x$with_cryptsetup" = xno], [ SAVE_LIBS="$LIBS" LIBS="$CRYPTSETUP_LIBS $LIBS" AC_CHECK_LIB([cryptsetup], [crypt_activate_by_signed_key], [ - AC_DEFINE_UNQUOTED([HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY], [1], [Define if crypt_activate_by_signed_key exist in -lcryptsetup]) + AC_DEFINE([HAVE_CRYPT_ACTIVATE_BY_SIGNED_KEY], [1], [Define if crypt_activate_by_signed_key exist in -lcryptsetup]) ]) AS_IF([test "x$with_cryptsetup" = xdlopen], [ LIBS="-ldl $LIBS"