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; }
|
|
|
|
|
2006-05-09 15:24:57 +02:00
|
|
|
# Added glibtoolize reference to make native OSX autotools work
|
|
|
|
if [ -f /usr/bin/glibtoolize ]
|
|
|
|
then
|
|
|
|
LIBTOOLIZE=glibtoolize
|
|
|
|
else
|
|
|
|
LIBTOOLIZE=libtoolize
|
|
|
|
fi
|
|
|
|
|
2005-07-18 19:33:05 +02:00
|
|
|
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
|
2006-05-09 15:24:57 +02:00
|
|
|
$LIBTOOLIZE --automake --force || die "Can't execute libtoolize"
|
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"
|