diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-04 10:44:45 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-03-04 11:28:51 -0800 |
commit | 5a6aa67bee5d2e7fe7c244647f878d2965a98544 (patch) | |
tree | 68dff577607a4bc1a26afda204a4c1c60aa82a75 | |
parent | d0966b8df3ac6c7961ef63315335cf2f59c8fc0a (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:39: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:39: You should run autoupdate.
aclocal.m4:3640: AC_PROG_LIBTOOL is expanded from...
configure.ac:39: the top level
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 4e8bbf5..686ad4a 100644 --- a/configure.ac +++ b/configure.ac @@ -26,17 +26,18 @@ AC_INIT([libFS], [1.0.9], [https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues], [libFS]) AC_CONFIG_SRCDIR([Makefile.am]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIRS([m4]) # Initialize Automake AM_INIT_AUTOMAKE([foreign dist-xz]) # Set common system defines for POSIX extensions, such as _GNU_SOURCE # Must be called before any macros that run the compiler (like -# AC_PROG_LIBTOOL) to avoid autoconf errors. +# LT_INIT) to avoid autoconf errors. AC_USE_SYSTEM_EXTENSIONS # Initialize libtool -AC_PROG_LIBTOOL +LT_INIT # Require X.Org macros 1.8 or later m4_ifndef([XORG_MACROS_VERSION], |