[Mesa-dev] [PATCH kmscube 3/5] configure.ac: remove unused AC_PROG_LIBTOOL

Emil Velikov emil.l.velikov at gmail.com
Tue Mar 14 12:10:50 UTC 2017


We're creating a single binary with no static/shared libraries.

We implicitly relied on the macro to pull AC_PROG_CC, so we should add
it now, otherwise configure will fail.

As a nice bonus, with the last three commits combined the execution time
of autogen.sh drops by more than half.

	before		after
real    0m7.965s	0m3.661s
user    0m4.530s	0m1.280s
sys     0m0.280s	0m0.070s

Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 Makefile.am  | 3 ---
 configure.ac | 5 ++---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index a6abf78..7caf0fe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,9 +25,6 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
 bin_PROGRAMS = kmscube
 
-kmscube_LDFLAGS = \
-	-no-undefined
-
 kmscube_LDADD = \
 	$(DRM_LIBS) \
 	$(GBM_LIBS) \
diff --git a/configure.ac b/configure.ac
index 9b92d0e..2fe99d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,12 +30,11 @@ AC_CONFIG_MACRO_DIR([m4])
 # Initialize Automake
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
 
+AC_PROG_CC
+
 # Enable quiet compiles on automake 1.11.
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
-# Initialize libtool
-AC_PROG_LIBTOOL
-
 # Obtain compiler/linker options for depedencies
 PKG_CHECK_MODULES(DRM, libdrm)
 PKG_CHECK_MODULES(GBM, gbm)
-- 
2.11.1



More information about the mesa-dev mailing list