X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecd16d74cef66aa62f518c46d8fdcf9949ef37f2..1695e2851de295b910fa741ff1d75a20efbc4db1:/configure.in diff --git a/configure.in b/configure.in index 1e2634bdcf..53ac671d45 100644 --- a/configure.in +++ b/configure.in @@ -1744,6 +1744,7 @@ WX_CPP_EXPLICIT dnl check whether C++ compiler supports C++ casts AC_CXX_CONST_CAST +AC_CXX_REINTERPRET_CAST AC_CXX_STATIC_CAST dnl check various STL features @@ -2936,9 +2937,7 @@ equivalent variable and GTK+ is version 1.2.3 or above. GUIDIST=MACX_DIST dnl wxMac version of wxBase and wxCocoa or wxBase-only built on Darwin dnl are different, so they need different names: - dnl FIXME: If we can do it like this, please do, and we can remove - dnl BASEPORT from bakefiles and elsewhere - WX_FLAVOUR="carbon${WX_FLAVOUR:+_$WX_FLAVOUR}" + WXBASEPORT="_carbon" fi if test "$wxUSE_COCOA" = 1; then @@ -3330,7 +3329,7 @@ fi dnl library link name dnl These just save us from exporting lib_{unicode,debug,flavour}_suffix. dnl If we ever need to do that, we won't need to keep these. -WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" +WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" @@ -5737,6 +5736,9 @@ if test "$wxUSE_MAC" = 1 ; then if test "$wxUSE_SOUND" = "yes"; then LDFLAGS="$LDFLAGS -framework QuickTime" fi + if test "$USE_DARWIN" = 1; then + LDFLAGS="$LDFLAGS -framework IOKit" + fi LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System" fi if test "$wxUSE_COCOA" = 1 ; then @@ -6139,8 +6141,12 @@ AC_CONFIG_COMMANDS([ wx-config LN_S="${LN_S}" ]) -AC_CONFIG_LINKS([ include/wx-$WX_RELEASE$WX_FLAVOUR:include ]) -AC_CONFIG_LINKS([ contrib/include ]) +dnl This would give us us build dir that in every significant way +dnl resembles an installed wx in prefix=$builddir. It is troublesome +dnl though in this form because AC_CONFIG_LINKS will fail for directories +dnl on platforms that do not have symlinks. +dnl AC_CONFIG_LINKS([ include/wx-$WX_RELEASE$WX_FLAVOUR:include ]) +dnl AC_CONFIG_LINKS([ contrib/include ]) dnl Configure samples, contrib etc. directories, but only if they are present: