summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-02 10:58:23 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-02 10:58:40 -0800
commitb2569e49dda3f15b9cbf8df60c86bee9ed01a40a (patch)
tree31d1a8a4c3184b68ffb6485491b736563201f4bc
parentb378b79ce9ae1036fc3d3865186eddf0a56112db (diff)
configure: Use LT_INIT from libtool 2 instead of deprecated AC_PROG_LIBTOOL
AC_PROG_LIBTOOL was replaced by LT_INIT in libtool 2 in 2008, so it's time to rely on it. Clears autoconf warnings: configure.ac:37: warning: The macro 'AC_LIBTOOL_DLOPEN' is obsolete. configure.ac:37: You should run autoupdate. m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... configure.ac:37: the top level configure.ac:37: warning: AC_LIBTOOL_DLOPEN: Remove this warning and the call to _LT_SET_OPTION when you configure.ac:37: put the 'dlopen' option into LT_INIT's first parameter. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... m4/ltoptions.m4:113: AC_LIBTOOL_DLOPEN is expanded from... configure.ac:37: the top level configure.ac:38: warning: The macro 'AC_PROG_LIBTOOL' is obsolete. configure.ac:38: You should run autoupdate. m4/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:38: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac4
1 files changed, 1 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 9471684..752f4c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,9 +33,7 @@ AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([foreign dist-xz])
# Initialize libtool
-AC_DISABLE_STATIC
-AC_LIBTOOL_DLOPEN
-AC_PROG_LIBTOOL
+LT_INIT([disable-static dlopen])
# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
m4_ifndef([XORG_MACROS_VERSION],