| 1 |
dnl /usr/share/aclocal/guidod-cvs/ax_maintainer_mode_auto_silent.m4 |
| 2 |
dnl @synopsis AX_MAINTAINER_MODE_AUTO_SILENT |
| 3 |
dnl |
| 4 |
dnl Set autotools to error/sleep settings so that they are not run when |
| 5 |
dnl being errornously triggered. Likewise make libtool-silent when |
| 6 |
dnl libtool has been used. |
| 7 |
dnl |
| 8 |
dnl I am using the macro quite a lot since some automake versions had |
| 9 |
dnl the tendency to try to rerun some autotools on a mere make even |
| 10 |
dnl when not quite in --maintainer-mode. That is very annoying. |
| 11 |
dnl Likewise, a user who installs from source does not want to see |
| 12 |
dnl doubled compiler messages. |
| 13 |
dnl |
| 14 |
dnl I did not put an AC-REQUIRE(MAINTAINER_MODE) in here - should I? |
| 15 |
dnl |
| 16 |
dnl @category Misc |
| 17 |
dnl @category Automake |
| 18 |
dnl @author Guido U. Draheim <[email protected]> |
| 19 |
dnl @version 2005-01-21 |
| 20 |
dnl @license GPLWithACException |
| 21 |
|
| 22 |
AC_DEFUN([AX_MAINTAINER_MODE_AUTO_SILENT],[dnl |
| 23 |
dnl ac_REQUIRE([am_MAINTAINER_MODE])dn |
| 24 |
AC_MSG_CHECKING(auto silent in maintainer mode) |
| 25 |
if test "$USE_MAINTAINER_MODE" = "no" ; then |
| 26 |
test ".$TIMEOUT" = "." && TIMEOUT="9" |
| 27 |
AUTOHEADER="sleep $TIMEOUT ; true || autoheader || skipped" |
| 28 |
AUTOMAKE="sleep $TIMEOUT ; true || automake || skipped" |
| 29 |
AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped" |
| 30 |
if test ".$LIBTOOL" != "." ; then |
| 31 |
LIBTOOL="$LIBTOOL --silent" |
| 32 |
AC_MSG_RESULT([libtool-silent, auto-sleep-9]) |
| 33 |
else |
| 34 |
AC_MSG_RESULT([auto-sleep-9]) |
| 35 |
fi |
| 36 |
else |
| 37 |
AC_MSG_RESULT([no]) |
| 38 |
fi |
| 39 |
]) |
| 40 |
|