]> git.ipfire.org Git - thirdparty/lldpd.git/commit
build: prevent conflict with official AX_LIB_READLINE macro 423/head
authorJo-Philipp Wich <jo@mein.io>
Wed, 9 Dec 2020 11:04:04 +0000 (12:04 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 9 Dec 2020 11:12:25 +0000 (12:12 +0100)
commit23509dc05b24a28fb46022800e0e271ae0118de2
tree762e93fbe6b8a198f43a6222ed54c26b242b7f93
parent60ba294c1d2f222d4860af066f08c9615a5c6435
build: prevent conflict with official AX_LIB_READLINE macro

On systems where the official AX_LIB_READLINE (ax_lib_readline.m4) is
present in a globally shared autoconf include directory, auto(re)conf
will prefer including that offical version over the local variant due
to the offical macro having a higher serial number.

As a consequence, @READLINE_LIBS@ will not be substituted in *.in files,
eventually failing the compilation with errors similar to:

    gcc: error: READLINE_LIBS@: No such file or directory

Avoid this problem by renaming the incompatible local macro to
AX_LIB_READLINE_LLDPD which is sufficient to prevent any clashes.

We encountered this problem on OpenWrt which uses GNU autoconf-archive
to provide commonly used M4 macros through a global include directory,
which happens to ship AX_LIB_READLINE as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
configure.ac
m4/ax_lib_readline.m4