pike.git / src / modules / _Image_TTF / configure.in

version» Context lines:

pike.git/src/modules/_Image_TTF/configure.in:1:   # - # $Id: configure.in,v 1.11 2002/08/27 14:42:45 kiwi Exp $ + # $Id: configure.in,v 1.12 2002/08/27 15:38:30 grubba Exp $   #   AC_INIT(image_ttf.c)   AC_CONFIG_HEADER(config.h)   AC_ARG_WITH(ttflib, [ --with(out)-ttflib Support TTF via ttf.lib (freetype) (Image.TTF)],[],[with_ttflib=yes])      AC_MODULE_INIT()      PIKE_FEATURE_WITHOUT(Image.TTF)      if test x$with_ttflib = xyes ; then    PIKE_FEATURE_NODEP(Image.TTF)    -  +  # Try adding freetype1 to the include path. +  real_include_dirs='' +  for flag in $CPPFLAGS; do +  case "$flag" in +  -I*) +  d="`echo q$flag|sed -e 's/^Q-I//'`/freetype1" +  AC_MSG_CHECKING($d) +  if test -d "$d/."; then +  REALDIR="`cd $d/. ; /bin/pwd`" +  if test "x$REALDIR" = x ; then +  REALDIR=UNKNOWN +  else +  : +  fi +  +  case " $CPPFLAGS $real_include_dirs " in +  *\ -I$d\ * | *\ -I$REALDIR\ *) +  AC_MSG_RESULT(already added) +  ;; +  *) +  OLD_CPPFLAGS="${CPPFLAGS}" +  CPPFLAGS="${CPPFLAGS} -I$d" +  AC_TRY_CPP([include <stdio.h>], [ +  AC_MSG_RESULT(added) +  if test "x$REALDIR" != xUNKNOWN; then +  real_include_dirs="${real_include_dirs} -I$REALDIR" +  else +  : +  fi +  ], [ +  AC_MSG_RESULT(fails) +  CPPFLAGS="${OLD_CPPFLAGS}" +  ]) +  ;; +  esac +  else +  AC_MSG_RESULT(no) +  fi +  ;; +  esac +  done +     AC_CHECK_HEADERS(freetype.h ftxkern.h freetype/freetype.h freetype/ftxkern.h)       parent="$ac_cv_header_ftxkern_h$ac_cv_header_freetype_h"    subdir="$ac_cv_header_freetype_ftxkern_h$ac_cv_header_freetype_freetype_h"    freetype_h="$ac_cv_header_freetype_h$ac_cv_header_freetype_freetype_h"       if test "$parent" = "yesyes" -o "$subdir" = "yesyes" ; then    AC_CHECK_LIB(ttf, TT_Open_Collection, [    AC_DEFINE(HAVE_LIBTTF)    LIBS="${LIBS-} -lttf"