dnl initialization
dnl ---------------------------------------------------------------------------
-AC_INIT([wxWidgets], [2.8.0], [wx-dev@lists.wxwidgets.org])
+AC_INIT([wxWidgets], [2.9.0], [wx-dev@lists.wxwidgets.org])
dnl the file passed to AC_CONFIG_SRCDIR should be specific to our package
AC_CONFIG_SRCDIR([wx-config.in])
dnl wx_release_number += 1
wx_major_version_number=2
-wx_minor_version_number=8
+wx_minor_version_number=9
wx_release_number=0
-wx_subrelease_number=1
+wx_subrelease_number=0
WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
WX_VERSION=$WX_RELEASE.$wx_release_number
dnl check for C99 string to long long conversion functions, assume that if we
dnl have the unsigned variants, then we have the signed ones as well
+dnl
+dnl at least under SGI these functions are only available in C99 code and not
+dnl in C++ so do these tests using C++ compiler
+AC_LANG_PUSH(C++)
if test "wxUSE_UNICODE" = "yes"; then
WX_CHECK_FUNCS(wcstoull)
else
WX_CHECK_FUNCS(strtoull)
fi
+AC_LANG_POP()
dnl ---------------------------------------------------------------------------
dnl Optional libraries
dnl test for XIM support in libgdk
AC_CHECK_LIB(gdk, gdk_im_open, AC_DEFINE(HAVE_XIM))
- fi
- dnl we need poll() in src/gtk/app.cpp (we know that Darwin doesn't
- dnl have it but we do the check for the others)
- if test "$USE_DARWIN" != 1; then
- AC_CHECK_FUNCS(poll)
+ dnl we need poll() in src/gtk1/app.cpp (we know that Darwin doesn't
+ dnl have it but we do the check for the others)
+ if test "$USE_DARWIN" != 1; then
+ AC_CHECK_FUNCS(poll)
+ fi
fi
TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
int main (void)
{
char buffer[128];
- snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
+ snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
if (strcmp ("2 3 1", buffer) == 0)
exit (0);
exit (1);
if test "$wxUSE_OLE" = "yes" ; then
AC_DEFINE(wxUSE_OLE)
AC_DEFINE(wxUSE_OLE_AUTOMATION)
- AC_DEFINE(wxUSE_OLE_ACTIVEX)
+ AC_DEFINE(wxUSE_ACTIVEX)
SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
fi
fi
fi
if test "$wxUSE_DATAOBJ" = "yes"; then
- if test "$wxUSE_MGL" = 1; then
- AC_MSG_WARN([wxDataObject not yet supported under MGL... disabled])
+ if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
+ AC_MSG_WARN([wxDataObject not yet supported under $TOOLKIT... disabled])
wxUSE_DATAOBJ=no
else
AC_DEFINE(wxUSE_DATAOBJ)
fi
if test "$wxUSE_CLIPBOARD" = "yes"; then
- if test "$wxUSE_MGL" = 1; then
- AC_MSG_WARN([Clipboard not yet supported under MGL... disabled])
+ if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
+ AC_MSG_WARN([Clipboard not yet supported under $TOOLKIT... disabled])
wxUSE_CLIPBOARD=no
fi
fi
fi
- if test "$wxUSE_MOTIF" = 1; then
- AC_MSG_WARN([Drag and drop not yet supported under Motif... disabled])
- wxUSE_DRAG_AND_DROP=no
- fi
-
- if test "$wxUSE_X11" = 1; then
- AC_MSG_WARN([Drag and drop not yet supported under X11... disabled])
- wxUSE_DRAG_AND_DROP=no
- fi
-
- if test "$wxUSE_MGL" = 1; then
- AC_MSG_WARN([Drag and drop not yet supported under MGL... disabled])
+ if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
+ "$wxUSE_DFB" = 1; then
+ AC_MSG_WARN([Drag and drop not yet supported under $TOOLKIT... disabled])
wxUSE_DRAG_AND_DROP=no
fi
fi
if test "$wxUSE_DISPLAY" = "yes"; then
- AC_DEFINE(wxUSE_DISPLAY)
- SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
+ if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
+ AC_MSG_WARN([wxDisplay not yet supported under $TOOLKIT... disabled])
+ wxUSE_DISPLAY=no
+ else
+ AC_DEFINE(wxUSE_DISPLAY)
+ SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
+ fi
fi
if test "$wxUSE_DETECT_SM" = "yes"; then
AC_MSG_WARN([WebKit headers not found; disabling wxWebKit])
wxUSE_WEBKIT=no
],
- [#include <Carbon/Carbon.h>])
+ [
+ #include <Carbon/Carbon.h>
+ #include <WebKit/WebKit.h>
+ ])
CPPFLAGS="$old_CPPFLAGS"
elif test "$wxUSE_COCOA" = 1; then
AC_DEFINE(wxUSE_WEBKIT)
fi
if test "$wxUSE_PALETTE" = "yes" ; then
- AC_DEFINE(wxUSE_PALETTE)
+ if test "$wxUSE_DFB" = 1; then
+ AC_MSG_WARN([wxPalette not yet supported under DFB... disabled])
+ wxUSE_PALETTE=no
+ else
+ AC_DEFINE(wxUSE_PALETTE)
+ fi
fi
if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then