acinclude.m4 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. # 02111-1307, USA.
  18. AC_DEFUN([AM_MAINTAINER_MODE],
  19. [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  20. dnl maintainer-mode is enabled by default
  21. AC_ARG_ENABLE(maintainer-mode,
  22. [ --disable-maintainer-mode disable make rules and dependencies not useful
  23. (and sometimes confusing) to the casual installer],
  24. USE_MAINTAINER_MODE=$enableval,
  25. USE_MAINTAINER_MODE=yes)
  26. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  27. AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  28. MAINT=$MAINTAINER_MODE_TRUE
  29. AC_SUBST(MAINT)dnl
  30. ]
  31. )