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:  [EMAIL PROTECTED]



Reply via email to