configure.in
changeset 381 b65d27fdc8a9
parent 378 41cda991e23a
child 382 7c63d65fd179
--- a/configure.in	Thu Jul 25 04:41:56 2002 +0000
+++ b/configure.in	Thu Jul 25 05:21:00 2002 +0000
@@ -207,6 +207,13 @@
   fi
 fi
 
+dnl determine if we should use the stubbed CD-ROM detection code.
+dnl AC_ARG_ENABLE(cdrom,
+dnl [  --enable-cdrom             try standard CD-ROM support [default=yes]],
+dnl               , enable_cdrom=yes)
+enable_cdrom=yes
+
+
 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
 AC_MSG_CHECKING([if this is BeOS])
 if test x$build_os = xbeos; then
@@ -263,6 +270,25 @@
   AC_MSG_RESULT([$this_is_openbsd])
 fi
 
+this_is_atheos=no
+if test x$we_have_sed = xyes; then
+  AC_MSG_CHECKING([if this is AtheOS])
+  x=`echo $build_os |tr A-Z a-z |sed "s/.*atheos.*/atheos/"`
+  if test x$x = xatheos; then
+    this_is_atheos=yes
+    enable_cdrom=no
+    LDFLAGS="$LDFLAGS -lpthread"
+  fi
+
+  AC_MSG_RESULT([$this_is_atheos])
+fi
+
+dnl Some platform might disable this, so check this down here...
+if test x$enable_cdrom != xyes; then
+  AC_DEFINE([PHYSFS_NO_CDROM_SUPPORT], 1, [define if we have no CD support])
+fi
+
+
 # Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS([stdlib.h string.h])