You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.1 KiB
61 lines
2.1 KiB
10 years ago
|
--- libreoffice-4.1.4.2.orig/configure.ac 2013-12-10 17:11:21.000000000 +0100
|
||
|
+++ libreoffice-4.1.4.2/configure.ac 2014-01-25 12:15:02.000000000 +0100
|
||
|
@@ -7965,39 +7965,32 @@
|
||
|
AC_MSG_RESULT([external])
|
||
|
SYSTEM_CURL=YES
|
||
|
|
||
|
- curl_version=""
|
||
|
- if test "$cross_compiling" = "yes"; then
|
||
|
- dnl At least the OBS mingw32-libcurl-devel package
|
||
|
- dnl comes with a proper .pc file
|
||
|
- PKG_CHECK_MODULES(CURL, libcurl,, [:])
|
||
|
- if test -n "$CURL_PKG_ERRORS"; then
|
||
|
- AC_MSG_RESULT([no])
|
||
|
- else
|
||
|
- curl_version=`$PKG_CONFIG --modversion libcurl`
|
||
|
- fi
|
||
|
- fi
|
||
|
- if test -z "$curl_version"; then
|
||
|
+ AC_MSG_CHECKING([whether libcurl is >= 7.13.1])
|
||
|
+
|
||
|
+ # First try PKGCONFIG and then fall back
|
||
|
+ PKG_CHECK_MODULES(CURL, libcurl >= 7.13.1,, [:])
|
||
|
+
|
||
|
+ if test -n "$CURL_PKG_ERRORS"; then
|
||
|
AC_PATH_PROG(CURLCONFIG, curl-config)
|
||
|
if test -z "$CURLCONFIG"; then
|
||
|
- AC_MSG_ERROR([install the libcurl development package])
|
||
|
+ AC_MSG_ERROR([curl developement files not found])
|
||
|
fi
|
||
|
CURL_LIBS=`$CURLCONFIG --libs`
|
||
|
CURL_CFLAGS=`$CURLCONFIG --cflags`
|
||
|
curl_version=`$CURLCONFIG --version | $SED -e 's/^libcurl //'`
|
||
|
- fi
|
||
|
|
||
|
- AC_MSG_CHECKING([whether libcurl is >= 7.13.1])
|
||
|
+ case $curl_version in
|
||
|
+ dnl brackets doubled below because Autoconf uses them as m4 quote characters,
|
||
|
+ dnl so they need to be doubled to end up in the configure script
|
||
|
+ 7.13.1|7.1[[4-9]].*|7.[[2-9]]?.*|7.???.*|[[8-9]].*|[[1-9]][[0-9]].*)
|
||
|
+ ;;
|
||
|
+ *)
|
||
|
+ AC_MSG_ERROR([no, you have $curl_version])
|
||
|
+ ;;
|
||
|
+ esac
|
||
|
+ fi
|
||
|
|
||
|
- case $curl_version in
|
||
|
- dnl brackets doubled below because Autoconf uses them as m4 quote characters,
|
||
|
- dnl so they need to be doubled to end up in the configure script
|
||
|
- 7.13.1|7.1[[4-9]].*|7.[[2-9]]?.*|7.???.*|[[8-9]].*|[[1-9]][[0-9]].*)
|
||
|
- AC_MSG_RESULT([yes, you have $curl_version])
|
||
|
- ;;
|
||
|
- *)
|
||
|
- AC_MSG_ERROR([no, you have $curl_version])
|
||
|
- ;;
|
||
|
- esac
|
||
|
+ AC_MSG_RESULT([yes])
|
||
|
|
||
|
libo_MINGW_CHECK_DLL([libcurl])
|
||
|
libo_MINGW_TRY_DLL([libintl])
|