automake-patches
[Top][All Lists]
Advanced

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

Re: RFC: deprecating mkinstalldirs


From: Alexandre Duret-Lutz
Subject: Re: RFC: deprecating mkinstalldirs
Date: 13 Nov 2003 13:01:44 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.3.50

>>> "Akim" == Akim Demaille <address@hidden> writes:

[...]

 >> +AC_DEFUN([AM_PROG_MKDIR_P],
 >> +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
[...]
 >> +  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 >> +  if test -f "$am_aux_dir/mkinstalldirs"; then

I just noticed that we don't need $am_aux_dir to be absoslute
here, so there is no point in using AM_AUX_DIR_EXPAND.  I'll fix
this.

 >> +    mkdir_p='$(mkinstalldirs) -m 0755'
 >> +  else
 >> +    mkdir_p='$(install_sh) -m 0755 -d'
 >> +  fi
 >> +fi
 >> +AC_SUBST([mkdir_p])])

 Akim> how about moving this into Autoconf?

The problem is that $(mkinstalldirs) is only defined by Automake.

I think it would make sense to have the same macro without the
mkinstalldirs check in Autoconf.  Then we can switch to it in
the future.  (Using mkinstalldirs is not necessary, even if
mkinstalldirs is distributed.)
-- 
Alexandre Duret-Lutz





reply via email to

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