]> git.ipfire.org Git - thirdparty/openvpn.git/commit
configure: Try to detect LZO with pkg-config
authorFrank Lichtenheld <frank@lichtenheld.com>
Wed, 26 Jun 2024 16:19:21 +0000 (18:19 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 26 Jun 2024 16:27:07 +0000 (18:27 +0200)
commit0ea51261d096b54281287bbd2a6899041c4dbd43
treefdda07913be46490d604162a1ad151c903e51bd0
parent3cfd6f961d5c92bec283ac3616e1633b4e16760c
configure: Try to detect LZO with pkg-config

On most systems this should work just fine.

v2:
 - simplify code by removing -llzo special handling
v3:
 - reintroduce support for autodetection without pkg-config,
   no need to break backwards compatibility right now
v7:
 - Handle case correctly where lzo/lzo1x.h can not be included
   at all. On most distros this works even though the .pc
   file suggests to use it without. We had some partly
   solution for that but it wasn't really working.
v8:
 - Handle systems that do not implicitly include limits.h
   in configure test builds.
   lzodefs.h usually relies on lzoconf.h to include it.

Change-Id: I1c038dc4ec80d3499582d81eee61fee74f26e693
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20240626161921.179301-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28848.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
config.h.cmake.in
configure.ac
src/openvpn/lzo.h