Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3283 in orxonox.OLD for orxonox/branches/updater/configure.ac


Ignore:
Timestamp:
Dec 26, 2004, 12:24:18 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/updater: now also works, if no pthread is found, but gthread is.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/configure.ac

    r3274 r3283  
    6565fi
    6666if test "$def_gthread" = no; then
     67  echo "no"
     68fi
     69
     70## pthread-disabled
     71AC_MSG_CHECKING([if pthread should be enabled])
     72AC_ARG_WITH([pthread],
     73        AC_HELP_STRING( [--without-pthread],
     74        [Prevents pthread from being loaded]), [def_pthread=no], [def_pthread=yes])
     75if test "$def_pthread" = yes; then
     76  echo "yes"
     77fi
     78if test "$def_pthread" = no; then
    6779  echo "no"
    6880fi
     
    404416
    405417##checking for pthread
    406 if test x$have_gthread = xyes ; then
     418if test x$def_pthread = xyes ; then
     419 if test x$have_gthread = xyes ; then
    407420  AC_CHECK_HEADERS([pthread.h], pthreadHeader="yes", pthreadHeader="no")
    408421  AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes)
     
    410423      LIBS="$LIBS -lpthread"
    411424   fi
    412 fi
    413 
     425 fi
     426fi
    414427# FIXME: Replace `main' with a function in `-lm':
    415428 AC_CHECK_LIB([m], [main])
Note: See TracChangeset for help on using the changeset viewer.