2002-05-10 11:16:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo "Initial preparation...this can take awhile, so sit tight..."
|
2004-01-08 06:53:28 +01:00
|
|
|
rm -f Makefile.am
|
2002-07-21 11:32:34 +02:00
|
|
|
perl -w -e 'use File::Copy; exit 0 if (-f "Makefile.am"); my $x = `automake --version |head -n 1`; chomp($x); $x = 0.0 if ($x !~ s/\A.*?(\d+\.\d+).*\Z/$1/); if ($x < 1.5) { copy("./Makefile.am.oldautomake", "./Makefile.am"); } else { copy("./Makefile.am.newautomake", "./Makefile.am"); }'
|
2002-05-10 11:16:38 +02:00
|
|
|
aclocal
|
2004-09-21 19:30:23 +02:00
|
|
|
|
|
|
|
# MacOS X renames GNU libtool to "glibtool", since they have something
|
|
|
|
# else called "libtool" already...
|
|
|
|
if [ -x /usr/bin/glibtoolize ]; then
|
|
|
|
glibtoolize --automake --copy --force
|
|
|
|
else
|
|
|
|
libtoolize --automake --copy --force
|
|
|
|
fi
|
|
|
|
|
2002-05-10 11:16:38 +02:00
|
|
|
autoheader
|
|
|
|
automake --foreign --add-missing --copy
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
echo "You are now ready to run ./configure ..."
|
|
|
|
|