configure.in
changeset 774 916c2e81e77f
parent 770 883940fe64f9
child 775 a8cc6b8a8e9c
equal deleted inserted replaced
773:8215379394b5 774:916c2e81e77f
   134 [  --enable-zip               enable ZIP support [default=yes]],
   134 [  --enable-zip               enable ZIP support [default=yes]],
   135                 , enable_zip=yes)
   135                 , enable_zip=yes)
   136 if test x$enable_zip = xyes; then
   136 if test x$enable_zip = xyes; then
   137   AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
   137   AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
   138   require_zlib="yes"
   138   require_zlib="yes"
       
   139 fi
       
   140 
       
   141 
       
   142 require_lzma="no"
       
   143  
       
   144 dnl Check for lzma archiver inclusion...
       
   145 AC_ARG_ENABLE(lzma,
       
   146 [  --enable-lzma               enable lzma support [default=yes]],
       
   147                 , enable_lzma=yes)
       
   148 if test x$enable_lzma = xyes; then
       
   149   AC_DEFINE([PHYSFS_SUPPORTS_LZMA], 1, [define if lzma support is enabled])
       
   150   require_lzma="yes"
   139 fi
   151 fi
   140 
   152 
   141 
   153 
   142 dnl Check for grp archiver inclusion...
   154 dnl Check for grp archiver inclusion...
   143 AC_ARG_ENABLE(grp,
   155 AC_ARG_ENABLE(grp,
   562 CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE"
   574 CFLAGS="$PHYSFSCFLAGS $CFLAGS -D_REENTRANT -D_THREAD_SAFE"
   563 LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"
   575 LDFLAGS="$LDFLAGS $PHYSFSLDFLAGS -no-undefined"
   564 
   576 
   565 dnl Add Makefile conditionals
   577 dnl Add Makefile conditionals
   566 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
   578 AM_CONDITIONAL(BUILD_ZLIB, test x$enable_internal_zlib = xyes)
       
   579 AM_CONDITIONAL(BUILD_LZMA, test x$enable_lzma = xyes)
   567 AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
   580 AM_CONDITIONAL(BUILD_TEST_PHYSFS, test x$enable_testprog = xyes)
   568 AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)
   581 AM_CONDITIONAL(BUILD_MACOSX, test x$this_is_macosx = xyes)
   569 AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes)
   582 AM_CONDITIONAL(BUILD_BEOS, test x$this_is_beos = xyes)
   570 AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes)
   583 AM_CONDITIONAL(BUILD_CYGWIN, test x$this_is_cygwin = xyes)
   571 AM_CONDITIONAL(BUILD_READLINE, test x$have_readline = xyes)
   584 AM_CONDITIONAL(BUILD_READLINE, test x$have_readline = xyes)
   573 AC_OUTPUT([
   586 AC_OUTPUT([
   574 Makefile
   587 Makefile
   575 archivers/Makefile
   588 archivers/Makefile
   576 platform/Makefile
   589 platform/Makefile
   577 zlib123/Makefile
   590 zlib123/Makefile
       
   591 lzma/Makefile
   578 test/Makefile
   592 test/Makefile
   579 extras/Makefile
   593 extras/Makefile
   580 physfs.spec
   594 physfs.spec
   581 ])
   595 ])
   582 
   596