3 # Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009 by
4 # David Turner, Robert Wilhelm, and Werner Lemberg.
6 # This file is part of the FreeType project, and may only be used, modified,
7 # and distributed under the terms of the FreeType project license,
8 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
9 # indicate that you have read the license and understand and accept it
13 exec_prefix
=@exec_prefix@
15 includedir
=@includedir@
17 enable_shared
=@build_libtool_libs@
19 hardcode_libdir_flag_spec
='@hardcode_libdir_flag_spec@'
24 Usage: freetype-config [OPTION]...
25 Get FreeType compilation and linking information.
28 --prefix display \`--prefix' value used for building the
30 --prefix=PREFIX override \`--prefix' value with PREFIX
31 --exec-prefix display \`--exec-prefix' value used for building
33 --exec-prefix=EPREFIX override \`--exec-prefix' value with EPREFIX
34 --version display libtool version of the FreeType library
35 --ftversion display FreeType version number
36 --libs display flags for linking with the FreeType library
37 --libtool display library name for linking with libtool
38 --cflags display flags for compiling with the FreeType
44 if test $# -eq 0 ; then
48 while test $# -gt 0 ; do
51 optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'`
97 if test "$local_prefix" = "yes" ; then
98 if test "$exec_prefix_set" != "yes" ; then
103 if test "$echo_prefix" = "yes" ; then
104 echo ${SYSROOT}$prefix
107 if test "$echo_exec_prefix" = "yes" ; then
108 echo ${SYSROOT}$exec_prefix
111 if test "$exec_prefix_set" = "yes" ; then
112 libdir
=$exec_prefix/lib
114 if test "$local_prefix" = "yes" ; then
115 includedir
=$prefix/include
120 if test "$echo_ft_version" = "yes" ; then
121 major
=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
122 | grep FREETYPE_MAJOR \
123 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
124 minor
=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
125 | grep FREETYPE_MINOR \
126 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
127 patch=`grep define ${SYSROOT}$includedir/freetype2/freetype/freetype.h \
128 | grep FREETYPE_PATCH \
129 | sed 's/.*[ ]\([0-9][0-9]*\).*/\1/'`
130 echo $major.
$minor.
$patch
133 if test "$echo_cflags" = "yes" ; then
134 cflags
="-I${SYSROOT}$includedir/freetype2"
135 if test "${SYSROOT}$includedir" != "/usr/include" ; then
136 echo $cflags -I${SYSROOT}$includedir
142 if test "$echo_libs" = "yes" ; then
144 if test "$enable_shared" = "yes" ; then
145 eval "rpath=\"$hardcode_libdir_flag_spec\""
147 libs
="-lfreetype @LIBZ@ @FT2_EXTRA_LIBS@"
148 if test "${SYSROOT}$libdir" != "/usr/lib" && test "${SYSROOT}$libdir" != "/usr/lib64"; then
149 echo -L${SYSROOT}$libdir $libs
155 if test "$echo_libtool" = "yes" ; then
156 convlib
="libfreetype.la"
157 echo ${SYSROOT}$libdir/$convlib