[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with AC_PATH_PROG
From: |
Clinton Roy |
Subject: |
Re: Problem with AC_PATH_PROG |
Date: |
Thu, 27 Feb 2003 08:37:47 +1000 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Informed Management, sparc-sun-solaris2.8) |
Giuseppe Greco <address@hidden> writes:
> 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,
and configure, right? (it pays to make sure :)
> I'm missing something? Are there errors in my statements?
Your macro needs to call AC_SUBST, something like:
AC_SUBST($1)
after the call to AC_PATH_PROG.
hope that helps,
--
Clinton Roy
Elvin Software Engineer - elvin.dstc.edu.au
Humbug Vice president - www.humbug.org.au