diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-14 21:02:24 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-14 21:02:24 +0000 |
| commit | 4ef0817b83113c7231e3866942d71708026d30d6 (patch) | |
| tree | e3a65fb98398d2e3fc4147e8329aef8e369b507c /configure.in | |
| parent | 40750fb3528c4bec60ee1dfe4f6c06186bec39fd (diff) | |
Disable threading by default.
Remove 2.0 FL_API defines from threads.h, since that header is not part
of the library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1848 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.in b/configure.in index 816844bd8..5c2631d80 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl -*- sh -*- dnl the "configure" script is made from this by running GNU "autoconf" dnl -dnl "$Id: configure.in,v 1.33.2.31.2.40 2001/12/14 19:34:29 easysw Exp $" +dnl "$Id: configure.in,v 1.33.2.31.2.41 2001/12/14 21:02:24 easysw Exp $" dnl dnl Configuration script for the Fast Light Tool Kit (FLTK). dnl @@ -159,7 +159,7 @@ AC_ARG_ENABLE(shared, [ --enable-shared turn on shared libraries [defau ;; esac fi]) -AC_ARG_ENABLE(threads, [ --disable-threads disable multi-threading support],,enable_threads=yes) +AC_ARG_ENABLE(threads, [ --enable-threads enable multi-threading support],,enable_threads=no) AC_PROG_CC AC_PROG_CXX @@ -263,11 +263,13 @@ dnl some environments need postprocessing (Darwin, MacOS) POSTBUILD=: dnl Check for pthreads for multi-threaded apps... -if test "$enable_threads" = yes; then +if test x"$enable_threads" = xyes; then AC_CHECK_HEADER(pthread.h, AC_DEFINE(HAVE_PTHREAD_H)) AC_SEARCH_LIBS(pthread_create, pthread) fi +THREADS="" + case $uname in CYGWIN*) dnl Cygwin environment... @@ -289,8 +291,9 @@ case $uname in GLDEMOS="" fi - if test "x$ac_cv_search_pthread_create" != xno; then + if test "x$ac_cv_search_pthread_create" != xno -a x"$enable_threads" = xyes; then AC_DEFINE(HAVE_PTHREAD) + THREADS="threads.exe" fi # Don't make symlinks since Windows is not case sensitive. @@ -319,8 +322,9 @@ case $uname in ;; *) - if test "x$ac_cv_search_pthread_create" != xno; then + if test "x$ac_cv_search_pthread_create" != xno -a x"$enable_threads" = xyes; then AC_DEFINE(HAVE_PTHREAD) + THREADS="threads" fi dnl Check for X11... @@ -395,6 +399,7 @@ AC_SUBST(HLINKS) AC_SUBST(GLDEMOS) AC_SUBST(GLLIB) AC_SUBST(POSTBUILD) +AC_SUBST(THREADS) dnl Figure out the appropriate formatted man page extension... case "$uname" in @@ -610,5 +615,5 @@ AC_OUTPUT(makeinclude fltk.list fltk-config FL/Makefile) chmod +x fltk-config dnl -dnl End of "$Id: configure.in,v 1.33.2.31.2.40 2001/12/14 19:34:29 easysw Exp $". +dnl End of "$Id: configure.in,v 1.33.2.31.2.41 2001/12/14 21:02:24 easysw Exp $". dnl |
