From 54973b801f4f6c0e6b98491eb93a9e7a42021b58 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Thu, 30 Jan 1997 00:55:18 +0000 Subject: [PATCH] Fix from Cagney so that new common files do not show up when using psim on old gdbs --- sim/ppc/ChangeLog | 8 ++++++++ sim/ppc/Makefile.in | 2 +- sim/ppc/configure | 6 +++++- sim/ppc/configure.in | 3 +++ 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 02dda8ca665..df1ca6292dc 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,11 @@ +Thu Jan 30 11:23:20 1997 Andrew Cagney + + * Makefile.in (BUILT_SRC_WO_CONFIG): Change targ-vals.* to + @sim_targ_vals@ + + * configure.in (sim_callback, sim_targ_vals): Set sim_targ_valls + if common callback is present. + Wed Jan 29 12:32:41 1997 Michael Meissner * configure.in (sim_callback): If the gdb is post 4.16, configure diff --git a/sim/ppc/Makefile.in b/sim/ppc/Makefile.in index 2917624fcef..365164e27ce 100644 --- a/sim/ppc/Makefile.in +++ b/sim/ppc/Makefile.in @@ -223,7 +223,7 @@ BUILT_SRC_WO_CONFIG = \ pk.h \ hw.h hw.c \ filter_host.c \ - targ-vals.h targ-map.c targ-vals.def + @sim_targ_vals@ BUILT_SRC = \ $(BUILT_SRC_WO_CONFIG) \ diff --git a/sim/ppc/configure b/sim/ppc/configure index 3ca1f5e0313..c960508f62c 100755 --- a/sim/ppc/configure +++ b/sim/ppc/configure @@ -2835,9 +2835,11 @@ echo "configure:2835: checking for common simulator directory" >&5 if test -e "${srcdir}/../common/callback.c"; then echo "$ac_t""yes" 1>&6 sim_callback="callback.o targ-map.o" + sim_targ_vals="targ-vals.h targ-map.c targ-vals.def" else echo "$ac_t""no" 1>&6 sim_callback="" + sim_targ_vals="" fi @@ -2848,7 +2850,7 @@ AR=${AR-ar} # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2852: checking for $ac_word" >&5 +echo "configure:2854: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2913,6 +2915,7 @@ fi + trap '' 1 2 15 @@ -3110,6 +3113,7 @@ s%@sim_stdio@%$sim_stdio%g s%@sim_termio@%$sim_termio%g s%@sim_devzero@%$sim_devzero%g s%@sim_callback@%$sim_callback%g +s%@sim_targ_vals@%$sim_targ_vals%g CEOF EOF diff --git a/sim/ppc/configure.in b/sim/ppc/configure.in index daef6e2432c..d6a319f9580 100644 --- a/sim/ppc/configure.in +++ b/sim/ppc/configure.in @@ -661,9 +661,11 @@ AC_MSG_CHECKING(for common simulator directory) if test -e "${srcdir}/../common/callback.c"; then AC_MSG_RESULT(yes) sim_callback="callback.o targ-map.o" + sim_targ_vals="targ-vals.h targ-map.c targ-vals.def" else AC_MSG_RESULT(no) sim_callback="" + sim_targ_vals="" fi AC_SUBST(CC_FOR_BUILD) @@ -712,6 +714,7 @@ AC_SUBST(sim_stdio) AC_SUBST(sim_termio) AC_SUBST(sim_devzero) AC_SUBST(sim_callback) +AC_SUBST(sim_targ_vals) AC_OUTPUT(Makefile, [case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac]) -- 2.30.2