Ralf Gerlich: add headless mode to SimGear (merging simgear-cs)

This commit is contained in:
James Turner
2010-08-06 19:16:29 +01:00
parent 8690528080
commit c1762c709e
3 changed files with 27 additions and 10 deletions

View File

@@ -24,6 +24,14 @@ AC_ARG_WITH(cxx,
esac
])
AC_ARG_ENABLE(headless,
AS_HELP_STRING([--enable-headless],[Enable only packages for headless build]))
AC_MSG_CHECKING([for headless mode])
AC_MSG_RESULT([$enable_headless])
AM_CONDITIONAL(WANT_HEADLESS,[test "x$enable_headless" = "xyes"])
AC_MSG_CHECKING([CXX])
AC_MSG_RESULT([$CXX])
AC_MSG_CHECKING([CC])
@@ -379,7 +387,7 @@ case "${host}" in
esac
if test "$OPENAL_OK" == "no"; then
if test "$OPENAL_OK" == "no" -a "x$enable_headless" != "xyes"; then
echo
echo "You *must* have the openal library installed on your system to build"
echo "SimGear!"
@@ -390,7 +398,7 @@ if test "$OPENAL_OK" == "no"; then
exit
fi
if test "$ALUT_OK" == "no"; then
if test "$ALUT_OK" == "no" -a "x$enable_headless" != "xyes"; then
echo
echo "You *must* have the alut library installed on your system to build"
echo "SimGear!"

View File

@@ -1,11 +1,22 @@
# METAR_DIRS =
METAR_DIRS = environment
EXTRA_DIST = simgear_config.h.vc5 simgear_config.h-msvc71 version.h.in
include_HEADERS = \
compiler.h constants.h sg_inlines.h version.h
if WANT_HEADLESS
METAR_DIRS =
SG_EXTRA_DIRS =
else
SG_EXTRA_DIRS = scene sound screen
METAR_DIRS = environment
endif
if HAVE_THREADS
SGTHREAD_DIR = threads
else
SGTHREAD_DIR =
endif
SUBDIRS = \
$(compatibility_DIR) \
xml \
@@ -21,11 +32,9 @@ SUBDIRS = \
nasal \
props \
route \
scene \
screen \
$(SG_EXTRA_DIRS) \
$(SGTHREAD_DIR) \
serial \
threads \
timing \
sound
DIST_SUBDIRS = $(SUBDIRS) compatibility

View File

@@ -329,7 +329,7 @@ void sgBucketDiff( const SGBucket& b1, const SGBucket& b2, int *dx, int *dy );
inline std::ostream&
operator<< ( std::ostream& out, const SGBucket& b )
{
return out << b.lon << ":" << b.x << ", " << b.lat << ":" << b.y;
return out << b.lon << ":" << (int)b.x << ", " << b.lat << ":" << (int)b.y;
}