Sunday, 15 February 2015

Autoconf: Breaking long lines in strings -



Autoconf: Breaking long lines in strings -

in configure.ac file have warnings , errors one:

ac_msg_error([could not find boost math header files, did specify --with-boost-include-path alternative correctly?])

i'm old-fashioned , maintain line width less 80 characters. however, when split line (i proper indentation well)

ac_msg_error([could not find boost math header files, did specify --with-boost-include-path alternative correctly?])

the error message keeps line break , indentation when printed on screen ./configure.

what proper way break string in autoconf?

for doing might helpful define m4 macros:

m4_define([bst_e1], [could not find boost math header files[,] did you]) m4_define([bst_e2], [specify --with-boost-include-path alternative correctly?]) ac_msg_error(bst_e1 bst_e2)

you when configure script run, since ac_msg_error take variable:

variable=$(cat | tr '\012' ' ' <<ΕΟf not find boost math header files, did specify --with-boost-include-path alternative correctly? ΕΟf ) ac_msg_error($variable)

autoconf

No comments:

Post a Comment