mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 08:06:35 +08:00
Clean up configure script a little, update default man page
directory... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1670 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+25
-22
@@ -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.16 2001/10/25 17:25:11 easysw Exp $"
|
dnl "$Id: configure.in,v 1.33.2.31.2.17 2001/11/01 14:54:06 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
|
||||||
@@ -306,7 +306,7 @@ AC_SUBST(CAT3EXT)
|
|||||||
dnl Fix "mandir" variable...
|
dnl Fix "mandir" variable...
|
||||||
if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
|
if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/usr"; then
|
||||||
case "$uname" in
|
case "$uname" in
|
||||||
FreeBSD* | NetBSD* | OpenBSD* | Linux*)
|
*BSD* | Darwin* | Linux*)
|
||||||
# *BSD
|
# *BSD
|
||||||
mandir="\${prefix}/share/man"
|
mandir="\${prefix}/share/man"
|
||||||
;;
|
;;
|
||||||
@@ -335,28 +335,31 @@ 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
|
||||||
# Starting with GCC 3.0, the brainiacs in the GCC team decided
|
# Starting with GCC 3.0, you must link C++ programs against either
|
||||||
# that all C++ programs should depend on libstdc++. Not only
|
# libstdc++ (shared by default), or libsupc++ (always static). If
|
||||||
# is this not necessary, but it *prevents* binary compatibility
|
# you care about binary portability between Linux distributions,
|
||||||
# between different distributions of Linux (and even on other
|
# you need to either 1) build your own GCC with static C++ libraries
|
||||||
# OS's that normally don't include the GCC version of libstdc++...)
|
# or 2) link using gcc and libsupc++. We choose the latter since
|
||||||
|
# FLTK doesn't (currently) use any of the stdc++ library.
|
||||||
#
|
#
|
||||||
# Also, GCC 3.0.x still has problems compiling some code. You may
|
# 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!
|
# or may not have success with it. USE 3.0.x WITH EXTREME CAUTION!
|
||||||
#
|
#
|
||||||
# The following check uses "gcc" instead of "c++" or "g++"
|
# Previous versions of GCC do not have the reliance on the stdc++
|
||||||
# when compiling with older versions of GCC which don't have
|
# or g++ libraries, so the extra supc++ library is not needed.
|
||||||
# this ridiculous reliance on libstdc++.
|
|
||||||
|
|
||||||
case "`$CXX --version`" in
|
case "`$CXX --version`" in
|
||||||
3*)
|
3*)
|
||||||
AC_MSG_WARN(GCC 3.x may not work properly and introduces unnecessary dependencies on libstdc++!)
|
AC_MSG_WARN(GCC 3.0.x is known to produce incorrect code - use with caution!)
|
||||||
|
LIBS="$LIBS -lsupc++"
|
||||||
;;
|
;;
|
||||||
*)
|
3.1*)
|
||||||
CXX="$CC"
|
LIBS="$LIBS -lsupc++"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
CXX="$CC"
|
||||||
|
|
||||||
CFLAGS="-Wall $CFLAGS"
|
CFLAGS="-Wall $CFLAGS"
|
||||||
CXXFLAGS="-Wall $CXXFLAGS"
|
CXXFLAGS="-Wall $CXXFLAGS"
|
||||||
if test -z "$DEBUGFLAG"; then
|
if test -z "$DEBUGFLAG"; then
|
||||||
@@ -377,26 +380,26 @@ if test -n "$GXX"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# See if GCC supports -fno-exceptions...
|
# See if GCC supports -fno-exceptions...
|
||||||
AC_MSG_CHECKING(Testing if GCC supports -fno-exceptions...)
|
AC_MSG_CHECKING(Checking if GCC supports -fno-exceptions)
|
||||||
OLDCFLAGS="$CFLAGS"
|
OLDCFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS -fno-exceptions"
|
CFLAGS="$CFLAGS -fno-exceptions"
|
||||||
AC_TRY_COMPILE(,,
|
AC_TRY_COMPILE(,,
|
||||||
CXXFLAGS="$CXXFLAGS -fno-exceptions"
|
OPTIM="$OPTIM -fno-exceptions"
|
||||||
AC_MSG_RESULT(yes; disabling them for FLTK...),
|
AC_MSG_RESULT(yes),
|
||||||
CFLAGS="$OLDCFLAGS"
|
|
||||||
AC_MSG_RESULT(no))
|
AC_MSG_RESULT(no))
|
||||||
|
CFLAGS="$OLDCFLAGS"
|
||||||
|
|
||||||
# See if we are running Solaris; if so, try the -fpermissive option...
|
# See if we are running Solaris; if so, try the -fpermissive option...
|
||||||
if test $uname = SunOS; then
|
if test "$uname" = SunOS; then
|
||||||
AC_MSG_CHECKING(Testing if GCC supports -fpermissive...)
|
AC_MSG_CHECKING(Checking if GCC supports -fpermissive)
|
||||||
|
|
||||||
OLDCFLAGS="$CFLAGS"
|
OLDCFLAGS="$CFLAGS"
|
||||||
CFLAGS="$CFLAGS -fpermissive"
|
CFLAGS="$CFLAGS -fpermissive"
|
||||||
AC_TRY_COMPILE(,,
|
AC_TRY_COMPILE(,,
|
||||||
CXXFLAGS="$CXXFLAGS -fpermissive"
|
OPTIM="$OPTIM -fpermissive"
|
||||||
AC_MSG_RESULT(yes),
|
AC_MSG_RESULT(yes),
|
||||||
CFLAGS="$OLDCFLAGS"
|
|
||||||
AC_MSG_RESULT(no))
|
AC_MSG_RESULT(no))
|
||||||
|
CFLAGS="$OLDCFLAGS"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
case `(uname) 2>/dev/null` in
|
case `(uname) 2>/dev/null` in
|
||||||
@@ -491,5 +494,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.16 2001/10/25 17:25:11 easysw Exp $".
|
dnl End of "$Id: configure.in,v 1.33.2.31.2.17 2001/11/01 14:54:06 easysw Exp $".
|
||||||
dnl
|
dnl
|
||||||
|
|||||||
Reference in New Issue
Block a user