diff options
author | das <das> | 2009-04-10 18:01:31 (GMT) |
---|---|---|
committer | das <das> | 2009-04-10 18:01:31 (GMT) |
commit | 9bdf20b285315e722860d65d2ada928f6ece07f0 (patch) | |
tree | 369a3d4850ed0de3a52c520df526bb09f5bead49 /unix/configure.in | |
parent | 823edac52c51fd85660d75007473f05c8c29f84d (diff) | |
download | tcl-9bdf20b285315e722860d65d2ada928f6ece07f0.zip tcl-9bdf20b285315e722860d65d2ada928f6ece07f0.tar.gz tcl-9bdf20b285315e722860d65d2ada928f6ece07f0.tar.bz2 |
* unix/configure.in (Darwin): use Darwin SUSv3 extensions if
available; remove /Network locations
from default tcl package search path
(NFS mounted locations and thus slow).
* unix/configure: autoconf-2.59
* unix/tclConfig.h.in: autoheader-2.59
Diffstat (limited to 'unix/configure.in')
-rw-r--r-- | unix/configure.in | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/unix/configure.in b/unix/configure.in index 4ba97a0..815c9be 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to dnl generate the file "configure", which is run during Tcl installation dnl to configure the system for the local environment. # -# RCS: @(#) $Id: configure.in,v 1.206 2009/03/14 17:20:24 dkf Exp $ +# RCS: @(#) $Id: configure.in,v 1.207 2009/04/10 18:01:31 das Exp $ AC_INIT([tcl],[8.6]) AC_PREREQ(2.59) @@ -576,6 +576,25 @@ if test "`uname -s`" = "Darwin" ; then if test $tcl_cv_cc_weak_import = yes; then AC_DEFINE(HAVE_WEAK_IMPORT, 1, [Is weak import available?]) fi + AC_CACHE_CHECK([if Darwin SUSv3 extensions are available], + tcl_cv_cc_darwin_c_source, [ + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" + AC_TRY_COMPILE([ + #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ + #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 + #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 + #endif + #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050 + #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050 + #endif + #define _DARWIN_C_SOURCE 1 + #include <sys/cdefs.h> + ],,tcl_cv_cc_darwin_c_source=yes, tcl_cv_cc_darwin_c_source=no) + CFLAGS=$hold_cflags]) + if test $tcl_cv_cc_darwin_c_source = yes; then + AC_DEFINE(_DARWIN_C_SOURCE, 1, + [Are Darwin SUSv3 extensions available?]) + fi fi # Build .bundle dltest binaries in addition to .dylib DLTEST_LD='${CC} -bundle -Wl,-w ${CFLAGS} ${LDFLAGS}' @@ -829,9 +848,9 @@ VERSION=${TCL_VERSION} if test "$FRAMEWORK_BUILD" = "1" ; then test -z "$TCL_PACKAGE_PATH" && \ - TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks" + TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /System/Library/Frameworks" test -z "$TCL_MODULE_PATH" && \ - TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl" + TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl" elif test "$prefix/lib" != "$libdir"; then TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" else |