X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a9639e76ed831d5cb920a53fcf0db259fa827a4c..46abf0775b815d890a709c74b45163ab00bec9c9:/configure.in diff --git a/configure.in b/configure.in index d9ea4efdb2..c796843a03 100644 --- a/configure.in +++ b/configure.in @@ -576,9 +576,9 @@ WX_ARG_FEATURE(dataobj, [ --enable-dataobj use data object classes WX_ARG_FEATURE(ipc, [ --enable-ipc use interprocess communication (wxSocket etc.)], wxUSE_IPC) -WX_ARG_FEATURE(baseevtloop, [ --enable-base-evtloop use event loop in console programs too], wxUSE_CONSOLE_EVENTLOOP) -WX_ARG_FEATURE(epoolloop, [ --enable-epool-loop use wxEpollDispatcher class (Linux only)], wxUSE_EPOLL_DISPATCHER) -WX_ARG_FEATURE(selectloop, [ --enable-select-loop use wxSelectDispatcher class], wxUSE_SELECT_DISPATCHER) +WX_ARG_FEATURE(baseevtloop, [ --enable-baseevtloop use event loop in console programs too], wxUSE_CONSOLE_EVENTLOOP) +WX_ARG_FEATURE(epoolloop, [ --enable-epoolloop use wxEpollDispatcher class (Linux only)], wxUSE_EPOLL_DISPATCHER) +WX_ARG_FEATURE(selectloop, [ --enable-selectloop use wxSelectDispatcher class], wxUSE_SELECT_DISPATCHER) dnl please keep the settings below in alphabetical order WX_ARG_FEATURE(apple_ieee, [ --enable-apple_ieee use the Apple IEEE codec], wxUSE_APPLE_IEEE) @@ -596,6 +596,7 @@ WX_ARG_FEATURE(exceptions, [ --enable-exceptions build exception-safe li WX_ARG_FEATURE(ffile, [ --enable-ffile use wxFFile class], wxUSE_FFILE) WX_ARG_FEATURE(file, [ --enable-file use wxFile class], wxUSE_FILE) WX_ARG_FEATURE(filesystem, [ --enable-filesystem use virtual file systems classes], wxUSE_FILESYSTEM) +WX_ARG_FEATURE(fontenum, [ --enable-fontenum use wxFontEnumerator class], wxUSE_FONTENUM) WX_ARG_FEATURE(fontmap, [ --enable-fontmap use font encodings conversion classes], wxUSE_FONTMAP) WX_ARG_FEATURE(fs_archive, [ --enable-fs_archive use virtual archive filesystems], wxUSE_FS_ARCHIVE) WX_ARG_FEATURE(fs_inet, [ --enable-fs_inet use virtual HTTP/FTP filesystems], wxUSE_FS_INET) @@ -829,6 +830,7 @@ WX_ARG_FEATURE(statline, [ --enable-statline use wxStaticLine class], WX_ARG_FEATURE(stattext, [ --enable-stattext use wxStaticText class], wxUSE_STATTEXT) WX_ARG_FEATURE(statusbar, [ --enable-statusbar use wxStatusBar class], wxUSE_STATUSBAR) WX_ARG_FEATURE(tabdialog, [ --enable-tabdialog use wxTabControl class], wxUSE_TAB_DIALOG) +WX_ARG_FEATURE(taskbaricon, [ --enable-taskbaricon use wxTaskBarIcon class], wxUSE_TASKBARICON) WX_ARG_FEATURE(textctrl, [ --enable-textctrl use wxTextCtrl class], wxUSE_TEXTCTRL) WX_ARG_FEATURE(togglebtn, [ --enable-togglebtn use wxToggleButton class], wxUSE_TOGGLEBTN) WX_ARG_FEATURE(toolbar, [ --enable-toolbar use wxToolBar class], wxUSE_TOOLBAR) @@ -875,10 +877,6 @@ WX_ARG_FEATURE(metafile, [ --enable-metafiles use wxMetaFile (Win32 onl WX_ARG_FEATURE(dragimage, [ --enable-dragimage use wxDragImage], wxUSE_DRAGIMAGE) WX_ARG_FEATURE(accessibility,[ --enable-accessibility enable accessibility support], wxUSE_ACCESSIBILITY) -if test "$wxUSE_MSW" = "1"; then - WX_ARG_FEATURE(dccache, [ --enable-dccache cache temporary wxDC objects (Win32 only)], wxUSE_DC_CACHEING) -fi - dnl --------------------------------------------------------------------------- dnl support for image formats that do not rely on external library dnl --------------------------------------------------------------------------- @@ -893,6 +891,17 @@ WX_ARG_FEATURE(pnm, [ --enable-pnm use pnm images (PNM file WX_ARG_FEATURE(xpm, [ --enable-xpm use xpm images (XPM file format)], wxUSE_XPM) WX_ARG_FEATURE(ico_cur, [ --enable-icocur use Windows ICO and CUR formats], wxUSE_ICO_CUR) +dnl --------------------------------------------------------------------------- +dnl wxMSW-only options +dnl --------------------------------------------------------------------------- + +WX_ARG_FEATURE(dccache, [ --enable-dccache cache temporary wxDC objects (Win32 only)], wxUSE_DC_CACHEING) +WX_ARG_FEATURE(ps-in-msw, [ --enable-ps-in-msw use PS printing in wxMSW (Win32 only)], wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) +WX_ARG_FEATURE(ownerdrawn, [ --enable-ownerdrawn use owner drawn controls (Win32 only)], wxUSE_OWNER_DRAWN) +WX_ARG_FEATURE(regkey, [ --enable-regkey use wxRegKey class (Win32 only)], wxUSE_REGKEY) +WX_ARG_FEATURE(uxtheme, [ --enable-uxtheme enable support for Windows XP themed look (Win32 only)], wxUSE_UXTHEME) +WX_ARG_FEATURE(wxdib, [ --enable-wxdib use wxDIB class (Win32 only)], wxUSE_DIB) + fi dnl for GUI only @@ -1423,7 +1432,7 @@ AC_CHECK_HEADERS(stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h,,, [AC_ dnl maybe wchar_t is in wcstr.h if we don't have wchar.h? if test "$ac_cv_header_wchar_h" != "yes"; then - AC_CHECK_HEADER(wcstr.h,,, [AC_INCLUDES_DEFAULT()]) + AC_CHECK_HEADERS([wcstr.h],,, [AC_INCLUDES_DEFAULT()]) fi case "${host}" in @@ -1441,7 +1450,7 @@ esac dnl POSIX needs this for select(), but old systems don't have it if test "$USE_UNIX" = 1 ; then - AC_CHECK_HEADER([sys/select.h],,, [AC_INCLUDES_DEFAULT()]) + AC_CHECK_HEADERS([sys/select.h],,, [AC_INCLUDES_DEFAULT()]) fi dnl --------------------------------------------------------------------------- @@ -2559,7 +2568,7 @@ WIDGET_SET= dnl are we building for a win32 target environment? dnl If so, setup common stuff needed for both GUI and Base libs. if test "$USE_WIN32" = 1 ; then - AC_CHECK_HEADER(w32api.h,,, [ ]) + AC_CHECK_HEADERS(w32api.h,,, [ ]) AC_CHECK_HEADER(windows.h,, [ AC_MSG_ERROR(please set CFLAGS to contain the location of windows.h) @@ -2603,7 +2612,7 @@ if test "$USE_WIN32" = 1 ; then WIN32INSTALL=win32install dnl pbt.h is missing on Wine at least - AC_CHECK_HEADER(pbt.h,, [AC_DEFINE(NEED_PBT_H)], [ ]) + AC_CHECK_HEADER([pbt.h],, [AC_DEFINE(NEED_PBT_H)], [ ]) fi if test "$wxUSE_GUI" = "yes"; then @@ -3069,10 +3078,6 @@ libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config fi if test "$wxUSE_MOTIF" = 1; then - if test "$wxUSE_UNICODE" = "yes"; then - AC_MSG_ERROR([Unicode configuration not supported with Motif]) - fi - AC_MSG_CHECKING(for Motif/Lesstif headers) WX_PATH_FIND_INCLUDES($SEARCH_INCLUDE, Xm/Xm.h) if test "$ac_find_includes" != "" ; then @@ -3438,8 +3443,8 @@ dnl do this after test for X11 above so that we have a chance of finding Xlib.h if test "$wxUSE_GUI" = "yes"; then if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then dnl defines HAVE_X11_XKBLIB_H - AC_CHECK_HEADER(X11/Xlib.h,,, [ ]) - AC_CHECK_HEADER([X11/XKBlib.h],,, + AC_CHECK_HEADERS([X11/Xlib.h],,, [ ]) + AC_CHECK_HEADERS([X11/XKBlib.h],,, [ #if HAVE_X11_XLIB_H #include @@ -3522,7 +3527,7 @@ dnl --------------------------------------------------------------------------- WX_PATH_FIND_LIBRARIES([$SEARCH_LIB],Xxf86vm) if test "$ac_find_libraries" != "" ; then AC_MSG_RESULT([yes]) - AC_CHECK_HEADER([X11/extensions/xf86vmode.h], + AC_CHECK_HEADERS([X11/extensions/xf86vmode.h], [ GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" ], @@ -4302,7 +4307,7 @@ if test "$wxUSE_UNICODE" = yes; then #include " case "${host}" in *-*-solaris2* ) - AC_CHECK_HEADER(widec.h,,, [AC_INCLUDES_DEFAULT()]) + AC_CHECK_HEADERS(widec.h,,, [AC_INCLUDES_DEFAULT()]) if test "$ac_cv_header_widec_h" = "yes"; then wchar_headers="$wchar_headers #include " @@ -4575,7 +4580,7 @@ dnl check for timegm() used by datetime.cpp AC_CHECK_FUNCS(timegm) dnl look for a function to modify the environment -AC_CHECK_FUNCS(putenv setenv, break) +AC_CHECK_FUNCS(setenv putenv, break) HAVE_SOME_SLEEP_FUNC=0 if test "$USE_BEOS" = 1; then @@ -4884,7 +4889,7 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then AC_DEFINE(wxHAVE_PTHREAD_CLEANUP) fi - AC_CHECK_HEADER(sched.h,,, [AC_INCLUDES_DEFAULT()]) + AC_CHECK_HEADERS(sched.h,,, [AC_INCLUDES_DEFAULT()]) if test "$ac_cv_header_sched_h" = "yes"; then AC_CHECK_FUNC(sched_yield, AC_DEFINE(HAVE_SCHED_YIELD), @@ -5721,6 +5726,48 @@ dnl --------------------------------------------------------------------------- dnl time/date functions dnl --------------------------------------------------------------------------- +dnl check for gettimeofday (SVr4, BSD 4.3) and ftime (V7, BSD 4.3) for the +dnl function to be used for high resolution timers +AC_CHECK_FUNCS(gettimeofday ftime, break) + +if test "$ac_cv_func_gettimeofday" = "yes"; then + AC_CACHE_CHECK([whether gettimeofday takes two arguments], + wx_cv_func_gettimeofday_has_2_args, + [ + dnl on some _really_ old systems it takes only 1 argument + AC_TRY_COMPILE( + [ + #include + #include + ], + [ + struct timeval tv; + gettimeofday(&tv, NULL); + ], + wx_cv_func_gettimeofday_has_2_args=yes, + AC_TRY_COMPILE( + [ + #include + #include + ], + [ + struct timeval tv; + gettimeofday(&tv); + ], + wx_cv_func_gettimeofday_has_2_args=no, + [ + AC_MSG_WARN([failed to determine number of gettimeofday() arguments]) + wx_cv_func_gettimeofday_has_2_args=unknown + ] + ) + ) + ]) + + if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then + AC_DEFINE(WX_GETTIMEOFDAY_NO_TZ) + fi +fi + if test "$wxUSE_DATETIME" = "yes"; then dnl check for strptime and for its declaration as some systems lack it AC_CHECK_FUNC(strptime) @@ -5868,48 +5915,6 @@ if test "$wxUSE_DATETIME" = "yes"; then AC_DEFINE(WX_GMTOFF_IN_TM) fi - dnl check for gettimeofday (SVr4, BSD 4.3) and ftime (V7, BSD 4.3) for the - dnl function to be used for high resolution timers - AC_CHECK_FUNCS(gettimeofday ftime, break) - - if test "$ac_cv_func_gettimeofday" = "yes"; then - AC_CACHE_CHECK([whether gettimeofday takes two arguments], - wx_cv_func_gettimeofday_has_2_args, - [ - dnl on some _really_ old systems it takes only 1 argument - AC_TRY_COMPILE( - [ - #include - #include - ], - [ - struct timeval tv; - gettimeofday(&tv, NULL); - ], - wx_cv_func_gettimeofday_has_2_args=yes, - AC_TRY_COMPILE( - [ - #include - #include - ], - [ - struct timeval tv; - gettimeofday(&tv); - ], - wx_cv_func_gettimeofday_has_2_args=no, - [ - AC_MSG_WARN([failed to determine number of gettimeofday() arguments]) - wx_cv_func_gettimeofday_has_2_args=unknown - ] - ) - ) - ]) - - if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then - AC_DEFINE(WX_GETTIMEOFDAY_NO_TZ) - fi - fi - SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" fi @@ -6160,7 +6165,7 @@ if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then dnl can't be compiled because of an error and with the default dnl AC_CHECK_HEADER semantics we'd still detect it in this case and dnl build would fail later - AC_CHECK_HEADER(linux/joystick.h, [wxUSE_JOYSTICK=yes],, [AC_INCLUDES_DEFAULT()]) + AC_CHECK_HEADERS([linux/joystick.h], [wxUSE_JOYSTICK=yes],, [AC_INCLUDES_DEFAULT()]) fi fi @@ -6177,6 +6182,10 @@ dnl --------------------------------------------------------------------------- dnl String stuff dnl --------------------------------------------------------------------------- +if test "$wxUSE_FONTENUM" = "yes" ; then + AC_DEFINE(wxUSE_FONTENUM) +fi + if test "$wxUSE_FONTMAP" = "yes" ; then AC_DEFINE(wxUSE_FONTMAP) fi @@ -6793,10 +6802,6 @@ if test "$wxUSE_ACCESSIBILITY" = "yes"; then SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" fi -if test "$wxUSE_DC_CACHEING" = "yes"; then - AC_DEFINE(wxUSE_DC_CACHEING) -fi - if test "$wxUSE_DRAGIMAGE" = "yes"; then AC_DEFINE(wxUSE_DRAGIMAGE) SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" @@ -6891,10 +6896,11 @@ fi if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then AC_DEFINE(wxUSE_SYSTEM_OPTIONS) - if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ - "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then - SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" - fi +fi + +if test "$wxUSE_TASKBARICON" = "yes"; then + AC_DEFINE(wxUSE_TASKBARICON) + SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" fi @@ -7034,6 +7040,39 @@ if test "$wxUSE_WIZARDDLG" = "yes"; then SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" fi +dnl --------------------------------------------------------------------------- +dnl wxMSW-only options +dnl --------------------------------------------------------------------------- + +if test "$wxUSE_MSW" = 1 ; then + +if test "$wxUSE_DC_CACHEING" = "yes"; then + AC_DEFINE(wxUSE_DC_CACHEING) +fi + +if test "$wxUSE_DIB" = "yes"; then + AC_DEFINE(wxUSE_WXDIB) +fi + +if test "$wxUSE_OWNER_DRAWN" = "yes"; then + AC_DEFINE(wxUSE_OWNER_DRAWN) +fi + +if test "$wxUSE_REGKEY" = "yes"; then + AC_DEFINE(wxUSE_REGKEY) +fi + +if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then + AC_DEFINE(wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW) +fi + +if test "$wxUSE_UXTHEME" = "yes"; then + AC_DEFINE(wxUSE_UXTHEME) +fi + +fi +dnl wxUSE_MSW = 1 + dnl --------------------------------------------------------------------------- dnl wxGraphicsContext dnl ---------------------------------------------------------------------------