summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--changes4
-rw-r--r--unix/configure.in19
2 files changed, 21 insertions, 2 deletions
diff --git a/changes b/changes
index 06796b8..87f76ee 100644
--- a/changes
+++ b/changes
@@ -1,6 +1,6 @@
Recent user-visible changes to Tcl:
-RCS: @(#) $Id: changes,v 1.38 1999/01/12 02:50:33 rjohnson Exp $
+RCS: @(#) $Id: changes,v 1.39 1999/01/29 00:32:14 rjohnson Exp $
1. No more [command1] [command2] construct for grouping multiple
commands on a single command line.
@@ -3695,3 +3695,5 @@ Thanks to Kevin Kenny for this fix. (SS)
1/11/98 (bug fix) On HP, "info sharedlibextension" was returning
empty string on static apps. It now always returns ".sl". (RJ)
+
+1/28/99 (configure change) Now support -pipe option on gcc. (RJ)
diff --git a/unix/configure.in b/unix/configure.in
index 0d47b62..0f7d6aa 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -2,7 +2,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.
AC_INIT(../generic/tcl.h)
-# RCS: @(#) $Id: configure.in,v 1.24 1999/01/12 02:29:33 rjohnson Exp $
+# RCS: @(#) $Id: configure.in,v 1.25 1999/01/29 00:32:01 rjohnson Exp $
TCL_VERSION=8.0
TCL_MAJOR_VERSION=8
@@ -36,6 +36,23 @@ else
CFLAGS_WARNING=""
fi
+#------------------------------------------------------------------------------
+# If we're using GCC, see if the compiler understands -pipe. If so, use it.
+# It makes compiling go faster. (This is only a performance feature.)
+#------------------------------------------------------------------------------
+
+if test -z "$no_pipe"; then
+if test -n "$GCC"; then
+ AC_MSG_CHECKING([if the compiler understands -pipe])
+ OLDCC="$CC"
+ CC="$CC -pipe"
+ AC_TRY_COMPILE(,,
+ AC_MSG_RESULT(yes),
+ CC="$OLDCC"
+ AC_MSG_RESULT(no))
+fi
+fi
+
#--------------------------------------------------------------------
# Supply substitutes for missing POSIX library procedures, or
# set flags so Tcl uses alternate procedures.