aboutsummaryrefslogtreecommitdiff
path: root/sim/m32r/configure.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-07-02 01:42:38 +0000
committerDoug Evans <dje@google.com>1998-07-02 01:42:38 +0000
commit1148b104ae064a00e292433608eb47820b3ee93a (patch)
treebd96b06a8ddf59330d8f8ebc7ac15c0d0a2cd203 /sim/m32r/configure.in
parent7fc0b65fa20919eaaa1b8dbd8e40eb7a75183966 (diff)
downloadgdb-1148b104ae064a00e292433608eb47820b3ee93a.zip
gdb-1148b104ae064a00e292433608eb47820b3ee93a.tar.gz
gdb-1148b104ae064a00e292433608eb47820b3ee93a.tar.bz2
* Makefile.in: cgen_maint -> CGEN_MAINT.
* configure.in: AC_SUBST cgen,cgendir. No longer look for guile. * configure: Regenerate. * arch.c,arch.h,cpuall.h: Regenerate. * cpu.c,cpu.h,decode.c,decode.h,extract.c,model.c: Regenerate. * sem-switch.c,sem.c: Regenerate. * cpux.c,cpux.h,decodex.c,decodex.h,modelx.c,readx.c: Regenerate. * semx.c: Regenerate. * mloopx.in (icount): Moved here from genmloop.sh.
Diffstat (limited to 'sim/m32r/configure.in')
-rw-r--r--sim/m32r/configure.in34
1 files changed, 26 insertions, 8 deletions
diff --git a/sim/m32r/configure.in b/sim/m32r/configure.in
index 0ed1268..9513239 100644
--- a/sim/m32r/configure.in
+++ b/sim/m32r/configure.in
@@ -15,18 +15,36 @@ SIM_AC_OPTION_SCACHE(1024)
SIM_AC_OPTION_DEFAULT_MODEL(m32r/d)
SIM_AC_OPTION_ENVIRONMENT
-cgen_maint="#"
+cgen_maint=no
+# Default is to use one in build tree.
+cgen=../../cgen/cgen
+cgendir='$(srcdir)/../../cgen'
# Having --enable-maintainer-mode take arguments is another way to go.
+# ??? One can argue --with is more appropriate if one wants to specify
+# a directory name, but what we're doing here is an enable/disable kind
+# of thing and specifying both --enable and --with is klunky.
+# If you reeely want this to be --with, go ahead and change it.
AC_ARG_ENABLE(cgen-maint,
-[ --enable-cgen-maint build cgen generated files],
+[ --enable-cgen-maint[=dir] build cgen generated files],
[case "${enableval}" in
- yes) cgen_maint="" ;;
- no) ;;
- *) AC_MSG_ERROR([bad value ${enableval} for simulator cgen-maint option]) ;;
+ yes) cgen_maint=yes ;;
+ no) cgen_maint=no ;;
+ *)
+ # argument is cgen install directory (not implemented yet).
+ # Having a `share' directory might be more appropriate for the .scm,
+ # .cpu, etc. files.
+ cgendir=${cgen_maint}/lib/cgen
+ cgen=${cgendir}/bin/cgen
+ ;;
esac])dnl
-AC_SUBST(cgen_maint)
-if test "x${cgen_maint}" = x ; then
- AC_CHECK_PROG(SCHEME, guile, guile, guile)
+dnl AM_CONDITIONAL(CGEN_MAINT, test x${cgen_maint} != xno)
+if test x${cgen_maint} != xno ; then
+ CGEN_MAINT=''
+else
+ CGEN_MAINT='#'
fi
+AC_SUBST(CGEN_MAINT)
+AC_SUBST(cgendir)
+AC_SUBST(cgen)
SIM_AC_OUTPUT