bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Check AWK usability when XKB is enabled


From: Diego Nieto Cid
Subject: [PATCH] Check AWK usability when XKB is enabled
Date: Fri, 5 Jun 2015 00:28:19 -0300

* configure.ac: test whether AWK provides strtonum function.
---
 configure.ac | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/configure.ac b/configure.ac
index 71f3a0e..b03057b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -292,6 +292,14 @@ PKG_CHECK_MODULES([X11], [x11 xproto],
        have_x11=no])
   ], [have_x11=no])
 ])
+
+AS_IF([test "$have_x11" = "yes"],
+  [AC_MSG_CHECKING([whether AWK is usable])
+   AS_IF([test "$AWK" != ":" && $AWK 'BEGIN { strtonum("1"); }' 2>/dev/null],
+     [AC_MSG_RESULT([yes])],
+     [AC_MSG_RESULT([no])
+      AC_MSG_ERROR([$AWK does not provide required strtonum function])])])
+
 AC_SUBST([have_x11])
 AC_SUBST([XKB_BASE])
 AC_DEFINE_UNQUOTED([X11_PREFIX], "$X11_PREFIX")
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]