Skip to content
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

Autotools updates #180

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Autotools updates #180

wants to merge 17 commits into from

Conversation

EvaSDK
Copy link
Contributor

@EvaSDK EvaSDK commented Dec 8, 2018

Here is a first throw at what I had in mind concerning autotools changes.

Going forward, we could replace readline by ax_readline macro, not sure if it would work fine with prefix support though.

jpeg detection could probably be changed to use GP_CHECK_LIBRARY if you are ready to stop supporting systems that do not ship a pkgconfig for it. Afaik, most distributions now do.

exif check could be simplified to require 0.6.9. This release is quite old already, it seems reasonable to require it rather than an older one.

For cdk and aalib, besides contributing upstream it seems unlikely the checks can be simplified.

This is redundant with autoreconf error that will print:
[...] aclocal-1.16: error: couldn\'t open directory \'gphoto-m4\': No
such file or directory

at this point, people are supposed to turn to autogen.sh if familiar
with autotools based packages or README or INSTALL for others.
These versions should be available on most popular distributions at this time.
Not sure if any other target would use it but configure.ac is
definitely not the place to set it.
Use automake += operator to add source, cppflags and ldadd to gphoto2
target directly from optional features conditionals. Specifying these
files in EXTRA_DIST becomes unneeded. Add i18n.h to gphoto2_SOURCES as
it is included there and makes it redundant to specify in EXTRA_DIST.
And use autoconf provided variable names allowing removal of various intermediate variables.
Use AS_IF instead of raw if in affected blocks as is recommanded by autoconf.
@ndim ndim self-assigned this Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants