From 43e256aaff9baeadfdfdbcf298b2135ddb4ba149 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 5 Jan 2015 09:29:46 +0100 Subject: [PATCH] build: add AC_PROG_LIBTOOL to configure.ac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It should fix the following build error with old autoconf/automake versions: Makefile.am:24: Libtool library used but `LIBTOOL' is undefined Makefile.am:24: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' Makefile.am:24: to `configure.ac' and run `aclocal' and `autoconf' again. Fixes: https://github.com/libuv/libuv/issues/111 PR-URL: https://github.com/libuv/libuv/pull/113 Reviewed-By: Rod Vagg Reviewed-By: Saúl Ibarra Corretgé --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 59e72bc1..a05e3f3d 100644 --- a/configure.ac +++ b/configure.ac @@ -27,6 +27,8 @@ AM_PROG_CC_C_O CC_CHECK_CFLAGS_APPEND([-Wno-dollar-in-identifier-extension]) # AM_PROG_AR is not available in automake v0.11 but it's essential in v0.12. m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) +# autoconf complains if AC_PROG_LIBTOOL precedes AM_PROG_AR. +AC_PROG_LIBTOOL m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) LT_INIT # TODO(bnoordhuis) Check for -pthread vs. -pthreads