File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -4,23 +4,17 @@ PHP_ARG_WITH([bz2],
4
4
[ Include BZip2 support] ) ] )
5
5
6
6
if test "$PHP_BZ2" != "no"; then
7
- if test -r $PHP_BZ2/include/bzlib.h; then
8
- BZIP_DIR=$PHP_BZ2
9
- else
10
- AC_MSG_CHECKING ( [ for BZip2 in default path] )
7
+ AS_IF ( [ test -r $PHP_BZ2/include/bzlib.h] , [ BZIP_DIR=$PHP_BZ2] , [
11
8
for i in /usr/local /usr; do
12
- if test -r $i/include/bzlib.h; then
13
- BZIP_DIR=$i
14
- AC_MSG_RESULT ( [ found in $i] )
15
- break
16
- fi
9
+ AS_IF ( [ test -r $i/include/bzlib.h] , [ BZIP_DIR=$i; break;] )
17
10
done
18
- fi
11
+ ] )
19
12
20
- if test -z "$BZIP_DIR"; then
21
- AC_MSG_RESULT ( [ not found] )
22
- AC_MSG_ERROR ( [ Please reinstall the BZip2 distribution] )
23
- fi
13
+ AC_MSG_CHECKING ( [ for BZip2] )
14
+ AS_VAR_IF ( [ BZIP_DIR] ,, [
15
+ AC_MSG_RESULT ( [ bzlib.h not found] )
16
+ AC_MSG_ERROR ( [ Please reinstall the BZip2 library package] )
17
+ ] , [ AC_MSG_RESULT ( [ found in $BZIP_DIR] ) ] )
24
18
25
19
PHP_CHECK_LIBRARY([ bz2] , [ BZ2_bzerror] , [
26
20
PHP_ADD_INCLUDE([ $BZIP_DIR/include] )
You can’t perform that action at this time.
0 commit comments