- Removed some old cruft.
- Removed some support for older versions of automake which technically was
correct, but caused the newer automakes to squawk warnings during an
initial sanity check (which isn't done very intelligently.)
NOTE: this fix is technically not correct for older version of automake.
These older version use the variable "INCLUDES" internally and could have
them already set to an important value. That is why we were appending
our values to them. However, newer versions of automake don't set this
value themselves so it is an error to append to a non-existant variable.
We seem to "get away" with overwriting the value on older versions of
automake, but if you have problems, consider upgrading to at least
automake-1.5.
dnl build a Makefile.in from a Makefile.am which lets us define custom
dnl includes, compile alternative source files, etc.
-dnl Enable serial support on Unix type systems
-AM_CONDITIONAL(ENABLE_UNIX_SERIAL, true)
-
dnl X11 might be installed on Mac OS X, don't want to use it if it is.
if test "x$HOSTTYPE" != "xmacintosh" ; then
dnl Check for X11 (fancy)
if test "x$ac_cv_lib_glut_glutGameModeString" = "xno"; then
echo
echo "Your version of glut doesn't support game mode."
- echo "You need to fetch and install the latest version of glut from:"
+ echo "You need to install the latest version of glut. If your"
+ echo "distribution doesn't provide a newer version, you can get the source"
+ echo "code from:"
echo
echo " http://reality.sgi.com/opengl/glut3/glut3.html"
exit 1
-if ENABLE_UNIX_SERIAL
-SERIAL_DIRS = serial
-else
-SERIAL_DIRS =
-endif
-
if HAVE_THREADS
SGTHREAD_DIR = threads
else
$(METAR_DIRS) \
route \
screen \
- $(SERIAL_DIRS) \
+ serial \
sky \
$(SGTHREAD_DIR) \
timing \
# $(top_builddir)/bucket/libsgbucket.a \
# $(top_builddir)/misc/libsgmisc.a
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
libsgdebug_a_SOURCES = logstream.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
uranus.cxx \
venus.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
ixlib_js_internals.hh \
ixlib_random.hh
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
sg_socket.cxx \
sg_socket_udp.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
if IS_MINGW
NETWORK_LIB = -lwsock32
testmagvar_LDADD = $(top_builddir)/simgear/magvar/libsgmagvar.a
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
sg_random.c \
vector.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
MetarStation.cpp \
Prtdmetr.cpp Stspack2.cpp Stspack3.cpp
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
props_test_SOURCES = props_test.cxx
props_test_LDADD = libsgmisc.a ../xml/libsgxml.a ../debug/libsgdebug.a
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
route.cxx \
waypoint.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
noinst_PROGRAMS = waytest routetest
tr.cxx \
win32-printer.h
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
$(top_builddir)/simgear/serial/libsgserial.a \
$(top_builddir)/simgear/debug/libsgdebug.a
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
sphere.cxx \
stars.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
libsgthreads_a_SOURCES = \
SGThread.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
timestamp.cxx \
timezone.cxx
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
libsgxgl_a_SOURCES = xgl.c xglUtils.c
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif
xmltok.h xmltok.c \
xmltok_impl.h
-if OLD_AUTOMAKE
-INCLUDES += -I$(top_srcdir)
-else
INCLUDES = -I$(top_srcdir)
-endif