[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
m4/mknod.m4: minor portability fix
From: |
Christian Weisgerber |
Subject: |
m4/mknod.m4: minor portability fix |
Date: |
Tue, 9 Nov 2010 17:38:14 +0100 |
User-agent: |
Mutt/1.4.2.3i |
I noticed this in GNU tar 1.25 when FreeBSD's test(1) complained:
Use "=" operator for test(1), rather than non-standard "==".
--- m4/mknod.m4.orig Tue Nov 9 17:35:22 2010
+++ m4/mknod.m4 Tue Nov 9 17:35:32 2010
@@ -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
--
Christian "naddy" Weisgerber address@hidden
- m4/mknod.m4: minor portability fix,
Christian Weisgerber <=