fix failure to build.
authorng0 <ng0@n0.is>
Sun, 1 Dec 2019 23:38:19 +0000 (23:38 +0000)
committerng0 <ng0@n0.is>
Sun, 1 Dec 2019 23:38:19 +0000 (23:38 +0000)
configure.ac
contrib/scripts/Makefile.am

index 7de7b26fc17654ac15d7e7d9f34163abb6256b00..99713a079045ee7a3e01425e5f6290a042657273 100644 (file)
@@ -247,6 +247,7 @@ AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
 AC_PATH_PROG( PERL, perl, ,
               $PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin )
 AC_SUBST([PERL])
+AM_CONDITIONAL([HAVE_PERL], [test -x "$PERL"])
 AS_IF([test -x "$PERL"],
   [AC_DEFINE_UNQUOTED([HAVE_PERL], [1], [Path to Perl])],
   [AC_DEFINE_UNQUOTED([HAVE_PERL], [0], [Path to Perl])])
@@ -254,6 +255,7 @@ AS_IF([test -x "$PERL"],
 # awk
 AC_PATH_PROGS( AWK_BINARY, [awk gawk], ,$PATH:/usr/bin/:/usr/local/bin )
 AC_SUBST([AWK_BINARY])
+AM_CONDITIONAL([HAVE_AWK], [test -x "$AWK_BINARY"])
 AS_IF([test -x "$AWK_BINARY"],
   [AC_DEFINE_UNQUOTED([HAVE_AWK], [1], [Path to awk])],
   [AC_DEFINE_UNQUOTED([HAVE_AWK], [0], [Path to awk])])
index 9416596c7cb9104628f5034282c5b0e1b8db41ab..f55bcabfe43a2dbbfa8acb61ceaf20efe755af37 100644 (file)
@@ -10,13 +10,14 @@ noinst_SCRIPTS = \
  gnunet_pyexpect.py \
  gnunet_janitor.py \
  gnunet-chk.py \
- $(AWK_SCRIPTS)
+ $(awkSCRIPTS)
 
+# FIXME: read into AWK_SCRIPTS autotools builtin.
 if HAVE_AWK
-AWK_SCRIPTS = \
+awkSCRIPTS = \
  check-texinfo.awk
 else
-AWK_SCRIPTS =
+awkSCRIPTS =
 endif
 
 bin_SCRIPTS = \