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/rx/ChangeLog | 5 +++++ sim/rx/aclocal.m4 | 7 ++++++- sim/rx/configure | 35 +++++++++++++++++++++++------------ sim/rx/configure.ac | 2 +- 4 files changed, 35 insertions(+), 14 deletions(-) (limited to 'sim/rx') diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index e78fe61..a6e16e9 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/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 * trace.c (load_file_and_line): Use fread return value to index diff --git a/sim/rx/aclocal.m4 b/sim/rx/aclocal.m4 index 1c83b20..a29db71 100644 --- a/sim/rx/aclocal.m4 +++ b/sim/rx/aclocal.m4 @@ -98,6 +98,12 @@ 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_assert.m4]) +m4_include([../m4/sim_ac_option_environment.m4]) +m4_include([../m4/sim_ac_option_inline.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 +116,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/rx/configure b/sim/rx/configure index 1a2d7ea..545298f 100755 --- a/sim/rx/configure +++ b/sim/rx/configure @@ -631,6 +631,16 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +sim_reserved_bits +sim_hw +sim_hw_objs +sim_hw_cflags +sim_default_model +sim_scache +sim_float +sim_endian +sim_bitsize +sim_alignment cgen_breaks REPORT_BUGS_TEXI REPORT_BUGS_TO @@ -747,17 +757,7 @@ 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_endian -sim_bitsize -sim_alignment' +sim_inline' ac_subst_files='' ac_user_opts=' enable_option_checking @@ -11788,7 +11788,6 @@ _ACEOF - for ac_header in getopt.h do : ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" @@ -11955,6 +11954,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/rx/configure.ac b/sim/rx/configure.ac index 1b1ceb2..16e64a5 100644 --- a/sim/rx/configure.ac +++ b/sim/rx/configure.ac @@ -19,7 +19,7 @@ dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see . dnl AC_INIT(Makefile.in) -AC_CONFIG_MACRO_DIRS([../common ../.. ../../config]) +AC_CONFIG_MACRO_DIRS([../m4 ../.. ../../config]) SIM_AC_COMMON -- cgit v1.1