Whamcloud - gitweb
LU-15838 autoconf: fix use of obsolete macros
authorJian Yu <yujian@whamcloud.com>
Mon, 6 Jun 2022 07:12:43 +0000 (00:12 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 10 Jun 2022 22:40:55 +0000 (22:40 +0000)
commit6cfdad3fc2f40c8e05bbc94803654229fb8ab1b0
tree1bcb2cb6dfe1fbba9c1cf26629454c4931591c61
parentd755461e7a2011a0bcee483bb6e890cb699c3275
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'.

Lustre-change: https://review.whamcloud.com/47288
Lustre-commit: TBD (from a94a730df48089e3ffbf853af78a2444dc5a3042)

Change-Id: I3c06c21460d7a2cf643fe825e72a26a5416609cf
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47539
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
config/lustre-build-ldiskfs.m4
config/lustre-build-linux.m4
config/lustre-build.m4
configure.ac
libcfs/autoconf/lustre-libcfs.m4
lipe/configure.ac
lnet/autoconf/lustre-lnet.m4
lustre.spec.in
lustre/autoconf/kerberos5.m4
lustre/autoconf/lustre-core.m4
snmp/autoconf/lustre-snmp.m4