Corrected some wrong behaviour, added profiling option.
This commit is contained in:
parent
5ef1442f02
commit
94ec115dba
36
configure.in
36
configure.in
|
@ -67,7 +67,7 @@ dnl ---------------------------------------------------------------------
|
|||
|
||||
AC_ARG_ENABLE(debug,
|
||||
[ --enable-debug enable debug mode [default=yes]],
|
||||
, enable_debug=yes)
|
||||
, enable_debug=no)
|
||||
if test x$enable_debug = xyes; then
|
||||
if test x$ac_cv_prog_cc_g = xyes; then
|
||||
PHYSFSCFLAGS="-g -O0"
|
||||
|
@ -83,14 +83,25 @@ else
|
|||
fi
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------
|
||||
dnl Profile sorts, etc?
|
||||
dnl ---------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(profiling,
|
||||
[ --enable-profiling do algorithm profiling [default=no]],
|
||||
, enable_profiling=no)
|
||||
if test x$enable_profiling = xyes; then
|
||||
AC_DEFINE([PHYSFS_PROFILING], 1, [define to profile sorting, etc algorithms])
|
||||
fi
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------
|
||||
dnl Build test program?
|
||||
dnl ---------------------------------------------------------------------
|
||||
|
||||
AC_ARG_ENABLE(testprog,
|
||||
[ --enable-testprog build test program [default=yes]],
|
||||
, enable_testprog=yes)
|
||||
|
||||
, enable_testprog=yes)
|
||||
|
||||
dnl ---------------------------------------------------------------------
|
||||
dnl Checks for libraries.
|
||||
|
@ -101,7 +112,7 @@ require_zlib="no"
|
|||
dnl Check for zip archiver inclusion...
|
||||
AC_ARG_ENABLE(zip,
|
||||
[ --enable-zip enable ZIP support [default=yes]],
|
||||
, enable_zip=yes)
|
||||
, enable_zip=yes)
|
||||
if test x$enable_zip = xyes; then
|
||||
AC_DEFINE([PHYSFS_SUPPORTS_ZIP], 1, [define if zip support is enabled])
|
||||
require_zlib="yes"
|
||||
|
@ -111,7 +122,7 @@ fi
|
|||
dnl Check for grp archiver inclusion...
|
||||
AC_ARG_ENABLE(grp,
|
||||
[ --enable-grp enable Build Engine GRP support [default=yes]],
|
||||
, enable_grp=yes)
|
||||
, enable_grp=yes)
|
||||
if test x$enable_grp = xyes; then
|
||||
AC_DEFINE([PHYSFS_SUPPORTS_GRP], 1, [define if grp support is enabled])
|
||||
fi
|
||||
|
@ -120,12 +131,12 @@ fi
|
|||
dnl Check for qpak archiver inclusion...
|
||||
AC_ARG_ENABLE(qpak,
|
||||
[ --enable-qpak enable Quake PAK support [default=yes]],
|
||||
, enable_qpak=yes)
|
||||
, enable_qpak=yes)
|
||||
if test x$enable_qpak = xyes; then
|
||||
AC_DEFINE([PHYSFS_SUPPORTS_QPAK], 1, [define if qpak support is enabled])
|
||||
fi
|
||||
|
||||
|
||||
dnl Check if we should statically link the included zlib...
|
||||
AC_ARG_ENABLE(internal-zlib,
|
||||
[ --enable-internal-zlib use included zlib [default=only if needed]],
|
||||
, enable_internal_zlib=maybe)
|
||||
|
@ -182,7 +193,8 @@ fi
|
|||
dnl determine if we should include readline support...
|
||||
AC_ARG_ENABLE(readline,
|
||||
[ --enable-readline use GNU readline in test program [default=yes]],
|
||||
, enable_readline=yes)
|
||||
, enable_readline=yes)
|
||||
|
||||
if test x$enable_readline = xyes; then
|
||||
AC_CHECK_HEADER(readline/readline.h, have_readline_hdr=yes)
|
||||
AC_CHECK_LIB(readline, readline, have_readline_lib=yes, , -lcurses)
|
||||
|
@ -207,7 +219,7 @@ fi
|
|||
dnl determine if we should use the stubbed pthread code.
|
||||
AC_ARG_ENABLE(pthreads,
|
||||
[ --enable-pthreads include POSIX threads support [default=yes]],
|
||||
, enable_pthreads=yes)
|
||||
, enable_pthreads=yes)
|
||||
if test x$enable_pthreads = xyes; then
|
||||
AC_CHECK_HEADER(pthread.h, have_pthread_hdr=yes)
|
||||
if test x$have_pthread_hdr != xyes; then
|
||||
|
@ -218,7 +230,8 @@ fi
|
|||
dnl determine if we should use the stubbed CD-ROM detection code.
|
||||
AC_ARG_ENABLE(cdrom,
|
||||
[ --enable-cdrom include CD-ROM support [default=yes]],
|
||||
, enable_cdrom=yes)
|
||||
, enable_cdrom=yes)
|
||||
|
||||
if test x$enable_cdrom = xyes; then
|
||||
dnl reset this and let header detection reenable...
|
||||
enable_cdrom=no
|
||||
|
@ -239,10 +252,9 @@ if test x$enable_cdrom = xyes; then
|
|||
fi
|
||||
|
||||
dnl determine language.
|
||||
physfslang=english
|
||||
AC_ARG_ENABLE(language,
|
||||
[ --enable-language=lang Select natural language. [default=english]],
|
||||
physfslang=`echo $enable_language |tr A-Z a-z`)
|
||||
physfslang=`echo $enable_language |tr A-Z a-z`, physfslang=english)
|
||||
|
||||
AC_MSG_CHECKING([if language choice is supported])
|
||||
physfs_valid_lang=no
|
||||
|
|
Loading…
Reference in New Issue