diff options
author | Jonathan Kew <jfkthame@googlemail.com> | 2008-03-04 13:56:50 +0000 |
---|---|---|
committer | Jonathan Kew <jfkthame@googlemail.com> | 2008-03-04 13:56:50 +0000 |
commit | 502cd9e7f80c97d7ac88f8235e668f31a7a1c7ba (patch) | |
tree | 945136c7f4527566750a14b51c0a67c92fdedb03 /Build/source/libs/freetype2/freetype2.ac | |
parent | 87ff6638c6241930122881071cbdd5c5db262d99 (diff) |
updated to freetype2 release 2.3.5
git-svn-id: svn://tug.org/texlive/trunk@6844 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/freetype2/freetype2.ac')
-rw-r--r-- | Build/source/libs/freetype2/freetype2.ac | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Build/source/libs/freetype2/freetype2.ac b/Build/source/libs/freetype2/freetype2.ac new file mode 100644 index 00000000000..0fc3780c07e --- /dev/null +++ b/Build/source/libs/freetype2/freetype2.ac @@ -0,0 +1,58 @@ +if test "$needs_freetype2" = no; then + FREETYPE2CPPFLAGS= + LDFREETYPE2= + FREETYPE2DEP= +else + EXTRA_FREETYPE2_INCLUDE= + EXTRA_FREETYPE2_LIBDIR= + + if test "$with_system_freetype2" = yes; then + if test "x$with_freetype2_libdir" != x; then + EXTRA_FREETYPE2_LIBDIR="-L$with_freetype2_libdir" + fi + if test "x$with_freetype2_include" != x; then + EXTRA_FREETYPE2_INCLUDE="-I$with_freetype2_include -I$with_freetype2_include/freetype2" + fi + fi + + OLD_LDFLAGS=$LDFLAGS + OLD_CPPFLAGS=$CPPFLAGS + OLD_LIBS=$LIBS + + LDFLAGS="$LDFLAGS $EXTRA_FREETYPE2_LIBDIR" + CPPFLAGS="$CPPFLAGS $EXTRA_FREETYPE2_INCLUDE" + + if test "$with_system_freetype2" = yes; then + AC_CHECK_LIB(freetype, FT_Init_FreeType,, + AC_MSG_WARN(Standard FreeType2 library not found. Compiling my own.) + with_system_freetype2=no) + fi + + if test "$with_system_freetype2" = yes; then + AC_CHECK_HEADERS(ft2build.h) + if test "$ac_cv_header_ft2build_h" != yes; then + AC_MSG_WARN(ft2build.h not found. Using my own freetype2 sources.) + with_system_freetype2=no + fi + fi + + LDFLAGS=$OLD_LDFLAGS + CPPFLAGS=$OLD_CPPFLAGS + LIBS=$OLD_LIBS + + if test "$with_system_freetype2" != yes; then + FREETYPE2CPPFLAGS='-I$(FREETYPE2SRCDIR)/include' + LDFREETYPE2='$(FREETYPE2DIR)/.libs/libfreetype.a' + FREETYPE2DEP='$(FREETYPE2DIR)/.libs/libfreetype.a' + using_system_freetype2=no + else + FREETYPE2CPPFLAGS="$EXTRA_FREETYPE2_INCLUDE" + LDFREETYPE2="$EXTRA_FREETYPE2_LIBDIR -lfreetype" + FREETYPE2DEP= + using_system_freetype2=yes + fi +fi + +AC_SUBST(FREETYPE2CPPFLAGS) +AC_SUBST(LDFREETYPE2) +AC_SUBST(FREETYPE2DEP) |