Whamcloud - gitweb
LU-15838 autoconf: fix use of obsolete macros 88/47288/3
authorJian Yu <yujian@whamcloud.com>
Mon, 30 May 2022 21:02:50 +0000 (14:02 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Jul 2022 03:34:14 +0000 (03:34 +0000)
commitb01d3668aff8f17a20bf006bd915392b4708d46b
tree0fb86f46b334e6582806ae25115a6b53ff4ce748
parent0829256bd48c6b9bb1503d6c94d90ea391f696cb
LU-15838 autoconf: fix use of obsolete macros

This patch fixes the following warnings when using autoconf 2.71:

configure.ac:2: warning: AC_INIT: not a literal:
                "m4_esyscmd(sh -c "./LUSTRE-VERSION-GEN | tr -d '\n'")"
configure.ac:10: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:16: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:24: warning: The macro `AC_HELP_STRING' is obsolete.

Like m4_esyscmd, macro m4_esyscmd_s (introduced in autoconf 2.64)
expands to the result of running command in a shell. The difference
is that any trailing newlines are removed.

Since autoconf 2.50, macro 'AC_CANONICAL_TARGET' has been the new name
of 'AC_CANONICAL_SYSTEM':
AU_ALIAS([AC_CANONICAL_SYSTEM], [AC_CANONICAL_TARGET])

Since autoconf 2.58, macro 'AS_HELP_STRING' has been added to replace
'AC_HELP_STRING'.

Since libtool 2.0, new 'LT_INIT' interface has been added to replace
'AC_PROG_LIBTOOL'.

Change-Id: I3c06c21460d7a2cf643fe825e72a26a5416609cf
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47288
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-ldiskfs.m4
config/lustre-build-linux.m4
config/lustre-build.m4
configure.ac
libcfs/autoconf/lustre-libcfs.m4
lnet/autoconf/lustre-lnet.m4
lustre/autoconf/kerberos5.m4
lustre/autoconf/lustre-core.m4
snmp/autoconf/lustre-snmp.m4