Skip to content
Snippets Groups Projects
Commit 8421f65e authored by Jan Včelák's avatar Jan Včelák :rocket: Committed by Daniel Salzman
Browse files

build: workaround for libedit linking on OpenBSD

parent bc5b798e
No related branches found
No related tags found
No related merge requests found
......@@ -451,11 +451,17 @@ AS_IF([test "$with_libidn" != "no"],[
PKG_CHECK_MODULES([libedit], [libedit], [with_libedit=yes], [
with_libedit=no
AC_CHECK_HEADER([histedit.h], [
# workaround for OpenBSD
AS_CASE([$host_os],
[openbsd*], [libedit_deps=-lcurses],
[libedit_deps=]
)
AC_CHECK_LIB([edit], [el_init], [
with_libedit=yes
libedit_CFLAGS=
libedit_LIBS=-ledit
])
libedit_LIBS="-ledit $libedit_deps"
], [], [$libedit_deps]
)
])
])
AS_IF([test "$with_libedit" != "yes"], [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment