misc/libfreetype/builds/unix/freetype2.m4
author nemo
Sat, 27 Apr 2013 17:02:26 -0400
changeset 8940 181ea27122da
parent 5172 88f2e05288ba
permissions -rw-r--r--
This is something we need to check in all translations. Occasionally the source phrase ends w/ a space. Need to make sure translations take this into account.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
# Configure paths for FreeType2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
# Marcelo Magallon 2001-10-26, based on gtk.m4 by Owen Taylor
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
# Copyright 2001, 2003, 2007, 2009 by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
# David Turner, Robert Wilhelm, and Werner Lemberg.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
# This file is part of the FreeType project, and may only be used, modified,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
# and distributed under the terms of the FreeType project license,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
# indicate that you have read the license and understand and accept it
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
# fully.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
# As a special exception to the FreeType project license, this file may be
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
# distributed as part of a program that contains a configuration script
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
# generated by Autoconf, under the same distribution terms as the rest of
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
# that program.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
# serial 3
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
# AC_CHECK_FT2([MINIMUM-VERSION [, ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
# Test for FreeType 2, and define FT2_CFLAGS and FT2_LIBS.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
# MINIMUM-VERSION is what libtool reports; the default is `7.0.1' (this is
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
# FreeType 2.0.4).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
#
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
AC_DEFUN([AC_CHECK_FT2],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
  [# Get the cflags and libraries from the freetype-config script
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
   #
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
   AC_ARG_WITH([ft-prefix],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
     dnl don't quote AS_HELP_STRING!
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
     AS_HELP_STRING([--with-ft-prefix=PREFIX],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
                    [Prefix where FreeType is installed (optional)]),
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
     [ft_config_prefix="$withval"],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
     [ft_config_prefix=""])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
   AC_ARG_WITH([ft-exec-prefix],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
     dnl don't quote AS_HELP_STRING!
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
     AS_HELP_STRING([--with-ft-exec-prefix=PREFIX],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
                    [Exec prefix where FreeType is installed (optional)]),
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
     [ft_config_exec_prefix="$withval"],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
     [ft_config_exec_prefix=""])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
   AC_ARG_ENABLE([freetypetest],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
     dnl don't quote AS_HELP_STRING!
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
     AS_HELP_STRING([--disable-freetypetest],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
                    [Do not try to compile and run a test FreeType program]),
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
     [],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
     [enable_fttest=yes])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
   if test x$ft_config_exec_prefix != x ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
     ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
     if test x${FT2_CONFIG+set} != xset ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
       FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
     fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
   fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
   if test x$ft_config_prefix != x ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
     ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
     if test x${FT2_CONFIG+set} != xset ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
       FT2_CONFIG=$ft_config_prefix/bin/freetype-config
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
     fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
   fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
   if test "x$FT2_CONFIG" = x ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
     AC_PATH_PROG([FT2_CONFIG], [freetype-config], [no])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
   fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
   min_ft_version=m4_if([$1], [], [7.0.1], [$1])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
   AC_MSG_CHECKING([for FreeType -- version >= $min_ft_version])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
   no_ft=""
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
   if test "$FT2_CONFIG" = "no" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
     no_ft=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
   else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
     FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
     FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
     ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
       sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
     ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
       sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
     ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
       sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
     ft_min_major_version=`echo $min_ft_version | \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
       sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
     ft_min_minor_version=`echo $min_ft_version | \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
       sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
     ft_min_micro_version=`echo $min_ft_version | \
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
       sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
     if test x$enable_fttest = xyes ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
       ft_config_is_lt=""
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
       if test $ft_config_major_version -lt $ft_min_major_version ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
         ft_config_is_lt=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
       else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
         if test $ft_config_major_version -eq $ft_min_major_version ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
           if test $ft_config_minor_version -lt $ft_min_minor_version ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
             ft_config_is_lt=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
           else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
             if test $ft_config_minor_version -eq $ft_min_minor_version ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
               if test $ft_config_micro_version -lt $ft_min_micro_version ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
                 ft_config_is_lt=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
               fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
             fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
           fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
         fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
       fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
       if test x$ft_config_is_lt = xyes ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   105
         no_ft=yes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   106
       else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
         ac_save_CFLAGS="$CFLAGS"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
         ac_save_LIBS="$LIBS"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
         CFLAGS="$CFLAGS $FT2_CFLAGS"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
         LIBS="$FT2_LIBS $LIBS"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
         #
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
         # Sanity checks for the results of freetype-config to some extent.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
         #
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   115
         AC_RUN_IFELSE([
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   116
             AC_LANG_SOURCE([[
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   117
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   118
#include <ft2build.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   119
#include FT_FREETYPE_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   120
#include <stdio.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   121
#include <stdlib.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   122
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   123
int
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   124
main()
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   125
{
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   126
  FT_Library library;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   127
  FT_Error  error;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   128
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   129
  error = FT_Init_FreeType(&library);
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   130
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   131
  if (error)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   132
    return 1;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   133
  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   134
  {
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   135
    FT_Done_FreeType(library);
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   136
    return 0;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   137
  }
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   138
}
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   139
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   140
             ]])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   141
           ],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   142
           [],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   143
           [no_ft=yes],
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   144
           [echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   145
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   146
         CFLAGS="$ac_save_CFLAGS"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   147
         LIBS="$ac_save_LIBS"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   148
       fi             # test $ft_config_version -lt $ft_min_version
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   149
     fi               # test x$enable_fttest = xyes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   150
   fi                 # test "$FT2_CONFIG" = "no"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   151
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   152
   if test x$no_ft = x ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   153
     AC_MSG_RESULT([yes])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   154
     m4_if([$2], [], [:], [$2])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   155
   else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   156
     AC_MSG_RESULT([no])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   157
     if test "$FT2_CONFIG" = "no" ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   158
       AC_MSG_WARN([
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   159
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   160
  The freetype-config script installed by FreeType 2 could not be found.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   161
  If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   162
  your path, or set the FT2_CONFIG environment variable to the
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   163
  full path to freetype-config.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   164
       ])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   165
     else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   166
       if test x$ft_config_is_lt = xyes ; then
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   167
         AC_MSG_WARN([
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   168
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   169
  Your installed version of the FreeType 2 library is too old.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   170
  If you have different versions of FreeType 2, make sure that
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   171
  correct values for --with-ft-prefix or --with-ft-exec-prefix
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   172
  are used, or set the FT2_CONFIG environment variable to the
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   173
  full path to freetype-config.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   174
         ])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   175
       else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   176
         AC_MSG_WARN([
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   177
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   178
  The FreeType test program failed to run.  If your system uses
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   179
  shared libraries and they are installed outside the normal
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   180
  system library path, make sure the variable LD_LIBRARY_PATH
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   181
  (or whatever is appropriate for your system) is correctly set.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   182
         ])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   183
       fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   184
     fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   185
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   186
     FT2_CFLAGS=""
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   187
     FT2_LIBS=""
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   188
     m4_if([$3], [], [:], [$3])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   189
   fi
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   190
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   191
   AC_SUBST([FT2_CFLAGS])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   192
   AC_SUBST([FT2_LIBS])])
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   193
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   194
# end of freetype2.m4