From c40712d24f8def6f6ad3a484103fdfdba35cbf10 Mon Sep 17 00:00:00 2001 From: das Date: Thu, 15 Nov 2007 04:16:26 +0000 Subject: fix 'stack grows upwards' AC_CACHE_CHECK message --- unix/configure.in | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/unix/configure.in b/unix/configure.in index fdc0f8f..9fb3a4cf 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.169 2007/11/13 16:10:29 patthoyts Exp $ +# RCS: @(#) $Id: configure.in,v 1.170 2007/11/15 04:16:26 das Exp $ AC_INIT([tcl],[8.5]) AC_PREREQ(2.59) @@ -663,29 +663,22 @@ AC_MSG_RESULT([$tcl_ok]) # Does the C stack grow upwards or downwards? Or cross-compiling? #-------------------------------------------------------------------- -AC_CACHE_CHECK([does the C stack grow upwards in memory?], tcl_cv_stack_grows_up, [ +AC_CACHE_CHECK([if the C stack grows upwards in memory], tcl_cv_stack_grows_up, [ AC_TRY_RUN([ - int StackGrowsUp(int *parent) - { + int StackGrowsUp(int *parent) { int here; return (&here < parent); } - - int main (int argc, char *argv[]) - { + int main (int argc, char *argv[]) { int foo; return StackGrowsUp(&foo); } - ], - tcl_cv_stack_grows_up=yes, - tcl_cv_stack_grows_up=no, + ], tcl_cv_stack_grows_up=yes, tcl_cv_stack_grows_up=no, tcl_cv_stack_grows_up=unknown)]) if test $tcl_cv_stack_grows_up = unknown; then - AC_DEFINE(TCL_CROSS_COMPILE, 1, - [Are we cross-compiling?]) + AC_DEFINE(TCL_CROSS_COMPILE, 1, [Are we cross-compiling?]) elif test $tcl_cv_stack_grows_up = yes; then - AC_DEFINE(TCL_STACK_GROWS_UP, 1, - [The C stack grows upwards in memory]) + AC_DEFINE(TCL_STACK_GROWS_UP, 1, [The C stack grows upwards in memory.]) fi #-------------------------------------------------------------------- -- cgit v0.12