Apr: support cross compiling
Thank you for your submission, applied in svn r1839627/r1839628 to trunk and 1.7. Passing this on to [email protected] for discussion of applying to 1.6 branch.
Note discussion on [email protected]. Because this introduces a new dependency for maintainers using buildconf to obtain autoconf-archive, the group may choose to reject the proposal and revert. To be determined.
My results;
make[1]: Entering directory '/home/wrowe/dev/build/apr2-ossl110' /home/wrowe/dev/apr-2.0/build/mkdir.sh tools ../../apr-2.0/tools/gen_test_char.c -o tools/gen_test_char make[1]: execvp: ../../apr-2.0/tools/gen_test_char.c: Permission denied
This is from a vpath build.
The resulting Makefile is; tools/gen_test_char: tools/gen_test_char.c $(APR_MKDIR) tools $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
include/private/apr_escape_test_char.h: tools/gen_test_char $(APR_MKDIR) include/private tools/gen_test_char > $@
So... $(CC_FOR_BUILD) appears to be garbage/empty, cannot find it after recursively searching the buildpath tree following buildconf+configure.
AX_PROG_CC_FOR_BUILD was missing from the path, added in r1871998.