2005-03-05 17:05:35 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2006-05-08 07:10:29 +00:00
|
|
|
# Copyright 2005, 2006 by
|
2005-06-04 23:04:30 +00:00
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
#
|
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
|
|
|
|
2005-03-05 17:05:35 +00:00
|
|
|
run ()
|
|
|
|
{
|
|
|
|
echo "running \`$*'"
|
|
|
|
eval $*
|
|
|
|
|
|
|
|
if test $? != 0 ; then
|
|
|
|
echo "error while running \`$*'"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2006-05-08 07:10:29 +00:00
|
|
|
if test ! -f ./builds/unix/configure.raw; then
|
2005-03-05 17:05:35 +00:00
|
|
|
echo "You must be in the same directory as \`autogen.sh'."
|
|
|
|
echo "Bootstrapping doesn't work if srcdir != builddir."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-05-08 07:10:29 +00:00
|
|
|
# This sets freetype_major, freetype_minor, and freetype_patch.
|
|
|
|
eval `sed -nf version.sed include/freetype/freetype.h`
|
|
|
|
|
|
|
|
# We set freetype-patch to an empty value if it is zero.
|
|
|
|
if test "$freetype_patch" = ".0"; then
|
|
|
|
freetype_patch=
|
|
|
|
fi
|
|
|
|
|
2005-03-05 17:05:35 +00:00
|
|
|
cd builds/unix
|
|
|
|
|
2006-05-08 07:10:29 +00:00
|
|
|
echo "generating \`configure.ac'"
|
|
|
|
sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
|
|
|
|
< configure.raw > configure.ac
|
|
|
|
|
2005-04-13 18:12:36 +00:00
|
|
|
run aclocal -I . --force
|
2005-03-05 17:05:35 +00:00
|
|
|
run libtoolize --force --copy
|
2005-04-13 18:12:36 +00:00
|
|
|
run autoconf --force
|
2005-03-05 17:05:35 +00:00
|
|
|
|
|
|
|
chmod +x mkinstalldirs
|
|
|
|
chmod +x install-sh
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
chmod +x ./configure
|
|
|
|
|
|
|
|
# EOF
|