2005-03-05 20:05:35 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-11-13 11:55:46 +04:00
|
|
|
# Copyright 2005-2010, 2013 by
|
2005-06-05 03:04:30 +04: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 20:05:35 +03:00
|
|
|
run ()
|
|
|
|
{
|
|
|
|
echo "running \`$*'"
|
|
|
|
eval $*
|
|
|
|
|
|
|
|
if test $? != 0 ; then
|
|
|
|
echo "error while running \`$*'"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
get_major_version ()
|
|
|
|
{
|
2009-01-07 00:00:47 +03:00
|
|
|
echo $1 | sed -e 's/\([0-9][0-9]*\)\..*/\1/g'
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
get_minor_version ()
|
|
|
|
{
|
2009-01-07 00:00:47 +03:00
|
|
|
echo $1 | sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/g'
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
get_patch_version ()
|
|
|
|
{
|
2008-09-12 20:27:48 +04:00
|
|
|
# tricky: some version numbers don't include a patch
|
|
|
|
# separated with a point, but something like 1.4-p6
|
2009-01-07 00:00:47 +03:00
|
|
|
patch=`echo $1 | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\).*/\1/g'`
|
2008-09-12 20:27:48 +04:00
|
|
|
if test "$patch" = "$1"; then
|
2009-01-07 00:00:47 +03:00
|
|
|
patch=`echo $1 | sed -e 's/[0-9][0-9]*\.[0-9][0-9]*\-p\([0-9][0-9]*\).*/\1/g'`
|
2008-09-12 20:27:48 +04:00
|
|
|
# if there isn't any patch number, default to 0
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
if test "$patch" = "$1"; then
|
2008-09-12 20:27:48 +04:00
|
|
|
patch=0
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
fi
|
2008-09-12 20:27:48 +04:00
|
|
|
fi
|
|
|
|
echo $patch
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
# $1: version to check
|
|
|
|
# $2: minimum version
|
2008-09-12 20:27:48 +04:00
|
|
|
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
compare_to_minimum_version ()
|
|
|
|
{
|
2008-09-12 20:27:48 +04:00
|
|
|
MAJOR1=`get_major_version $1`
|
|
|
|
MAJOR2=`get_major_version $2`
|
|
|
|
if test $MAJOR1 -lt $MAJOR2; then
|
|
|
|
echo 0
|
|
|
|
return
|
2013-01-24 16:33:06 +04:00
|
|
|
else
|
2008-09-12 20:27:48 +04:00
|
|
|
if test $MAJOR1 -gt $MAJOR2; then
|
|
|
|
echo 1
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
return
|
|
|
|
fi
|
2008-09-12 20:27:48 +04:00
|
|
|
fi
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
|
2008-09-12 20:27:48 +04:00
|
|
|
MINOR1=`get_minor_version $1`
|
|
|
|
MINOR2=`get_minor_version $2`
|
|
|
|
if test $MINOR1 -lt $MINOR2; then
|
|
|
|
echo 0
|
|
|
|
return
|
2013-01-24 16:33:06 +04:00
|
|
|
else
|
2008-09-12 20:27:48 +04:00
|
|
|
if test $MINOR1 -gt $MINOR2; then
|
|
|
|
echo 1
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
return
|
|
|
|
fi
|
2008-09-12 20:27:48 +04:00
|
|
|
fi
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
|
2008-09-12 20:27:48 +04:00
|
|
|
PATCH1=`get_patch_version $1`
|
|
|
|
PATCH2=`get_patch_version $2`
|
|
|
|
if test $PATCH1 -lt $PATCH2; then
|
|
|
|
echo 0
|
|
|
|
else
|
|
|
|
echo 1
|
|
|
|
fi
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
}
|
|
|
|
|
2008-09-12 20:27:48 +04:00
|
|
|
# check the version of a given tool against a minimum version number
|
|
|
|
#
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
# $1: tool path
|
2008-09-12 20:27:48 +04:00
|
|
|
# $2: tool usual name (e.g. `aclocal')
|
|
|
|
# $3: tool variable (e.g. `ACLOCAL')
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
# $4: minimum version to check against
|
2008-09-12 20:27:48 +04:00
|
|
|
# $5: option field index used to extract the tool version from the
|
|
|
|
# output of --version
|
|
|
|
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
check_tool_version ()
|
|
|
|
{
|
|
|
|
field=$5
|
2010-02-12 20:25:04 +03:00
|
|
|
# assume the output of "[TOOL] --version" is "toolname (GNU toolname foo bar) version"
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
if test "$field"x = x; then
|
2010-02-12 20:25:04 +03:00
|
|
|
field=3 # default to 3 for all GNU autotools, after filtering enclosed string
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
fi
|
2010-02-12 20:25:04 +03:00
|
|
|
version=`$1 --version | head -1 | sed 's/([^)]*)/()/g' | cut -d ' ' -f $field`
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
version_check=`compare_to_minimum_version $version $4`
|
|
|
|
if test "$version_check"x = 0x; then
|
2008-09-12 20:27:48 +04:00
|
|
|
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
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2006-05-08 11:10:29 +04:00
|
|
|
if test ! -f ./builds/unix/configure.raw; then
|
2009-01-07 00:00:47 +03:00
|
|
|
echo "You must be in the same directory as \`autogen.sh'."
|
|
|
|
echo "Bootstrapping doesn't work if srcdir != builddir."
|
|
|
|
exit 1
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
# On MacOS X, the GNU libtool is named `glibtool'.
|
|
|
|
HOSTOS=`uname`
|
2011-06-19 17:54:40 +04:00
|
|
|
if test "$LIBTOOLIZE"x != x; then
|
|
|
|
:
|
|
|
|
elif test "$HOSTOS"x = Darwinx; then
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
LIBTOOLIZE=glibtoolize
|
2011-06-19 17:54:40 +04:00
|
|
|
else
|
|
|
|
LIBTOOLIZE=libtoolize
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$ACLOCAL"x = x; then
|
|
|
|
ACLOCAL=aclocal
|
2005-03-05 20:05:35 +03:00
|
|
|
fi
|
|
|
|
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
if test "$AUTOCONF"x = x; then
|
|
|
|
AUTOCONF=autoconf
|
|
|
|
fi
|
|
|
|
|
2008-09-12 20:27:48 +04:00
|
|
|
check_tool_version $ACLOCAL aclocal ACLOCAL 1.10.1
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
check_tool_version $LIBTOOLIZE libtoolize LIBTOOLIZE 2.2.4
|
2008-09-12 20:27:48 +04:00
|
|
|
check_tool_version $AUTOCONF autoconf AUTOCONF 2.62
|
* include/freetype/ftadvanc.h, src/base/ftadvanc.c,
include/freetype/config/ftheader.h, include/freetype/freetype.h,
src/base/Jamfile, src/base/rules.mk, src/cff/cffdrivr.c,
src/cff/cffgload.c, src/cff/cffgload.h, src/truetype/ttdriver.c,
src/truetype/ttgload.h, src/truetype/ttgload.c, src/type1/t1driver.c,
src/type1/t1gload.h, src/type1/t1gload.c:
Add a new header named FT_ADVANCES_H declaring some new APIs
to extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide 'fast loaders' for the
TrueType, Type1 and CFF font drivers (more to come later)
* autogen.sh: add checks for minimum version of the 'autotools'
stuff.
2008-09-02 01:35:21 +04:00
|
|
|
|
2006-05-08 11:10:29 +04:00
|
|
|
# This sets freetype_major, freetype_minor, and freetype_patch.
|
2013-11-13 11:55:46 +04:00
|
|
|
eval `sed -nf version.sed include/freetype.h`
|
2006-05-08 11:10:29 +04:00
|
|
|
|
|
|
|
# We set freetype-patch to an empty value if it is zero.
|
|
|
|
if test "$freetype_patch" = ".0"; then
|
|
|
|
freetype_patch=
|
|
|
|
fi
|
|
|
|
|
2005-03-05 20:05:35 +03:00
|
|
|
cd builds/unix
|
|
|
|
|
2006-05-08 11:10:29 +04:00
|
|
|
echo "generating \`configure.ac'"
|
|
|
|
sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
|
2009-01-07 00:00:47 +03:00
|
|
|
< configure.raw > configure.ac
|
2006-05-08 11:10:29 +04:00
|
|
|
|
2005-04-13 22:12:36 +04:00
|
|
|
run aclocal -I . --force
|
2008-06-10 21:15:35 +04:00
|
|
|
run $LIBTOOLIZE --force --copy --install
|
2005-04-13 22:12:36 +04:00
|
|
|
run autoconf --force
|
2005-03-05 20:05:35 +03:00
|
|
|
|
|
|
|
chmod +x mkinstalldirs
|
|
|
|
chmod +x install-sh
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
|
|
|
|
chmod +x ./configure
|
|
|
|
|
|
|
|
# EOF
|