X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=configure.ac;h=60062168103955dec06cd607145d2a35209fcd7e;hb=7fb8c28ac62cb7e4ffe97e7dd3d605c50d221ec4;hp=295578d3a0d06601a063e6f5e3f7221b1572a567;hpb=4e24fba0d54faa961f6d236f2ded4d66685d5a7d;p=flightgear.git diff --git a/configure.ac b/configure.ac index 295578d3a..600621681 100644 --- a/configure.ac +++ b/configure.ac @@ -10,7 +10,7 @@ AC_PREREQ(2.52) dnl Initialize the automake stuff dnl set the $host variable based on local machine/os AC_CANONICAL_TARGET -AM_INIT_AUTOMAKE(FlightGear, 1.0.0) +AM_INIT_AUTOMAKE(FlightGear, 1.99.5) dnl Checks for programs. AC_PROG_MAKE_SET @@ -22,7 +22,7 @@ AC_PROG_INSTALL AC_PROG_LN_S # specify the simgear location -AC_ARG_WITH(simgear, [ --with-simgear=PREFIX Specify the prefix path to simgear]) +AC_ARG_WITH(simgear, [ --with-simgear=PREFIX Specify the prefix path to SimGear]) if test "x$with_simgear" != "x" ; then echo "SimGear prefix path is $with_simgear" @@ -206,17 +206,14 @@ AM_CONDITIONAL(USE_GLUT, test "x$enable_glut" = "xyes") if test "x$enable_sdl" != "xyes" -a "x$enable_glut" != "xyes" -a "x$enable_osgviewer" != "xno"; then enable_osgviewer="yes" fi -if test "x$enable_osgviewer" = "xyes"; then - AC_DEFINE([USE_OSGVIEWER], 1, [Define to use osgViewer in renderer]) - AC_DEFINE([ENABLE_OSGVIEWER], 1, [Define to use osgViewer in renderer]) - AC_DEFINE([PU_USE_NATIVE], 1, [Define to use native system]) -elif test "x$enable_sdl" = "xyes"; then - AC_DEFINE([PU_USE_SDL], 1, [Define to use SDL]) -elif test "x$enable_glut" = "xyes"; then - AC_DEFINE([PU_USE_GLUT], 1, [Define to use glut]) -else - AC_MSG_ERROR([One (and only one) of --enable-osgviewer, --enable-sdl, or --enable-glut must be supplied]) +if test \( "x$enable_osgviewer" = "xyes" \ + -a \( "x$enable_sdl" = "xyes" -o "x$enable_glut" = "xyes" \) \) \ + -o \( "x$enable_sdl" = "xyes" -a "x$enable_glut" = "xyes" \); then + echo " Only one of --enable-osgviewer, --enable-sdl, or --enable -glut may" + echo " be supplied." + exit fi +AC_DEFINE([PU_USE_NONE], 1, [Define to use application's pu callbacks]) AC_ARG_ENABLE(osgdebug, [ --enable-osgdebug Use OSG debug libraries], [enable_osgdebug="$enableval"]) @@ -393,7 +390,7 @@ if test "x$ac_cv_header_simgear_version_h" != "xyes"; then exit fi -AC_MSG_CHECKING([for simgear 0.3.10 or newer]) +AC_MSG_CHECKING([for SimGear 1.99.5 or newer]) AC_TRY_RUN([ #include @@ -402,9 +399,9 @@ AC_TRY_RUN([ #define STRINGIFY(X) XSTRINGIFY(X) #define XSTRINGIFY(X) #X -#define MIN_MAJOR 0 -#define MIN_MINOR 3 -#define MIN_MICRO 10 +#define MIN_MAJOR 1 +#define MIN_MINOR 99 +#define MIN_MICRO 5 int main() { int major, minor, micro; @@ -426,7 +423,7 @@ int main() { ], AC_MSG_RESULT(yes), [AC_MSG_RESULT(wrong version); - AC_MSG_ERROR([Install latest simgear first...])], + AC_MSG_ERROR([Install latest SimGear first...])], AC_MSG_RESULT(yes) ) @@ -600,7 +597,27 @@ if test "x$ac_cv_header_zlib_h" != "xyes"; then echo fi - +dnl Check for Subversion library support +save_LIBS=$LIBS +save_CPPFLAGS=$CPPFLAGS +LIBS="" +CPPFLAGS="-I/usr/include/subversion-1 -I/usr/include/apr-1.0" +AC_CHECK_LIB(svn_client-1, svn_client_checkout3) +AC_CHECK_HEADERS([svn_client.h]) +if test "x$ac_cv_header_svn_client_h" != "xyes"; then + echo "TerraSync will shell out for command line subversion" + svn_LIBS="" + svn_CPPFLAGS="" +else + echo "TerraSync will use integrated subversion library" + AC_SEARCH_LIBS(svn_client_checkout, svn_client-1) + svn_LIBS=$LIBS + svn_CPPFLAGS=$CPPFLAGS + AC_SUBST(svn_LIBS) + AC_SUBST(svn_CPPFLAGS) +fi +LIBS=$save_LIBS +CPPFLAGS=$save_CPPFLAGS dnl Checks for header files. AC_HEADER_STDC @@ -649,12 +666,12 @@ AC_CONFIG_FILES([ \ src/Include/config.h-msvc8 \ src/Aircraft/Makefile \ src/Airports/Makefile \ + src/ATC/Makefile \ src/ATCDCL/Makefile \ src/Autopilot/Makefile \ src/Cockpit/Makefile \ src/Cockpit/built_in/Makefile \ src/Environment/Makefile \ - src/FDM/Balloon/Makefile \ src/FDM/ExternalNet/Makefile \ src/FDM/ExternalPipe/Makefile \ src/FDM/JSBSim/Makefile \ @@ -696,6 +713,7 @@ AC_CONFIG_FILES([ \ utils/fgadmin/src/Makefile \ utils/js_server/Makefile \ utils/Modeller/Makefile \ + utils/propmerge/Makefile \ utils/TerraSync/Makefile \ utils/xmlgrep/Makefile \ ])