2
# Create MySQL autotools infrastructure
4
die() { echo "$@"; exit 1; }
6
# Handle "glibtoolize" (e.g., for native OS X autotools) as another
7
# name for "libtoolize". Use the first one, either name, found in PATH.
8
LIBTOOLIZE=libtoolize # Default
9
IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
12
if test -x $dir/glibtoolize
14
LIBTOOLIZE=glibtoolize
16
elif test -x $dir/libtoolize
23
aclocal || die "Can't execute aclocal"
24
autoheader || die "Can't execute autoheader"
25
# --force means overwrite ltmain.sh script if it already exists
26
$LIBTOOLIZE --automake --force --copy || die "Can't execute libtoolize"
28
# --add-missing instructs automake to install missing auxiliary files
29
# and --force to overwrite them if they already exist
30
automake --add-missing --force --copy || die "Can't execute automake"
31
autoconf || die "Can't execute autoconf"