From d4705d6b345f860379076247f3287aa9d1ed8d5c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 8 Sep 2013 02:48:59 -0700 Subject: [PATCH] Allow APR link flags to be configure overridden. --- configure.ac | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 094833f..e668c46 100644 --- a/configure.ac +++ b/configure.ac @@ -211,12 +211,17 @@ AC_ARG_ENABLE([javascript], [AS_HELP_STRING( dnl }}} dnl APR_FIND_APR {{{ -APR_FIND_APR([], [], [1], [1]) +AS_IF([test "x$LTLIBAPR" != x], [ + AC_SUBST([LTLIBAPR]) +], [ + APR_FIND_APR([], [], [1], [1]) AS_CASE([$apr_found], [yes], [ AC_LIB_APPENDTOVAR([CPPFLAGS], [`$apr_config --includes`]) AC_LIB_APPENDTOVAR([LTLIBAPR], [`$apr_config --link-libtool`]) AC_SUBST([LTLIBAPR]) -], [AC_MSG_ERROR([missing "libapr"])]) +], [ + AC_MSG_ERROR([missing "libapr"]) +])]) dnl }}} AC_DEFUN([CY_CHECK_PKG_CONFIG_LIBFFI], [ -- 2.45.2