summaryrefslogtreecommitdiffstats
path: root/unix/configure.in
diff options
context:
space:
mode:
authorrjohnson <rjohnson>1999-01-29 00:32:29 (GMT)
committerrjohnson <rjohnson>1999-01-29 00:32:29 (GMT)
commitc628f708442b1e2da4a6332141c28238911cb9c8 (patch)
tree4225b0fa7cfca0bd345a5b59fb0845a7e4be928b /unix/configure.in
parente904bc5e620774bea43638c8cd679affbc36fa2e (diff)
downloadtk-c628f708442b1e2da4a6332141c28238911cb9c8.zip
tk-c628f708442b1e2da4a6332141c28238911cb9c8.tar.gz
tk-c628f708442b1e2da4a6332141c28238911cb9c8.tar.bz2
Added -pipe option if gcc is being used.
Diffstat (limited to 'unix/configure.in')
-rw-r--r--unix/configure.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/unix/configure.in b/unix/configure.in
index e7aac88..3546419 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 Tk installation
dnl to configure the system for the local environment.
AC_INIT(../generic/tk.h)
-# RCS: @(#) $Id: configure.in,v 1.24 1999/01/04 19:25:27 rjohnson Exp $
+# RCS: @(#) $Id: configure.in,v 1.25 1999/01/29 00:32:40 rjohnson Exp $
TK_VERSION=8.0
TK_MAJOR_VERSION=8
@@ -41,6 +41,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
+
#--------------------------------------------------------------------
# See if there was a command-line option for where Tcl is; if
# not, assume that its top-level directory is a sibling of ours.