diff options
author | Christopher Faylor <me@cgf.cx> | 2003-07-02 03:16:00 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-07-02 03:16:00 +0000 |
commit | 3872e9a41944f7f77cf8eea6970c6f3fd5d8fb43 (patch) | |
tree | 2690f81b955f39402d09bf3c06b7f893e15547fc /winsup/cygwin/configure | |
parent | 4d8d80b8a7a9ea21f5a90d912741267b11c50d22 (diff) | |
download | cygnal-3872e9a41944f7f77cf8eea6970c6f3fd5d8fb43.tar.gz cygnal-3872e9a41944f7f77cf8eea6970c6f3fd5d8fb43.tar.bz2 cygnal-3872e9a41944f7f77cf8eea6970c6f3fd5d8fb43.zip |
* Makefile.in: Remove cygserver stuff.
* acconfig.h: Add USE_CYGSERVER define.
* config.h.in: Regenerate.
* configure.in: Add --enable-server setting.
* configure: Regenerate.
* fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize compilation of
cygserver stuff.
* fork.cc (fork_child): Ditto.
* shm.cc: Ditto.
* tty.cc (tty::common_init): Ditto.
* dcrt0.cc: Use bool rather than BOOL for CYGWIN environment variable
definitions.
* environ.cc: Ditto.
* ntea.cc: Ditto.
* security.cc: Ditto.
* security.h: Ditto.
* syscalls.cc (check_posix_perm): Remove externs that were already declared in
a header.
* winsup.h: Ditto. Declare _MT_SAFE here. Delete it someday since cygwin
should always be _MT_SAFE.
Diffstat (limited to 'winsup/cygwin/configure')
-rwxr-xr-x | winsup/cygwin/configure | 48 |
1 files changed, 15 insertions, 33 deletions
diff --git a/winsup/cygwin/configure b/winsup/cygwin/configure index f5c8a7d4b..9848c905a 100755 --- a/winsup/cygwin/configure +++ b/winsup/cygwin/configure @@ -12,12 +12,12 @@ ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help - --enable-threadsafe=[runtime] Build a cygwin DLL which is thread safe" -ac_help="$ac_help --enable-extra-threadsafe-checking Build a cygwin DLL which is thread safe with extra consistency checking" ac_help="$ac_help --enable-debugging Build a cygwin DLL which has more consistency checking for debugging" ac_help="$ac_help + --enable-server Build a cygwin DLL which can communicate with cygserver" +ac_help="$ac_help --enable-malloc-debugging Build a cygwin DLL with heap sanity checking (this is very slow, use only if you have heap corruption problems)" ac_help="$ac_help --enable-vfork Build a cygwin DLL which uses experimental vfork code" @@ -1865,28 +1865,6 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross -mt_safe_val=1 -MT_SAFE=yes - -# Check whether --enable-threadsafe or --disable-threadsafe was given. -if test "${enable_threadsafe+set}" = set; then - enableval="$enable_threadsafe" - case "${enableval}" in -yes) - ;; -runtime) - mt_safe_val=2 - MT_SAFE=yes - ;; -no) - mt_safe_val=0 - MT_SAFE=no - ;; -esac - -fi - - # Check whether --enable-extra-threadsafe-checking or --disable-extra-threadsafe-checking was given. if test "${enable_extra_threadsafe_checking+set}" = set; then enableval="$enable_extra_threadsafe_checking" @@ -1906,21 +1884,26 @@ esac fi -if test "$MT_SAFE" = "yes"; then - cat >> confdefs.h <<EOF -#define _MT_SAFE $mt_safe_val +# Check whether --enable-debugging or --disable-debugging was given. +if test "${enable_debugging+set}" = set; then + enableval="$enable_debugging" + case "${enableval}" in +yes) cat >> confdefs.h <<\EOF +#define DEBUGGING 1 EOF + ;; +no) ;; +esac fi - -# Check whether --enable-debugging or --disable-debugging was given. -if test "${enable_debugging+set}" = set; then - enableval="$enable_debugging" +# Check whether --enable-cygserver or --disable-cygserver was given. +if test "${enable_cygserver+set}" = set; then + enableval="$enable_cygserver" case "${enableval}" in yes) cat >> confdefs.h <<\EOF -#define DEBUGGING 1 +#define USE_CYGSERVE 1 EOF ;; no) ;; @@ -2146,7 +2129,6 @@ s%@WINDRES@%$WINDRES%g s%@CPP@%$CPP%g s%@ALLOCA@%$ALLOCA%g s%@SET_MAKE@%$SET_MAKE%g -s%@MT_SAFE@%$MT_SAFE%g s%@MALLOC_OFILES@%$MALLOC_OFILES%g s%@DLL_ENTRY@%$DLL_ENTRY%g s%@DEF_DLL_ENTRY@%$DEF_DLL_ENTRY%g |