--- configure.ac (Asterisk 13.19) +++ configure.ac (working copy) @@ -1553,2 +1553,6 @@ AST_PKG_CONFIG_CHECK(LIBEDIT, libedit) + if test "$PBX_LIBEDIT" != "1"; then + # some platforms do not list libedit via pkg-config, for example OpenBSD 6.2 + AST_EXT_LIB_CHECK([LIBEDIT], [edit], [history_init], [histedit.h], [-ltermcap]) + fi if test "$PBX_LIBEDIT" = "1"; then