From: David Levine Date: Fri, 16 Sep 2016 15:56:42 +0000 (-0400) Subject: Use CPPFLAGS instead of AM_CPPFLAGS for FreeBSD additions. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5f43c8b8fed42bc610c05f73179ee59cbd8ff3dd?ds=inline;hp=8ebc62f6abc9ea23a324fe51fadad2467ecddc6d Use CPPFLAGS instead of AM_CPPFLAGS for FreeBSD additions. Otherwise, it will miss -liconv. I think. --- diff --git a/configure.ac b/configure.ac index 612619a8..04b2e081 100755 --- a/configure.ac +++ b/configure.ac @@ -180,11 +180,11 @@ dnl If /usr/ports is installed, we use its idea of where things are installed, dnl otherwise we assume /usr/local. AS_IF([test `uname` = FreeBSD], - [AM_CPPFLAGS="${AM_CPPFLAGS:+$AM_CPPFLAGS }-D_WITH_GETLINE" + [CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_WITH_GETLINE" nmh_cv_freebsd_localbase=`echo '.include ' \ | make -k -f /dev/stdin -V LOCALBASE 2>/dev/null | sed 1q` test -z "$nmh_cv_freebsd_localbase" && nmh_cv_freebsd_localbase=/usr/local - AM_CPPFLAGS="${AM_CPPFLAGS:+$AM_CPPFLAGS }-I$nmh_cv_freebsd_localbase/include" + CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I$nmh_cv_freebsd_localbase/include" LDFLAGS="${LDFLAGS:+$LDFLAGS }-L$nmh_cv_freebsd_localbase/lib" ])