44 |
AC_ARG_WITH(emacs, |
AC_ARG_WITH(emacs, |
45 |
[ --with-emacs@<:@=PATH@:>@ Use Emacs to build (on PATH if given)], |
[ --with-emacs@<:@=PATH@:>@ Use Emacs to build (on PATH if given)], |
46 |
[if test "${withval}" = "yes"; then EMACS=emacs |
[if test "${withval}" = "yes"; then EMACS=emacs |
47 |
else if test "${withval}" = "no"; then EMACS=xemacs |
elif test "${withval}" = "no"; then EMACS=xemacs |
48 |
else EMACS="${withval}"; fi ; fi]) |
else EMACS="${withval}"; fi]) |
49 |
|
|
50 |
AC_ARG_WITH(xemacs, |
AC_ARG_WITH(xemacs, |
51 |
[ --with-xemacs@<:@=PATH@:>@ Use XEmacs to build (on PATH if given)], |
[ --with-xemacs@<:@=PATH@:>@ Use XEmacs to build (on PATH if given)], |
52 |
[if test "${withval}" = "yes"; then EMACS=xemacs; |
[if test "x${withval}" != xno |
53 |
else if test "${withval}" = "no"; then EMACS=emacs |
then |
54 |
else EMACS="${withval}"; fi ; fi]) |
if test "x${with_emacs}" != xno -a "x${with_emacs}" != x |
55 |
|
then |
56 |
|
AC_MSG_ERROR([[cannot use both Emacs and XEmacs]]) |
57 |
|
fi |
58 |
|
if test "x${withval}" = "xyes" |
59 |
|
then |
60 |
|
EMACS=xemacs |
61 |
|
else |
62 |
|
EMACS="${withval}" |
63 |
|
fi |
64 |
|
elif test "x${with_emacs}" = xno |
65 |
|
then |
66 |
|
AC_MSG_ERROR([[need to use either Emacs or XEmacs]]) |
67 |
|
fi]) |
68 |
|
|
69 |
# "${prefix}/bin" is for Windows users |
# "${prefix}/bin" is for Windows users |
70 |
AC_PATH_PROGS(EMACS, ${EMACS} emacs xemacs, "", ${PATH} "${prefix}/bin" ) |
AC_PATH_PROGS(EMACS, ${EMACS} emacs xemacs, "", ${PATH} "${prefix}/bin" ) |