]> granicus.if.org Git - php/commitdiff
enchant: fix shared build
authorRemi Collet <remi@php.net>
Tue, 21 May 2019 14:14:12 +0000 (16:14 +0200)
committerRemi Collet <remi@php.net>
Tue, 21 May 2019 14:14:52 +0000 (16:14 +0200)
ext/enchant/config.m4

index cd2765c7ef3ddb50912bb23db10c97530d658ab2..c00e5689afc95661e59d6eb830ecc3e748c8f6cc 100644 (file)
@@ -4,8 +4,6 @@ PHP_ARG_WITH([enchant],
     [Include Enchant support])])
 
 if test "$PHP_ENCHANT" != "no"; then
-  PHP_NEW_EXTENSION(enchant, enchant.c, $ext_shared)
-
   PKG_CHECK_MODULES([ENCHANT], [enchant])
 
   PHP_EVAL_INCLINE($ENCHANT_CFLAGS)
@@ -18,4 +16,7 @@ if test "$PHP_ENCHANT" != "no"; then
     AC_DEFINE(HAVE_ENCHANT_BROKER_SET_PARAM, 1, [ ])
     AC_DEFINE(ENCHANT_VERSION_STRING, "1.5.x", [ ])
   ])
+
+  PHP_NEW_EXTENSION(enchant, enchant.c, $ext_shared)
+  PHP_SUBST(ENCHANT_SHARED_LIBADD)
 fi