From: Lyndon Nerenberg Date: Mon, 29 Sep 2014 22:52:18 +0000 (-0700) Subject: For FreeBSD builds, also search the ports tree for includes and libs. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/eb433de218fc35876757c356fcb709d9f9d10d09?ds=inline;hp=743385eab9ac6f11d8398038a1f2e9b4917ac77c For FreeBSD builds, also search the ports tree for includes and libs. --- diff --git a/configure.ac b/configure.ac index 7441dd02..0e7d604f 100644 --- a/configure.ac +++ b/configure.ac @@ -152,8 +152,15 @@ fi dnl FreeBSD needs a bit of magic to bring getline() into scope. dnl We do this here rather than in (say) h/mh.h because this macro must dnl be defined before is pulled in. +dnl +dnl And while we're here, add the ports tree to the cpp and ld search +dnl paths. AS_IF([test `uname` = FreeBSD], - [CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_WITH_GETLINE"]) + [CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_WITH_GETLINE" + nmh_cv_freebsd_portsdir=`echo '.include ' | make -f /dev/stdin -V PREFIX` + CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I$nmh_cv_freebsd_portsdir/include" + LDFLAGS="${LDFLAGS:+$LDFLAGS }-L$nmh_cv_freebsd_portsdir/lib" +]) dnl -------------- dnl CUSTOMIZE LINK