]> diplodocus.org Git - nmh/commitdiff
Use CPPFLAGS instead of AM_CPPFLAGS for FreeBSD additions.
authorDavid Levine <levinedl@acm.org>
Fri, 16 Sep 2016 15:56:42 +0000 (11:56 -0400)
committerDavid Levine <levinedl@acm.org>
Fri, 16 Sep 2016 15:56:42 +0000 (11:56 -0400)
Otherwise, it will miss -liconv.  I think.

configure.ac

index 612619a8ef97644436d650b9c1e257e6ab3f6a07..04b2e081b8a09bf5d4f50d741a37f4e6a7a85aaf 100755 (executable)
@@ -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 <bsd.port.mk>' \
                | 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"
 ])