Hopefully these are the (near) final changes to autogen, some things need to be
fixed but it's far better than what we had before. Originally committed to SVN as r2023.
This commit is contained in:
parent
6d6ac1b18e
commit
f74845e12b
1 changed files with 26 additions and 24 deletions
50
autogen.sh
50
autogen.sh
|
@ -23,16 +23,14 @@ LIBTOOL_REQUIRED_VERSION=1.5
|
||||||
|
|
||||||
REQUIRED_M4="fontutil.m4 wxwin28.m4 glib-gettext.m4 intltool.m4 intl.m4 pkg.m4 iconv.m4"
|
REQUIRED_M4="fontutil.m4 wxwin28.m4 glib-gettext.m4 intltool.m4 intl.m4 pkg.m4 iconv.m4"
|
||||||
|
|
||||||
PROJECT="aegisub http://aegisub.net/"
|
PROJECT="aegisub"
|
||||||
TEST_TYPE=-d
|
|
||||||
FILE=aegisub
|
|
||||||
|
|
||||||
srcdir=`pwd`
|
srcdir=`pwd`
|
||||||
test -z "$srcdir" && srcdir=.
|
test -z "$srcdir" && srcdir=.
|
||||||
ORIGDIR=`pwd`
|
ORIGDIR=`pwd`
|
||||||
cd $srcdir
|
cd $srcdir
|
||||||
|
|
||||||
test $TEST_TYPE $FILE || {
|
test -d aegisub || {
|
||||||
echo
|
echo
|
||||||
echo "You must run this script in the top-level $PROJECT directory."
|
echo "You must run this script in the top-level $PROJECT directory."
|
||||||
echo
|
echo
|
||||||
|
@ -81,16 +79,6 @@ check_version ()
|
||||||
DIE=0
|
DIE=0
|
||||||
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo "***********************************************************************"
|
|
||||||
echo "*"
|
|
||||||
echo "* Please note that the SVN version of Aegisub is NOT SUPPORTED, you must"
|
|
||||||
echo "* download an official distfile in order to receive support."
|
|
||||||
echo "*"
|
|
||||||
echo "***********************************************************************"
|
|
||||||
echo
|
|
||||||
|
|
||||||
|
|
||||||
echo -n "checking for libtool >= $LIBTOOL_REQUIRED_VERSION ... "
|
echo -n "checking for libtool >= $LIBTOOL_REQUIRED_VERSION ... "
|
||||||
if ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1; then
|
if ($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1; then
|
||||||
LIBTOOLIZE=$LIBTOOLIZE
|
LIBTOOLIZE=$LIBTOOLIZE
|
||||||
|
@ -215,8 +203,6 @@ if test "$DIE" -eq 1; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "I am going to run ./configure with the following arguments:"
|
echo "I am going to run ./configure with the following arguments:"
|
||||||
echo
|
echo
|
||||||
|
@ -231,13 +217,11 @@ if test -z "$*"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if test -z "$ACLOCAL_FLAGS"; then
|
if test -z "$ACLOCAL_FLAGS"; then
|
||||||
|
|
||||||
acdir=`$ACLOCAL --print-ac-dir`
|
acdir=`$ACLOCAL --print-ac-dir`
|
||||||
m4list=$REQUIRED_M4
|
m4list=$REQUIRED_M4
|
||||||
|
|
||||||
for file in $m4list
|
for file in $m4list;
|
||||||
do
|
do
|
||||||
if [ ! -f "$acdir/$file" ]; then
|
if [ ! -f "$acdir/$file" ]; then
|
||||||
echo
|
echo
|
||||||
|
@ -257,8 +241,8 @@ fi
|
||||||
# XXX: This is a kludge until I sort out the config/includes situation.
|
# XXX: This is a kludge until I sort out the config/includes situation.
|
||||||
touch ${srcdir}/aegisub/posix/config.h
|
touch ${srcdir}/aegisub/posix/config.h
|
||||||
|
|
||||||
# bmp -> xmp via the res.rc
|
# BMP -> XPM via src/res.rc
|
||||||
cat ${srcdir}/aegisub/res.rc | ${AWK_BIN} -f ${srcdir}/aegisub/bitmaps/genxpm.awk > ${srcdir}/aegisub/bitmaps/Makefile.bitmaps
|
cat ${srcdir}/aegisub/res.rc | ${BIN_AWK} -f ${srcdir}/aegisub/bitmaps/genxpm.awk > ${srcdir}/aegisub/bitmaps/Makefile.bitmaps
|
||||||
cd ${srcdir}/aegisub/bitmaps
|
cd ${srcdir}/aegisub/bitmaps
|
||||||
make -f Makefile.bitmaps
|
make -f Makefile.bitmaps
|
||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
|
@ -267,12 +251,14 @@ awk '/BITMAP/ { image[count] = $1; ++count} END { printf("EXTRA_DIST= \\\n wxico
|
||||||
${srcdir}/aegisub/res.rc \
|
${srcdir}/aegisub/res.rc \
|
||||||
> ${srcdir}/aegisub/bitmaps/Makefile.am
|
> ${srcdir}/aegisub/bitmaps/Makefile.am
|
||||||
|
|
||||||
|
# XXX: This needs replacing.
|
||||||
cd ${srcdir}/aegisub/posix
|
cd ${srcdir}/aegisub/posix
|
||||||
sh genres.sh ${srcdir}/aegisub/res.rc
|
sh genres.sh ${srcdir}/aegisub/res.rc
|
||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
|
|
||||||
rm -rf autom4te.cache
|
rm -rf autom4te.cache
|
||||||
|
|
||||||
|
echo "--- $ACLOCAL ---"
|
||||||
$ACLOCAL $ACLOCAL_FLAGS
|
$ACLOCAL $ACLOCAL_FLAGS
|
||||||
RC=$?
|
RC=$?
|
||||||
if test $RC -ne 0; then
|
if test $RC -ne 0; then
|
||||||
|
@ -280,20 +266,27 @@ if test $RC -ne 0; then
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "--- $LIBTOOLIZE ---"
|
||||||
$LIBTOOLIZE --force || exit $?
|
$LIBTOOLIZE --force || exit $?
|
||||||
|
|
||||||
# optionally feature autoheader
|
echo "--- $AUTOHEADER ---"
|
||||||
($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 && $AUTOHEADER || exit 1
|
$AUTOHEADER || exit $?
|
||||||
|
|
||||||
|
echo "--- $AUTOMAKE ---"
|
||||||
$AUTOMAKE --add-missing || exit $?
|
$AUTOMAKE --add-missing || exit $?
|
||||||
|
|
||||||
|
echo "--- $AUTOCONF ---"
|
||||||
$AUTOCONF || exit $?
|
$AUTOCONF || exit $?
|
||||||
|
|
||||||
|
echo "--- glib-gettextizeL ---"
|
||||||
glib-gettextize --force || exit $?
|
glib-gettextize --force || exit $?
|
||||||
intltoolize --force --automake || exit $?
|
|
||||||
|
|
||||||
|
echo "--- intltoolize ---"
|
||||||
|
intltoolize --force --automake || exit $?
|
||||||
|
|
||||||
cd $ORIGDIR
|
cd $ORIGDIR
|
||||||
|
|
||||||
|
echo "--- $srcdir/configure ---"
|
||||||
$srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@"
|
$srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@"
|
||||||
RC=$?
|
RC=$?
|
||||||
if test $RC -ne 0; then
|
if test $RC -ne 0; then
|
||||||
|
@ -302,5 +295,14 @@ if test $RC -ne 0; then
|
||||||
exit $RC
|
exit $RC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo
|
||||||
|
echo "***********************************************************************"
|
||||||
|
echo "*"
|
||||||
|
echo "* Please do not ask for support when using the SVN verison of aegisub,
|
||||||
|
echo "* download an official distfile in order to receive support."
|
||||||
|
echo "*"
|
||||||
|
echo "***********************************************************************"
|
||||||
echo
|
echo
|
||||||
echo "Now type 'make' to compile the $PROJECT."
|
echo "Now type 'make' to compile the $PROJECT."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue