Add AM_PROG_AR before LT_INIT, removing AC_PROG_AR etc

Use AM_PROG_AR before LT_INIT to prevent occasional warnings.

AM_PROG_AR was introduced in the 1.11 to 1.12 timeframe,
and we require at least Automake 1.14.
This commit is contained in:
Hans Ulrich Niedermann
2024-02-08 01:36:45 +01:00
parent 3ef9f7194a
commit dc88ff42ad

View File

@@ -72,8 +72,6 @@ fixed.
;;
esac
LT_INIT()
# Checks for programs.
AC_PROG_CC
@@ -82,10 +80,9 @@ AC_PROG_AWK
AC_PROG_SED
AC_PROG_YACC
AC_PROG_LEX([noyywrap])
AN_MAKEVAR([AR], [AC_PROG_AR])
AN_PROGRAM([ar], [AC_PROG_AR])
AC_DEFUN([AC_PROG_AR], [AC_CHECK_TARGET_TOOL(AR, ar, :)])
AC_PROG_AR
AM_PROG_AR
LT_INIT()
AH_TEMPLATE([HAVE_YYLEX_DESTROY],
[Define if lex/flex has yylex_destroy])
# flex should have this