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

View File

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