configure.in
changeset 353 7adb20841f11
parent 351 bc4fa7896225
child 378 41cda991e23a
equal deleted inserted replaced
352:46065653c088 353:7adb20841f11
   243 if test x$we_have_sed = xyes; then
   243 if test x$we_have_sed = xyes; then
   244   AC_MSG_CHECKING([if this is FreeBSD])
   244   AC_MSG_CHECKING([if this is FreeBSD])
   245   x=`echo $build_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"`
   245   x=`echo $build_os |tr A-Z a-z |sed "s/.*freebsd.*/freebsd/"`
   246   if test x$x = xfreebsd; then
   246   if test x$x = xfreebsd; then
   247     this_is_freebsd=yes
   247     this_is_freebsd=yes
       
   248     LDFLAGS="$LDFLAGS -pthread"
   248   fi
   249   fi
   249 
   250 
   250   AC_MSG_RESULT([$this_is_freebsd])
   251   AC_MSG_RESULT([$this_is_freebsd])
   251 fi
   252 fi
   252 
   253 
   266 AC_FUNC_MEMCMP
   267 AC_FUNC_MEMCMP
   267 AC_CHECK_FUNCS([memset strrchr])
   268 AC_CHECK_FUNCS([memset strrchr])
   268 
   269 
   269 CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
   270 CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
   270 LDFLAGS="$LDFLAGS -no-undefined"
   271 LDFLAGS="$LDFLAGS -no-undefined"
   271 
       
   272 if test x$this_is_freebsd = x$yes; then
       
   273   LDFLAGS="$LDFLAGS -pthread"
       
   274 fi
       
   275 
   272 
   276 dnl Add Makefile conditionals
   273 dnl Add Makefile conditionals
   277 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
   274 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
   278 AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
   275 AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
   279 AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)
   276 AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)