Check for GCC 3.0.x...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
19518ebe35
commit
2d559beaad
2
CHANGES
2
CHANGES
@ -14,6 +14,8 @@ CHANGES IN FLTK 1.1.0b4
|
|||||||
- Fl_Window now provides the FLTK 2.0 "override()" and
|
- Fl_Window now provides the FLTK 2.0 "override()" and
|
||||||
"set_override()" methods for windows.
|
"set_override()" methods for windows.
|
||||||
|
|
||||||
|
- Added a configure check (and warning) for GCC 3.0.x.
|
||||||
|
|
||||||
- Updated the configure script to check for the
|
- Updated the configure script to check for the
|
||||||
png_set_tRNS_to_alpha() function.
|
png_set_tRNS_to_alpha() function.
|
||||||
|
|
||||||
|
30
configure.in
30
configure.in
@ -1,7 +1,7 @@
|
|||||||
dnl -*- sh -*-
|
dnl -*- sh -*-
|
||||||
dnl the "configure" script is made from this by running GNU "autoconf"
|
dnl the "configure" script is made from this by running GNU "autoconf"
|
||||||
dnl
|
dnl
|
||||||
dnl "$Id: configure.in,v 1.33.2.31.2.12 2001/10/19 14:04:08 easysw Exp $"
|
dnl "$Id: configure.in,v 1.33.2.31.2.13 2001/10/23 11:42:23 easysw Exp $"
|
||||||
dnl
|
dnl
|
||||||
dnl Configuration script for the Fast Light Tool Kit (FLTK).
|
dnl Configuration script for the Fast Light Tool Kit (FLTK).
|
||||||
dnl
|
dnl
|
||||||
@ -336,10 +336,28 @@ dnl do this last so messing with switches does not break tests
|
|||||||
MAKEDEPEND="\$(CXX) -M"
|
MAKEDEPEND="\$(CXX) -M"
|
||||||
|
|
||||||
if test -n "$GXX"; then
|
if test -n "$GXX"; then
|
||||||
# Use gcc instead of c++ or g++, since we don't need the C++
|
# Starting with GCC 3.0, the brainiacs in the GCC team decided
|
||||||
# library to depend on... Note that this doesn't work with
|
# that all C++ programs should depend on libstdc++. Not only
|
||||||
# GCC 3.0, but then again not much *does* work with GCC 3.0...
|
# is this not necessary, but it *prevents* binary compatibility
|
||||||
CXX="$CC"
|
# between different distributions of Linux (and even on other
|
||||||
|
# OS's that normally don't include the GCC version of libstdc++...)
|
||||||
|
#
|
||||||
|
# Also, GCC 3.0.x still has problems compiling some code. You may
|
||||||
|
# or may not have success with it. USE 3.0.x WITH EXTREME CAUTION!
|
||||||
|
#
|
||||||
|
# The following check uses "gcc" instead of "c++" or "g++"
|
||||||
|
# when compiling with older versions of GCC which don't have
|
||||||
|
# this ridiculous reliance on libstdc++.
|
||||||
|
|
||||||
|
case "`$CXX --version`" in
|
||||||
|
3*)
|
||||||
|
AC_MSG_WARN(GCC 3.x may not work properly and introduces unnecessary dependencies on libstdc++!)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
CXX="$CC"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
CFLAGS="-Wall $CFLAGS"
|
CFLAGS="-Wall $CFLAGS"
|
||||||
CXXFLAGS="-Wall $CXXFLAGS"
|
CXXFLAGS="-Wall $CXXFLAGS"
|
||||||
if test -z "$DEBUGFLAG"; then
|
if test -z "$DEBUGFLAG"; then
|
||||||
@ -474,5 +492,5 @@ AC_OUTPUT(makeinclude fltk-config)
|
|||||||
chmod +x fltk-config
|
chmod +x fltk-config
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl End of "$Id: configure.in,v 1.33.2.31.2.12 2001/10/19 14:04:08 easysw Exp $".
|
dnl End of "$Id: configure.in,v 1.33.2.31.2.13 2001/10/23 11:42:23 easysw Exp $".
|
||||||
dnl
|
dnl
|
||||||
|
Loading…
Reference in New Issue
Block a user