]> code.delx.au - gnu-emacs-elpa/blob - packages/test-simple/configure.ac
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / test-simple / configure.ac
1 dnl FIXME: pick up from test-simple.el
2 AC_INIT(emacs-test-simple, 1.0,)
3 AC_CONFIG_SRCDIR(test-simple.el)
4 AM_INIT_AUTOMAKE([foreign])
5 AM_MAINTAINER_MODE
6
7 AC_PATH_PROG([EMACS], [emacs], [emacs])
8 AC_MSG_NOTICE("Checking emacs version and prerequiste packages")
9 $EMACS -batch -q -no-site-file -eval \
10 '(if (<= emacs-major-version 22)
11 (progn
12 (error "You need GNU Emacs 23 or better.")
13 (kill-emacs 1)
14 )
15 )'
16 if test $? -ne 0 ; then
17 AC_MSG_ERROR([Can't continue until above error is corrected.])
18 fi
19
20 ##################################################################
21 # See if --with-lispdir was set. If not, set it to a reasonable default
22 # based on where bash thinks bashdb is supposed to be installed.
23 ##################################################################
24
25 AM_MISSING_PROG(GIT2CL, git2cl, $missing_dir)
26
27 # Check whether --with-lispdir was given.
28 if test "${with_lispdir+set}" = set -o "${prefix+set}" = set; then :
29 else
30 my_lispdir=$(EMACS_PROG=$EMACS $SH_PROG $(dirname $0)/compute-lispdir.sh)
31 if test "${my_lispdir+set}" = set; then :
32 with_lispdir=$my_lispdir
33 echo "'compute-lispdir.sh' lispdir install directory override: '$with_lispdir'"
34 fi
35 fi
36
37 ##
38 ## Find out where to install the debugger emacs lisp files
39 ##
40 AM_PATH_LISPDIR
41 AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir" != "x")
42
43 AC_CONFIG_FILES([Makefile test/Makefile])
44 AC_OUTPUT