3 AC_DEFUN([mfx_PROG_CPPFLAGS], [
4 AC_MSG_CHECKING([whether the C preprocessor needs special flags])
6 AC_LANG_CONFTEST([AC_LANG_PROGRAM(
8 #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
9 # include "your C preprocessor is broken 1"
10 #elif (0xffffu == 0xfffffffful)
11 # include "your C preprocessor is broken 2"
12 #elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX)
13 # include "your C preprocessor is broken 3"
18 mfx_save_CPPFLAGS=$CPPFLAGS
20 for mfx_arg in "" -no-cpp-precomp
22 CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS"
23 _AC_COMPILE_IFELSE([],
27 CPPFLAGS=$mfx_save_CPPFLAGS
28 rm -f conftest.$ac_ext conftest.$ac_objext
31 AC_MSG_RESULT([none needed]) ;;
33 AC_MSG_RESULT([ERROR])
34 AC_MSG_ERROR([your C preprocessor is broken - for details see config.log])
37 AC_MSG_RESULT([$mfx_tmp])
38 CPPFLAGS="$mfx_tmp $CPPFLAGS"