[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with AC_PATH_PROG
From: |
Giuseppe Greco |
Subject: |
Problem with AC_PATH_PROG |
Date: |
26 Feb 2003 20:03:45 +0100 |
Hi volks,
I wrote a macro m4 like this
dnl ZT_CHECK_PROG(variable, program)
dnl
dnl Check whether 'program' exists on the native system and
dnl set 'variable' to the entire path of 'program'.
dnl
AC_DEFUN(ZT_CHECK_PROG,
[
AC_PATH_PROG($1, $2)
if test -z "[$]$1"; then
AC_MSG_ERROR([You need '$2' to proceed.])
fi
])
... and I call it with a statement like these
...
ZT_CHECK_PROG(LATEX, latex)
ZT_CHECK_PROG(TEX4HT, tex4ht)
...
Well, after running automake and autoconf, the generated
Makefiles don't contain the defined variables (in that case
LATEX and TEX4HT), and of course, the building process
always fail...
I'm missing something? Are there errors in my statements?
I'm using Aucoconf 2.53.
Thanks,
--
Giuseppe Greco
Agamura Corporation
Strada Regina 40
6928 Manno
Switzerland
Phone: +41 (0)91 604 67 65
Mobile: +41 (0)76 390 60 32
Email: address@hidden