# HG changeset patch # User Christian Weisgerber # Date 1289498898 25200 # Node ID c39e4e516aeedc8190477d441240f1935209129f # Parent f799e88acec4498c5f13965e7872bd4808857847 mknod: avoid false failure with dash * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-11 Christian Weisgerber (tiny change) + + mknod: avoid false failure with dash + * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax. + 2010-11-11 Paul Eggert unlink: Fix "is it should" typo in diagnostic. diff --git a/m4/mknod.m4 b/m4/mknod.m4 --- 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