From a227202adc3757de292352586ea0780deba23b48 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Fri, 1 Apr 2016 04:50:42 -0700 Subject: [PATCH] handle case where autoconf sets MAKE_P to ./install-sh Reviewed By: martinoluca Differential Revision: D3126234 fb-gh-sync-id: 32fbcb7 fbshipit-source-id: 32fbcb7 --- Makefile.config.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.config.in b/Makefile.config.in index 2dc67c95b..21423d2ce 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -79,5 +79,9 @@ REMOVE_DIR = rm -rvf endif COPY = cp -f -p COPY_DIR = cp -Rf -MKDIR_P = @MKDIR_P@ +MKDIR_P_CMD = case "@MKDIR_P@" in \ + ./*) printf "$(ROOT_DIR)/@MKDIR_P@\n";; \ + *) printf "@MKDIR_P@\n";; \ + esac +MKDIR_P = $(shell $(MKDIR_P_CMD)) LN_S = @LN_S@