]> git.proxmox.com Git - mirror_corosync-qdevice.git/commit
configure: move to AC_COMPILE_IFELSE
authorJan Friesse <jfriesse@redhat.com>
Wed, 7 Nov 2018 14:16:13 +0000 (09:16 -0500)
committerJan Friesse <jfriesse@redhat.com>
Wed, 7 Nov 2018 14:22:48 +0000 (15:22 +0100)
commitc65923bc9dcda70d17e68deb8afb064f7cbb4422
tree16dc8c7f6016396043b57bf8b62af105276c3e9b
parentd146bfa883d8495fe64a80919d178162be55bebb
configure: move to AC_COMPILE_IFELSE

from AC_PREPROC_IFELSE which is strongly discouraged.

Our detection system was very weak and recent versions of clang did
show that PREPROC_IFELFE (cpp) would enable warning options that
the compiler does not support (clang).

Use a full compilation test to detect what works and what doesn't.

Based on knet patch 88491f27375a9e8aceb946853a1abf4d23ebb8f3.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
configure.ac