configure.in
changeset 453 108de3bb1b6b
parent 444 06f6a31057a0
child 454 e1353730f8c6
equal deleted inserted replaced
452:89578e99ba6e 453:108de3bb1b6b
   106   AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
   106   AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
   107   require_zlib="yes"
   107   require_zlib="yes"
   108 fi
   108 fi
   109 
   109 
   110 
   110 
   111 dnl Check for zip archiver inclusion...
   111 dnl Check for grp archiver inclusion...
   112 AC_ARG_ENABLE(grp,
   112 AC_ARG_ENABLE(grp,
   113 [  --enable-grp               enable Build Engine GRP support [default=yes]],
   113 [  --enable-grp               enable Build Engine GRP support [default=yes]],
   114               , enable_grp=yes)
   114               , enable_grp=yes)
   115 if test x$enable_grp = xyes; then
   115 if test x$enable_grp = xyes; then
   116   AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
   116   AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
       
   117 fi
       
   118 
       
   119 
       
   120 dnl Check for qpak archiver inclusion...
       
   121 AC_ARG_ENABLE(qpak,
       
   122 [  --enable-qpak              enable Quake PAK support [default=yes]],
       
   123               , enable_qpak=yes)
       
   124 if test x$enable_qpak = xyes; then
       
   125   AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled])
   117 fi
   126 fi
   118 
   127 
   119 
   128 
   120 AC_ARG_ENABLE(internal-zlib,
   129 AC_ARG_ENABLE(internal-zlib,
   121 [  --enable-internal-zlib     use included zlib [default=only if needed]],
   130 [  --enable-internal-zlib     use included zlib [default=only if needed]],
   413 #AC_FUNC_MALLOC
   422 #AC_FUNC_MALLOC
   414 
   423 
   415 AC_FUNC_MEMCMP
   424 AC_FUNC_MEMCMP
   416 AC_CHECK_FUNCS([memset strrchr])
   425 AC_CHECK_FUNCS([memset strrchr])
   417 
   426 
       
   427 AC_CHECK_SIZEOF(int, 4)
       
   428 
   418 CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
   429 CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
   419 LDFLAGS="$LDFLAGS -no-undefined"
   430 LDFLAGS="$LDFLAGS -no-undefined"
   420 
   431 
   421 dnl Add Makefile conditionals
   432 dnl Add Makefile conditionals
   422 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
   433 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)