Skip to content

Commit

Permalink
Remove libsupc++ stuff, since it doesn't work on OSX 10.4 or with
Browse files Browse the repository at this point in the history
other (broken) GCC installs.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Sep 18, 2005
1 parent eefa09e commit 6e88ede
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions configure.in
Expand Up @@ -743,38 +743,6 @@ dnl Add warnings to compiler switches:
dnl do this last so messing with switches does not break tests

if test -n "$GCC"; then
# Starting with GCC 3.0, you must link C++ programs against either
# libstdc++ (shared by default), or libsupc++ (always static). If
# you care about binary portability between Linux distributions,
# you need to either 1) build your own GCC with static C++ libraries
# or 2) link using gcc and libsupc++. We choose the latter since
# CUPS doesn't (currently) use any of the stdc++ library.
#
# 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!
#
# Previous versions of GCC do not have the reliance on the stdc++
# or g++ libraries, so the extra supc++ library is not needed.

AC_MSG_CHECKING(if libsupc++ is required)

SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
case "$SUPC" in
libsupc++.a*)
# Library not found, so this is and older GCC...
AC_MSG_RESULT(no)
;;
*)
# This is gcc 3.x, and it knows of libsupc++, so we need it
LIBS="$LIBS -lsupc++"
AC_MSG_RESULT(yes)
;;
esac

if test x$uname != xDarwin; then
CXX="$CC"
fi

# Show all standard warnings + unused variables, conversion errors,
# and inlining problems when compiling...
OPTIM="-Wall -Wunused -Wno-format-y2k $OPTIM"
Expand Down

0 comments on commit 6e88ede

Please sign in to comment.