forked from atcurtis/mariadb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WL#5665: Removal of the autotools-based build system
The autotools-based build system has been superseded and is being removed in order to ease the maintenance burden on developers tweaking and maintaining the build system. In order to support tools that need to extract the server version, a new file that (only) contains the server version, called VERSION, is introduced. The file contents are human and machine-readable. The format is: MYSQL_VERSION_MAJOR=5 MYSQL_VERSION_MINOR=5 MYSQL_VERSION_PATCH=8 MYSQL_VERSION_EXTRA=-rc The CMake based version extraction in cmake/mysql_version.cmake is changed to extract the version from this file. The configure to CMake wrapper is retained for backwards compatibility and to support the BUILD/ scripts. Also, a new a makefile target show-dist-name that prints the server version is introduced.
- Loading branch information
Davi Arnaut
committed
Nov 20, 2010
1 parent
c8c3620
commit 53e5f36
Showing
112 changed files
with
59 additions
and
11,348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,9 @@ | ||
#!/bin/sh | ||
# Create MySQL autotools infrastructure | ||
# Create MySQL cmake configure wrapper | ||
|
||
die() { echo "$@"; exit 1; } | ||
|
||
# Handle "glibtoolize" (e.g., for native OS X autotools) as another | ||
# name for "libtoolize". Use the first one, either name, found in PATH. | ||
LIBTOOLIZE=libtoolize # Default | ||
IFS="${IFS= }"; save_ifs="$IFS"; IFS=':' | ||
for dir in $PATH | ||
do | ||
if test -x $dir/glibtoolize | ||
then | ||
LIBTOOLIZE=glibtoolize | ||
break | ||
elif test -x $dir/libtoolize | ||
then | ||
break | ||
fi | ||
done | ||
IFS="$save_ifs" | ||
|
||
rm -rf configure | ||
aclocal || die "Can't execute aclocal" | ||
autoheader || die "Can't execute autoheader" | ||
# --force means overwrite ltmain.sh script if it already exists | ||
$LIBTOOLIZE --automake --force --copy || die "Can't execute libtoolize" | ||
|
||
# --add-missing instructs automake to install missing auxiliary files | ||
# and --force to overwrite them if they already exist | ||
automake --add-missing --force --copy || die "Can't execute automake" | ||
autoconf || die "Can't execute autoconf" | ||
# Do not use autotools generated configure directly. Instead, use a script | ||
# that will either call CMake or original configure shell script at build | ||
# time (CMake is preferred if installed). | ||
mv configure configure.am | ||
cp BUILD/cmake_configure.sh configure | ||
chmod a+x configure | ||
# Use a configure script that will call CMake. | ||
path=`dirname $0` | ||
cp $path/cmake_configure.sh $path/../configure | ||
chmod +x $path/../configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.