]> git.mxchange.org Git - flightgear.git/commitdiff
Default to threads enabled. They can still be disabled by passing
authorcurt <curt>
Fri, 16 Apr 2004 18:51:30 +0000 (18:51 +0000)
committercurt <curt>
Fri, 16 Apr 2004 18:51:30 +0000 (18:51 +0000)
--with-threads=no to the configure script.

configure.ac

index 4ce4a03947017f4223eaa1f05d4ec8cda7bc78d2..a16421615d2732d5b2f07044c7df1e47b573c247 100644 (file)
@@ -70,8 +70,12 @@ AM_CONDITIONAL(ENABLE_MPLAYER_AS, test "x$with_multiplayer" != "xno")
 
 
 dnl Thread related checks
-AC_ARG_WITH(threads, [  --with-threads          Include tile loading threads [default=no]])
-if test "x$with_threads" = "xyes"; then
+# defaults to yes
+with_threads=yes
+AC_ARG_WITH(threads, [  --with-threads          Include tile loading threads [default=yes]])
+if test "x$with_threads" = "xno"; then
+    AC_DEFINE([ENABLE_THREADS], 0, [Define to enable threaded tile paging])
+else
     AC_DEFINE([ENABLE_THREADS], 1, [Define to enable threaded tile paging])
     CXXFLAGS="$CXXFLAGS -D_REENTRANT"
     CFLAGS="$CFLAGS -D_REENTRANT"