From 760b3e8bc9ab6e292debab7758a403fe611d302b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Feb 2021 22:51:30 -0500 Subject: sim: common: split up acinclude.m4 into individual m4 files This file is quite large and is getting unmanageable. Split it apart to follow aclocal best practices by putting one-macro-per-file. There shouldn't be any real functional changes here as can be seen in the configure script regens. --- sim/bpf/ChangeLog | 5 +++++ sim/bpf/aclocal.m4 | 13 ++++++++++++- sim/bpf/configure | 27 +++++++++++++++++++-------- sim/bpf/configure.ac | 2 +- 4 files changed, 37 insertions(+), 10 deletions(-) (limited to 'sim/bpf') diff --git a/sim/bpf/ChangeLog b/sim/bpf/ChangeLog index cd934ad..a042b7f 100644 --- a/sim/bpf/ChangeLog +++ b/sim/bpf/ChangeLog @@ -1,3 +1,8 @@ +2021-02-21 Mike Frysinger + + * configure.ac (AC_CONFIG_MACRO_DIRS): Replace common with m4. + * aclocal.m4, configure: Regenerate. + 2021-02-13 Mike Frysinger * configure.ac: Replace sinclude with AC_CONFIG_MACRO_DIRS. diff --git a/sim/bpf/aclocal.m4 b/sim/bpf/aclocal.m4 index 1c83b20..14d865b 100644 --- a/sim/bpf/aclocal.m4 +++ b/sim/bpf/aclocal.m4 @@ -98,6 +98,18 @@ AC_DEFUN([_AM_SUBST_NOTMAKE]) # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) +m4_include([../m4/sim_ac_common.m4]) +m4_include([../m4/sim_ac_option_alignment.m4]) +m4_include([../m4/sim_ac_option_assert.m4]) +m4_include([../m4/sim_ac_option_bitsize.m4]) +m4_include([../m4/sim_ac_option_cgen_maint.m4]) +m4_include([../m4/sim_ac_option_default_model.m4]) +m4_include([../m4/sim_ac_option_endian.m4]) +m4_include([../m4/sim_ac_option_environment.m4]) +m4_include([../m4/sim_ac_option_inline.m4]) +m4_include([../m4/sim_ac_option_scache.m4]) +m4_include([../m4/sim_ac_option_warnings.m4]) +m4_include([../m4/sim_ac_output.m4]) m4_include([../../config/acx.m4]) m4_include([../../config/depstand.m4]) m4_include([../../config/gettext-sister.m4]) @@ -110,4 +122,3 @@ m4_include([../../ltoptions.m4]) m4_include([../../ltsugar.m4]) m4_include([../../ltversion.m4]) m4_include([../../lt~obsolete.m4]) -m4_include([../common/acinclude.m4]) diff --git a/sim/bpf/configure b/sim/bpf/configure index f9aa6aa..0633f85 100755 --- a/sim/bpf/configure +++ b/sim/bpf/configure @@ -631,6 +631,11 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +sim_reserved_bits +sim_hw +sim_hw_objs +sim_hw_cflags +sim_float cgen_breaks cgen cgendir @@ -750,15 +755,10 @@ PATH_SEPARATOR SHELL WERROR_CFLAGS WARN_CFLAGS -sim_reserved_bits -sim_inline -sim_hw -sim_hw_objs -sim_hw_cflags -sim_default_model sim_scache -sim_float +sim_inline sim_endian +sim_default_model sim_bitsize sim_alignment' ac_subst_files='' @@ -11803,7 +11803,6 @@ _ACEOF - wire_word_bitsize="64" wire_word_msb="" wire_address_bitsize="" @@ -12136,6 +12135,18 @@ ac_config_commands="$ac_config_commands Makefile" ac_config_commands="$ac_config_commands stamp-h" + + + + + + + + + + + + cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure diff --git a/sim/bpf/configure.ac b/sim/bpf/configure.ac index 4e08e2c..a0f8576 100644 --- a/sim/bpf/configure.ac +++ b/sim/bpf/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.in) -AC_CONFIG_MACRO_DIRS([../common ../.. ../../config]) +AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config]) SIM_AC_COMMON -- cgit v1.1