changeset 13850:c39e4e516aee

mknod: avoid false failure with dash * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax. Signed-off-by: Eric Blake <eblake@redhat.com>
author Christian Weisgerber <naddy@mips.inka.de>
date Thu, 11 Nov 2010 11:08:18 -0700
parents f799e88acec4
children a518692b40d4
files ChangeLog m4/mknod.m4
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
+
+	mknod: avoid false failure with dash
+	* m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
+
 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
 
 	unlink: Fix "is it should" typo in diagnostic.
--- a/m4/mknod.m4
+++ b/m4/mknod.m4
@@ -1,4 +1,4 @@
-# serial 2
+# serial 3
 # See if we need to provide mknod replacement.
 
 dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc.
@@ -30,7 +30,7 @@
       if (!geteuid ()) return 99;
       if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;]])],
          [gl_cv_func_mknod_works=yes],
-         [if test $? == 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
+         [if test $? = 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
             AC_MSG_FAILURE([you should not run configure as root ]dnl
 [(set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)])
           fi