~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid

« back to all changes in this revision

Viewing changes to BUILD/compile-dist

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-02-10 16:42:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090210164205-ej41ocvm4z1s14nq
Tags: 5.1.31-1ubuntu1
* Merge from debian experimental, remaining changes: 
  - debian/mysql-server-5.1.config: ask for MySQL root password at priority
    high instead of medium so that the password prompt is seen on a default
    install. (LP: #319843)
  - debian/control: 
    + Don't build mysql-server, mysql-client, mysql-common and 
      libmysqlclient15-dev binary packages since they're still provided 
      by mysql-dfsg-5.0.
    + Rename libmysqlclient-dev package to libmysqlclient16-dev (LP: #316280).
      Make it conflict with libmysqlclient15-dev.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide 
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src 
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
  - debian/rules: added -fno-strict-aliasing to CFLAGS to get
    around mysql testsuite build failures.
* debian/patches/92_ssl_test_cert.dpatch: certificate expiration in 
  test suite (LP: #323755).
* Dropped changes:
  - all of the changes made to support both 5.0 and 5.1 installed at the
    same time have been dropped now that amarok doesn't depend on
    mysql-server-5.1 anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
path=`dirname $0`
12
12
. $path/autorun.sh
13
13
 
 
14
gmake=
 
15
for x in gmake gnumake make; do
 
16
  if $x --version 2>/dev/null | grep GNU > /dev/null; then
 
17
    gmake=$x
 
18
    break;
 
19
  fi
 
20
done
 
21
 
 
22
if [ -z "$gmake" ]; then
 
23
  # Our build may not depend on GNU make, but I wouldn't count on it
 
24
  echo "Please install GNU make, and ensure it is in your path as gnumake, gmake, or make" >&2
 
25
  exit 2
 
26
fi
 
27
 
14
28
# Default to gcc for CC and CXX
15
29
if test -z "$CXX" ; then
 
30
  export CXX
16
31
  CXX=gcc
17
32
  # Set some required compile options
18
33
  if test -z "$CXXFLAGS" ; then
 
34
    export CXXFLAGS
19
35
    CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti"
20
36
  fi
21
37
fi
22
38
 
23
39
if test -z "$CC" ; then
 
40
  export CC
24
41
  CC=gcc
25
42
fi
26
43
 
28
45
# Use ccache, if available
29
46
if ccache -V > /dev/null 2>&1
30
47
then
31
 
  if echo "$CC" | grep "ccache" > /dev/null
 
48
  if echo "$CC" | grep -v ccache > /dev/null
32
49
  then
33
 
    :
34
 
  else
 
50
    export CC
35
51
    CC="ccache $CC"
36
52
  fi
37
 
  if echo "$CXX" | grep "ccache" > /dev/null
 
53
  if echo "$CXX" | grep -v ccache > /dev/null
38
54
  then
39
 
    :
40
 
  else
 
55
    export CXX
41
56
    CXX="ccache $CXX"
42
57
  fi
43
58
fi
44
59
 
45
 
if test -z "$MAKE"
46
 
then
47
 
  if gmake -v > /dev/null 2>&1
48
 
  then
49
 
    MAKE="gmake"
50
 
  else
51
 
    MAKE="make"
52
 
  fi
53
 
fi
54
 
 
55
 
export CC CXX MAKE
56
 
 
57
60
# Make sure to enable all features that affect "make dist"
58
61
# Remember that configure restricts the man pages to the configured features !
59
62
./configure \
60
63
  --with-embedded-server \
61
64
  --with-ndbcluster
62
 
$MAKE
 
65
$gmake
63
66