Take DESTDIR into account when creating the installed directories
git-svn-id: https://svn.apache.org/repos/asf/apr/apr-iconv/trunk@332490 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/Makefile.in b/Makefile.in
index 942139e..cfb9167 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -25,7 +25,7 @@
MKINSTALLDIRS=$(abs_srcdir)/build/mkdir.sh
install:
- if [ ! -d $(lib_prefix) ]; then \
+ if [ ! -d $(DESTDIR)$(lib_prefix) ]; then \
$(MKINSTALLDIRS) $(DESTDIR)$(lib_prefix); \
fi;
(cd lib; $(LIBTOOL) --mode=install cp $(TARGET_LIB) $(DESTDIR)$(lib_prefix))