* m4/lbtt.m4 (AX_CHECK_LBTT): Set LBTT and LBTT_TRANSLATE

when using an already installed lbtt.
This commit is contained in:
Alexandre Duret-Lutz 2003-07-15 12:26:03 +00:00
parent 9791182f64
commit 49fd9579da
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,8 @@
2003-07-15 Alexandre Duret-Lutz <aduret@src.lip6.fr> 2003-07-15 Alexandre Duret-Lutz <aduret@src.lip6.fr>
* m4/lbtt.m4 (AX_CHECK_LBTT): Set LBTT and LBTT_TRANSLATE
when using an already installed lbtt.
Homogenize passing of automata as pointers, not references. Homogenize passing of automata as pointers, not references.
Disallow copy for security. Disallow copy for security.

View file

@ -3,13 +3,13 @@ AC_DEFUN([AX_CHECK_LBTT], [
[AC_HELP_STRING([--with-included-lbtt], [AC_HELP_STRING([--with-included-lbtt],
[use the LBTT program inclued here])]) [use the LBTT program inclued here])])
AS_IF([AM_RUN_LOG([lbtt-translate --help | grep spot])], AS_IF([AM_RUN_LOG([lbtt-translate --help | grep spot])],
[need_included_lbtt=no], [need_included_lbtt=no],
[need_included_lbtt=yes]) [need_included_lbtt=yes])
if test "$need_included_lbtt" = yes; then if test "$need_included_lbtt" = yes; then
if test "$with_included_lbtt" = no; then if test "$with_included_lbtt" = no; then
AC_MSG_ERROR([Cannot find lbtt. Please install lbtt first, AC_MSG_ERROR([Cannot find lbtt. Please install lbtt first,
or configure with --with-included-lbtt]) or configure with --with-included-lbtt])
else else
with_included_lbtt=yes with_included_lbtt=yes
fi fi
@ -19,6 +19,9 @@ AC_DEFUN([AX_CHECK_LBTT], [
AC_CONFIG_SUBDIRS([lbtt]) AC_CONFIG_SUBDIRS([lbtt])
LBTT='${top_builddir}/lbtt/src/lbtt' LBTT='${top_builddir}/lbtt/src/lbtt'
LBTT_TRANSLATE='${top_builddir}/lbtt/src/lbtt-translate' LBTT_TRANSLATE='${top_builddir}/lbtt/src/lbtt-translate'
else
LBTT=lbtt
LBTT_TRANSLATE=lbtt-translate
fi fi
AM_CONDITIONAL([WITH_INCLUDED_LBTT], [test "$with_included_lbtt" = yes]) AM_CONDITIONAL([WITH_INCLUDED_LBTT], [test "$with_included_lbtt" = yes])
AC_SUBST([LBTT]) AC_SUBST([LBTT])