From: Jay Freeman (saurik) Date: Sun, 8 Sep 2013 09:48:59 +0000 (-0700) Subject: Allow APR link flags to be configure overridden. X-Git-Tag: v0.9.500%b1~21 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/d4705d6b345f860379076247f3287aa9d1ed8d5c Allow APR link flags to be configure overridden. --- 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], [