2005-05-18 13:23:29 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Create MySQL autotools infrastructure
|
|
|
|
|
2005-07-18 19:33:05 +02:00
|
|
|
die() { echo "$@"; exit 1; }
|
|
|
|
|
|
|
|
aclocal || die "Can't execute aclocal"
|
|
|
|
autoheader || die "Can't execute autoheader"
|
2005-05-18 13:23:29 +02:00
|
|
|
# --force means overwrite ltmain.sh script if it already exists
|
2005-07-11 18:52:19 +02:00
|
|
|
# Added glibtoolize reference to make native OSX autotools work
|
2005-09-17 03:10:36 +02:00
|
|
|
if test -f /usr/bin/glibtoolize ; then
|
2005-07-18 19:33:05 +02:00
|
|
|
glibtoolize --automake --force || die "Can't execute glibtoolize"
|
2005-07-11 18:52:19 +02:00
|
|
|
else
|
2005-07-18 19:33:05 +02:00
|
|
|
libtoolize --automake --force || die "Can't execute libtoolize"
|
2005-07-11 18:52:19 +02:00
|
|
|
fi
|
2005-07-18 19:33:05 +02:00
|
|
|
|
2005-05-18 13:23:29 +02:00
|
|
|
# --add-missing instructs automake to install missing auxiliary files
|
|
|
|
# and --force to overwrite them if they already exist
|
2005-07-18 19:33:05 +02:00
|
|
|
automake --add-missing --force || die "Can't execute automake"
|
|
|
|
autoconf || die "Can't execute autoconf"
|
2005-05-18 13:23:29 +02:00
|
|
|
(cd bdb/dist && sh s_all)
|
|
|
|
(cd innobase && aclocal && autoheader && aclocal && automake && autoconf)
|