Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/configure.ac
- Timestamp:
- May 18, 2005, 11:27:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/movie_player/configure.ac
r3995 r4217 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 … … 218 191 #--------------------# 219 192 AC_PATH_PROG(GPROF, gprof) 193 194 #-------------------------# 195 # checking for pkg-config # 196 #-------------------------# 197 if test x$def_gtk = xyes; then 198 AC_PATH_PROG(PKG_CONFIG, pkg-config) 199 fi 200 220 201 221 202 ######################### … … 462 443 #-----# 463 444 if test x$def_gtk = xyes; then 464 465 445 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 466 446 AC_MSG_CHECKING([for gtk2.0]) 467 if ` pkg-config--exists gtk+-2.0`; then447 if `$PKG_CONFIG --exists gtk+-2.0`; then 468 448 echo "yes" 469 449 have_gtk2=yes 470 GTK2_LIBS=` pkg-config--libs gtk+-2.0`471 GTK2_CFLAGS=` pkg-config--cflags gtk+-2.0`450 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 451 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 472 452 AC_DEFINE_UNQUOTED(HAVE_GTK2, 1, [if we have GTK2]) 453 if test $DEBUG -ge 3; then 454 echo "cflags: $GTK2_CFLAGS" 455 echo "libs: $GTK2_LIBS" 456 fi 473 457 else 474 458 echo "no" … … 479 463 AC_SUBST(GTK2_CFLAGS) 480 464 AM_CONDITIONAL(HAVE_GTK2, test x$have_gtk2 = xyes) 481 482 #---------#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 465 503 466 #---------# … … 521 484 AC_SUBST(CURL_CFLAGS) 522 485 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 486 538 487 #--------#
Note: See TracChangeset
for help on using the changeset viewer.