diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-06-03 16:57:56 +0200 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2011-06-03 16:57:56 +0200 |
commit | 9a7226ff132d23748d80a54cc01e17dbdbc19cda (patch) | |
tree | e0a7f56fe48441e4a0c14f27fcc358d0ed9c0ab6 /configure.in | |
parent | df78129375b22dced32cc7fcc1f4973196a49897 (diff) |
hardcode libxslt & libxml cflags/lib for use with the Mac SDK
also remove the then unused PKG_CHECK_MODULES_MACHACK wrapper
Diffstat (limited to 'configure.in')
-rwxr-xr-x | configure.in | 63 |
1 files changed, 38 insertions, 25 deletions
diff --git a/configure.in b/configure.in index 4452d699f51b..2bf9aa3f3088 100755 --- a/configure.in +++ b/configure.in @@ -4305,50 +4305,63 @@ if test -n "$with_system_libxml" -o -n "$with_system_libs" && \ fi fi -dnl =================================================================== -dnl Check for system libxslt -dnl =================================================================== +# =================================================================== +# Check for system libxslt +# =================================================================== AC_MSG_CHECKING([which libxslt to use]) if test -n "$with_system_libxslt" -o -n "$with_system_libs" -o \ "$_os" = "Darwin" && \ test "$with_system_libxslt" != "no"; then - AC_MSG_RESULT([external]) - SYSTEM_LIBXSLT=YES - - PKG_CHECK_MODULES_MACHACK(LIBXSLT, xslt-config, libxslt) + AC_MSG_RESULT([external]) + SYSTEM_LIBXSLT=YES + if test "$_os" = "Darwin"; then + dnl make sure to use SDK path + LIBXSLT_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include/libxml2" + dnl omit -L/usr/lib + LIBXSLT_LIBS="-lxslt -lxml2 -lz -lpthread -liconv -lm" + else + PKG_CHECK_MODULES(LIBXSLT, xslt-config, libxslt) + fi - dnl Check for xsltproc - AC_PATH_PROG(XSLTPROC, xsltproc, no) - if test "$XSLTPROC" = "no"; then - AC_MSG_ERROR([xsltproc is required]) - fi + dnl Check for xsltproc + AC_PATH_PROG(XSLTPROC, xsltproc, no) + if test "$XSLTPROC" = "no"; then + AC_MSG_ERROR([xsltproc is required]) + fi else - AC_MSG_RESULT([internal]) - SYSTEM_LIBXSLT=NO - BUILD_TYPE="$BUILD_TYPE LIBXSLT" + AC_MSG_RESULT([internal]) + SYSTEM_LIBXSLT=NO + BUILD_TYPE="$BUILD_TYPE LIBXSLT" - if test "$cross_compiling" = "yes"; then - AC_PATH_PROG(XSLTPROC, xsltproc, no) - if test "$XSLTPROC" = "no"; then - AC_MSG_ERROR([xsltproc is required]) - fi - fi + if test "$cross_compiling" = "yes"; then + AC_PATH_PROG(XSLTPROC, xsltproc, no) + if test "$XSLTPROC" = "no"; then + AC_MSG_ERROR([xsltproc is required]) + fi + fi fi AC_SUBST(SYSTEM_LIBXSLT) AC_SUBST(LIBXSLT_CFLAGS) AC_SUBST(LIBXSLT_LIBS) AC_SUBST(XSLTPROC) -dnl =================================================================== -dnl Check for system libxml -dnl =================================================================== +# =================================================================== +# Check for system libxml +# =================================================================== AC_MSG_CHECKING([which libxml to use]) if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \ "$_os" = "Darwin" && \ test "$with_system_libxml" != "no"; then AC_MSG_RESULT([external]) SYSTEM_LIBXML=YES - PKG_CHECK_MODULES_MACHACK(LIBXML, xml2-config, libxml-2.0 >= 2.0) + if test "$_os" = "Darwin"; then + dnl make sure to use SDK path + LIBXML_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include/libxml2" + dnl omit -L/usr/lib + LIBXML_LIBS="-lxml2 -lz -lpthread -liconv -lm" + else + PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.0) + fi BUILD_TYPE="$BUILD_TYPE LIBXMLSEC" else AC_MSG_RESULT([internal]) |