configure: fix builtin detection w/-Werror

and other warnings enabled (-Wunused-value)

Change-Id: Ic0080d559366a5254d0fa3ba939150445157087f
This commit is contained in:
James Zern 2016-01-28 23:32:33 -08:00
parent 3661b98069
commit b74657fb2e

View File

@ -221,7 +221,7 @@ dnl === AC_DEFINE'ing <define> if successful.
AC_DEFUN([CHECK_FOR_BUILTIN], AC_DEFUN([CHECK_FOR_BUILTIN],
[AC_LANG_PUSH([C]) [AC_LANG_PUSH([C])
AC_MSG_CHECKING([for $1]) AC_MSG_CHECKING([for $1])
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [$1($2)])], AC_LINK_IFELSE([AC_LANG_PROGRAM([], [(void)$1($2)])],
[AC_MSG_RESULT([yes]) [AC_MSG_RESULT([yes])
AC_DEFINE([$3], [1], AC_DEFINE([$3], [1],
[Set to 1 if $1 is available])], [Set to 1 if $1 is available])],