SHA256
1
0
forked from pool/gpg2
gpg2/gnupg-broken-curl-test.patch
Cristian Rodríguez 26bd6b9084 Accepting request 79279 from home:elvigia:branches:Base:System
- libcurl.m4 tests were broken, resulting in the usage
  of a "fake" internal libcurl.

OBS-URL: https://build.opensuse.org/request/show/79279
OBS-URL: https://build.opensuse.org/package/show/Base:System/gpg2?expand=0&rev=38
2011-08-19 05:00:05 +00:00

26 lines
882 B
Diff

--- m4/libcurl.m4.orig
+++ m4/libcurl.m4
@@ -68,13 +68,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
_libcurl_try_link=yes
- if test -d "$_libcurl_with" ; then
- LIBCURL_CPPFLAGS="-I$withval/include"
- _libcurl_ldflags="-L$withval/lib"
- AC_PATH_PROG([_libcurl_config],["$withval/bin/curl-config"])
- else
AC_PATH_PROG([_libcurl_config],[curl-config])
- fi
if test x$_libcurl_config != "x" ; then
AC_CACHE_CHECK([for the version of libcurl],
@@ -141,7 +135,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
_libcurl_save_libs=$LIBS
LIBS="$LIBCURL $LIBS"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[include <curl/curl.h>]],[[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <curl/curl.h>]],[[
/* Try and use a few common options to force a failure if we are
missing symbols or cannot link. */
int x;