acinclude.m4 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Add --enable-maintainer-mode option to configure.
  2. # From Jim Meyering
  3. # Change it to enable maintainer mode by default by Nicolas Boullis.
  4. # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
  5. # Copyright 2004 Nicolas Boullis.
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software Foundation,
  16. # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  17. AC_DEFUN([AM_MAINTAINER_MODE],
  18. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  19. dnl maintainer-mode is enabled by default
  20. AC_ARG_ENABLE(maintainer-mode,
  21. [ --disable-maintainer-mode disable make rules and dependencies not useful
  22. (and sometimes confusing) to the casual installer],
  23. USE_MAINTAINER_MODE=$enableval,
  24. USE_MAINTAINER_MODE=yes)
  25. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  26. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  27. MAINT=$MAINTAINER_MODE_TRUE
  28. AC_SUBST(MAINT)dnl
  29. ]
  30. )