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.