Parcourir la source

[2421] Print a message (when running make install) about default services

There isn't a portable way (across automake versions) of printing
something right at the end of `make install`. So we use the portable
install-exec-hook and display the message in yellow color so that
the user notices it.

echo -e may not be portable, so we continue even if it fails.
Mukund Sivaraman il y a 12 ans
Parent
commit
3d36fed306
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      Makefile.am

+ 7 - 0
Makefile.am

@@ -20,6 +20,13 @@ dist_doc_DATA = AUTHORS COPYING ChangeLog README
 
 .PHONY: check-valgrind check-valgrind-suppress
 
+install-exec-hook:
+	-@echo -e "\033[1;33m" # switch to yellow color text
+	@echo "NOTE: BIND 10 does not automatically start DNS services when it is run"
+	@echo "      in its default configuration. Please see the Guide for information"
+	@echo "      on how to configure these services to be started automatically."
+	-@echo -e "\033[m" # switch back to normal
+
 check-valgrind:
 if HAVE_VALGRIND
 	@VALGRIND_COMMAND="$(VALGRIND) -q --gen-suppressions=all --track-origins=yes --num-callers=48 --leak-check=full --fullpath-after=" \