Changeset 1391


Ignore:
Timestamp:
Aug 1, 2009 10:54:53 AM (12 years ago)
Author:
stefan
Message:

add pthread to addlibs

Location:
ThirdParty/Mumps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/trunk/configure

    r1388 r1391  
    2368923689#AC_COIN_HAS_MUMPS
    2369023690
     23691#Mumps needs pthreads
     23692echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
     23693echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
     23694if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
     23695  echo $ECHO_N "(cached) $ECHO_C" >&6
     23696else
     23697  ac_check_lib_save_LIBS=$LIBS
     23698LIBS="-lpthread  $LIBS"
     23699cat >conftest.$ac_ext <<_ACEOF
     23700/* confdefs.h.  */
     23701_ACEOF
     23702cat confdefs.h >>conftest.$ac_ext
     23703cat >>conftest.$ac_ext <<_ACEOF
     23704/* end confdefs.h.  */
     23705
     23706/* Override any gcc2 internal prototype to avoid an error.  */
     23707#ifdef __cplusplus
     23708extern "C"
     23709#endif
     23710/* We use char because int might match the return type of a gcc2
     23711   builtin and then its argument prototype would still apply.  */
     23712char pthread_create ();
     23713#ifdef F77_DUMMY_MAIN
     23714
     23715#  ifdef __cplusplus
     23716     extern "C"
     23717#  endif
     23718   int F77_DUMMY_MAIN() { return 1; }
     23719
     23720#endif
     23721int
     23722main ()
     23723{
     23724pthread_create ();
     23725  ;
     23726  return 0;
     23727}
     23728_ACEOF
     23729rm -f conftest.$ac_objext conftest$ac_exeext
     23730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     23731  (eval $ac_link) 2>conftest.er1
     23732  ac_status=$?
     23733  grep -v '^ *+' conftest.er1 >conftest.err
     23734  rm -f conftest.er1
     23735  cat conftest.err >&5
     23736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23737  (exit $ac_status); } &&
     23738         { ac_try='test -z "$ac_c_werror_flag"
     23739                         || test ! -s conftest.err'
     23740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23741  (eval $ac_try) 2>&5
     23742  ac_status=$?
     23743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23744  (exit $ac_status); }; } &&
     23745         { ac_try='test -s conftest$ac_exeext'
     23746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     23747  (eval $ac_try) 2>&5
     23748  ac_status=$?
     23749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     23750  (exit $ac_status); }; }; then
     23751  ac_cv_lib_pthread_pthread_create=yes
     23752else
     23753  echo "$as_me: failed program was:" >&5
     23754sed 's/^/| /' conftest.$ac_ext >&5
     23755
     23756ac_cv_lib_pthread_pthread_create=no
     23757fi
     23758rm -f conftest.err conftest.$ac_objext \
     23759      conftest$ac_exeext conftest.$ac_ext
     23760LIBS=$ac_check_lib_save_LIBS
     23761fi
     23762echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
     23763echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
     23764if test $ac_cv_lib_pthread_pthread_create = yes; then
     23765  ADDLIBS="-lpthread $ADDLIBS"
     23766fi
     23767
     23768
    2369123769# Verify that we can compile Fortran 90 code
    2369223770#if test "$use_mumps" = BUILD; then
  • ThirdParty/Mumps/trunk/configure.ac

    r1388 r1391  
    106106#AC_COIN_HAS_MUMPS
    107107
     108#Mumps needs pthreads
     109AC_CHECK_LIB([pthread],[pthread_create],[ADDLIBS="-lpthread $ADDLIBS"])
     110
    108111# Verify that we can compile Fortran 90 code
    109112#if test "$use_mumps" = BUILD; then
Note: See TracChangeset for help on using the changeset viewer.