Changeset 4061 in orxonox.OLD for orxonox/trunk/configure.ac
- Timestamp:
- May 5, 2005, 3:10:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/configure.ac
r4054 r4061 101 101 102 102 #------------------# 103 # gThread-disabled #104 #------------------#105 AC_MSG_CHECKING([if gThread should be enabled])106 AC_ARG_WITH([gthread],107 AC_HELP_STRING( [--without-gthread],108 [Prevents gThread from being loaded]), [def_gthread=no], [def_gthread=yes])109 if test x$def_gthread = xyes; then110 echo "yes"111 fi112 if test x$def_gthread = xno; then113 echo "no"114 fi115 116 #------------------#117 # pthread-disabled #118 #------------------#119 AC_MSG_CHECKING([if pthread should be enabled])120 AC_ARG_WITH([pthread],121 AC_HELP_STRING( [--without-pthread],122 [Prevents pthread from being loaded]), [def_pthread=no], [def_pthread=yes])123 if test x$def_pthread = xyes; then124 echo "yes"125 fi126 if test x$def_pthread = xno; then127 echo "no"128 fi129 130 #------------------#131 103 # libCurl-disabled # 132 104 #------------------# … … 482 454 483 455 #---------# 484 # gThread #485 #---------#486 if test x$def_gthread = xyes; then487 488 AC_MSG_CHECKING([for gthread])489 if `pkg-config --exists gthread-2.0`; then490 echo "yes"491 have_gthread=yes492 GTHREAD_LIBS=`pkg-config --libs gthread-2.0`493 GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`494 AC_DEFINE_UNQUOTED(HAVE_GTHREAD, 1, [if we have gThread])495 else496 echo "no"497 fi498 499 fi500 AC_SUBST(GTHREAD_LIBS)501 AC_SUBST(GTHREAD_CFLAGS)502 AM_CONDITIONAL(HAVE_GTHREAD, test x$have_gthread = xyes)503 504 #---------#505 456 # libcURL # 506 457 #---------# … … 522 473 AC_SUBST(CURL_CFLAGS) 523 474 AM_CONDITIONAL(HAVE_CURL, test x$have_curl = xyes) 524 525 #---------#526 # pthread #527 #---------#528 if test x$def_pthread = xyes ; then529 if test x$have_gthread = xyes ; then530 AC_CHECK_HEADERS([pthread.h], [pthreadHeader="yes"], [pthreadHeader="no"])531 AC_CHECK_LIB([pthread], [main], [FOUND_pthread=yes])532 if test x$FOUND_pthread = xyes ; then533 LIBS="$LIBS -lpthread"534 fi535 fi536 fi537 538 475 539 476 #--------#
Note: See TracChangeset
for help on using the changeset viewer.