diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-23 11:42:23 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-23 11:42:23 +0000 |
| commit | 2d559beaad8caacc57cc76e0482ae9a9363c37d1 (patch) | |
| tree | d4709952a11cfddda188336317302a9bfe5014f0 | |
| parent | 19518ebe35587898a32e3172529761a9a9058621 (diff) | |
Check for GCC 3.0.x...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1648 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | configure.in | 30 |
2 files changed, 26 insertions, 6 deletions
@@ -14,6 +14,8 @@ CHANGES IN FLTK 1.1.0b4 - Fl_Window now provides the FLTK 2.0 "override()" and "set_override()" methods for windows. + - Added a configure check (and warning) for GCC 3.0.x. + - Updated the configure script to check for the png_set_tRNS_to_alpha() function. diff --git a/configure.in b/configure.in index 9c0f49efb..737283c01 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl -*- sh -*- dnl the "configure" script is made from this by running GNU "autoconf" 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 Configuration script for the Fast Light Tool Kit (FLTK). dnl @@ -336,10 +336,28 @@ dnl do this last so messing with switches does not break tests MAKEDEPEND="\$(CXX) -M" if test -n "$GXX"; then - # Use gcc instead of c++ or g++, since we don't need the C++ - # library to depend on... Note that this doesn't work with - # GCC 3.0, but then again not much *does* work with GCC 3.0... - CXX="$CC" + # Starting with GCC 3.0, the brainiacs in the GCC team decided + # that all C++ programs should depend on libstdc++. Not only + # is this not necessary, but it *prevents* binary compatibility + # 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" CXXFLAGS="-Wall $CXXFLAGS" if test -z "$DEBUGFLAG"; then @@ -474,5 +492,5 @@ AC_OUTPUT(makeinclude fltk-config) chmod +x fltk-config 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 |
