Don't call AM_CONDITIONAL from macro.
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 6 Oct 2009 19:03:48 +0000 (22:03 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 6 Oct 2009 19:03:48 +0000 (22:03 +0300)
First, this cannot work properly as the invocation of AM_CONDITIONAL
must be inconditional. Second, this would introduce pointless
automake conditional and thus needlessly slowing down the build system.

m4/with_pkg.m4

index 60b2b05..7925317 100644 (file)
@@ -96,9 +96,6 @@ PKG_WITH_MODULES([$1],[$3],
          ),
     [$4],[$5])
 
-AM_CONDITIONAL([HAVE_][$1],
-               [test "$AS_TR_SH([with_]enable_arg)" = "yes"])
-
 m4_popdef([module_name])
 m4_popdef([enable_arg])