1dnl builtin_expect is used in module we can't add that in config.h 2AC_DEFUN([AX_BUILTIN_EXPECT], 3[ 4AC_MSG_CHECKING([whether __builtin_expect is understood]) 5SAVE_CFLAGS=$CFLAGS 6CFLAGS="-Werror $CFLAGS" 7AC_TRY_LINK(,[ 8int i; 9if (__builtin_expect(i, 0)) { } 10], 11AC_MSG_RESULT([yes]); EXTRA_CFLAGS_MODULE="$EXTRA_CFLAGS_MODULE -DEXPECT_OK", 12AC_MSG_RESULT([no]);) 13CFLAGS=$SAVE_CFLAGS 14] 15) 16