gecko/modules/freetype2/autogen.sh
Michael Wu c48654d630 Bug 966795 - Update to freetype 2.5.2, r=jfkthame
--HG--
rename : modules/freetype2/builds/amiga/include/freetype/config/ftconfig.h => modules/freetype2/builds/amiga/include/config/ftconfig.h
rename : modules/freetype2/builds/amiga/include/freetype/config/ftmodule.h => modules/freetype2/builds/amiga/include/config/ftmodule.h
rename : modules/freetype2/builds/win32/detect.mk => modules/freetype2/builds/windows/detect.mk
rename : modules/freetype2/builds/win32/ftdebug.c => modules/freetype2/builds/windows/ftdebug.c
rename : modules/freetype2/builds/win32/vc2005/freetype.sln => modules/freetype2/builds/windows/vc2005/freetype.sln
rename : modules/freetype2/builds/win32/vc2005/freetype.vcproj => modules/freetype2/builds/windows/vc2005/freetype.vcproj
rename : modules/freetype2/builds/win32/vc2008/freetype.sln => modules/freetype2/builds/windows/vc2008/freetype.sln
rename : modules/freetype2/builds/win32/vc2008/freetype.vcproj => modules/freetype2/builds/windows/vc2008/freetype.vcproj
rename : modules/freetype2/builds/win32/vc2010/freetype.vcxproj.filters => modules/freetype2/builds/windows/vc2010/freetype.vcxproj.filters
rename : modules/freetype2/builds/win32/visualce/freetype.dsp => modules/freetype2/builds/windows/visualc/freetype.dsp
rename : modules/freetype2/builds/win32/visualce/freetype.dsw => modules/freetype2/builds/windows/visualc/freetype.dsw
rename : modules/freetype2/builds/win32/visualc/freetype.sln => modules/freetype2/builds/windows/visualc/freetype.sln
rename : modules/freetype2/builds/win32/visualc/freetype.vcproj => modules/freetype2/builds/windows/visualc/freetype.vcproj
rename : modules/freetype2/builds/win32/visualce/freetype.dsp => modules/freetype2/builds/windows/visualce/freetype.dsp
rename : modules/freetype2/builds/win32/visualce/freetype.dsw => modules/freetype2/builds/windows/visualce/freetype.dsw
rename : modules/freetype2/builds/win32/visualce/freetype.vcproj => modules/freetype2/builds/windows/visualce/freetype.vcproj
rename : modules/freetype2/builds/win32/w32-bcc.mk => modules/freetype2/builds/windows/w32-bcc.mk
rename : modules/freetype2/builds/win32/w32-bccd.mk => modules/freetype2/builds/windows/w32-bccd.mk
rename : modules/freetype2/builds/win32/w32-dev.mk => modules/freetype2/builds/windows/w32-dev.mk
rename : modules/freetype2/builds/win32/w32-gcc.mk => modules/freetype2/builds/windows/w32-gcc.mk
rename : modules/freetype2/builds/win32/w32-icc.mk => modules/freetype2/builds/windows/w32-icc.mk
rename : modules/freetype2/builds/win32/w32-intl.mk => modules/freetype2/builds/windows/w32-intl.mk
rename : modules/freetype2/builds/win32/w32-lcc.mk => modules/freetype2/builds/windows/w32-lcc.mk
rename : modules/freetype2/builds/win32/w32-mingw32.mk => modules/freetype2/builds/windows/w32-mingw32.mk
rename : modules/freetype2/builds/win32/w32-vcc.mk => modules/freetype2/builds/windows/w32-vcc.mk
rename : modules/freetype2/builds/win32/w32-wat.mk => modules/freetype2/builds/windows/w32-wat.mk
rename : modules/freetype2/builds/win32/win32-def.mk => modules/freetype2/builds/windows/win32-def.mk
rename : modules/freetype2/include/freetype/config/ftconfig.h => modules/freetype2/include/config/ftconfig.h
rename : modules/freetype2/include/freetype/config/ftheader.h => modules/freetype2/include/config/ftheader.h
rename : modules/freetype2/include/freetype/config/ftmodule.h => modules/freetype2/include/config/ftmodule.h
rename : modules/freetype2/include/freetype/config/ftoption.h => modules/freetype2/include/config/ftoption.h
rename : modules/freetype2/include/freetype/config/ftstdlib.h => modules/freetype2/include/config/ftstdlib.h
rename : modules/freetype2/include/freetype/freetype.h => modules/freetype2/include/freetype.h
rename : modules/freetype2/include/freetype/ftadvanc.h => modules/freetype2/include/ftadvanc.h
rename : modules/freetype2/include/freetype/ftautoh.h => modules/freetype2/include/ftautoh.h
rename : modules/freetype2/include/freetype/ftbbox.h => modules/freetype2/include/ftbbox.h
rename : modules/freetype2/include/freetype/ftbdf.h => modules/freetype2/include/ftbdf.h
rename : modules/freetype2/include/freetype/ftbitmap.h => modules/freetype2/include/ftbitmap.h
rename : modules/freetype2/include/freetype/ftbzip2.h => modules/freetype2/include/ftbzip2.h
rename : modules/freetype2/include/freetype/ftcache.h => modules/freetype2/include/ftcache.h
rename : modules/freetype2/include/freetype/ftchapters.h => modules/freetype2/include/ftchapters.h
rename : modules/freetype2/include/freetype/ftcid.h => modules/freetype2/include/ftcid.h
rename : modules/freetype2/include/freetype/fterrdef.h => modules/freetype2/include/fterrdef.h
rename : modules/freetype2/include/freetype/fterrors.h => modules/freetype2/include/fterrors.h
rename : modules/freetype2/include/freetype/ftgasp.h => modules/freetype2/include/ftgasp.h
rename : modules/freetype2/include/freetype/ftglyph.h => modules/freetype2/include/ftglyph.h
rename : modules/freetype2/include/freetype/ftgxval.h => modules/freetype2/include/ftgxval.h
rename : modules/freetype2/include/freetype/ftgzip.h => modules/freetype2/include/ftgzip.h
rename : modules/freetype2/include/freetype/ftimage.h => modules/freetype2/include/ftimage.h
rename : modules/freetype2/include/freetype/ftincrem.h => modules/freetype2/include/ftincrem.h
rename : modules/freetype2/include/freetype/ftlcdfil.h => modules/freetype2/include/ftlcdfil.h
rename : modules/freetype2/include/freetype/ftlist.h => modules/freetype2/include/ftlist.h
rename : modules/freetype2/include/freetype/ftlzw.h => modules/freetype2/include/ftlzw.h
rename : modules/freetype2/include/freetype/ftmac.h => modules/freetype2/include/ftmac.h
rename : modules/freetype2/include/freetype/ftmm.h => modules/freetype2/include/ftmm.h
rename : modules/freetype2/include/freetype/ftmodapi.h => modules/freetype2/include/ftmodapi.h
rename : modules/freetype2/include/freetype/ftmoderr.h => modules/freetype2/include/ftmoderr.h
rename : modules/freetype2/include/freetype/ftotval.h => modules/freetype2/include/ftotval.h
rename : modules/freetype2/include/freetype/ftoutln.h => modules/freetype2/include/ftoutln.h
rename : modules/freetype2/include/freetype/ftpfr.h => modules/freetype2/include/ftpfr.h
rename : modules/freetype2/include/freetype/ftrender.h => modules/freetype2/include/ftrender.h
rename : modules/freetype2/include/freetype/ftsizes.h => modules/freetype2/include/ftsizes.h
rename : modules/freetype2/include/freetype/ftsnames.h => modules/freetype2/include/ftsnames.h
rename : modules/freetype2/include/freetype/ftstroke.h => modules/freetype2/include/ftstroke.h
rename : modules/freetype2/include/freetype/ftsynth.h => modules/freetype2/include/ftsynth.h
rename : modules/freetype2/include/freetype/ftsystem.h => modules/freetype2/include/ftsystem.h
rename : modules/freetype2/include/freetype/fttrigon.h => modules/freetype2/include/fttrigon.h
rename : modules/freetype2/include/freetype/ftttdrv.h => modules/freetype2/include/ftttdrv.h
rename : modules/freetype2/include/freetype/fttypes.h => modules/freetype2/include/fttypes.h
rename : modules/freetype2/include/freetype/ftwinfnt.h => modules/freetype2/include/ftwinfnt.h
rename : modules/freetype2/include/freetype/ftxf86.h => modules/freetype2/include/ftxf86.h
rename : modules/freetype2/include/freetype/internal/autohint.h => modules/freetype2/include/internal/autohint.h
rename : modules/freetype2/include/freetype/internal/ftcalc.h => modules/freetype2/include/internal/ftcalc.h
rename : modules/freetype2/include/freetype/internal/ftdebug.h => modules/freetype2/include/internal/ftdebug.h
rename : modules/freetype2/include/freetype/internal/ftdriver.h => modules/freetype2/include/internal/ftdriver.h
rename : modules/freetype2/include/freetype/internal/ftgloadr.h => modules/freetype2/include/internal/ftgloadr.h
rename : modules/freetype2/include/freetype/internal/ftmemory.h => modules/freetype2/include/internal/ftmemory.h
rename : modules/freetype2/include/freetype/internal/ftobjs.h => modules/freetype2/include/internal/ftobjs.h
rename : modules/freetype2/include/freetype/internal/ftpic.h => modules/freetype2/include/internal/ftpic.h
rename : modules/freetype2/include/freetype/internal/ftrfork.h => modules/freetype2/include/internal/ftrfork.h
rename : modules/freetype2/include/freetype/internal/ftserv.h => modules/freetype2/include/internal/ftserv.h
rename : modules/freetype2/include/freetype/internal/ftstream.h => modules/freetype2/include/internal/ftstream.h
rename : modules/freetype2/include/freetype/internal/fttrace.h => modules/freetype2/include/internal/fttrace.h
rename : modules/freetype2/include/freetype/internal/ftvalid.h => modules/freetype2/include/internal/ftvalid.h
rename : modules/freetype2/include/freetype/internal/psaux.h => modules/freetype2/include/internal/psaux.h
rename : modules/freetype2/include/freetype/internal/pshints.h => modules/freetype2/include/internal/pshints.h
rename : modules/freetype2/include/freetype/internal/services/svbdf.h => modules/freetype2/include/internal/services/svbdf.h
rename : modules/freetype2/include/freetype/internal/services/svcid.h => modules/freetype2/include/internal/services/svcid.h
rename : modules/freetype2/include/freetype/internal/services/svgldict.h => modules/freetype2/include/internal/services/svgldict.h
rename : modules/freetype2/include/freetype/internal/services/svgxval.h => modules/freetype2/include/internal/services/svgxval.h
rename : modules/freetype2/include/freetype/internal/services/svkern.h => modules/freetype2/include/internal/services/svkern.h
rename : modules/freetype2/include/freetype/internal/services/svmm.h => modules/freetype2/include/internal/services/svmm.h
rename : modules/freetype2/include/freetype/internal/services/svotval.h => modules/freetype2/include/internal/services/svotval.h
rename : modules/freetype2/include/freetype/internal/services/svpfr.h => modules/freetype2/include/internal/services/svpfr.h
rename : modules/freetype2/include/freetype/internal/services/svpostnm.h => modules/freetype2/include/internal/services/svpostnm.h
rename : modules/freetype2/include/freetype/internal/services/svprop.h => modules/freetype2/include/internal/services/svprop.h
rename : modules/freetype2/include/freetype/internal/services/svpscmap.h => modules/freetype2/include/internal/services/svpscmap.h
rename : modules/freetype2/include/freetype/internal/services/svpsinfo.h => modules/freetype2/include/internal/services/svpsinfo.h
rename : modules/freetype2/include/freetype/internal/services/svsfnt.h => modules/freetype2/include/internal/services/svsfnt.h
rename : modules/freetype2/include/freetype/internal/services/svttcmap.h => modules/freetype2/include/internal/services/svttcmap.h
rename : modules/freetype2/include/freetype/internal/services/svtteng.h => modules/freetype2/include/internal/services/svtteng.h
rename : modules/freetype2/include/freetype/internal/services/svttglyf.h => modules/freetype2/include/internal/services/svttglyf.h
rename : modules/freetype2/include/freetype/internal/services/svwinfnt.h => modules/freetype2/include/internal/services/svwinfnt.h
rename : modules/freetype2/include/freetype/internal/services/svxf86nm.h => modules/freetype2/include/internal/services/svxf86nm.h
rename : modules/freetype2/include/freetype/internal/sfnt.h => modules/freetype2/include/internal/sfnt.h
rename : modules/freetype2/include/freetype/internal/t1types.h => modules/freetype2/include/internal/t1types.h
rename : modules/freetype2/include/freetype/internal/tttypes.h => modules/freetype2/include/internal/tttypes.h
rename : modules/freetype2/include/freetype/t1tables.h => modules/freetype2/include/t1tables.h
rename : modules/freetype2/include/freetype/ttnameid.h => modules/freetype2/include/ttnameid.h
rename : modules/freetype2/include/freetype/tttables.h => modules/freetype2/include/tttables.h
rename : modules/freetype2/include/freetype/tttags.h => modules/freetype2/include/tttags.h
rename : modules/freetype2/include/freetype/ttunpat.h => modules/freetype2/include/ttunpat.h
2014-02-03 18:43:19 -05:00

