Changeset 3272 in orxonox.OLD for orxonox/branches/updater/configure
- Timestamp:
- Dec 24, 2004, 8:41:18 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/updater/configure
r3271 r3272 6969 6969 6970 6970 6971 #checking for pthread libs 6972 # AC_CHECK_LIB([pthread], [main], FOUND_pthread=yes) 6973 # if test "$FOUND_pthread" = "yes" ; then 6974 # LIBS="$LIBS -lpthread" 6975 # fi 6971 checking for pthread libs 6972 echo "$as_me:$LINENO: checking for main in -lpthread" >&5 6973 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 6974 if test "${ac_cv_lib_pthread_main+set}" = set; then 6975 echo $ECHO_N "(cached) $ECHO_C" >&6 6976 else 6977 ac_check_lib_save_LIBS=$LIBS 6978 LIBS="-lpthread $LIBS" 6979 cat >conftest.$ac_ext <<_ACEOF 6980 /* confdefs.h. */ 6981 _ACEOF 6982 cat confdefs.h >>conftest.$ac_ext 6983 cat >>conftest.$ac_ext <<_ACEOF 6984 /* end confdefs.h. */ 6985 6986 6987 int 6988 main () 6989 { 6990 main (); 6991 ; 6992 return 0; 6993 } 6994 _ACEOF 6995 rm -f conftest.$ac_objext conftest$ac_exeext 6996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6997 (eval $ac_link) 2>conftest.er1 6998 ac_status=$? 6999 grep -v '^ *+' conftest.er1 >conftest.err 7000 rm -f conftest.er1 7001 cat conftest.err >&5 7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7003 (exit $ac_status); } && 7004 { ac_try='test -z "$ac_c_werror_flag" 7005 || test ! -s conftest.err' 7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7007 (eval $ac_try) 2>&5 7008 ac_status=$? 7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7010 (exit $ac_status); }; } && 7011 { ac_try='test -s conftest$ac_exeext' 7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7013 (eval $ac_try) 2>&5 7014 ac_status=$? 7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7016 (exit $ac_status); }; }; then 7017 ac_cv_lib_pthread_main=yes 7018 else 7019 echo "$as_me: failed program was:" >&5 7020 sed 's/^/| /' conftest.$ac_ext >&5 7021 7022 ac_cv_lib_pthread_main=no 7023 fi 7024 rm -f conftest.err conftest.$ac_objext \ 7025 conftest$ac_exeext conftest.$ac_ext 7026 LIBS=$ac_check_lib_save_LIBS 7027 fi 7028 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 7029 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 7030 if test $ac_cv_lib_pthread_main = yes; then 7031 FOUND_pthread=yes 7032 fi 7033 7034 if test "$FOUND_pthread" = "yes" ; then 7035 LIBS="$LIBS -lpthread" 7036 fi 6976 7037 6977 7038
Note: See TracChangeset
for help on using the changeset viewer.