Configure: Rewrite the macro for checking Xft2 version
commit4138c5763121a96d20847f98bce27a12acc85df7
authorChristophe CURIS <christophe.curis@free.fr>
Sat, 22 May 2021 14:39:08 +0000 (22 16:39 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sat, 22 May 2021 19:00:41 +0000 (22 20:00 +0100)
treec5e78d0417989b9b8afbd0a6821ebfcfb6be5d5c
parent0bbb122b94281d77f24a86e25b1ae4f2353e2f6d
Configure: Rewrite the macro for checking Xft2 version

The original macro used over-complicated things, like:
 - useless uses of 'eval',
 - split AC_CACHE_CHECK construct (AC_MSG_CHECKING + AC_CACHE_VAL +
AC_MSG_RESULT)
 - dubious variable name (CPPFLAGS_old, which is not the "old" value but
the "saved" value for a temporary change)
 - variable CPPFLAGS was changed at wrong hierarchy level
 - calculate the integer value for XFT_VERSION in m4 instead generating
shell commands that had to do it on user side
 - indentation was missing

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
m4/windowmaker.m4