Add a New Comment (Rich Markup)
Comment Type & Canned Response: None No canned response available
Now I come to think about it, there probably should be some effort to replace most of the sed invocations in all macros by m4_bpatsubst and m4_translit. I think those two functions cover the vast majority of the uses of sed and should result in faster macros.
The new macro AX_CHECK_COMPILE_FLAG replaces this macro, and it doesn't depend on sed anymore.
There are more macros like this: cxx cpp cxxcpp and ld variant. Those should be changed also.
But more importantly, it is not necessary to use sed at all. You can use m4_bpatsubst, or better yet AS_TR_SH, or better yet AS_VAR_PUSHDEF. Those seems to be available at least prior to 2.51.
Please have a look at the mails I sent to the list (june 20) http://lists.gnu.org/archive/html/autoconf-archive-maintainers/2011-06/index.html to propose a solution for all these macros (and several other, very similar ones)
AC_PROG_SED is required to ensure that sed is found in $PATH. If sed cannot be found, then the macro is most probably going to fail without a useful error message, because the call the sed is part of a pipe construct.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 4 latest changes.
Copyright © 2022 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.9