1 dnl FIXME: pick up from realgud.el
2 AC_INIT(emacs-realgud, 0.1.0,)
3 AC_CONFIG_SRCDIR(realgud.el)
4 AM_INIT_AUTOMAKE([foreign])
7 AC_PATH_PROG([EMACS], [emacs], [emacs])
8 AC_ARG_WITH(emacs, AC_HELP_STRING([--with-emacs],
9 [location of emacs program]), EMACS=$withval)
11 AC_MSG_NOTICE("Checking emacs version and prerequiste packages")
12 $EMACS -batch -q --no-site-file -eval \
13 '(if (<= emacs-major-version 22)
15 (error "You need GNU Emacs 23 or better.")
19 (quote (cl-lib loc-changes load-relative test-simple)))
22 if test $? -ne 0 ; then
23 AC_MSG_ERROR([Can't continue until above error is corrected.])
26 ##################################################################
27 # See if --with-lispdir was set. If not, set it to a reasonable default
28 # based on where bash thinks bashdb is supposed to be installed.
29 ##################################################################
31 AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
33 # Check whether --with-lispdir was given.
34 if test "${with_lispdir+set}" = set; then :
36 my_lispdir=$(EMACS_PROG=$EMACS $SH_PROG $(dirname $0)/compute-lispdir.sh)
37 if test "${my_lispdir+set}" = set; then :
38 with_lispdir=$my_lispdir
39 echo "'compute-lispdir.sh' lispdir install directory override: '$with_lispdir'"
44 ## Find out where to install the debugger emacs lisp files
47 lispdir_realgud=$lispdir/realgud
49 AC_SUBST([lispdir_realgud])
51 AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud" != "x")
53 AC_CONFIG_FILES([Makefile \
55 realgud/common/Makefile \
56 realgud/common/buffer/Makefile \
57 realgud/debugger/Makefile \
58 realgud/debugger/bashdb/Makefile \
59 realgud/debugger/gdb/Makefile \
60 realgud/debugger/gub/Makefile \
61 realgud/debugger/kshdb/Makefile \
62 realgud/debugger/perldb/Makefile \
63 realgud/debugger/pdb/Makefile \
64 realgud/debugger/pydb/Makefile \
65 realgud/debugger/pydbgr/Makefile \
66 realgud/debugger/rdebug/Makefile \
67 realgud/debugger/remake/Makefile \
68 realgud/debugger/trepan/Makefile \
69 realgud/debugger/trepan2/Makefile \
70 realgud/debugger/trepan3k/Makefile \
71 realgud/debugger/trepan.pl/Makefile \
72 realgud/debugger/trepanx/Makefile \
73 realgud/debugger/trepan8/Makefile \
74 realgud/debugger/zshdb/Makefile \
75 realgud/lang/Makefile \