build: check for build/link flags harder
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 17 Nov 2013 12:44:02 +0000 (07:44 -0500)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 Nov 2013 01:56:22 +0000 (11:56 +1000)
commitb8ffc23875db1527b3b58da54d2a78ccfe066054
tree2a237c873557551ae2d1f91ccb397a58d7e0fb97
parentf7acb3b19bb9e0eb7d88129225ae48cd2f78660a
build: check for build/link flags harder

Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to test for flags that
might succeed during compilation but not during linking. An example is gcc
compiled with libssp support but gnu-ld without it. In this case
-fstack-protector works fine during compilation but fails during linking
as several internal helpers are missing.

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
m4/attributes.m4