X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/166988aa358198f2cfaa506d8f653eb8006d0106..b545d7ab09787f1fd86b0ac30a873a9c0bd65f60:/configure.in diff --git a/configure.in b/configure.in index e420dd5be5..b6d30fa16b 100644 --- a/configure.in +++ b/configure.in @@ -971,6 +971,7 @@ WX_ARG_FEATURE(notebook, [ --enable-notebook use wxNotebook class], wx WX_ARG_FEATURE(notifmsg, [ --enable-notifmsg use wxNotificationMessage class], wxUSE_NOTIFICATION_MESSAGE) WX_ARG_FEATURE(odcombobox, [ --enable-odcombobox use wxOwnerDrawnComboBox class], wxUSE_ODCOMBOBOX) WX_ARG_FEATURE(popupwin, [ --enable-popupwin use wxPopUpWindow class], wxUSE_POPUPWIN) +WX_ARG_FEATURE(prefseditor, [ --enable-prefseditor use wxPreferencesEditor class], wxUSE_PREFERENCES_EDITOR) WX_ARG_FEATURE(radiobox, [ --enable-radiobox use wxRadioBox class], wxUSE_RADIOBOX) WX_ARG_FEATURE(radiobtn, [ --enable-radiobtn use wxRadioButton class], wxUSE_RADIOBTN) WX_ARG_FEATURE(richmsgdlg, [ --enable-richmsgdlg use wxRichMessageDialog class], wxUSE_RICHMSGDLG) @@ -4095,15 +4096,17 @@ if test "$WCSLEN_FOUND" = 1; then AC_DEFINE(HAVE_WCSLEN) fi -AC_CHECK_FUNCS(strnlen) +dnl Notice that unlike the functions below, this one seems to be present in all +dnl support OS X versions so it's OK to test for it here. +AC_CHECK_FUNCS(wcsftime) -dnl OS X provides the wide character functions starting from 10.7 so our tests -dnl would succeed if we're configuring under 10.7 or later, yet the compiled -dnl programs would fail if ran under 10.6 or earlier. To avoid this problem we -dnl define the corresponding HAVE_XXX in wx/osx/config_xcode.h instead of -dnl testing for them here. +dnl OS X provides the wide character functions (and also strnlen(), for some +dnl reason) only starting from 10.7 so our tests would succeed if we're +dnl configuring under 10.7 or later, yet the compiled programs would fail if +dnl ran under 10.6 or earlier. To avoid this problem, define the corresponding +dnl HAVE_XXX in wx/osx/config_xcode.h instead of testing for them here. if test "$wxUSE_MAC" != 1; then - AC_CHECK_FUNCS([wcsdup wcsftime wcsnlen wcscasecmp wcsncasecmp]) + AC_CHECK_FUNCS([strnlen wcsdup wcsnlen wcscasecmp wcsncasecmp]) fi dnl On HP-UX aCC need this define to find mbstrtowcs() &c @@ -7077,6 +7080,11 @@ if test "$wxUSE_POPUPWIN" = "yes"; then fi fi +if test "$wxUSE_PREFERENCES_EDITOR" = "yes"; then + AC_DEFINE(wxUSE_PREFERENCES_EDITOR) + SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS prefseditor" +fi + if test "$wxUSE_DIALUP_MANAGER" = "yes"; then if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then AC_MSG_WARN([Dialup manager not supported on this platform... disabled]) @@ -7813,7 +7821,7 @@ if test "$wxUSE_GUI" = "yes"; then dnl TODO some samples are never built so far: mfc (requires VC++) SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ - erase event exec font image minimal preferences render \ + erase event exec font image minimal render \ shaped svg taborder vscroll widgets wrapsizer" if test "$wxUSE_MONOLITHIC" != "yes"; then