summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGraham Leggett <minfrin@apache.org>2019-12-26 11:04:58 +0000
committerGraham Leggett <minfrin@apache.org>2019-12-26 11:04:58 +0000
commit866e1df66be6704a584feaf5c3d241e3d631d03a (patch)
tree1b92fb0cc84863097534ee01ea4f7c666e850f75 /configure.in
parent374210c50ee9f4dbf265f0172dcf2d45b97d0550 (diff)
downloadapr-866e1df66be6704a584feaf5c3d241e3d631d03a.tar.gz
Submitted by: Hongxu Jia <hongxu.jia@windriver.com>
https://patch-diff.githubusercontent.com/raw/apache/apr/pull/8.patch While cross-compiling, the tools/gen_test_char could not be executed at build time, use AX_PROG_CC_FOR_BUILD to build native tools/gen_test_char Support explicit libtool by variable assigning before buildcheck.sh, it is helpful for cross-compiling (such as libtool=aarch64-linux-libtool) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1871998 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index c49b9196e..182cd6262 100644
--- a/configure.in
+++ b/configure.in
@@ -35,6 +35,8 @@ sinclude(build/dbd.m4)
sinclude(build/dso.m4)
sinclude(build/iconv.m4)
+sinclude(build/ax_prog_cc_for_build.m4)
+
dnl Hard-coded top of apr_private.h:
AH_TOP([
#ifndef APR_PRIVATE_H
@@ -196,6 +198,9 @@ dnl can only be used once within a configure script, so this prevents a
dnl preload section from invoking the macro to get compiler info.
AC_PROG_CC
+dnl Check build CC for gen_test_char compiling which is executed at build time.
+AX_PROG_CC_FOR_BUILD
+
dnl AC_PROG_SED is only avaliable in recent autoconf versions.
dnl Use AC_CHECK_PROG instead if AC_PROG_SED is not present.
ifdef([AC_PROG_SED],