X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmknod.m4;h=a867743b3111043de8ddf4e5546a3e7853bad580;hb=0f5629a2fc2a536cfedd8d29e66c36995d8d3211;hp=c13644b844561047281fbca3b2f6a4a074a39cec;hpb=5c53ef81164bc0e488ad7a87f0d10dbb7e6bee98;p=gnulib.git diff --git a/m4/mknod.m4 b/m4/mknod.m4 index c13644b84..a867743b3 100644 --- a/m4/mknod.m4 +++ b/m4/mknod.m4 @@ -1,7 +1,7 @@ -# serial 2 +# serial 4 # See if we need to provide mknod replacement. -dnl Copyright (C) 2009, 2010 Free Software Foundation, Inc. +dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -16,7 +16,6 @@ AC_DEFUN([gl_FUNC_MKNOD], AC_CHECK_FUNCS_ONCE([mknod]) if test $ac_cv_func_mknod = no; then HAVE_MKNOD=0 - AC_LIBOBJ([mknod]) else dnl Detect BSD bug, where mknod requires root privileges to create fifo. AC_CACHE_CHECK([whether mknod can create fifo without root privileges], @@ -30,7 +29,7 @@ AC_DEFUN([gl_FUNC_MKNOD], 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 @@ -44,7 +43,6 @@ AC_DEFUN([gl_FUNC_MKNOD], dnl Systems that mishandle trailing slash on mkfifo also goof on mknod. if test $REPLACE_MKFIFO = 1 || test "$gl_cv_func_mknod_works" != yes; then REPLACE_MKNOD=1 - AC_LIBOBJ([mknod]) fi fi ])