36644
36703
## freetype 2
36647
# Check whether --with-ft-prefix was given.
36648
if test "${with_ft_prefix+set}" = set; then :
36649
withval=$with_ft_prefix; ft_config_prefix="$withval"
36651
ft_config_prefix=""
36656
# Check whether --with-ft-exec-prefix was given.
36657
if test "${with_ft_exec_prefix+set}" = set; then :
36658
withval=$with_ft_exec_prefix; ft_config_exec_prefix="$withval"
36660
ft_config_exec_prefix=""
36664
# Check whether --enable-freetypetest was given.
36665
if test "${enable_freetypetest+set}" = set; then :
36666
enableval=$enable_freetypetest;
36672
if test x$ft_config_exec_prefix != x ; then
36673
ft_config_args="$ft_config_args --exec-prefix=$ft_config_exec_prefix"
36674
if test x${FT2_CONFIG+set} != xset ; then
36675
FT2_CONFIG=$ft_config_exec_prefix/bin/freetype-config
36679
if test x$ft_config_prefix != x ; then
36680
ft_config_args="$ft_config_args --prefix=$ft_config_prefix"
36681
if test x${FT2_CONFIG+set} != xset ; then
36682
FT2_CONFIG=$ft_config_prefix/bin/freetype-config
36686
# Extract the first word of "freetype-config", so it can be a program name with args.
36687
set dummy freetype-config; ac_word=$2
36688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36689
$as_echo_n "checking for $ac_word... " >&6; }
36690
if ${ac_cv_path_FT2_CONFIG+:} false; then :
36691
$as_echo_n "(cached) " >&6
36693
case $FT2_CONFIG in
36695
ac_cv_path_FT2_CONFIG="$FT2_CONFIG" # Let the user override the test with a path.
36698
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36699
for as_dir in $PATH
36702
test -z "$as_dir" && as_dir=.
36703
for ac_exec_ext in '' $ac_executable_extensions; do
36704
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36705
ac_cv_path_FT2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36706
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36713
test -z "$ac_cv_path_FT2_CONFIG" && ac_cv_path_FT2_CONFIG="no"
36717
FT2_CONFIG=$ac_cv_path_FT2_CONFIG
36718
if test -n "$FT2_CONFIG"; then
36719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FT2_CONFIG" >&5
36720
$as_echo "$FT2_CONFIG" >&6; }
36722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36723
$as_echo "no" >&6; }
36728
min_ft_version=9.0.3
36729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType -- version >= $min_ft_version" >&5
36730
$as_echo_n "checking for FreeType -- version >= $min_ft_version... " >&6; }
36732
if test "$FT2_CONFIG" = "no" ; then
36735
FT2_CFLAGS=`$FT2_CONFIG $ft_config_args --cflags`
36736
FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs`
36737
ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \
36738
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36739
ft_config_minor_version=`$FT2_CONFIG $ft_config_args --version | \
36740
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36741
ft_config_micro_version=`$FT2_CONFIG $ft_config_args --version | \
36742
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36743
ft_min_major_version=`echo $min_ft_version | \
36744
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36745
ft_min_minor_version=`echo $min_ft_version | \
36746
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36747
ft_min_micro_version=`echo $min_ft_version | \
36748
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36749
if test x$enable_fttest = xyes ; then
36751
if test $ft_config_major_version -lt $ft_min_major_version ; then
36752
ft_config_is_lt=yes
36754
if test $ft_config_major_version -eq $ft_min_major_version ; then
36755
if test $ft_config_minor_version -lt $ft_min_minor_version ; then
36756
ft_config_is_lt=yes
36758
if test $ft_config_minor_version -eq $ft_min_minor_version ; then
36759
if test $ft_config_micro_version -lt $ft_min_micro_version ; then
36760
ft_config_is_lt=yes
36766
if test x$ft_config_is_lt = xyes ; then
36769
ac_save_CFLAGS="$CFLAGS"
36770
ac_save_LIBS="$LIBS"
36771
CFLAGS="$CFLAGS $FT2_CFLAGS"
36772
LIBS="$FT2_LIBS $LIBS"
36774
if test "$cross_compiling" = yes; then :
36775
echo $ECHO_N "cross compiling; assuming OK... $ECHO_C"
36777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36778
/* end confdefs.h. */
36782
#include <ft2build.h>
36783
#include FT_FREETYPE_H
36785
#include <stdlib.h>
36790
FT_Library library;
36793
error = FT_Init_FreeType(&library);
36799
FT_Done_FreeType(library);
36807
if ac_fn_c_try_run "$LINENO"; then :
36812
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36813
conftest.$ac_objext conftest.beam conftest.$ac_ext
36817
CFLAGS="$ac_save_CFLAGS"
36818
LIBS="$ac_save_LIBS"
36820
if test x$no_ft = x ; then
36821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT2" >&5
36708
$as_echo_n "checking for FT2... " >&6; }
36710
if test -n "$PKG_CONFIG"; then
36711
if test -n "$FT2_CFLAGS"; then
36712
pkg_cv_FT2_CFLAGS="$FT2_CFLAGS"
36714
if test -n "$PKG_CONFIG" && \
36715
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
36716
($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
36718
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36719
test $ac_status = 0; }; then
36720
pkg_cv_FT2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
36728
if test -n "$PKG_CONFIG"; then
36729
if test -n "$FT2_LIBS"; then
36730
pkg_cv_FT2_LIBS="$FT2_LIBS"
36732
if test -n "$PKG_CONFIG" && \
36733
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
36734
($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
36736
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36737
test $ac_status = 0; }; then
36738
pkg_cv_FT2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
36749
if test $pkg_failed = yes; then
36751
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36752
_pkg_short_errors_supported=yes
36754
_pkg_short_errors_supported=no
36756
if test $_pkg_short_errors_supported = yes; then
36757
FT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"`
36759
FT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
36761
# Put the nasty error message in config.log where it belongs
36762
echo "$FT2_PKG_ERRORS" >&5
36764
as_fn_error $? "Package requirements (freetype2) were not met:
36768
Consider adjusting the PKG_CONFIG_PATH environment variable if you
36769
installed software in a non-standard prefix.
36771
Alternatively, you may set the environment variables FT2_CFLAGS
36772
and FT2_LIBS to avoid the need to call pkg-config.
36773
See the pkg-config man page for more details.
36775
elif test $pkg_failed = untried; then
36776
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36777
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36778
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
36779
is in your PATH or set the PKG_CONFIG environment variable to the full
36780
path to pkg-config.
36782
Alternatively, you may set the environment variables FT2_CFLAGS
36783
and FT2_LIBS to avoid the need to call pkg-config.
36784
See the pkg-config man page for more details.
36786
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
36787
See \`config.log' for more details" "$LINENO" 5; }
36789
FT2_CFLAGS=$pkg_cv_FT2_CFLAGS
36790
FT2_LIBS=$pkg_cv_FT2_LIBS
36791
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36792
$as_echo "yes" >&6; }
36794
min_ft2_version=9.03
36795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType -- version >= $min_ft2_version" >&5
36796
$as_echo_n "checking for FreeType -- version >= $min_ft2_version... " >&6; }
36797
$PKG_CONFIG freetype2 --atleast-version=$min_ft2_version
36799
if test $ac_status = 0; then
36800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36822
36801
$as_echo "yes" >&6; }
36824
36803
$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
36826
XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"
36828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36805
XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"
36807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36829
36808
$as_echo "no" >&6; }
36830
if test "$FT2_CONFIG" = "no" ; then
36831
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
36833
The freetype-config script installed by FreeType 2 could not be found.
36834
If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
36835
your path, or set the FT2_CONFIG environment variable to the
36836
full path to freetype-config.
36838
$as_echo "$as_me: WARNING:
36840
The freetype-config script installed by FreeType 2 could not be found.
36841
If FreeType 2 was installed in PREFIX, make sure PREFIX/bin is in
36842
your path, or set the FT2_CONFIG environment variable to the
36843
full path to freetype-config.
36846
if test x$ft_config_is_lt = xyes ; then
36847
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
36849
Your installed version of the FreeType 2 library is too old.
36850
If you have different versions of FreeType 2, make sure that
36851
correct values for --with-ft-prefix or --with-ft-exec-prefix
36852
are used, or set the FT2_CONFIG environment variable to the
36853
full path to freetype-config.
36855
$as_echo "$as_me: WARNING:
36857
Your installed version of the FreeType 2 library is too old.
36858
If you have different versions of FreeType 2, make sure that
36859
correct values for --with-ft-prefix or --with-ft-exec-prefix
36860
are used, or set the FT2_CONFIG environment variable to the
36861
full path to freetype-config.
36864
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
36866
The FreeType test program failed to run. If your system uses
36867
shared libraries and they are installed outside the normal
36868
system library path, make sure the variable LD_LIBRARY_PATH
36869
(or whatever is appropiate for your system) is correctly set.
36871
$as_echo "$as_me: WARNING:
36873
The FreeType test program failed to run. If your system uses
36874
shared libraries and they are installed outside the normal
36875
system library path, make sure the variable LD_LIBRARY_PATH
36876
(or whatever is appropiate for your system) is correctly set.
36883
warn_freetype="FreeType library not found. Native graphics will be disabled."
36809
warn_freetype="FreeType library not found. Native graphics will be disabled."
36889
36813
## fontconfig library
59077
if test "$cross_compiling" = yes && test -n "$ac_tool_prefix"; then
59078
CROSS_TOOL_PREFIX="$ac_tool_prefix"
59079
MKOCTFILE_AR='$(shell echo $(AR) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59080
MKOCTFILE_CC='$(shell echo $(CC) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59081
MKOCTFILE_CXX='$(shell echo $(CXX) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59082
MKOCTFILE_DL_LD='$(shell echo $(DL_LD) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59083
MKOCTFILE_F77='$(shell echo $(F77) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59084
MKOCTFILE_LD_CXX='$(shell echo $(LD_CXX) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59085
MKOCTFILE_RANLIB='$(shell echo $(RANLIB) | sed "s,$(CROSS_TOOL_PREFIX),,")'
59089
MKOCTFILE_CXX="$CXX"
59090
MKOCTFILE_DL_LD="$DL_LD"
59091
MKOCTFILE_F77="$F77"
59092
MKOCTFILE_LD_CXX="$LD_CXX"
59093
MKOCTFILE_RANLIB="$RANLIB"
59095
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX" >&5
59096
$as_echo "$as_me: defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX" >&6;}
59097
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_AR to be $MKOCTFILE_AR" >&5
59098
$as_echo "$as_me: defining MKOCTFILE_AR to be $MKOCTFILE_AR" >&6;}
59099
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_CC to be $MKOCTFILE_CC" >&5
59100
$as_echo "$as_me: defining MKOCTFILE_CC to be $MKOCTFILE_CC" >&6;}
59101
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_CXX to be $MKOCTFILE_CXX" >&5
59102
$as_echo "$as_me: defining MKOCTFILE_CXX to be $MKOCTFILE_CXX" >&6;}
59103
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_DL_LD to be $MKOCTFILE_DL_LD" >&5
59104
$as_echo "$as_me: defining MKOCTFILE_DL_LD to be $MKOCTFILE_DL_LD" >&6;}
59105
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_F77 to be $MKOCTFILE_F77" >&5
59106
$as_echo "$as_me: defining MKOCTFILE_F77 to be $MKOCTFILE_F77" >&6;}
59107
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_LD_CXX to be $MKOCTFILE_LD_CXX" >&5
59108
$as_echo "$as_me: defining MKOCTFILE_LD_CXX to be $MKOCTFILE_LD_CXX" >&6;}
59109
{ $as_echo "$as_me:${as_lineno-$LINENO}: defining MKOCTFILE_RANLIB to be $MKOCTFILE_RANLIB" >&5
59110
$as_echo "$as_me: defining MKOCTFILE_RANLIB to be $MKOCTFILE_RANLIB" >&6;}
59120
### Check for existence of various libraries
59194
59123
### I am told that Inf and NaN don't work on m68k HP sytems.