From 3888bf9d12164e93831d423cd739685300f8a3a2 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Wed, 17 May 2017 12:48:42 +0100 Subject: [PATCH] Need to check libutil for fparseln. --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 14a286b8..dcf62ab9 100644 --- a/configure.ac +++ b/configure.ac @@ -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