Commit 51dacba9 authored by unknown's avatar unknown

Merge gbichot@213.136.52.20:/home/bk/mysql-4.0

into mysql.com:/home/mysql_src/mysql-4.0


configure.in:
  Auto merged
parents 76993424 3ccee655
...@@ -71,6 +71,22 @@ else ...@@ -71,6 +71,22 @@ else
make=make make=make
fi fi
if test -z $CXX ; then if test -z "$CXX" ; then
CXX=gcc CXX=gcc
fi fi
# If ccache (a compiler cache which reduces build time)
# (http://samba.org/ccache) is installed, use it.
# We use 'grep' and hope 'grep' will work as expected
# (returns 0 if finds lines)
if ccache -V > /dev/null 2>&1
then
if ! (echo "$CC" | grep "ccache" > /dev/null)
then
CC="ccache $CC"
fi
if ! (echo "$CXX" | grep "ccache" > /dev/null)
then
CXX="ccache $CXX"
fi
fi
...@@ -361,7 +361,7 @@ then ...@@ -361,7 +361,7 @@ then
# we will gets some problems when linking static programs. # we will gets some problems when linking static programs.
# The following code is used to fix this problem. # The following code is used to fix this problem.
if test "$CXX" = "gcc" if test "$CXX" = "gcc" -o "$CXX" = "ccache gcc"
then then
if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1 if $CXX -v 2>&1 | grep 'version 3' > /dev/null 2>&1
then then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment