diff --git a/CMakeLists.txt b/CMakeLists.txt index ae3117a14..293d8b41f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,7 @@ option(ENABLE_YASIM "Set to ON to build FlightGear with YASIM FDM" ON) option(ENABLE_JSBSIM "Set to ON to build FlightGear with JSBSim FDM" ON) option(ENABLE_FGADMIN "Set to ON to build FlightGear with FGADMIN" ON) option(EVENT_INPUT "Set to ON to build FlightGear with event-based Input support" OFF) -option(ENABLE_LIBSVN "Set to ON to build terrasync with libsvnclient support" OFF) +option(ENABLE_LIBSVN "Set to ON to build FlightGear/terrasync with libsvnclient support" OFF) set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted") diff --git a/configure.ac b/configure.ac index 693740442..179d63f51 100644 --- a/configure.ac +++ b/configure.ac @@ -819,13 +819,13 @@ dnl Check for Subversion library support # libsvn support defaults to yes save_LIBS=$LIBS save_CPPFLAGS=$CPPFLAGS -AC_ARG_WITH(libsvn, [ --without-libsvn Do not use libsvn for terrasync [default=no]], [], [with_libsvn=yes]) +AC_ARG_WITH(libsvn, [ --without-libsvn Do not use built-in subversion (libsvn) for terrasync/fgfs [default=no]], [], [with_libsvn=yes]) if test "x$with_libsvn" = "xyes"; then LIBS="`apr-1-config --link-ld`" CPPFLAGS="-I/usr/include/subversion-1 `apr-1-config --includes --cppflags`" AC_CHECK_HEADERS([svn_client.h]) if test "x$ac_cv_header_svn_client_h" = "xyes"; then - echo "TerraSync will use libsvn" + echo "Using built-in subversion (libsvn) for scenery downloads." AC_SEARCH_LIBS(svn_client_checkout, svn_client-1, [AC_DEFINE([HAVE_LIBSVN_CLIENT_1], [1], [Define to 1 if you have libsvn_client-1])], [AC_MSG_ERROR(svn_client-1 library not found.)],) @@ -836,12 +836,12 @@ if test "x$with_libsvn" = "xyes"; then AC_SUBST(svn_LIBS) AC_SUBST(svn_CPPFLAGS) else - echo "Libsvn not found. TerraSync will use command line subversion" + echo "Libsvn not found. Will use command line subversion for scenery downloads." svn_LIBS="" svn_CPPFLAGS="" fi else -echo "Libsvn explicitly disabled. TerraSync will use command line subversion" +echo "Libsvn explicitly disabled. Will use command line subversion for scenery downloads." svn_LIBS="" svn_CPPFLAGS="" fi diff --git a/src/Main/CMakeLists.txt b/src/Main/CMakeLists.txt index 954c020bc..d28d78d26 100644 --- a/src/Main/CMakeLists.txt +++ b/src/Main/CMakeLists.txt @@ -49,7 +49,7 @@ endif() target_link_libraries(fgfs ${FG_LIBS} - ${HLA_LIBRARIES} + ${HLA_LIBRARIES} ${SIMGEAR_LIBRARIES} ${OPENSCENEGRAPH_LIBRARIES} ${OPENAL_LIBRARY} diff --git a/src/Main/Makefile.am b/src/Main/Makefile.am index c4525ed8b..65d2ccd3b 100644 --- a/src/Main/Makefile.am +++ b/src/Main/Makefile.am @@ -113,7 +113,7 @@ fgfs_LDADD = \ -lsgroute -lsgsky -lsgsound -lsgephem -lsgtgdb -lsgmodel -lsgbvh \ -lsgmaterial -lsgutil -lsgtiming -lsgio -lsgscreen -lsgmath -lsgbucket \ -lsgprops -lsgdebug -lsgmagvar -lsgmisc -lsgnasal -lsgxml -lsgsound \ - -lsgserial -lsgstructure -lsgenvironment \ + -lsgserial -lsgstructure -lsgenvironment -lsgtsync\ $(fgfs_PLIB_LIBS) \ $(OSG_LIBS) \ $(thread_LIBS) \ @@ -121,7 +121,8 @@ fgfs_LDADD = \ -lz \ $(opengl_LIBS) \ $(openal_LIBS) \ - $(EVENT_LIBS) + $(EVENT_LIBS) \ + $(svn_LIBS) fgfs_LDFLAGS = $(fgfs_PLIB_FW) $(fgfs_OSG_FW) $(LDFLAGS) diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 58883a886..1c4a7410f 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -50,6 +50,7 @@ #include #include #include +#include #include #include