167 lines
3.9 KiB
Bash
Executable File

#!/bin/sh
# Copyright 2005-2010, 2013 by
# 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.
run ()
{
echo "running \`$*'"
eval $*
if test $? != 0 ; then
echo "error while running \`$*'"
exit 1
fi
}
get_major_version ()
{
echo $1 | sed -e 's/\([0-9][0-9]*\)\..*/\1/g'
}
get_minor_version ()
{
echo $1 | sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/g'
}
get_patch_version ()
{
# tricky: some version numbers don't include a patch
# separated with a point, but something like 1.4-p6
patch=`echo $1 | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/g'`
if test "$patch" = "$1"; then
patch=`echo $1 | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\-p\([0-9][0-9]*\).*/\1/g'`
# if there isn't any patch number, default to 0
if test "$patch" = "$1"; then
patch=0
fi
fi
echo $patch
}
# $1: version to check
# $2: minimum version
compare_to_minimum_version ()
{
MAJOR1=`get_major_version $1`
MAJOR2=`get_major_version $2`
if test $MAJOR1 -lt $MAJOR2; then
echo 0
return
else
if test $MAJOR1 -gt $MAJOR2; then
echo 1
return
fi
fi
MINOR1=`get_minor_version $1`
MINOR2=`get_minor_version $2`
if test $MINOR1 -lt $MINOR2; then
echo 0
return
else
if test $MINOR1 -gt $MINOR2; then
echo 1
return
fi
fi
PATCH1=`get_patch_version $1`
PATCH2=`get_patch_version $2`
if test $PATCH1 -lt $PATCH2; then
echo 0
else
echo 1
fi
}
# check the version of a given tool against a minimum version number
#
# $1: tool path
# $2: tool usual name (e.g. `aclocal')
# $3: tool variable (e.g. `ACLOCAL')
# $4: minimum version to check against
# $5: option field index used to extract the tool version from the
# output of --version
check_tool_version ()
{
field=$5
# assume the output of "[TOOL] --version" is "toolname (GNU toolname foo bar) version"
if test "$field"x = x; then
field=3 # default to 3 for all GNU autotools, after filtering enclosed string
fi
version=`$1 --version | head -1 | sed 's/([^)]*)/()/g' | cut -d ' ' -f $field`
version_check=`compare_to_minimum_version $version $4`
if test "$version_check"x = 0x; then
echo "ERROR: Your version of the \`$2' tool is too old."
echo " Minimum version $4 is required (yours is version $version)."
echo " Please upgrade or use the $3 variable to point to a more recent one."
echo ""
exit 1
fi
}
if test ! -f ./builds/unix/configure.raw; then
echo "You must be in the same directory as \`autogen.sh'."
echo "Bootstrapping doesn't work if srcdir != builddir."
exit 1
fi
# On MacOS X, the GNU libtool is named `glibtool'.
HOSTOS=`uname`
if test "$LIBTOOLIZE"x != x; then
:
elif test "$HOSTOS"x = Darwinx; then
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
if test "$ACLOCAL"x = x; then
ACLOCAL=aclocal
fi
if test "$AUTOCONF"x = x; then
AUTOCONF=autoconf
fi
check_tool_version $ACLOCAL aclocal ACLOCAL 1.10.1
check_tool_version $LIBTOOLIZE libtoolize LIBTOOLIZE 2.2.4
check_tool_version $AUTOCONF autoconf AUTOCONF 2.62
# This sets freetype_major, freetype_minor, and freetype_patch.
eval `sed -nf version.sed include/freetype.h`
# We set freetype-patch to an empty value if it is zero.
if test "$freetype_patch" = ".0"; then
freetype_patch=
fi
cd builds/unix
echo "generating \`configure.ac'"
sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
< configure.raw > configure.ac
run aclocal -I . --force
run $LIBTOOLIZE --force --copy --install
run autoconf --force
chmod +x mkinstalldirs
chmod +x install-sh
cd ../..
chmod +x ./configure
# EOF