aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/configure.in')
-rw-r--r--sim/ppc/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/ppc/configure.in b/sim/ppc/configure.in
index 1d34ab4..daef6e2 100644
--- a/sim/ppc/configure.in
+++ b/sim/ppc/configure.in
@@ -656,6 +656,16 @@ else
sim_devzero=""
fi
+dnl Figure out if we are in the new Cygnus tree with a common directory or not
+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"
+else
+ AC_MSG_RESULT(no)
+ sim_callback=""
+fi
+
AC_SUBST(CC_FOR_BUILD)
AC_SUBST(CFLAGS)
AC_SUBST(HDEFINES)
@@ -701,6 +711,7 @@ AC_SUBST(sim_model_issue)
AC_SUBST(sim_stdio)
AC_SUBST(sim_termio)
AC_SUBST(sim_devzero)
+AC_SUBST(sim_callback)
AC_OUTPUT(Makefile,
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])