Need to check libutil for fparseln.

This commit is contained in:
Nicholas Marriott 2017-05-17 12:48:42 +01:00
parent 3df4e78492
commit 3888bf9d12
1 changed files with 8 additions and 1 deletions

View File

@ -104,7 +104,6 @@ AC_REPLACE_FUNCS([ \
closefrom \
explicit_bzero \
fgetln \
fparseln \
freezero \
getdtablecount \
getprogname \
@ -454,6 +453,14 @@ else
AC_LIBOBJ(getopt)
fi
# Look for fparseln in libutil.
AC_SEARCH_LIBS(fparseln, util, found_fparseln=yes, found_fparseln=no)
if test "x$found_fparseln" = xyes; then
AC_DEFINE(HAVE_FPARSELN)
else
AC_LIBOBJ(fparseln)
fi
# Look for fdforkpty and forkpty in libutil.
AC_SEARCH_LIBS(fdforkpty, util, found_fdforkpty=yes, found_fdforkpty=no)
if test "x$found_fdforkpty" = xyes; then