remove blatant hack from configure and do proper checking for stuff wxCocoa does not support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bf47e3986a
commit
207bc66c38
25
configure
vendored
25
configure
vendored
@ -7008,13 +7008,6 @@ elif test "$wxUSE_CONTROLS" = "no"; then
|
||||
DEFAULT_wxUSE_TIPWINDOW=no
|
||||
fi
|
||||
|
||||
## FIXME: This is a blatant hack
|
||||
if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
|
||||
wxUSE_PRINTING_ARCHITECTURE=no
|
||||
wxUSE_DRAG_AND_DROP=no
|
||||
DEFAULT_wxUSE_DRAGIMAGE=no
|
||||
fi
|
||||
|
||||
|
||||
enablestring=
|
||||
echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
|
||||
@ -22551,6 +22544,24 @@ if test "$wxUSE_GUI" = "yes"; then
|
||||
WXGTK20=
|
||||
WXGPE=
|
||||
|
||||
if test "$wxUSE_COCOA" = 1 ; then
|
||||
if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
|
||||
{ echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
|
||||
echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
|
||||
wxUSE_PRINTING_ARCHITECTURE=no
|
||||
fi
|
||||
if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
|
||||
{ echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
|
||||
echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
|
||||
wxUSE_DRAG_AND_DROP=no
|
||||
fi
|
||||
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
||||
{ echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
|
||||
echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
|
||||
wxUSE_DRAGIMAGE=no
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$wxUSE_MSW" = 1 ; then
|
||||
TOOLKIT=MSW
|
||||
GUIDIST=MSW_DIST
|
||||
|
22
configure.in
22
configure.in
@ -1044,13 +1044,6 @@ elif test "$wxUSE_CONTROLS" = "no"; then
|
||||
DEFAULT_wxUSE_TIPWINDOW=no
|
||||
fi
|
||||
|
||||
## FIXME: This is a blatant hack
|
||||
if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
|
||||
wxUSE_PRINTING_ARCHITECTURE=no
|
||||
wxUSE_DRAG_AND_DROP=no
|
||||
DEFAULT_wxUSE_DRAGIMAGE=no
|
||||
fi
|
||||
|
||||
WX_ARG_ENABLE(accel, [ --enable-accel use accelerators], wxUSE_ACCEL)
|
||||
WX_ARG_ENABLE(button, [ --enable-button use wxButton class], wxUSE_BUTTON)
|
||||
WX_ARG_ENABLE(bmpbutton, [ --enable-bmpbutton use wxBitmapButton class], wxUSE_BMPBUTTON)
|
||||
@ -2429,6 +2422,21 @@ if test "$wxUSE_GUI" = "yes"; then
|
||||
WXGTK20=
|
||||
WXGPE=
|
||||
|
||||
if test "$wxUSE_COCOA" = 1 ; then
|
||||
if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
|
||||
AC_MSG_WARN([Printing not supported under wxCocoa yet, disabled])
|
||||
wxUSE_PRINTING_ARCHITECTURE=no
|
||||
fi
|
||||
if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
|
||||
AC_MSG_WARN([Drag and Drop not supported under wxCocoa yet, disabled])
|
||||
wxUSE_DRAG_AND_DROP=no
|
||||
fi
|
||||
if test "$wxUSE_DRAGIMAGE" = "yes"; then
|
||||
AC_MSG_WARN([Drag Image and DandD not supported under wxCocoa yet, disabled])
|
||||
wxUSE_DRAGIMAGE=no
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "$wxUSE_MSW" = 1 ; then
|
||||
TOOLKIT=MSW
|
||||
GUIDIST=MSW_DIST
|
||||
|
Loading…
Reference in New Issue
Block a user