mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 03:04:05 +02:00
Fix a sed script that doesn't correctly detect i586-mingw32-gcc-3.4
2007-05-29 Cody Russell <bratsche@gnome.org> * configure.in: Fix a sed script that doesn't correctly detect i586-mingw32-gcc-3.4 compiler, and was causing -Wno-pointer-sign errors when building with that compiler. (#440896, Yevgen Muntyan) svn path=/trunk/; revision=5520
This commit is contained in:
committed by
Cody Russell
parent
cdadca21c5
commit
92ebd4eac0
@@ -1,3 +1,9 @@
|
|||||||
|
2007-05-29 Cody Russell <bratsche@gnome.org>
|
||||||
|
|
||||||
|
* configure.in: Fix a sed script that doesn't correctly detect
|
||||||
|
i586-mingw32-gcc-3.4 compiler, and was causing -Wno-pointer-sign
|
||||||
|
errors when building with that compiler. (#440896, Yevgen Muntyan)
|
||||||
|
|
||||||
2007-05-29 Marco Barisione <marco@barisione.org>
|
2007-05-29 Marco Barisione <marco@barisione.org>
|
||||||
|
|
||||||
* glib/gregex.c: Fix g_regex_fetch_named() and
|
* glib/gregex.c: Fix g_regex_fetch_named() and
|
||||||
|
13
configure.in
13
configure.in
@@ -2201,13 +2201,12 @@ if test x$enable_regex = xtrue; then
|
|||||||
else
|
else
|
||||||
# If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
|
# If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
|
||||||
if test x"$GCC" = xyes; then
|
if test x"$GCC" = xyes; then
|
||||||
AC_MSG_CHECKING([whether gcc understands -Wno-pointer-sign])
|
AC_MSG_CHECKING([whether compiler understands -Wno-pointer-sign])
|
||||||
if test [`$CC --version | sed -e 's/[^0-9]*\([0-9]\).*/\1/' -e q`] -ge 4; then
|
save_CFLAGS="$CFLAGS"
|
||||||
PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
|
CFLAGS="$CFLAGS -Wno-pointer-sign"
|
||||||
AC_MSG_RESULT([yes])
|
AC_TRY_COMPILE([],[],[PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
|
||||||
else
|
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
|
||||||
AC_MSG_RESULT([no])
|
CFLAGS="$save_CFLAGS"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PCRE_WARN_CFLAGS)
|
AC_SUBST(PCRE_WARN_CFLAGS)
|
||||||
|
Reference in New Issue
Block a user