Skip to content

Commit 0970fd4

Browse files
committed
Autotools: Sync CS in enchant extension
1 parent 8c18ae7 commit 0970fd4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ext/enchant/config.m4

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ PHP_ARG_WITH([enchant],
44
[Include Enchant support])])
55

66
if test "$PHP_ENCHANT" != "no"; then
7-
PKG_CHECK_MODULES([ENCHANT2], [enchant-2], [found_enchant_2=yes], [found_enchant_2=no])
8-
9-
if test "$found_enchant_2" = "yes"; then
7+
PKG_CHECK_MODULES([ENCHANT2], [enchant-2],
8+
[found_enchant_2=yes],
9+
[found_enchant_2=no])
1010

11+
AS_VAR_IF([found_enchant_2], [yes], [
1112
PHP_EVAL_INCLINE([$ENCHANT2_CFLAGS])
1213
PHP_EVAL_LIBLINE([$ENCHANT2_LIBS], [ENCHANT_SHARED_LIBADD])
13-
14-
AC_DEFINE(HAVE_ENCHANT_GET_VERSION, 1, [ enchant_get_version since 1.6.0 ])
15-
16-
else
14+
AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
15+
[enchant_get_version since 1.6.0])
16+
], [
1717
AC_MSG_WARN([libenchant-2 not found trying with old libenchant])
1818
PKG_CHECK_MODULES([ENCHANT], [enchant >= 1.4.2])
1919
@@ -22,7 +22,7 @@ if test "$PHP_ENCHANT" != "no"; then
2222
2323
PHP_CHECK_LIBRARY([enchant], [enchant_get_version],
2424
[AC_DEFINE([HAVE_ENCHANT_GET_VERSION], [1],
25-
[enchant_get_version since 1.6.0 ])],
25+
[enchant_get_version since 1.6.0])],
2626
[],
2727
[$ENCHANT_LIBS])
2828
@@ -31,7 +31,7 @@ if test "$PHP_ENCHANT" != "no"; then
3131
[enchant_broker_set_param since 1.5.0 and removed in 2.x])],
3232
[],
3333
[$ENCHANT_LIBS])
34-
fi
34+
])
3535

3636
AC_DEFINE(HAVE_ENCHANT, 1, [ ])
3737

0 commit comments

Comments
 (0)