Add wxUSE_PRIVATE_FONTS and drop wxHAS_PRIVATE_FONTS
Handle this feature as all the other ones and provide a configure switch and a setup.h option to disable it if necessary, as it may be desirable to do it, especially under Linux, to avoid extra dependency on pangoft2 if this functionality is unnecessary.
This commit is contained in:
52
configure
vendored
52
configure
vendored
@@ -1270,6 +1270,7 @@ enable_notifmsg
|
||||
enable_odcombobox
|
||||
enable_popupwin
|
||||
enable_prefseditor
|
||||
enable_privatefonts
|
||||
enable_radiobox
|
||||
enable_radiobtn
|
||||
enable_richmsgdlg
|
||||
@@ -2209,6 +2210,7 @@ Optional Features:
|
||||
--enable-odcombobox use wxOwnerDrawnComboBox class
|
||||
--enable-popupwin use wxPopUpWindow class
|
||||
--enable-prefseditor use wxPreferencesEditor class
|
||||
--enable-privatefonts provide wxFont::AddPrivateFont() method
|
||||
--enable-radiobox use wxRadioBox class
|
||||
--enable-radiobtn use wxRadioButton class
|
||||
--enable-richmsgdlg use wxRichMessageDialog class
|
||||
@@ -10192,6 +10194,35 @@ fi
|
||||
eval "$wx_cv_use_prefseditor"
|
||||
|
||||
|
||||
enablestring=
|
||||
defaultval=$wxUSE_ALL_FEATURES
|
||||
if test -z "$defaultval"; then
|
||||
if test x"$enablestring" = xdisable; then
|
||||
defaultval=yes
|
||||
else
|
||||
defaultval=no
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check whether --enable-privatefonts was given.
|
||||
if test "${enable_privatefonts+set}" = set; then :
|
||||
enableval=$enable_privatefonts;
|
||||
if test "$enableval" = yes; then
|
||||
wx_cv_use_privatefonts='wxUSE_PRIVATE_FONTS=yes'
|
||||
else
|
||||
wx_cv_use_privatefonts='wxUSE_PRIVATE_FONTS=no'
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
wx_cv_use_privatefonts='wxUSE_PRIVATE_FONTS=${'DEFAULT_wxUSE_PRIVATE_FONTS":-$defaultval}"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
eval "$wx_cv_use_privatefonts"
|
||||
|
||||
|
||||
enablestring=
|
||||
defaultval=$wxUSE_ALL_FEATURES
|
||||
if test -z "$defaultval"; then
|
||||
@@ -22480,6 +22511,7 @@ $as_echo "not found" >&6; }
|
||||
|
||||
fi
|
||||
|
||||
if test "$wxUSE_PRIVATE_FONTS" = "yes"; then
|
||||
|
||||
pkg_failed=no
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRIVATE_FONTS" >&5
|
||||
@@ -22539,23 +22571,24 @@ fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
echo "$PRIVATE_FONTS_PKG_ERRORS" >&5
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig library not found or too old, run-time font loading won't be supported by wxFont" >&5
|
||||
$as_echo "$as_me: WARNING: fontconfig library not found or too old, run-time font loading won't be supported by wxFont" >&2;}
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: run-time font loading won't be supported by wxFont" >&5
|
||||
$as_echo "$as_me: WARNING: run-time font loading won't be supported by wxFont" >&2;}
|
||||
elif test $pkg_failed = untried; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig library not found or too old, run-time font loading won't be supported by wxFont" >&5
|
||||
$as_echo "$as_me: WARNING: fontconfig library not found or too old, run-time font loading won't be supported by wxFont" >&2;}
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: run-time font loading won't be supported by wxFont" >&5
|
||||
$as_echo "$as_me: WARNING: run-time font loading won't be supported by wxFont" >&2;}
|
||||
else
|
||||
PRIVATE_FONTS_CFLAGS=$pkg_cv_PRIVATE_FONTS_CFLAGS
|
||||
PRIVATE_FONTS_LIBS=$pkg_cv_PRIVATE_FONTS_LIBS
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||
$as_echo "yes" >&6; }
|
||||
|
||||
$as_echo "#define wxHAVE_FONTCONFIG_2_8_0 1" >>confdefs.h
|
||||
$as_echo "#define wxUSE_PRIVATE_FONTS 1" >>confdefs.h
|
||||
|
||||
CXXFLAGS="$FONTCONFIG_CFLAGS $CXXFLAGS"
|
||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $FONTCONFIG_LIBS"
|
||||
CXXFLAGS="$PRIVATE_FONTS_CFLAGS $CXXFLAGS"
|
||||
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PRIVATE_FONTS_LIBS"
|
||||
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$wxUSE_DFB" = 1; then
|
||||
@@ -34371,6 +34404,11 @@ if test "$wxUSE_PREFERENCES_EDITOR" = "yes"; then
|
||||
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS preferences"
|
||||
fi
|
||||
|
||||
if test "$wxUSE_PRIVATE_FONTS" = "yes"; then
|
||||
$as_echo "#define wxUSE_PRIVATE_FONTS 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
|
||||
if test "$wxUSE_MAC" = 1; then
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dialup manager not supported on this platform... disabled" >&5
|
||||
|
Reference in New Issue
Block a user