[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improve the AC_REQUIRE error message
From: |
Ralf Wildenhues |
Subject: |
Re: Improve the AC_REQUIRE error message |
Date: |
Fri, 2 Jun 2006 16:42:20 +0200 |
User-agent: |
Mutt/1.5.11 |
Hi Stepan,
* Stepan Kasal wrote on Fri, Jun 02, 2006 at 03:06:22PM CEST:
>
> I noticed that the following error message is suboptimal, it should
> mention AC_DEFUN instead of m4_defun:
>
> configure.ac:12: error: AC_REQUIRE(AC_PROG_CC): cannot be used outside of an
> m4_defun'd macro
>
> What about the following hack to fix it?
It would need at least a test. But it's broken anyway:
$ cat configure.ac
AC_DEFUN([FOO])
m4_defun([BAR])
AC_INIT
AC_REQUIRE([FOO])
m4_require([BAR])
AC_REQUIRE([AC_PROG_CC])
AC_OUTPUT
$ autoconf
configure.ac:4: error: AC_REQUIRE(FOO): cannot be used outside of an 'd macro
Cheers,
Ralf
> 2006-06-02 Stepan Kasal <address@hidden>
>
> * lib/m4sugar/m4sugar.m4 (m4_require): Modify the error
> message issued by AC_REQUIRE.