Whamcloud - gitweb
LU-7042 lnet: Handle OFED 3.18 packaging definitions 18/16418/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Mon, 14 Sep 2015 19:34:52 +0000 (22:34 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 19 Sep 2015 03:47:01 +0000 (03:47 +0000)
commitbfa4bc911208f7a7a447984a40266c70ad8814ab
tree7c05ca680d527d8c8fa77c35072424cc729e9171
parentab074f434b198c86872954402b94857d7cec38c4
LU-7042 lnet: Handle OFED 3.18 packaging definitions

Starting with OFED 3.18 the OFED package started to use config.h
provided by autoconf tool. This lead to clash between PACKAGE_*
macros which are defined in OFED and Lustre headers.

Also dealing with kernels that have lustre enabled already
required to undefine the common macros that used by in-kernel
Lustre client and this sources.

This fix undefine all symbols that are generated by Lustre autoconf
to avoid conflicts with kernel defines or OFEDs. They are undefined
right before new definition in config.h. The list of symbols to undef
is automatically generated by autoconf and should not be extended in
the future.

Also undefine clashed macros in autoconf checks.

Change-Id: I0d93adac19573328e905ba536db0dbd842ed2aab
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/16418
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
.gitignore
autoMakefile.am
config/.gitignore
config/lustre-build.m4
lnet/autoconf/lustre-lnet.m4
lnet/klnds/gnilnd/Makefile.in
lnet/klnds/o2iblnd/Makefile.in
lnet/klnds/socklnd/Makefile.in
lnet/lnet/Makefile.in