-
Notifications
You must be signed in to change notification settings - Fork 32
[0.4.x] libvisual + libvisual-plugins: configure.ac: Be more helpful in absence of autoconf-archive and/or pkg.m4
#371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
As I mentioned in the linked ticket, I'd also suggest doing this for PKG_CHECK_MODULES. You have some additional checks at the time ./configure is run by the user to verify that $PKG_CONFIG is defined (which is unnecessary, I'd say -- the default PKG_CHECK_MODULES action-if-not-found already suggests an url to get pkg-config, and errors out saying that it could not find pkg-config or pkg-config was too old). Either way, nothing makes sure that pkg.m4 was detected by autoconf, and it's actually possible to have pkg-config installed but not developer tooling such as pkg.m4 (most likely to happen when manually installing autoconf and pkg-config outside of a distro and ending up with different autoconf search paths, I suspect). |
|
@eli-schwartz I checked autoconf-archive and mis-assumed earlier that macro |
6690728 to
9025e94
Compare
|
@eli-schwartz added and pushed |
|
You only need to do it once per file. |
configure.ac: Be more helpful in absence of autoconf-archiveconfigure.ac: Be more helpful in absence of autoconf-archive and/or pkg.m4
@eli-schwartz I'm aware. There can either be one central place with all the non-core macros collected or macros are forbidden right next to their use which may help future maintainers discover and adapt use of |
|
It just seems very verbose to me. That being said, I suppose pkg.m4 has a central place to do this already if you consider PKG_PROG_PKG_CONFIG, so maybe that's an option... |
…ve and/or pkg.m4 Suggested-by: Eli Schwartz <[email protected]>
@eli-schwartz it sure is. I have changed to the centralized version now, pushing in a second…
I'm not sure what you mean. Their
How do you feel about the latest version? |
9025e94 to
4655cf7
Compare
… and/or pkg.m4 Suggested-by: Eli Schwartz <[email protected]>
4655cf7 to
f228b4a
Compare
I meant use of pkg.m4 macros implies a central place in your configure.ac to check this: PKG_PROG_PKG_CONFIG. Technically, you only "need" one macro per file to be forbidden, since using two macros from one file will always either both work, or both fail, and if either one is Probably doesn't really matter which way you handle it -- I just thought perhaps it would suffice to place the m4_pattern_forbid once, by line 28. No big deal if you're moving it to a central block anyway. :)
lgtm via eyeball. There are other unrelated improvements that could be made to pkg-config handling (e.g. |
|
@eli-schwartz thanks for the idea and the review! Merging… |
In reaction to #300 (comment)