File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,23 @@ if test "$PHP_CURL" != "no"; then
17
17
break
18
18
fi
19
19
done
20
- if which dpkg-architecture; then
21
- AC_MSG_CHECKING ( for cURL in multiarch path )
22
- CURL_MULTIARCH_INCLUDE=/usr/include/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
23
- if test -r $CURL_MULTIARCH_INCLUDE/curl/easy.h; then
24
- CURL_DIR=/usr
25
- AC_MSG_RESULT ( found in $CURL_MULTIARCH_INCLUDE )
20
+ if test -z "$CURL_DIR"; then
21
+ AC_MSG_RESULT ( not found )
22
+ if which dpkg-architecture>/dev/null; then
23
+ AC_MSG_CHECKING ( for cURL in multiarch path )
24
+ CURL_MULTIARCH_INCLUDE=/usr/include/$(dpkg-architecture -qDEB_HOST_MULTIARCH)
25
+ if test -r $CURL_MULTIARCH_INCLUDE/curl/easy.h; then
26
+ CURL_DIR=/usr
27
+ AC_MSG_RESULT ( found in $CURL_MULTIARCH_INCLUDE )
28
+ else
29
+ AC_MSG_RESULT ( not found )
30
+ fi
26
31
fi
27
32
fi
28
33
fi
29
34
30
35
if test -z "$CURL_DIR"; then
31
- AC_MSG_RESULT ( not found )
32
- AC_MSG_ERROR ( Please reinstall the libcurl distribution -
36
+ AC_MSG_ERROR ( Could not find cURL , please reinstall the libcurl distribution -
33
37
easy.h should be in <curl-dir>/include/curl/ )
34
38
fi
35
39
You can’t perform that action at this time.
0 commit comments