Bug 34382 - Update autotools configuration
Summary: Update autotools configuration
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Dan Nicholson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-17 04:32 UTC by Javier Jardón
Modified: 2012-05-23 05:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Use the recommended configure.ac instead configure.in (10.72 KB, patch)
2011-02-17 04:33 UTC, Javier Jardón
Details | Splinter Review
Update autotools configuration (3.57 KB, patch)
2011-02-17 04:34 UTC, Javier Jardón
Details | Splinter Review

Description Javier Jardón 2011-02-17 04:32:53 UTC
Replace deprecated macros and use the new libtool syntax.
Also use silent rules to silence the build a bit
Comment 1 Javier Jardón 2011-02-17 04:33:28 UTC
Created attachment 43480 [details] [review]
Use the recommended configure.ac instead configure.in
Comment 2 Javier Jardón 2011-02-17 04:34:07 UTC
Created attachment 43481 [details] [review]
Update autotools configuration

Replace deprecated macros and use the new libtool syntax.
Also use silent rules to silence the build a bit
Comment 3 Javier Jardón 2011-09-13 08:02:52 UTC
Any comments about the patches?
Comment 4 Dan Nicholson 2012-04-21 13:22:48 UTC
(In reply to comment #1)
> Created attachment 43480 [details] [review] [review]
> Use the recommended configure.ac instead configure.in

Tollef made this change in 2ec2007d8d23748cdf72eba8503940615722848e, so we can skip this one.
Comment 5 Dan Nicholson 2012-04-21 13:43:14 UTC
Comment on attachment 43481 [details] [review]
Update autotools configuration

Review of attachment 43481 [details] [review]:
-----------------------------------------------------------------

In general I'm really happy with these changes and would appreciate autoreconf not complaining to me anymore. There are a couple things I'd like to discuss, though.

::: Makefile.am
@@ +1,1 @@
> +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

This is only necessary for keeping the libtool macros in tree, right? And the $ACLOCAL_FLAGS is just to support gnome-autogen.sh?

::: configure.ac
@@ +1,1 @@
> +AC_PREREQ([2.63])

Any reason for this? We've got a pretty simple setup here. FWIW, xorg has much more conservative requirements and it hasn't really posed a problem for anything.

http://xorg.freedesktop.org/wiki/ModularDevelopersGuide#GNU_Build_System

@@ +5,5 @@
> +        [pkg-config])
> +
> +AC_CONFIG_HEADERS([config.h])
> +AC_CONFIG_SRCDIR([pkg-config.1])
> +AC_CONFIG_MACRO_DIR([m4])

This is just because of the libtool macros, right? I personally would rather not put the libtool macros in the tree. We're not going to commit them to the repo (at least now), so it doesn't buy us anything. I hope this doesn't cause problems with pkg.m4 being in the root directory, but I don't think we use any of those macros in our configure.

@@ +9,5 @@
> +AC_CONFIG_MACRO_DIR([m4])
> +AC_CONFIG_AUX_DIR([build-aux])
> +
> +AM_INIT_AUTOMAKE([1.10])
> +AM_MAINTAINER_MODE([enable])

This got dropped a while back in master and if we want to reintroduce it that should be a separate discussion.

@@ +22,4 @@
>  
> +# Initialize libtool
> +LT_PREREQ([2.2])
> +LT_INIT

Again, any reason for the newish libtool? It might not matter, but I'm sure older libtool would be fine for us.
Comment 6 Dan Nicholson 2012-05-23 05:56:13 UTC
I committed your patch with a few edits in commit 7a8cc77.

* I changed the autotools versions to match our internal glib2 exactly.

* I left out the m4 directory since I don't like the idea of libtool installing its macros in the tree. If someone needs to run libtoolize again for any reason, they're going to prefer the libtool version on their system, I think.

* I left out the build-aux change. No real reason, I just felt it was superfluous and doesn't provide any real benefits. I've done it both ways, though.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.