File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed
scripts/autotools/libmongoc Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,28 @@ PHP_ARG_WITH([mongodb-ssl],
5
5
[ auto] ,
6
6
[ no] )
7
7
8
+ dnl PHP_ARG_WITH without a value assigns "yes". Treat it like "auto" but
9
+ dnl require a crypto library.
10
+ if test "$PHP_MONGODB_SSL" = "yes"; then
11
+ PHP_MONGODB_SSL="auto"
12
+ fi
13
+
14
+ dnl TODO 3.0: Remove libressl from valid options
15
+ PHP_MONGODB_VALIDATE_ARG([ PHP_MONGODB_SSL] , [ auto openssl libressl darwin no] )
16
+
17
+ if test "$PHP_MONGODB_SSL" = "libressl"; then
18
+ dnl libressl is a valid option, but it is not supported by libmongoc
19
+ dnl Warn users that it is not supported and treat it like "auto"
20
+ PHP_MONGODB_SSL="auto"
21
+ AC_MSG_WARN ( [ Building with libressl is not supported by libmongoc. Falling back to "auto".] )
22
+ fi
23
+
8
24
if test "$PHP_MONGODB_SSL" = "auto" -o "$PHP_MONGODB_SSL" = "no"; then
9
25
crypto_required="no"
10
26
else
11
27
crypto_required="yes"
12
-
13
- dnl PHP_ARG_WITH without a value assigns "yes". Treat it like "auto" but
14
- dnl require a crypto library.
15
- if test "$PHP_MONGODB_SSL" = "yes"; then
16
- PHP_MONGODB_SSL="auto"
17
- fi
18
28
fi
19
29
20
- PHP_MONGODB_VALIDATE_ARG([ PHP_MONGODB_SSL] , [ auto openssl libressl darwin no] )
21
-
22
30
AS_IF ( [ test "$PHP_MONGODB_SSL" = "openssl" -o "$PHP_MONGODB_SSL" = "auto"] ,[
23
31
found_openssl="no"
24
32
You can’t perform that action at this time.
0 commit comments