Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 275240
Collapse All | Expand All

(-)ext/curl/config.m4.old (-2 / +5 lines)
Lines 44-50 Link Here
44
  curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
44
  curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
45
  if test "$curl_version" -ge 7010005; then
45
  if test "$curl_version" -ge 7010005; then
46
    AC_MSG_RESULT($curl_version_full)
46
    AC_MSG_RESULT($curl_version_full)
47
    CURL_LIBS=`$CURL_CONFIG --libs`
47
    CURL_LIBS="-lcurl"
48
  else
48
  else
49
    AC_MSG_ERROR(cURL version 7.10.5 or later is required to compile php with cURL support)
49
    AC_MSG_ERROR(cURL version 7.10.5 or later is required to compile php with cURL support)
50
  fi
50
  fi
Lines 61-66 Link Here
61
   
61
   
62
    save_CFLAGS="$CFLAGS"
62
    save_CFLAGS="$CFLAGS"
63
    CFLAGS="`$CURL_CONFIG --cflags`"
63
    CFLAGS="`$CURL_CONFIG --cflags`"
64
    save_LIBS="$LIBS"
65
    LIBS="$CURL_SHARED_LIBADD"
64
   
66
   
65
    AC_PROG_CPP
67
    AC_PROG_CPP
66
    AC_MSG_CHECKING([for openssl support in libcurl])
68
    AC_MSG_CHECKING([for openssl support in libcurl])
Lines 108-114 Link Here
108
}
110
}
109
], [
111
], [
110
      AC_MSG_RESULT([yes])
112
      AC_MSG_RESULT([yes])
111
      AC_CHECK_HEADER([gcrypt.h], [
113
      AC_CHECK_HEADERS([gcrypt.h], [
112
        AC_DEFINE([HAVE_CURL_GNUTLS], [1], [Have cURL with GnuTLS support])
114
        AC_DEFINE([HAVE_CURL_GNUTLS], [1], [Have cURL with GnuTLS support])
113
      ])
115
      ])
114
    ], [
116
    ], [
Lines 118-123 Link Here
118
    ])
120
    ])
119
   
121
   
120
    CFLAGS="$save_CFLAGS"
122
    CFLAGS="$save_CFLAGS"
123
    LIBS="$save_LIBS"
121
  else
124
  else
122
    AC_MSG_RESULT([no])
125
    AC_MSG_RESULT([no])
123
  fi
126
  fi

Return to bug 275240