1# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 2# From Jim Meyering 3 4# Copyright (C) 1996-2021 Free Software Foundation, Inc. 5# 6# This file is free software; the Free Software Foundation 7# gives unlimited permission to copy and/or distribute it, 8# with or without modifications, as long as this notice is preserved. 9 10# AM_MAINTAINER_MODE([DEFAULT-MODE]) 11# ---------------------------------- 12# Control maintainer-specific portions of Makefiles. 13# Default is to disable them, unless 'enable' is passed literally. 14# For symmetry, 'disable' may be passed as well. Anyway, the user 15# can override the default with the --enable/--disable switch. 16AC_DEFUN([AM_MAINTAINER_MODE], 17[m4_case(m4_default([$1], [disable]), 18 [enable], [m4_define([am_maintainer_other], [disable])], 19 [disable], [m4_define([am_maintainer_other], [enable])], 20 [m4_define([am_maintainer_other], [enable]) 21 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) 22AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 23 dnl maintainer-mode's default is 'disable' unless 'enable' is passed 24 AC_ARG_ENABLE([maintainer-mode], 25 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], 26 am_maintainer_other[ make rules and dependencies not useful 27 (and sometimes confusing) to the casual installer])], 28 [USE_MAINTAINER_MODE=$enableval], 29 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) 30 AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 31 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) 32 MAINT=$MAINTAINER_MODE_TRUE 33 AC_SUBST([MAINT])dnl 34] 35) 36