Changeset 563 for trunk/aclocal.m4


Ignore:
Timestamp:
Jun 30, 2021, 10:22:04 PM (3 years ago)
Author:
katerina
Message:

Fix for ticket #453 (configure check for invalid negative options).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r550 r563  
    12441244     AC_MSG_CHECKING([whether ${CC} accepts $1])
    12451245     saved_cflags="$CFLAGS"
    1246      CFLAGS="$CFLAGS -Werror $1"
     1246     # any -Wno- option will always succeed :-(
     1247     flag_check_opt=`echo $1 | sed 's,-Wno-,-W,'`
     1248     CFLAGS="$CFLAGS -Werror $flag_check_opt"
    12471249     AC_TRY_COMPILE(,, flag_check_cv=yes, flag_check_cv=no)
    12481250     CFLAGS="$saved_cflags"
    1249 
    12501251     if test $flag_check_cv = yes; then
    12511252        CFLAGS="$CFLAGS $1"
Note: See TracChangeset for help on using the changeset viewer.