Changeset 5569
- Timestamp:
- 06/03/08 15:32:33 (4 months ago)
- Files:
-
- libwired/trunk/config.m4 (modified) (3 diffs)
- libwired/trunk/configure (modified) (19 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
libwired/trunk/config.m4
r5564 r5569 252 252 253 253 AC_DEFUN([_WI_PTHREAD_TRY], [ 254 if test "$wi_pthreads_found" != yes; then254 if test "$wi_pthreads_found" != "yes"; then 255 255 OLD_LIBS="$LIBS" 256 LIBS="$1 $LIBS"256 WI_APPEND_FLAG([LIBS], $1) 257 257 258 258 AC_RUN_IFELSE([AC_LANG_SOURCE([_WI_PTHREAD_TEST_PROGRAM])], [ 259 _wi_pthreads_test=yes260 ], [ 261 _wi_pthreads_test=no259 wi_pthreads_test=yes 260 ], [ 261 wi_pthreads_test=no 262 262 ], [ 263 263 AC_LINK_IFELSE([AC_LANG_PROGRAM([_WI_PTHREAD_TEST_INCLUDES], [_WI_PTHREAD_TEST_FUNCTION])], [ 264 _wi_pthreads_test=yes265 ], [ 266 _wi_pthreads_test=no264 wi_pthreads_test=yes 265 ], [ 266 wi_pthreads_test=no 267 267 ]) 268 268 ]) … … 270 270 LIBS="$OLD_LIBS" 271 271 272 if test "$wi_pthreads_test" = yes; then273 wi_pthreads_found= yes272 if test "$wi_pthreads_test" = "yes"; then 273 wi_pthreads_found="yes" 274 274 wi_pthreads_libs="$1" 275 275 fi … … 293 293 _WI_PTHREAD_TRY([-lpthread]) 294 294 295 if test "$wi_pthreads_found" = yes; then295 if test "$wi_pthreads_found" = "yes"; then 296 296 AC_MSG_RESULT([yes]) 297 297 WI_APPEND_FLAG([LIBS], $wi_pthreads_libs) libwired/trunk/configure
r5564 r5569 5916 5916 5917 5917 5918 if test "$wi_pthreads_found" != yes; then5918 if test "$wi_pthreads_found" != "yes"; then 5919 5919 OLD_LIBS="$LIBS" 5920 LIBS=" $LIBS" 5920 5921 if test -z "$LIBS"; then 5922 LIBS="" 5923 elif test `expr "$LIBS" : ".*"` = 0; then 5924 LIBS="$LIBS " 5925 fi 5926 5921 5927 5922 5928 if test "$cross_compiling" = yes; then … … 5970 5976 $as_test_x conftest$ac_exeext; then 5971 5977 5972 _wi_pthreads_test=yes5978 wi_pthreads_test=yes 5973 5979 5974 5980 else … … 5977 5983 5978 5984 5979 _wi_pthreads_test=no5985 wi_pthreads_test=no 5980 5986 5981 5987 fi … … 6034 6040 (exit $ac_status); }; }; then 6035 6041 6036 _wi_pthreads_test=yes6042 wi_pthreads_test=yes 6037 6043 6038 6044 else … … 6043 6049 ( exit $ac_status ) 6044 6050 6045 _wi_pthreads_test=no6051 wi_pthreads_test=no 6046 6052 6047 6053 fi … … 6053 6059 LIBS="$OLD_LIBS" 6054 6060 6055 if test "$wi_pthreads_test" = yes; then6056 wi_pthreads_found= yes6061 if test "$wi_pthreads_test" = "yes"; then 6062 wi_pthreads_found="yes" 6057 6063 wi_pthreads_libs="" 6058 6064 fi … … 6060 6066 6061 6067 6062 if test "$wi_pthreads_found" != yes; then6068 if test "$wi_pthreads_found" != "yes"; then 6063 6069 OLD_LIBS="$LIBS" 6064 LIBS="-pthread $LIBS" 6070 6071 if test -z "$LIBS"; then 6072 LIBS="-pthread" 6073 elif test `expr "$LIBS" : ".*-pthread"` = 0; then 6074 LIBS="$LIBS -pthread" 6075 fi 6076 6065 6077 6066 6078 if test "$cross_compiling" = yes; then … … 6114 6126 $as_test_x conftest$ac_exeext; then 6115 6127 6116 _wi_pthreads_test=yes6128 wi_pthreads_test=yes 6117 6129 6118 6130 else … … 6121 6133 6122 6134 6123 _wi_pthreads_test=no6135 wi_pthreads_test=no 6124 6136 6125 6137 fi … … 6178 6190 (exit $ac_status); }; }; then 6179 6191 6180 _wi_pthreads_test=yes6192 wi_pthreads_test=yes 6181 6193 6182 6194 else … … 6187 6199 ( exit $ac_status ) 6188 6200 6189 _wi_pthreads_test=no6201 wi_pthreads_test=no 6190 6202 6191 6203 fi … … 6197 6209 LIBS="$OLD_LIBS" 6198 6210 6199 if test "$wi_pthreads_test" = yes; then6200 wi_pthreads_found= yes6211 if test "$wi_pthreads_test" = "yes"; then 6212 wi_pthreads_found="yes" 6201 6213 wi_pthreads_libs="-pthread" 6202 6214 fi … … 6204 6216 6205 6217 6206 if test "$wi_pthreads_found" != yes; then6218 if test "$wi_pthreads_found" != "yes"; then 6207 6219 OLD_LIBS="$LIBS" 6208 LIBS="-lpthread $LIBS" 6220 6221 if test -z "$LIBS"; then 6222 LIBS="-lpthread" 6223 elif test `expr "$LIBS" : ".*-lpthread"` = 0; then 6224 LIBS="$LIBS -lpthread" 6225 fi 6226 6209 6227 6210 6228 if test "$cross_compiling" = yes; then … … 6258 6276 $as_test_x conftest$ac_exeext; then 6259 6277 6260 _wi_pthreads_test=yes6278 wi_pthreads_test=yes 6261 6279 6262 6280 else … … 6265 6283 6266 6284 6267 _wi_pthreads_test=no6285 wi_pthreads_test=no 6268 6286 6269 6287 fi … … 6322 6340 (exit $ac_status); }; }; then 6323 6341 6324 _wi_pthreads_test=yes6342 wi_pthreads_test=yes 6325 6343 6326 6344 else … … 6331 6349 ( exit $ac_status ) 6332 6350 6333 _wi_pthreads_test=no6351 wi_pthreads_test=no 6334 6352 6335 6353 fi … … 6341 6359 LIBS="$OLD_LIBS" 6342 6360 6343 if test "$wi_pthreads_test" = yes; then6344 wi_pthreads_found= yes6361 if test "$wi_pthreads_test" = "yes"; then 6362 wi_pthreads_found="yes" 6345 6363 wi_pthreads_libs="-lpthread" 6346 6364 fi … … 6348 6366 6349 6367 6350 if test "$wi_pthreads_found" = yes; then6368 if test "$wi_pthreads_found" = "yes"; then 6351 6369 { echo "$as_me:$LINENO: result: yes" >&5 6352 6370 echo "${ECHO_T}yes" >&6; }
