configure.in
changeset 381 b65d27fdc8a9
parent 378 41cda991e23a
child 382 7c63d65fd179
equal deleted inserted replaced
380:ac96d444dd57 381:b65d27fdc8a9
   205       LIBS="$LIBS -lreadline -lcurses"
   205       LIBS="$LIBS -lreadline -lcurses"
   206     fi
   206     fi
   207   fi
   207   fi
   208 fi
   208 fi
   209 
   209 
       
   210 dnl determine if we should use the stubbed CD-ROM detection code.
       
   211 dnl AC_ARG_ENABLE(cdrom,
       
   212 dnl [  --enable-cdrom             try standard CD-ROM support [default=yes]],
       
   213 dnl               , enable_cdrom=yes)
       
   214 enable_cdrom=yes
       
   215 
       
   216 
   210 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
   217 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
   211 AC_MSG_CHECKING([if this is BeOS])
   218 AC_MSG_CHECKING([if this is BeOS])
   212 if test x$build_os = xbeos; then
   219 if test x$build_os = xbeos; then
   213   this_is_beos=yes
   220   this_is_beos=yes
   214   LIBS="$LIBS -lroot -lbe"
   221   LIBS="$LIBS -lroot -lbe"
   260     LDFLAGS="$LDFLAGS -pthread"
   267     LDFLAGS="$LDFLAGS -pthread"
   261   fi
   268   fi
   262 
   269 
   263   AC_MSG_RESULT([$this_is_openbsd])
   270   AC_MSG_RESULT([$this_is_openbsd])
   264 fi
   271 fi
       
   272 
       
   273 this_is_atheos=no
       
   274 if test x$we_have_sed = xyes; then
       
   275   AC_MSG_CHECKING([if this is AtheOS])
       
   276   x=`echo $build_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"`
       
   277   if test x$x = xatheos; then
       
   278     this_is_atheos=yes
       
   279     enable_cdrom=no
       
   280     LDFLAGS="$LDFLAGS -lpthread"
       
   281   fi
       
   282 
       
   283   AC_MSG_RESULT([$this_is_atheos])
       
   284 fi
       
   285 
       
   286 dnl Some platform might disable this, so check this down here...
       
   287 if test x$enable_cdrom != xyes; then
       
   288   AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support])
       
   289 fi
       
   290 
   265 
   291 
   266 # Checks for header files.
   292 # Checks for header files.
   267 AC_HEADER_STDC
   293 AC_HEADER_STDC
   268 AC_CHECK_HEADERS([stdlib.h string.h])
   294 AC_CHECK_HEADERS([stdlib.h string.h])
   269 
   295