|
618 | 618 | rmdir .tst 2>/dev/null |
619 | 619 | AC_SUBST([am__leading_dot])]) |
620 | 620 |
|
| 621 | +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
| 622 | +# From Jim Meyering |
| 623 | + |
| 624 | +# Copyright (C) 1996-2025 Free Software Foundation, Inc. |
| 625 | +# |
| 626 | +# This file is free software; the Free Software Foundation |
| 627 | +# gives unlimited permission to copy and/or distribute it, |
| 628 | +# with or without modifications, as long as this notice is preserved. |
| 629 | + |
| 630 | +# AM_MAINTAINER_MODE([DEFAULT-MODE]) |
| 631 | +# ---------------------------------- |
| 632 | +# Control maintainer-specific portions of Makefiles. |
| 633 | +# Default is to disable them, unless 'enable' is passed literally. |
| 634 | +# For symmetry, 'disable' may be passed as well. Anyway, the user |
| 635 | +# can override the default with the --enable/--disable switch. |
| 636 | +AC_DEFUN([AM_MAINTAINER_MODE], |
| 637 | +[m4_case(m4_default([$1], [disable]), |
| 638 | + [enable], [m4_define([am_maintainer_other], [disable])], |
| 639 | + [disable], [m4_define([am_maintainer_other], [enable])], |
| 640 | + [m4_define([am_maintainer_other], [enable]) |
| 641 | + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) |
| 642 | +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
| 643 | + dnl maintainer-mode's default is 'disable' unless 'enable' is passed |
| 644 | + AC_ARG_ENABLE([maintainer-mode], |
| 645 | + [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], |
| 646 | + am_maintainer_other[ make rules and dependencies not useful |
| 647 | + (and sometimes confusing) to the casual installer])], |
| 648 | + [USE_MAINTAINER_MODE=$enableval], |
| 649 | + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) |
| 650 | + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
| 651 | + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) |
| 652 | + MAINT=$MAINTAINER_MODE_TRUE |
| 653 | + AC_SUBST([MAINT])dnl |
| 654 | +] |
| 655 | +) |
| 656 | + |
621 | 657 | # Check to see how 'make' treats includes. -*- Autoconf -*- |
622 | 658 |
|
623 | 659 | # Copyright (C) 2001-2025 Free Software Foundation, Inc. |
|
0 commit comments