X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e653e1815006d22b6b269031bea9903089b62d87..8329fea8ad89a4df6c2f0441facdc5ad189473ea:/configure.in?ds=inline diff --git a/configure.in b/configure.in index d901b515e0..31f0dbad54 100644 --- a/configure.in +++ b/configure.in @@ -56,7 +56,7 @@ dnl libwx_$(TOOLKIT)-$(WX_RELEASE).so.$(WX_CURRENT).$(WX_REVISION).$(WX_AGE) wx_major_version_number=2 wx_minor_version_number=5 wx_release_number=3 -wx_subrelease_number=2 +wx_subrelease_number=3 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number WX_VERSION=$WX_RELEASE.$wx_release_number @@ -66,7 +66,7 @@ WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_numbe WX_CURRENT=3 WX_REVISION=0 -WX_AGE=2 +WX_AGE=3 dnl ------------------------------------------------------------------------ @@ -332,6 +332,17 @@ case "${host}" in AC_DEFINE(TARGET_CARBON) DEFAULT_DEFAULT_wxUSE_MAC=1 ;; + powerpc-apple-macos* ) + dnl Classic Mac OS (< X) + USE_UNIX=0 + dnl For some reason the test that should be cross-compiler capable fails + dnl However, there is no doubt that MacOS PowerPC is big endian. + ac_cv_c_bigendian=yes + SO_SUFFIX=shlib + dnl AC_DEFINE(TARGET_CARBON) + dnl platform.h needs TARGET_CARBON before setup.h, we'll add it to CPPFLAGS + DEFAULT_DEFAULT_wxUSE_MAC=1 + ;; *-*-beos* ) dnl leave USE_UNIX on - BeOS is sufficiently Unix-like for this @@ -1314,7 +1325,7 @@ AC_CACHE_SAVE dnl cross-compiling support: we're cross compiling if the build system is dnl different from the target one (assume host and target be always the same) if test "$build" != "$host" ; then - if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then + if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then CC=$host_alias-gcc CXX=$host_alias-c++ AR=$host_alias-ar @@ -1322,6 +1333,8 @@ if test "$build" != "$host" ; then DLLTOOL=$host_alias-dlltool RESCOMP=$host_alias-windres STRIP=$host_alias-strip + elif test "x$CC" '!=' "x"; then + echo "You set CC, I assume you know what you are doing." else AC_MSG_ERROR($build_alias -> $host_alias cross compilation not supported yet.) fi @@ -1724,6 +1737,10 @@ AC_CACHE_CHECK([for va_copy], va_copy(ap2, ap1); va_end(ap2); va_end(ap1); + } + int main() + { + return foo("hi", 17); }], wx_cv_func_va_copy=yes, wx_cv_func_va_copy=no @@ -2526,7 +2543,27 @@ equivalent variable and GTK+ is version 1.2.3 or above. save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS" + AC_CHECK_FUNCS([pango_font_family_is_monospace]) + + dnl test if we have at least GTK+ 2.4: + AC_MSG_CHECKING([if GTK+ is version >= 2.4]) + AC_TRY_COMPILE([ + #include + ], + [ + #if !GTK_CHECK_VERSION(2,4,0) + #error "Not GTK+ 2.4" + #endif + ], + [ + AC_DEFINE(__WXGTK24__) + AC_MSG_RESULT([yes]) + ], + [ + AC_MSG_RESULT([no]) + ]) + CFLAGS="$save_CFLAGS" LIBS="$save_LIBS" else @@ -2984,7 +3021,12 @@ equivalent variable and GTK+ is version 1.2.3 or above. AC_MSG_RESULT([none]) fi - CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" + if test "x$wxUSE_UNIX" = "xyes"; then + CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" + else + dnl platform.h needs TARGET_CARBON before setup.h + CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" + fi TOOLKIT=MAC dnl we can't call this MAC_DIST or autoconf thinks its a macro @@ -3186,6 +3228,7 @@ dnl --------------------------------------------------------------------------- fi fi + SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" AC_DEFINE(wxUSE_MEDIACTRL) fi @@ -4616,7 +4659,8 @@ if test "$WXGTK20" = 1; then if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then - PKG_CHECK_MODULES(LIBGNOMEPRINTUI, libgnomeprintui-2.2, + PKG_CHECK_MODULES(LIBGNOMEPRINTUI, + [libgnomeprintui-2.2 >= 2.8], [ EXTRALIBS_GNOMEPRINT="$LIBGNOMEPRINTUI_LIBS" CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" @@ -5600,7 +5644,7 @@ if test "$wxUSE_HTML" = "yes"; then fi fi if test "$wxUSE_WEBKIT" = "yes"; then - if test "$wxUSE_MAC" = 1; then + if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then old_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -x objective-c++" AC_CHECK_HEADER([WebKit/HIWebView.h], @@ -5844,12 +5888,17 @@ dnl extended.c uses floor() and is always linked in if test "$wxUSE_MAC" = 1 ; then if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then - LDFLAGS="$LDFLAGS -framework QuickTime" + if test "$USE_DARWIN" = 1; then + LDFLAGS="$LDFLAGS -framework QuickTime" + else + LDFLAGS="$LDFLAGS -lQuickTimeLib" + fi fi if test "$USE_DARWIN" = 1; then - LDFLAGS="$LDFLAGS -framework IOKit" + LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" + else + LDFLAGS="$LDFLAGS -lCarbonLib" fi - LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" fi if test "$wxUSE_COCOA" = 1 ; then LDFLAGS="$LDFLAGS -framework Cocoa"