Some more fixes for OS/2.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2003-08-24 07:36:36 +00:00
parent 0e4534295e
commit 5cc55caf2b
2 changed files with 14 additions and 6 deletions

View File

@@ -119,7 +119,10 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
</set> </set>
<set var="BASE_OS2_SRC" hints="files"> <set var="BASE_OS2_SRC" hints="files">
src/unix/baseunix.cpp
src/os2/dir.cpp src/os2/dir.cpp
src/os2/mimetype.cpp
src/os2/thread.cpp
src/os2/utils.cpp src/os2/utils.cpp
src/os2/utilsexc.cpp src/os2/utilsexc.cpp
</set> </set>
@@ -1375,7 +1378,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
src/os2/menu.cpp src/os2/menu.cpp
src/os2/menuitem.cpp src/os2/menuitem.cpp
src/os2/metafile.cpp src/os2/metafile.cpp
src/os2/mimetype.cpp
src/os2/msgdlg.cpp src/os2/msgdlg.cpp
src/os2/nativdlg.cpp src/os2/nativdlg.cpp
src/os2/notebook.cpp src/os2/notebook.cpp
@@ -1397,7 +1399,6 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
src/os2/stattext.cpp src/os2/stattext.cpp
src/os2/tabctrl.cpp src/os2/tabctrl.cpp
src/os2/textctrl.cpp src/os2/textctrl.cpp
src/os2/thread.cpp
src/os2/timer.cpp src/os2/timer.cpp
src/os2/toolbar.cpp src/os2/toolbar.cpp
src/os2/tooltip.cpp src/os2/tooltip.cpp

View File

@@ -73,6 +73,7 @@ dnl ------------------------------------------------------------------------
dnl OS (assume Unix) dnl OS (assume Unix)
USE_UNIX=1 USE_UNIX=1
USE_OS2=0
USE_WIN32=0 USE_WIN32=0
USE_DOS=0 USE_DOS=0
USE_BEOS=0 USE_BEOS=0
@@ -288,12 +289,14 @@ case "${host}" in
*-pc-os2_emx | *-pc-os2-emx ) *-pc-os2_emx | *-pc-os2-emx )
AC_DEFINE(__EMX__) AC_DEFINE(__EMX__)
USE_OS2=1
PROGRAM_EXT=".exe" PROGRAM_EXT=".exe"
DEFAULT_DEFAULT_wxUSE_PM=1 DEFAULT_DEFAULT_wxUSE_PM=1
dnl "c++" wrapper is not always available, so always use plain gcc. dnl "c++" wrapper is not always available, so always use plain gcc.
CXX=gcc CXX=gcc
dnl Explicitly link -lstdcpp, since we are using "gcc" not "g++"/"c++". dnl Explicitly link -lstdcpp, since we are using "gcc" not "g++"/"c++".
LIBS="$LIBS -lstdcpp" LIBS="$LIBS -lstdcpp"
LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
dnl dnl
dnl Some special code that's automatically added by autoconf-2.57 for OS/2 dnl Some special code that's automatically added by autoconf-2.57 for OS/2
dnl and hopefully also by autoconf-2.58 and newer on all other platforms. dnl and hopefully also by autoconf-2.58 and newer on all other platforms.
@@ -2789,8 +2792,6 @@ equivalent variable and GTK+ is version 1.2.3 or above.
if test "$wxUSE_PM" = 1; then if test "$wxUSE_PM" = 1; then
TOOLKIT=PM TOOLKIT=PM
GUIDIST=GTK_DIST GUIDIST=GTK_DIST
AC_MSG_WARN([OS/2 threads are not yet supported... disabled])
wxUSE_THREADS="no"
fi fi
dnl the name of the directory where the files for this toolkit live dnl the name of the directory where the files for this toolkit live
@@ -3745,12 +3746,13 @@ dnl flush the cache
AC_CACHE_SAVE AC_CACHE_SAVE
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl thread support for Unix (for Win32 see past the next matching "else") dnl thread support for Unix (for Win32 and OS/2 see past
dnl the next matching "else")
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl under MSW (except mingw32) we always have thread support dnl under MSW (except mingw32) we always have thread support
CPP_MT_FLAG= CPP_MT_FLAG=
if test "$TOOLKIT" != "MSW"; then if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
dnl the code below: dnl the code below:
dnl dnl
@@ -4071,6 +4073,11 @@ else
CFLAGS="$CFLAGS_OLD" CFLAGS="$CFLAGS_OLD"
fi fi
;; ;;
*-pc-os2*emx )
CFLAGS="$CFLAGS -Zmt"
CXXFLAGS="$CXXFLAGS -Zmt"
LDFLAGS="$LDFLAGS -Zmt"
;;
esac esac
fi fi
fi fi