File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,15 @@ AC_DEFUN([PHP_BSON_CLOCK],
83
83
fi
84
84
] )
85
85
86
- AC_MSG_CHECKING ( PHP version )
87
- PHP_FOUND_VERSION=`${PHP_CONFIG} --version`
88
- PHP_FOUND_VERNUM=`echo "${PHP_FOUND_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([ $] 1 * 100 + [ $] 2) * 100 + [ $] 3;}'`
89
- AC_MSG_RESULT ( $PHP_FOUND_VERNUM )
90
-
91
86
if test "$MONGODB" != "no"; then
87
+ AC_MSG_CHECKING ( [ Check for supported PHP versions] )
88
+ PHP_MONGODB_FOUND_VERSION=`${PHP_CONFIG} --version`
89
+ PHP_MONGODB_FOUND_VERNUM=`echo "${PHP_MONGODB_FOUND_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([ $] 1 * 100 + [ $] 2) * 100 + [ $] 3;}'`
90
+ AC_MSG_RESULT ( $PHP_MONGODB_FOUND_VERSION )
91
+ if test "$PHP_MONGODB_FOUND_VERNUM" -lt "50500"; then
92
+ AC_MSG_ERROR ( [ not supported. Need a PHP version >= 5.5.0 (found $PHP_MONGODB_FOUND_VERSION)] )
93
+ fi
94
+
92
95
PHP_ARG_ENABLE(developer-flags, whether to enable developer build flags,
93
96
[ --enable-developer-flags Enable developer flags] ,, no)
94
97
You can’t perform that action at this time.
0 commit comments