Look for utempter_add_record to be sure we have the new utempter API, the old

utempter API was also using utempter.h.
This commit is contained in:
Nicholas Marriott 2016-03-26 20:17:17 +00:00
parent b429a00cce
commit 5658b628b9

View File

@ -167,10 +167,17 @@ if test "x$found_curses" = xno; then
fi fi
# Look for utempter. # Look for utempter.
AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no) AC_CHECK_HEADER(utempter.h, found_utempter=yes, found_utempter=no)
if test "x$have_utempter" = xyes; then if test "x$found_utempter" = xyes; then
AC_DEFINE(HAVE_UTEMPTER) AC_SEARCH_LIBS(
LIBS="$LIBS -lutempter" utempter_add_record,
utempter,
found_utempter=yes,
found_utempter=no
)
if test "x$found_utempter" = xyes; then
AC_DEFINE(HAVE_UTEMPTER)
fi
fi fi
# Check for b64_ntop. # Check for b64_ntop.