blob: a2c37d2d9320c898b7e5f92f048312dd77f7582b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-config.m4,v 1.1 2016/03/12 09:39:57 fhajny Exp $
Make sure configure can find our curl.
--- config.m4.orig 1970-01-01 09:13:08.000000000 +0000
+++ config.m4
@@ -5,6 +5,9 @@ dnl
PHP_ARG_ENABLE(oauth, for oauth support,
[ --enable-oauth Include oauth support])
+PHP_ARG_WITH([curl], [whether to enable cURL engine support],
+[ --with-curl[=PATH] Include cURL engine support], $PHP_OAUTH, $PHP_OAUTH)
+
if test "$PHP_OAUTH" != "no"; then
PHP_SUBST(OAUTH_SHARED_LIBADD)
@@ -12,7 +15,7 @@ if test "$PHP_OAUTH" != "no"; then
CFLAGS="$CFLAGS -Wall -g"
AC_MSG_CHECKING(for cURL in default path)
- for i in /usr/local /usr; do
+ for i in "$PHP_CURL" /usr/local /usr; do
if test -r $i/include/curl/easy.h; then
CURL_DIR=$i
AC_MSG_RESULT(found in $i)
|