[Nouveau] [PATCH xf86-video-nouveau 11/17] config: Use LT_INIT option instead of AC_DISABLE_STATIC

Rhys Kidd rhyskidd at gmail.com
Mon Jan 21 05:52:17 UTC 2019


Since libtool 2.2 (released March 2008) the preferred initiation of
libtool is with the LT_INIT() macro, instead of AC_PROG_LIBTOOL.

As we are using LT_INIT anyway we might as well pass the disable-static
option directly to it instead of using the AC_DISABLE_STATIC macro.

See:
- https://www.gnu.org/software/libtool/manual/html_node/LT_005fINIT.html
- https://www.x.org/wiki/NewModuleGuidelines/

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 configure.ac | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3a1e18e..7e19da8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,10 +50,8 @@ XORG_DEFAULT_OPTIONS
 m4_ifndef([XORG_DRIVER_CHECK_EXT],
           [m4_fatal([must install xorg-server macros before running autoconf/autogen])])
 
-
-# Checks for programs.
-AC_DISABLE_STATIC
-LT_INIT
+# Initialize libtool
+LT_INIT([disable-static])
 
 AH_TOP([#include "xorg-server.h"])
 
-- 
2.19.1



More information about the Nouveau mailing list