possibly undefined macro: AC_MSG_ERROR
Solution 1:
I had this same issue and found that pkg-config
package was missing.
After installing the package, everything generated correctly.
Solution 2:
It is recommended to use autoreconf -fi
instead of manually calling aclocal;autoconf;automake; #and whatever else
to properly populate aclocal.m4 and so on.
Adding ACLOCAL_AMFLAGS = -I m4
(to the toplevel Makefile.am) and AC_CONFIG_MACRO_DIR([m4])
is currently still optional if you do not use any own m4 files, but of course, doing it will silence the proocess :)
Solution 3:
I had this problem with my own configure.ac
, but in this case (and for the benefit of anyone here from Google) it was because I had accidentally quoted the AC_MSG_ERROR
so it was being treated as a string:
AX_BOOST_BASE([1.42], [], [AC_MSG_ERROR([Could not find Boost])])
Once I removed the square brackets around the AC_MSG_ERROR
macro, it worked:
AX_BOOST_BASE([1.42], [], AC_MSG_ERROR([Could not find Boost]))
Those comments saying you should install pkg-config
or some package are missing the point. The AC_MSG_ERROR
is supposed to work and give you a helpful message like "You need to install package XYZ", but because of some problem, the AC_MSG_ERROR
doesn't work. Installing package XYZ will certainly make the error go away, but only because once the package is there, there is no longer any need to print an error message!
So installing pkg-config
or a particular package just bypasses the problem, it doesn't actually fix it.
Solution 4:
i also had similar problem.. my solution is to
apt-get install libcurl4-openssl-dev
(i had libcurl allready installed ) worked for me at least..