diff options
Diffstat (limited to 'x11-wm/icewm/files/patch-configure.in')
-rw-r--r-- | x11-wm/icewm/files/patch-configure.in | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/x11-wm/icewm/files/patch-configure.in b/x11-wm/icewm/files/patch-configure.in index 56a54e511fc4..86fa0c8893e8 100644 --- a/x11-wm/icewm/files/patch-configure.in +++ b/x11-wm/icewm/files/patch-configure.in @@ -1,38 +1,56 @@ ---- configure.in.orig Mon Mar 15 03:46:35 2004 -+++ configure.in Mon Mar 15 03:46:25 2004 -@@ -25,35 +25,6 @@ +--- configure.in.orig Sun May 23 15:18:18 2004 ++++ configure.in Mon May 24 14:00:32 2004 +@@ -21,53 +21,8 @@ + + dnl ---------- Checking for a C compiler in hope that it understands C++ too --- + dnl +-ICE_PROG_CXX_LIGHT AC_LANG_CPLUSPLUS AC_PROG_CXX - +- -dnl ----------- If both CC and CXX are GNU compilers, it is better to use CC --- --dnl ---- for linking. Also check how to turn off RTTI and exception handling --- --if test x"$ac_cv_prog_gxx" != x; then +-dnl ---- for linking. +-if test x"$ac_cv_prog_gxx" = x; then - AC_PROG_CC -- if test x"$ac_cv_prog_gcc" != x; then +- if test x"$ac_cv_prog_gcc" = x; then - CXX_LINK=${CC} - fi -- +-fi +- +-dnl ---------- Also check how to turn off RTTI and exception handling --- +- +-dnl --- SunONE C++ supports no-rtti flag only in compat=4 mode +-if test -z "`${CXX} -V 2>&1 | grep Sun`"; then - ICE_CXX_FLAG_ACCEPT(no_rtti, -fno-rtti) -- dnl --- Intel C++ supports -fno-rtti, but doens't support -fno-*-exceptions -- if test $(basename $CXX) != "icc"; then -- ICE_CXX_FLAG_ACCEPT(no_exceptions, -fno-exceptions) +-fi +-dnl --- Intel C++ supports -fno-rtti, but doens't support -fno-*-exceptions +-if test $(basename $CXX) != "icc"; then +- if test -n "`${CXX} -V 2>&1 | grep Sun`"; then +- dnl --- Sun ONE C++ syntax for "no exceptions" +- ICE_CXX_FLAG_ACCEPT(no_exceptions, -features=no%except) +- else +- if test $(basename $CXX) = "g++" || +- test $(basename $CXX) = "gcc"; then +- ICE_CXX_FLAG_ACCEPT(no_exceptions, -fno-exceptions) - if test x"$no_exceptions_ok" = xno; then -- ICE_CXX_FLAG_ACCEPT(no_exceptions, -fno-handle-exceptions) +- ICE_CXX_FLAG_ACCEPT(no_exceptions, -fno-handle-exceptions) +- fi - fi - fi -fi - --if test x"$ac_cv_prog_gxx" != x; then +-if test $(basename $CXX) = "g++" || +- test $(basename $CXX) = "gcc" ; then +- ICE_CXX_FLAG_ACCEPT(warn_xxx, -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -Woverloaded-virtual -W) +- ICE_CXX_FLAG_ACCEPT(permissive, -fpermissive) +-else +- dnl --- Sun ONE doesn't support GCC -W* and -fpermissive - dnl --- Intel C++ doesn't supports lots of GCC -W* and -fpermissive - if test $(basename $CXX) = "icc"; then - dnl --- Using -w0 to avoid noisy "remark" messages - ICE_CXX_FLAG_ACCEPT(warn_xxx, -w0) -- else -- ICE_CXX_FLAG_ACCEPT(warn_xxx, -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline -Woverloaded-virtual -W) -- ICE_CXX_FLAG_ACCEPT(permissive, -fpermissive) - fi -fi -- + if test x"$CXX_LINK" = x; then CXX_LINK=$CXX - fi |