git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25992
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
DEFAULT_DEFAULT_wxUSE_PM=1
dnl "c++" wrapper is not always available, so always use plain gcc.
CXX=gcc
DEFAULT_DEFAULT_wxUSE_PM=1
dnl "c++" wrapper is not always available, so always use plain gcc.
CXX=gcc
- LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
+ LDFLAGS="$LDFLAGS -Zcrtdll"
dnl
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
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 Include resources for the "native" port (wxPM).
RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
fi
dnl Include resources for the "native" port (wxPM).
RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
fi
- AC_CACHE_CHECK([for gcc 3 or later], wx_cv_gcc3,[
+ AC_CACHE_CHECK([for gcc version], wx_cv_gccversion,[
AC_TRY_COMPILE([],
[
#if (__GNUC__ < 3)
AC_TRY_COMPILE([],
[
#if (__GNUC__ < 3)
+ AC_TRY_COMPILE([],
+ [
+ #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
+ #error intermediate gcc
+ #endif
+ ],
+ [
+ wx_cv_gccversion=Innotek
+ ],
+ [
+ wx_cv_gccversion=3
+ ]
+ )
- if test "$wx_cv_gcc3" = "no"; then
+ if test "$wx_cv_gccversion" = "2"; then
+ LDFLAGS="$LDFLAGS -Zsysv-signals"
+ if test "$wx_cv_gccversion" = "3"; then
+ LIBS="$LIBS -lstdcxx"
+ LDFLAGS="$LDFLAGS -Zsysv-signals"
+ else
+ LIBS="$LIBS -lstdc++"
+ fi
fi
dnl (end of OS/2-only piece)
;;
fi
dnl (end of OS/2-only piece)
;;