forked from old/legacy-imlib2
better configure check for freetype- hopefulyl people wont keep askign dumb
questions anymroe about freetype.h SVN revision: 2550
This commit is contained in:
parent
0a7de7daf5
commit
63aade9e18
|
@ -42,10 +42,5 @@ echo
|
|||
echo "make"
|
||||
echo "make install"
|
||||
echo
|
||||
echo "to compile and install the loaders for imlib2 demo."
|
||||
echo "also make sure you run imlib2 from THIS directory - ie:"
|
||||
echo
|
||||
echo "./imlib2"
|
||||
echo
|
||||
echo "have fun."
|
||||
|
||||
|
|
|
@ -7,12 +7,6 @@
|
|||
byte first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||
#undef WORDS_BIGENDIAN
|
||||
|
||||
/* Define if you have the <freetype.h> header file. */
|
||||
#undef HAVE_FREETYPE_H
|
||||
|
||||
/* Define if you have the <freetype/freetype.h> header file. */
|
||||
#undef HAVE_FREETYPE_FREETYPE_H
|
||||
|
||||
/* enabling MMX Assembly */
|
||||
#undef DO_MMX_ASM
|
||||
|
||||
|
|
36
configure.in
36
configure.in
|
@ -77,7 +77,41 @@ fi
|
|||
LTLIBOBJS=`echo "$LIBOBJS" | sed 's,.o ,.lo ,g;s,.o$,.lo,'`
|
||||
AC_SUBST(LTLIBOBJS)
|
||||
|
||||
AC_CHECK_HEADERS(freetype.h freetype/freetype.h,[ break] , )
|
||||
AC_CHECK_LIB(ttf, TT_Init_FreeType, TTF_LIBS=-lttf, [
|
||||
echo ""
|
||||
echo "ERROR: Imlib 2 needs a system with libttf.so (TrueType Font Library)"
|
||||
echo "You can obtain it from:"
|
||||
echo "ftp://ftp.enlightenment.org/pub/enlightenment/"
|
||||
echo "ftp://www.rasterman.com/pub/enlightenment/"
|
||||
echo "You can also obtain it from:"
|
||||
echo "http://www.freetype.org/"
|
||||
echo "You can obtain some truetype fonts from:"
|
||||
echo "http://voyager.cns.ohiou.edu/~sadkins/web_library/fonts/font_archive/"
|
||||
echo ""
|
||||
AC_MSG_ERROR([Fatal Error: no FreeType detected.])], -lm)
|
||||
|
||||
AC_CHECK_HEADER(freetype.h, [ ftype=yes ], [ ftype=no ])
|
||||
AC_CHECK_HEADER(freetype/freetype.h, [ ftype_ftype=yes ], [ ftype_ftype=no ])
|
||||
|
||||
if test x$ftype = xno && test x$ftype_ftype = xno; then
|
||||
echo ""
|
||||
echo "ERROR: freetype.h not found in freetype.h or freetype/freetype.h include"
|
||||
echo "paths. (ie /usr/include, /usr/local/include etc.). You need the freetype"
|
||||
echo "header files to build Imlib 2. This may mean you have to install the"
|
||||
echo "freetype-devel packages for your distribution or if all else fails"
|
||||
echo "find the source for freetype and install that somewhere where Imlib 2"
|
||||
echo "can find the header files."
|
||||
echo ""
|
||||
echo "You can obtain it from:"
|
||||
echo "ftp://ftp.enlightenment.org/pub/enlightenment/"
|
||||
echo "ftp://www.rasterman.com/pub/enlightenment/"
|
||||
echo "You can also obtain it from:"
|
||||
echo "http://www.freetype.org/"
|
||||
echo "You can obtain some truetype fonts from:"
|
||||
echo "http://voyager.cns.ohiou.edu/~sadkins/web_library/fonts/font_archive/"
|
||||
echo ""
|
||||
AC_MSG_ERROR([Fatal Error: no FreeType header files detected.])
|
||||
fi
|
||||
|
||||
AC_OUTPUT(Makefile loaders/Makefile src/Makefile test/Makefile demo/Makefile,
|
||||
[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h])
|
||||
|
|
Loading…
Reference in New Issue