Changeset 260
- Timestamp:
- Mar 16, 2007 8:50:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Mumps/trunk/configure
r256 r260 21195 21195 21196 21196 # library extension 21197 ac_ext=c 21198 ac_cpp='$CPP $CPPFLAGS' 21199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21201 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21202 21203 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 21204 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 21205 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then 21206 echo $ECHO_N "(cached) $ECHO_C" >&6 21207 else 21208 ac_check_lib_save_LIBS=$LIBS 21209 LIBS="-lpthread $LIBS" 21210 cat >conftest.$ac_ext <<_ACEOF 21211 /* confdefs.h. */ 21212 _ACEOF 21213 cat confdefs.h >>conftest.$ac_ext 21214 cat >>conftest.$ac_ext <<_ACEOF 21215 /* end confdefs.h. */ 21216 21217 /* Override any gcc2 internal prototype to avoid an error. */ 21218 #ifdef __cplusplus 21219 extern "C" 21220 #endif 21221 /* We use char because int might match the return type of a gcc2 21222 builtin and then its argument prototype would still apply. */ 21223 char pthread_create (); 21224 #ifdef F77_DUMMY_MAIN 21225 21226 # ifdef __cplusplus 21227 extern "C" 21228 # endif 21229 int F77_DUMMY_MAIN() { return 1; } 21230 21231 #endif 21232 int 21233 main () 21234 { 21235 pthread_create (); 21236 ; 21237 return 0; 21238 } 21239 _ACEOF 21240 rm -f conftest.$ac_objext conftest$ac_exeext 21241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21242 (eval $ac_link) 2>conftest.er1 21243 ac_status=$? 21244 grep -v '^ *+' conftest.er1 >conftest.err 21245 rm -f conftest.er1 21246 cat conftest.err >&5 21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21248 (exit $ac_status); } && 21249 { ac_try='test -z "$ac_c_werror_flag" 21250 || test ! -s conftest.err' 21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21252 (eval $ac_try) 2>&5 21253 ac_status=$? 21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21255 (exit $ac_status); }; } && 21256 { ac_try='test -s conftest$ac_exeext' 21257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21258 (eval $ac_try) 2>&5 21259 ac_status=$? 21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21261 (exit $ac_status); }; }; then 21262 ac_cv_lib_pthread_pthread_create=yes 21263 else 21264 echo "$as_me: failed program was:" >&5 21265 sed 's/^/| /' conftest.$ac_ext >&5 21266 21267 ac_cv_lib_pthread_pthread_create=no 21268 fi 21269 rm -f conftest.err conftest.$ac_objext \ 21270 conftest$ac_exeext conftest.$ac_ext 21271 LIBS=$ac_check_lib_save_LIBS 21272 fi 21273 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 21274 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6 21275 if test $ac_cv_lib_pthread_pthread_create = yes; then 21276 LIBS="-lpthread $LIBS"; ADDLIBS="-lpthread $ADDLIBS" 21277 fi 21278 21279 ac_ext=f 21280 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21281 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21282 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21283 21284 21197 21285 case "$CC" in 21198 21286 cl* | */cl* | CL* | */CL*) … … 21309 21397 if test -r $coin_mumpsobjdir/.MakeOk; then 21310 21398 use_mumps=BUILD 21311 else 21312 use_mumps= 21313 fi 21314 fi 21315 fi 21316 21317 if test x"$use_mumps" != x; then 21318 # Mumps needs pthreads 21319 ac_ext=c 21399 # Mumps needs pthreads 21400 ac_ext=c 21320 21401 ac_cpp='$CPP $CPPFLAGS' 21321 21402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 21323 21404 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21324 21405 21325 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&521406 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 21326 21407 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 21327 21408 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then … … 21399 21480 fi 21400 21481 21401 ac_ext=f21482 ac_ext=f 21402 21483 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21403 21484 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21404 21485 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21405 21486 21487 else 21488 use_mumps= 21489 fi 21490 fi 21491 fi 21492 21493 if test x"$use_mumps" != x; then 21406 21494 21407 21495 # and we need the Fortran runtime libraries if we want to link with C/C++
Note: See TracChangeset
for help on using the changeset viewer.