mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-15 15:23:02 +00:00
Playing with Autoscan.
* m4/prereq.m4 (jm_PREREQ_ARGMATCH, jm_FUNC_ARGMATCH): New. * lib/Makefile.am (libbison_a_SOURCES): No longer include argmatch.c and argmatch.h, since they are AC_LIBSOURCE'd. * lib/strcasecmp.c, lib/strncasecmp.c, lib/memcmp.c: New, from the Coreutils 4.5.1.
This commit is contained in:
18
m4/prereq.m4
18
m4/prereq.m4
@@ -1,10 +1,10 @@
|
||||
#serial 27
|
||||
#serial 28 -*- Autoconf -*-
|
||||
|
||||
dnl We use jm_ for non Autoconf macros.
|
||||
m4_pattern_forbid([^jm_[ABCDEFGHIJKLMNOPQRSTUVXYZ]])dnl
|
||||
|
||||
# These are the prerequisite macros for files in the lib/
|
||||
# directories of the coreutils package.
|
||||
# directories of the fileutils, sh-utils, and textutils packages.
|
||||
|
||||
AC_DEFUN([jm_PREREQ],
|
||||
[
|
||||
@@ -32,6 +32,20 @@ AC_DEFUN([jm_PREREQ],
|
||||
jm_PREREQ_XREADLINK
|
||||
])
|
||||
|
||||
AC_DEFUN([jm_PREREQ_ARGMATCH],
|
||||
[
|
||||
AC_REQUIRE([jm_PREREQ_QUOTEARG])
|
||||
AC_REPLACE_FUNCS(strcasecmp strncasecmp)
|
||||
])
|
||||
|
||||
# Ask for argmatch.[ch], and set it up.
|
||||
AC_DEFUN([jm_FUNC_ARGMATCH],
|
||||
[
|
||||
AC_REQUIRE([jm_PREREQ_ARGMATCH])
|
||||
AC_LIBOBJ([argmatch])
|
||||
AC_LIBSOURCES([argmatch.c, argmatch.h])
|
||||
])
|
||||
|
||||
AC_DEFUN([jm_PREREQ_ADDEXT],
|
||||
[
|
||||
dnl For addext.c.
|
||||
|
||||
Reference in New Issue
Block a user