forked from old/legacy-imlib2
parent
6057dafd56
commit
fccb005964
24
configure.in
24
configure.in
|
@ -125,25 +125,13 @@ fi
|
|||
AM_CONDITIONAL(BUILD_MMX, test x$mmx = xyes)
|
||||
|
||||
# check for freetype
|
||||
AC_ARG_WITH(freetype-config,
|
||||
[ --with-freetype-config=FREETYPE_CONFIG use freetype-config specified ],
|
||||
[
|
||||
PROG_CONFIG=$withval;
|
||||
echo "using "$PROG_CONFIG" for freetype-config";
|
||||
],[
|
||||
PROG="freetype-config";
|
||||
AC_PATH_PROG(PROG_CONFIG, $PROG, "", $PATH)
|
||||
AC_ARG_WITH(freetype-config, [ --with-freetype-config=FREETYPE_CONFIG use freetype-config specified ],
|
||||
[ FREETYPE_CONFIG=$withval;
|
||||
echo "using "$FREETYPE_CONFIG" for freetype-config"; ],
|
||||
[ if test -n "$FREETYPE_CONFIG"; then
|
||||
AC_PATH_PROG(FREETYPE_CONFIG, "freetype-config", "", $PATH)
|
||||
fi
|
||||
])
|
||||
if test -n "$FREETYPE_CONFIG"; then
|
||||
PROG_CONFIG=$FREETYPE_CONFIG;
|
||||
fi
|
||||
if test -z "$PROG_CONFIG"; then
|
||||
echo $PROG " is not in your \$PATH. Please ensure it is.";
|
||||
echo "You may need to install the library and/or development packages";
|
||||
echo "that contain this configure-script.";
|
||||
echo "FATAL ERROR. ABORT.";
|
||||
exit -1;
|
||||
fi
|
||||
freetype_cflags=`$PROG_CONFIG --cflags`
|
||||
freetype_libs=`$PROG_CONFIG --libs`
|
||||
|
||||
|
|
Loading…
Reference in New Issue