Skip to content
Snippets Groups Projects
Commit d0dd9745 authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

m4: with_pkg: fix PKG_HAVE_WITH_MODULES macro

The macro was checking for $with_foo to be set but only $enabled_foo was
set correctly by the PKG_WITH_MODULES macro. In addition, this patch
adds an intermediate macro for the name to be readable.
parent 004dde58
No related branches found
No related tags found
No related merge requests found
Pipeline #74918 passed with stages
in 34 minutes and 23 seconds
......@@ -71,8 +71,10 @@ AC_DEFUN([PKG_HAVE_WITH_MODULES],
[
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
m4_pushdef([with_arg], m4_tolower([$1]))
AM_CONDITIONAL([HAVE_][$1],
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
[test "$AS_TR_SH([enable_]with_arg)" = "yes"])
m4_popdef([with_arg])
])
dnl PKG_ENABLE_MODULES_VLC(VARIABLE-PREFIX,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment