diff options
Diffstat (limited to 'cad/salome-kernel/files/patch-KERNEL-salome_adm_check_cas.m4')
-rw-r--r-- | cad/salome-kernel/files/patch-KERNEL-salome_adm_check_cas.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cad/salome-kernel/files/patch-KERNEL-salome_adm_check_cas.m4 b/cad/salome-kernel/files/patch-KERNEL-salome_adm_check_cas.m4 new file mode 100644 index 000000000000..00f2953b8801 --- /dev/null +++ b/cad/salome-kernel/files/patch-KERNEL-salome_adm_check_cas.m4 @@ -0,0 +1,32 @@ +--- salome_adm/unix/config_files/check_cas.m4.orig 2009-10-31 20:35:10.000000000 +0600 ++++ salome_adm/unix/config_files/check_cas.m4 2009-10-31 20:37:39.000000000 +0600 +@@ -54,7 +54,7 @@ + casdir=Linux + ;; + freebsd*) +- casdir=Linux ++ casdir=FreeBSD + ;; + irix5.*) + casdir=Linux +@@ -153,6 +153,20 @@ + esac + CAS_CPPFLAGS="$CAS_CPPFLAGS -I$CASROOT/inc" + ;; ++ freebsd*) ++ CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DOCC_VERSION_MINOR=$OCC_VERSION_MINOR -DOCC_VERSION_MAINTENANCE=$OCC_VERSION_MAINTENANCE -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -I$CASROOT/inc" ++ ++ OCC_VERSION_STRING="$OCC_VERSION_MAJOR.$OCC_VERSION_MINOR.$OCC_VERSION_MAINTENANCE" ++ case $OCC_VERSION_STRING in ++ [[0-5]].* | 6.0.* | 6.1.0) # catch versions < 6.1.1 ++ CAS_CPPFLAGS="$CAS_CPPFLAGS -DNO_CXX_EXCEPTION" ++ ;; ++ *) ++ CAS_CPPFLAGS="$CAS_CPPFLAGS -DOCC_CONVERT_SIGNALS" ++ ;; ++ esac ++ CAS_CPPFLAGS="$CAS_CPPFLAGS -I$CASROOT/inc" ++ ;; + osf*) + CAS_CPPFLAGS="-DOCC_VERSION_MAJOR=$OCC_VERSION_MAJOR -DOCC_VERSION_MINOR=$OCC_VERSION_MINOR -DOCC_VERSION_MAINTENANCE=$OCC_VERSION_MAINTENANCE -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -I$CASROOT/inc" + ;; |