freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freetype] AM_CHECK_FT2's odd behavior when config version < min version


From: Brian Stell
Subject: [Freetype] AM_CHECK_FT2's odd behavior when config version < min version
Date: Mon, 07 Jan 2002 21:58:21 -0800

I find that when I have FreeType2 on my system and the version
I ask for is *greater* than the actual version that AM_CHECK_FT2 
http://www.freetype.org/cgi-bin/viewcvs.cgi/freetype2/builds/unix/freetype2.m4
runs both the [ACTION-IF-NOT-FOUND] *and* the [ACTION-IF-FOUND] 
*in-that-order*. Thus when I call

AC_CHECK_FT2(9.0.1, [ENABLE_FREETYPE2=1], [ENABLE_FREETYPE2=])

I find that ENABLE_FREETYPE2 is set to 1.

The problem appears to be:

      if test "x$ft_config_is_lt" = "xyes" ; then

this is run

        ifelse([$3], , :, [$3])
      else
        ac_save_CFLAGS="$CFLAGS"
        ...
      fi             # test $ft_config_version -lt $ft_min_version
    fi               # test "x$enable_fttest" = "xyes"
  fi                 # test "$FT2_CONFIG" = "no"
  if test "x$no_ft" = x ; then
     AC_MSG_RESULT(yes)

*and* this is run

     ifelse([$2], , :, [$2])
  else
     ...

-- 
Brian Stell



reply via email to

[Prev in Thread] Current Thread [Next in Thread]