summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Elstner <daniel.kitta@gmail.com>2015-08-21 00:36:20 +0200
committerDaniel Elstner <daniel.kitta@gmail.com>2015-08-21 00:43:21 +0200
commitb13561c71119e39a64b1d4f17657418bec23be14 (patch)
tree6e783efe22239509ee152ec7fc66becaf6d10150
parentb0b06b32612099170bd8baeca607b39f1c611c84 (diff)
downloadmm-common-b13561c71119e39a64b1d4f17657418bec23be14.tar.gz
Build: Suggest ACLOCAL_PATH instead of ACLOCAL_FLAGS
* Makefile.am (postinst-acdir-notice): If the installed macros are not on the aclocal search patch, suggest the modern solution of setting ACLOCAL_PATH instead of ACLOCAL_FLAGS.
-rw-r--r--Makefile.am19
1 files changed, 9 insertions, 10 deletions
diff --git a/Makefile.am b/Makefile.am
index 4430391..c1c2063 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -173,13 +173,12 @@ install-data-hook: $(if $(DESTDIR),,postinst-acdir-notice)
postinst-acdir-notice:
@$(POST_INSTALL)
@-acdir=`$${ACLOCAL-aclocal} --print-ac-dir 2>/dev/null || :`; \
- if test "x$$acdir" = 'x$(aclocal_macrodir)'; then :; else \
- case " $$ACLOCAL_FLAGS " in *' -I $(aclocal_macrodir) '*) ;; *) \
- echo; echo 'NOTICE:'; echo; \
- echo 'The $(PACKAGE_NAME) Autoconf macro files have been installed in a different'; \
- echo 'prefix than the system aclocal directory. In order for the installed'; \
- echo 'macros to be found, it may be necessary to add the $(PACKAGE_NAME) include'; \
- echo 'path to the ACLOCAL_FLAGS environment variable:'; echo; \
- echo " ACLOCAL_FLAGS='-I $(aclocal_macrodir)'; export ACLOCAL_FLAGS"; echo;; \
- esac; \
- fi
+ case ":$$ACLOCAL_PATH:$$acdir:" in *':$(aclocal_macrodir):'*) ;; *) \
+ echo; echo 'NOTICE:'; echo; \
+ echo 'The $(PACKAGE_NAME) Autoconf macro files have been installed in a different'; \
+ echo 'prefix than the system aclocal directory. In order for the installed'; \
+ echo 'macros to be found, it may be necessary to add the $(PACKAGE_NAME) include'; \
+ echo 'path to the ACLOCAL_PATH environment variable:'; echo; \
+ echo ' ACLOCAL_PATH="$(aclocal_macrodir)"'; \
+ echo ' export ACLOCAL_PATH'; echo;; \
+ esac