Made CD-ROM stuff a bit more automatic.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 25 Jul 2002 05:24:23 +0000
changeset 382 7c63d65fd179
parent 381 b65d27fdc8a9
child 383 9eb4f52d9d72
Made CD-ROM stuff a bit more automatic.
configure.in
--- a/configure.in	Thu Jul 25 05:21:00 2002 +0000
+++ b/configure.in	Thu Jul 25 05:24:23 2002 +0000
@@ -96,26 +96,6 @@
 dnl Checks for libraries.
 dnl ---------------------------------------------------------------------
 
-dnl !!! FIXME: Not sure how to detect this...
-dnl check for 64-bit llseek()...
-dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
-if test x$have_llseek = xyes; then
-  AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
-fi
-
-dnl BSD systems use sys/ucred.h for getting mounted volumes.
-dnl Linux and others use mntent.h.
-AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
-if test x$have_ucred_hdr = xyes; then
-  AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
-fi
-
-AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
-if test x$have_mntent_hdr = xyes; then
-  AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
-fi
-
-
 require_zlib="no"
 
 dnl Check for zip archiver inclusion...
@@ -207,11 +187,33 @@
   fi
 fi
 
+dnl !!! FIXME: Not sure how to detect this...
+dnl check for 64-bit llseek()...
+dnl AC_CHECK_LIB(c, llseek, have_llseek=yes)
+if test x$have_llseek = xyes; then
+  AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
+fi
+
+enable_cdrom=no
 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 BSD systems use sys/ucred.h for getting mounted volumes.
+dnl Linux and others use mntent.h.
+AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
+if test x$have_ucred_hdr = xyes; then
+  AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
+  enable_cdrom=yes
+fi
+
+AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
+if test x$have_mntent_hdr = xyes; then
+  AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
+  enable_cdrom=yes
+fi
 
 
 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)