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])
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!"
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!"
-# 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 \
nasal \
props \
route \
- scene \
- screen \
+ $(SG_EXTRA_DIRS) \
+ $(SGTHREAD_DIR) \
serial \
- threads \
timing \
- sound
DIST_SUBDIRS = $(SUBDIRS) compatibility
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;
}