mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
pcre2: add maintainer mode and disable by default
This commit is contained in:
parent
b60a9d8c4a
commit
8261eb18d2
4 changed files with 86 additions and 4 deletions
9
pcre2-10.32/Makefile.in
vendored
9
pcre2-10.32/Makefile.in
vendored
|
@ -749,6 +749,7 @@ LIPO = @LIPO@
|
||||||
LN_S = @LN_S@
|
LN_S = @LN_S@
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
LTLIBOBJS = @LTLIBOBJS@
|
||||||
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
|
||||||
|
MAINT = @MAINT@
|
||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
MANIFEST_TOOL = @MANIFEST_TOOL@
|
MANIFEST_TOOL = @MANIFEST_TOOL@
|
||||||
MKDIR_P = @MKDIR_P@
|
MKDIR_P = @MKDIR_P@
|
||||||
|
@ -1292,7 +1293,7 @@ all: $(BUILT_SOURCES)
|
||||||
.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
|
.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
|
||||||
am--refresh: Makefile
|
am--refresh: Makefile
|
||||||
@:
|
@:
|
||||||
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
|
||||||
@for dep in $?; do \
|
@for dep in $?; do \
|
||||||
case '$(am__configure_deps)' in \
|
case '$(am__configure_deps)' in \
|
||||||
*$$dep*) \
|
*$$dep*) \
|
||||||
|
@ -1318,9 +1319,9 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||||
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
||||||
$(SHELL) ./config.status --recheck
|
$(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
$(top_srcdir)/configure: $(am__configure_deps)
|
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||||
$(am__cd) $(srcdir) && $(AUTOCONF)
|
$(am__cd) $(srcdir) && $(AUTOCONF)
|
||||||
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
|
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
|
||||||
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
|
||||||
$(am__aclocal_m4_deps):
|
$(am__aclocal_m4_deps):
|
||||||
|
|
||||||
|
@ -1331,7 +1332,7 @@ src/config.h: src/stamp-h1
|
||||||
src/stamp-h1: $(top_srcdir)/src/config.h.in $(top_builddir)/config.status
|
src/stamp-h1: $(top_srcdir)/src/config.h.in $(top_builddir)/config.status
|
||||||
@rm -f src/stamp-h1
|
@rm -f src/stamp-h1
|
||||||
cd $(top_builddir) && $(SHELL) ./config.status src/config.h
|
cd $(top_builddir) && $(SHELL) ./config.status src/config.h
|
||||||
$(top_srcdir)/src/config.h.in: $(am__configure_deps)
|
$(top_srcdir)/src/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
|
||||||
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
($(am__cd) $(top_srcdir) && $(AUTOHEADER))
|
||||||
rm -f src/stamp-h1
|
rm -f src/stamp-h1
|
||||||
touch $@
|
touch $@
|
||||||
|
|
36
pcre2-10.32/aclocal.m4
vendored
36
pcre2-10.32/aclocal.m4
vendored
|
@ -1049,6 +1049,42 @@ fi
|
||||||
rmdir .tst 2>/dev/null
|
rmdir .tst 2>/dev/null
|
||||||
AC_SUBST([am__leading_dot])])
|
AC_SUBST([am__leading_dot])])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# Copyright (C) 1996-2017 Free Software Foundation, Inc.
|
||||||
|
#
|
||||||
|
# This file is free software; the Free Software Foundation
|
||||||
|
# gives unlimited permission to copy and/or distribute it,
|
||||||
|
# with or without modifications, as long as this notice is preserved.
|
||||||
|
|
||||||
|
# AM_MAINTAINER_MODE([DEFAULT-MODE])
|
||||||
|
# ----------------------------------
|
||||||
|
# Control maintainer-specific portions of Makefiles.
|
||||||
|
# Default is to disable them, unless 'enable' is passed literally.
|
||||||
|
# For symmetry, 'disable' may be passed as well. Anyway, the user
|
||||||
|
# can override the default with the --enable/--disable switch.
|
||||||
|
AC_DEFUN([AM_MAINTAINER_MODE],
|
||||||
|
[m4_case(m4_default([$1], [disable]),
|
||||||
|
[enable], [m4_define([am_maintainer_other], [disable])],
|
||||||
|
[disable], [m4_define([am_maintainer_other], [enable])],
|
||||||
|
[m4_define([am_maintainer_other], [enable])
|
||||||
|
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
|
||||||
|
AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
|
||||||
|
AC_ARG_ENABLE([maintainer-mode],
|
||||||
|
[AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
|
||||||
|
am_maintainer_other[ make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer])],
|
||||||
|
[USE_MAINTAINER_MODE=$enableval],
|
||||||
|
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
|
||||||
|
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
||||||
|
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
AC_SUBST([MAINT])dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
|
||||||
|
|
39
pcre2-10.32/configure
vendored
39
pcre2-10.32/configure
vendored
|
@ -718,6 +718,9 @@ build_cpu
|
||||||
build
|
build
|
||||||
ac_ct_AR
|
ac_ct_AR
|
||||||
AR
|
AR
|
||||||
|
MAINT
|
||||||
|
MAINTAINER_MODE_FALSE
|
||||||
|
MAINTAINER_MODE_TRUE
|
||||||
EGREP
|
EGREP
|
||||||
GREP
|
GREP
|
||||||
CPP
|
CPP
|
||||||
|
@ -808,6 +811,7 @@ ac_user_opts='
|
||||||
enable_option_checking
|
enable_option_checking
|
||||||
enable_silent_rules
|
enable_silent_rules
|
||||||
enable_dependency_tracking
|
enable_dependency_tracking
|
||||||
|
enable_maintainer_mode
|
||||||
enable_shared
|
enable_shared
|
||||||
enable_static
|
enable_static
|
||||||
with_pic
|
with_pic
|
||||||
|
@ -1497,6 +1501,9 @@ Optional Features:
|
||||||
do not reject slow dependency extractors
|
do not reject slow dependency extractors
|
||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
speeds up one-time build
|
speeds up one-time build
|
||||||
|
--enable-maintainer-mode
|
||||||
|
enable make rules and dependencies not useful (and
|
||||||
|
sometimes confusing) to the casual installer
|
||||||
--enable-shared[=PKGS] build shared libraries [default=yes]
|
--enable-shared[=PKGS] build shared libraries [default=yes]
|
||||||
--enable-static[=PKGS] build static libraries [default=yes]
|
--enable-static[=PKGS] build static libraries [default=yes]
|
||||||
--enable-fast-install[=PKGS]
|
--enable-fast-install[=PKGS]
|
||||||
|
@ -4677,6 +4684,34 @@ then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# FISH PATCH
|
||||||
|
# Enable maintainer mode to avoid spurious rebuilds due to timestamps in git
|
||||||
|
# not being stored. Discussion in https://github.com/fish-shell/fish-shell/issues/2469
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
|
||||||
|
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
|
||||||
|
# Check whether --enable-maintainer-mode was given.
|
||||||
|
if test "${enable_maintainer_mode+set}" = set; then :
|
||||||
|
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
|
||||||
|
else
|
||||||
|
USE_MAINTAINER_MODE=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
|
||||||
|
$as_echo "$USE_MAINTAINER_MODE" >&6; }
|
||||||
|
if test $USE_MAINTAINER_MODE = yes; then
|
||||||
|
MAINTAINER_MODE_TRUE=
|
||||||
|
MAINTAINER_MODE_FALSE='#'
|
||||||
|
else
|
||||||
|
MAINTAINER_MODE_TRUE='#'
|
||||||
|
MAINTAINER_MODE_FALSE=
|
||||||
|
fi
|
||||||
|
|
||||||
|
MAINT=$MAINTAINER_MODE_TRUE
|
||||||
|
|
||||||
|
|
||||||
|
# END FISH PATCH
|
||||||
|
|
||||||
# This is a new thing required to stop a warning from automake 1.12
|
# This is a new thing required to stop a warning from automake 1.12
|
||||||
if test -n "$ac_tool_prefix"; then
|
if test -n "$ac_tool_prefix"; then
|
||||||
for ac_prog in ar lib "link -lib"
|
for ac_prog in ar lib "link -lib"
|
||||||
|
@ -15579,6 +15614,10 @@ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
|
||||||
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
|
||||||
|
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
|
||||||
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
fi
|
||||||
if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
|
if test -z "${WITH_PCRE2_8_TRUE}" && test -z "${WITH_PCRE2_8_FALSE}"; then
|
||||||
as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
|
as_fn_error $? "conditional \"WITH_PCRE2_8\" was never defined.
|
||||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||||
|
|
6
pcre2-10.32/configure.ac
vendored
6
pcre2-10.32/configure.ac
vendored
|
@ -57,6 +57,12 @@ then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# FISH PATCH
|
||||||
|
# Enable maintainer mode to avoid spurious rebuilds due to timestamps in git
|
||||||
|
# not being stored. Discussion in https://github.com/fish-shell/fish-shell/issues/2469
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
# END FISH PATCH
|
||||||
|
|
||||||
# This is a new thing required to stop a warning from automake 1.12
|
# This is a new thing required to stop a warning from automake 1.12
|
||||||
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue