Hello,

This diff solves a problem found by naddy@ where the build will fail if
gawk happens to be temporarily installed during a bulk build.

The fix was suggested by naddy@ as well, much appreciated!

It changes the output of a clean (no gawk installed) ./configure from:
===
checking for gawk... (cached) awk
checking for gawk... no
checking for awk... /usr/bin/awk
===

... to:
===
checking for gawk... (cached) awk
checking for gawk... (cached) awk
===

Without the diff and with gawk installed it looked like this:
===
checking for gawk... (cached) awk
checking for gawk... /usr/local/bin/gawk
===

I started an upstream discussion which can be found here:
https://lists.isc.org/pipermail/kea-users/2016-June/000416.html

Since upstream did not jump on this I feel it is good enough to fix it
this way for now.

Again, extra thanks to naddy@ for not only finding this bug but
also helping me wrap my head around the autoconf magic involved.

-- 
Patrik Lundin

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/kea/Makefile,v
retrieving revision 1.5
diff -u -p -u -r1.5 Makefile
--- Makefile    14 Mar 2016 06:46:24 -0000      1.5
+++ Makefile    27 Jun 2016 15:55:51 -0000
@@ -3,6 +3,7 @@
 COMMENT=       high-performance and extensible DHCP server engine from ISC
 
 VERSION=       1.0.0
+REVISION=      0
 
 DISTNAME=      kea-${VERSION}
 PKGNAME=       ${DISTNAME:S/-P/pl/}
@@ -47,6 +48,7 @@ CONFIGURE_STYLE=      gnu
 CONFIGURE_ARGS+= --with-openssl=/usr \
                  --with-boost-libs=-lboost_system \
                  --with-boost-lib-dir=${LOCALBASE}/lib
+CONFIGURE_ENV+= ac_cv_path_AWK=awk
 
 LIBTOOL_FLAGS= --tag=disable-static
 

Reply via email to