From: Ivan Maidanski Date: Mon, 20 Feb 2017 08:10:07 +0000 (+0300) Subject: Workaround 'AM_EXTRA_RECURSIVE_TARGETS not found in library' autoconf error X-Git-Tag: v7.6.0~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51ec3ca62f67ea7de3ec272334083c000d0ff774;p=libatomic_ops Workaround 'AM_EXTRA_RECURSIVE_TARGETS not found in library' autoconf error (fix commit 3b7e732) * Makefile.am (.PHONY): Add check-nolink, check-nolink-local targets. * Makefile.am (check-nolink): New target (which invokes existing check-nolink-local in this Makefile and in tests/Makefile). * configure.ac (AM_EXTRA_RECURSIVE_TARGETS): Remove (this directive is not supported by autoconf-1.12 and earlier). --- diff --git a/Makefile.am b/Makefile.am index ee74821..74a9b0d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,6 +10,13 @@ dist_pkgdata_DATA = COPYING README.md EXTRA_DIST = autogen.sh +# TODO: After migration to autoconf-1.13+, remove check-nolink definition +# from this Makefile.am and add AM_EXTRA_RECURSIVE_TARGETS([check-nolink]) +# back to configure.ac file. +.PHONY: check-nolink check-nolink-local +check-nolink: check-nolink-local + $(MAKE) --directory tests $(AM_MAKEFLAGS) check-nolink-local + check-nolink-local: all #distclean-local: diff --git a/configure.ac b/configure.ac index 8182af3..9087c59 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,6 @@ AC_CANONICAL_TARGET([]) AC_CONFIG_SRCDIR(src/atomic_ops.c) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([foreign dist-bzip2 nostdinc]) -AM_EXTRA_RECURSIVE_TARGETS([check-nolink]) AM_MAINTAINER_MODE AC_CONFIG_HEADERS([src/config.h])