summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorrjohnson <rjohnson>1999-01-29 00:32:01 (GMT)
committerrjohnson <rjohnson>1999-01-29 00:32:01 (GMT)
commit141681c541737f4d78813e7c225d7c76ba2deabf (patch)
tree7129d5e2da9bb006379b66238a2cf56ba27646c0 /unix
parent6d0c27b1c6b1874acc81b2aacfe702cd73bd1f09 (diff)
downloadtcl-141681c541737f4d78813e7c225d7c76ba2deabf.zip
tcl-141681c541737f4d78813e7c225d7c76ba2deabf.tar.gz
tcl-141681c541737f4d78813e7c225d7c76ba2deabf.tar.bz2
Added -pipe option if gcc is being used.
Diffstat (limited to 'unix')
-rw-r--r--unix/configure.in19
1 files changed, 18 insertions, 1 deletions
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.