commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 08/15: Check AWK usability when XKB is enabled


From: Samuel Thibault
Subject: [hurd] 08/15: Check AWK usability when XKB is enabled
Date: Sun, 05 Jul 2015 00:42:00 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit f397f7c9c2a864f6496732a1406ed1f546cf3ad6
Author: Diego Nieto Cid <address@hidden>
Date:   Fri Jun 5 00:28:19 2015 -0300

    Check AWK usability when XKB is enabled
    
    * 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")

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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