diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-01-31 15:20:26 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-01-31 15:20:26 +0000 |
commit | 8cd89e778dcf8c563e61f00d0221e3179daee179 (patch) | |
tree | bbe21fd54120d586cb8072c70bf54113c91f7f35 /sim/common/aclocal.m4 | |
parent | 0e865b395050d2d644ab7b51b18d5254ad3c33dd (diff) | |
download | gdb-8cd89e778dcf8c563e61f00d0221e3179daee179.zip gdb-8cd89e778dcf8c563e61f00d0221e3179daee179.tar.gz gdb-8cd89e778dcf8c563e61f00d0221e3179daee179.tar.bz2 |
* aclocal.m4 (SIM_AC_COMMON): Move COMMON_MAKEFILE_FRAG from here.
(SIM_AC_OUTPUT): To here.
Diffstat (limited to 'sim/common/aclocal.m4')
-rw-r--r-- | sim/common/aclocal.m4 | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4 index 69a3c15..e25c37b 100644 --- a/sim/common/aclocal.m4 +++ b/sim/common/aclocal.m4 @@ -1,8 +1,20 @@ # This file contains common code used by all simulators. -# SIM_AC_COMMON invokes AC macros used by all simulators and by the -# common directory. -# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to use generate the -# Makefile in a target specific directory. +# +# SIM_AC_COMMON invokes AC macros used by all simulators and by the common +# directory. It is intended to be invoked before any target specific stuff. +# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile. +# It is intended to be invoked last. +# +# The simulator's configure.in should look like: +# +# dnl Process this file with `autoconf -l ../common' to produce a configure script. +# AC_PREREQ(2.5)dnl +# AC_INIT(Makefile.in) +# SIM_AC_COMMON +# +# ... target specific stuff ... +# +# SIM_AC_OUTPUT AC_DEFUN(SIM_AC_COMMON, [ @@ -115,7 +127,19 @@ case "${target}" in ;; esac -dnl Stuff that gets inserted into the Makefile +]) dnl End of SIM_AC_COMMON + +dnl Generate the Makefile in a target specific directory. +dnl Substitutions aren't performed on the file in AC_SUBST_FILE, +dnl so this is a cover macro to tuck the details away of how we cope. +dnl It also inserts default definitions of the SIM_FOO variables. + +AC_DEFUN(SIM_AC_OUTPUT, +[ + +dnl Stuff that gets inserted into the Makefile. +dnl This is done now and not in SIM_AC_COMMON to catch updated values for +dnl LIBS, etc. that may get changed by target specific checks. COMMON_MAKEFILE_FRAG=makefile-temp-$$ cat > $COMMON_MAKEFILE_FRAG <<EOF @@ -288,15 +312,6 @@ dnl end of COMMON_MAKEFILE_FRAG AC_SUBST_FILE(COMMON_MAKEFILE_FRAG) -]) dnl End of SIM_AC_COMMON - -dnl Generate the Makefile in a target specific directory. -dnl Substitutions aren't performed on the file in AC_SUBST_FILE, -dnl so this is a cover macro to tuck the details away of how we cope. -dnl It also inserts default definitions of the SIM_FOO variables. - -AC_DEFUN(SIM_AC_OUTPUT, -[ AC_LINK_FILES($sim_link_files, $sim_link_links) AC_OUTPUT(Makefile,[ case "x$CONFIG_HEADERS" in xconfig.h:config.in) echo > stamp-h ;; esac |