bug-gnulib
[Top][All Lists]
Advanced

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

Re: Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".


From: Bruno Haible
Subject: Re: Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
Date: Mon, 22 Jan 2007 01:13:04 +0100 (MET)
User-agent: KMail/1.5.4

Jim Meyering asked:
> That is, *if* gnulib needs to support autoconf older than 2.60.

Yes, the current minimum requirement is autoconf 2.59.

> Do any of you know of gnulib-using projects that require
> autoconf 2.59 or older?

Chasing the URLs in users.txt: Net::CDP, diffutils, gpg, gsasl, inetutils,
libdap, libksba, libprelude, libpreludedb, prelude-lml, prelude-manager, pspp,
texinfo. These all currently rely on autoconf 2.59. We don't gain popularity
if we force them to switch according to our schedule.

I'm adding this. Tested with autoconf-2.59 and automake-1.9.6.

Bruno


2007-01-21  Bruno Haible  <address@hidden>

        * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.

*** m4/gnulib-common.m4 8 Jan 2007 19:20:07 -0000       1.1
--- m4/gnulib-common.m4 22 Jan 2007 00:12:26 -0000
***************
*** 1,4 ****
! # gnulib-common.m4 serial 1
  dnl Copyright (C) 2007 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
--- 1,4 ----
! # gnulib-common.m4 serial 2
  dnl Copyright (C) 2007 Free Software Foundation, Inc.
  dnl This file is free software; the Free Software Foundation
  dnl gives unlimited permission to copy and/or distribute it,
***************
*** 11,13 ****
--- 11,22 ----
    
AC_DEFINE([GNULIB_]translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___]),
 [1],
      [Define to 1 when using the gnulib module ]$1[.])
  ])
+ 
+ # AC_PROG_MKDIR_P
+ # is a backport of autoconf-2.60's AC_PROG_MKDIR_P.
+ # Remove this macro when we can assume autoconf >= 2.60.
+ m4_ifdef([AC_PROG_MKDIR_P], [], [
+   AC_DEFUN([AC_PROG_MKDIR_P],
+     [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
+      MKDIR_P='$(mkdir_p)'
+      AC_SUBST([MKDIR_P])])])





reply via email to

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