Ed,

On 4/21/2009 7:45 AM, Ed Hartnett wrote:
Howdy all!

I want to put a line break in the error message so that I don't have
such a long line in my configure.ac file. But if I do this:

       AC_MSG_ERROR([NetCDF-4 requires HDF5, but hdf5.h cannot be found. Try 
using \
       the --with-hdf5 option to specify location of HDF5.])
This is actually quite simple: Just wrap the line, with no trailing back-slash, like this:

        AC_MSG_ERROR([NetCDF-4 requires HDF5, but hdf5.h cannot be found. Try 
using
the --with-hdf5 option to specify location of HDF5.])


If your text is indented as this one is, simply start the second line in the column in which you wish to have it start in the output (column 1 in this example). These AC_MSG macros take whatever text you have in Autoconf quotes, double-quote it and display it as is, including any embedded newlines.

Regards,
John



_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to