[libvirt] [PATCH 1/4] fix problem with MKDIR_P vs mkdir_p

Jim Meyering jim at meyering.net
Sat Feb 14 13:30:01 UTC 2009


Maximilian Wilhelm <max at rfc2324.org> wrote:
> configure defines mkdir_p but src/Makefile.am uses MKDIR_P
> ---
>  src/Makefile.am |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/Makefile.am b/src/Makefile.am
> index 9d934b4..eff9039 100644
> --- a/src/Makefile.am
> +++ b/src/Makefile.am
> @@ -589,6 +589,8 @@ endif
>  endif
>  EXTRA_DIST += $(LXC_CONTROLLER_SOURCES)
>
> +MKDIR_P = $(mkdir_p)
> +
>  install-exec-local:
>  	$(MKDIR_P) "$(DESTDIR)$(localstatedir)/cache/libvirt"
>  	$(MKDIR_P) "$(DESTDIR)$(localstatedir)/lib/libvirt/images"

This is just a symptom of your using a version of automake that is too old.

I see that MKDIR_P *is* automatically substituted:

    $ grep @MKDIR_P config.status
    s&@MKDIR_P@&$ac_MKDIR_P&;t t

    $ grep MKDIR_P.= Makefile.in
    MKDIR_P = @MKDIR_P@




More information about the libvir-list mailing list