Changeset 4063 in orxonox.OLD for orxonox/branches/md2_loader/configure.ac
- Timestamp:
- May 5, 2005, 2:37:08 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/configure.ac
r3995 r4063 39 39 ######################### 40 40 AC_PROG_CXX 41 AC_PROG_RANLIB 41 42 AC_HEADER_STDC 42 43 … … 96 97 fi 97 98 if test x$def_gtk = xno; then 98 echo "no"99 fi100 101 #------------------#102 # gThread-disabled #103 #------------------#104 AC_MSG_CHECKING([if gThread should be enabled])105 AC_ARG_WITH([gthread],106 AC_HELP_STRING( [--without-gthread],107 [Prevents gThread from being loaded]), [def_gthread=no], [def_gthread=yes])108 if test x$def_gthread = xyes; then109 echo "yes"110 fi111 if test x$def_gthread = xno; then112 echo "no"113 fi114 115 #------------------#116 # pthread-disabled #117 #------------------#118 AC_MSG_CHECKING([if pthread should be enabled])119 AC_ARG_WITH([pthread],120 AC_HELP_STRING( [--without-pthread],121 [Prevents pthread from being loaded]), [def_pthread=no], [def_pthread=yes])122 if test x$def_pthread = xyes; then123 echo "yes"124 fi125 if test x$def_pthread = xno; then126 99 echo "no" 127 100 fi … … 481 454 482 455 #---------# 483 # gThread #484 #---------#485 if test x$def_gthread = xyes; then486 487 AC_MSG_CHECKING([for gthread])488 if `pkg-config --exists gthread-2.0`; then489 echo "yes"490 have_gthread=yes491 GTHREAD_LIBS=`pkg-config --libs gthread-2.0`492 GTHREAD_CFLAGS=`pkg-config --cflags gthread-2.0`493 AC_DEFINE_UNQUOTED(HAVE_GTHREAD, 1, [if we have gThread])494 else495 echo "no"496 fi497 498 fi499 AC_SUBST(GTHREAD_LIBS)500 AC_SUBST(GTHREAD_CFLAGS)501 AM_CONDITIONAL(HAVE_GTHREAD, test x$have_gthread = xyes)502 503 #---------#504 456 # libcURL # 505 457 #---------# … … 521 473 AC_SUBST(CURL_CFLAGS) 522 474 AM_CONDITIONAL(HAVE_CURL, test x$have_curl = xyes) 523 524 #---------#525 # pthread #526 #---------#527 if test x$def_pthread = xyes ; then528 if test x$have_gthread = xyes ; then529 AC_CHECK_HEADERS([pthread.h], [pthreadHeader="yes"], [pthreadHeader="no"])530 AC_CHECK_LIB([pthread], [main], [FOUND_pthread=yes])531 if test x$FOUND_pthread = xyes ; then532 LIBS="$LIBS -lpthread"533 fi534 fi535 fi536 537 475 538 476 #--------#
Note: See TracChangeset
for help on using the changeset viewer.