Don't warn about multichar characters on BeOS/Haiku. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Oct 2011 16:35:25 -0400
branchSDL-1.2
changeset 5987825e1072eac6
parent 5986 4854219a91e9
child 5988 bf927e528813
Don't warn about multichar characters on BeOS/Haiku.

The system headers use them generously.
configure.in
     1.1 --- a/configure.in	Thu Oct 13 14:50:47 2011 -0400
     1.2 +++ b/configure.in	Thu Oct 13 16:35:25 2011 -0400
     1.3 @@ -894,6 +894,19 @@
     1.4  
     1.5      if test x$have_gcc_Wall = xyes; then
     1.6          EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
     1.7 +
     1.8 +        dnl Haiku headers use multicharacter constants all over the place. Ignore these warnings when using -Wall.
     1.9 +        AC_MSG_CHECKING(for necessary GCC -Wno-multichar option)
    1.10 +        need_gcc_Wno_multichar=no
    1.11 +        case "$host" in
    1.12 +            *-*-beos* | *-*-haiku*)
    1.13 +                need_gcc_Wno_multichar=yes
    1.14 +                ;;
    1.15 +        esac
    1.16 +        AC_MSG_RESULT($need_gcc_Wno_multichar)
    1.17 +        if test x$need_gcc_Wno_multichar = xyes; then
    1.18 +            EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
    1.19 +        fi
    1.20      fi
    1.21  }
    1.22