also push PKG_CONFIG_SYSROOT_DIR and set some test results that can not be figured out during cross compile explicitly for arm-linux-gnueabi*|arm-*-linux-gnueabi*

This commit is contained in:
Michael Jerris 2014-03-31 09:48:02 -04:00
parent 2d2cb445c0
commit ab2cab2660
1 changed files with 27 additions and 6 deletions

View File

@ -221,11 +221,38 @@ AX_COMPILER_VENDOR
# Set CC_FOR_BUILD
if test "x${cross_compiling}" = "xyes"; then
CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
case "$host" in
arm-linux-gnueabi*|arm-*-linux-gnueabi*)
# spandsp modem
ac_cv_file__dev_ptmx=yes
# srtp
ac_cv_file__dev_urandom=yes
# rpl_malloc
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_malloc_0_nonnull=yes
# apr
ac_cv_func_setpgrp_void=yes
ac_cv_file__dev_zero=yes
apr_cv_tcp_nodelay_with_cork=yes
ac_cv_file_dbd_apr_dbd_mysql_c=no
ac_cv_sizeof_ssize_t=4
apr_cv_mutex_recursive=yes
ac_cv_func_pthread_rwlock_init=yes
apr_cv_type_rwlock_t=yes
;;
esac
else
CC_FOR_BUILD='$(CC)'
fi
AC_SUBST(CC_FOR_BUILD)
if test -n "$lt_sysroot" ; then
APR_ADDTO(CFLAGS, --sysroot=$lt_sysroot)
APR_ADDTO(CXXFLAGS, --sysroot=$lt_sysroot)
APR_ADDTO(LDFLAGS, --sysroot=$lt_sysroot)
PKG_CONFIG_SYSROOT_DIR=$lt_sysroot
fi
# Optimize
AC_ARG_ENABLE(optimization,
[AC_HELP_STRING([--enable-optimization],[Set if you want us to add max optimising compiler flags])],[enable_optimizer="$enableval"],[enable_optimizer="no"])
@ -578,12 +605,6 @@ path_push_unique () {
eval export $1="$2:$x"
}
if test -n $lt_sysroot ; then
APR_ADDTO(CFLAGS, --sysroot=$lt_sysroot)
APR_ADDTO(CXXFLAGS, --sysroot=$lt_sysroot)
APR_ADDTO(LDFLAGS, --sysroot=$lt_sysroot)
fi
# tweak platform specific flags
case "$host" in
*darwin13.*|*darwin12.*|*darwin11.*)