inc_builddir=$(top_builddir)/include/salome
@SET_MAKE@
-SHELL=/bin/sh
+SHELL=@SHELL@
# header missing
LIBS=@LIBS@
-LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome -Xlinker -rpath-link -Xlinker -L$(top_builddir)/lib/salome
+LDFLAGS=@LDFLAGS@ -L$(top_builddir)/lib/salome
# add libstdc++ to link c++ library with libtool !
-LDFLAGS+= -lstdc++
+LDFLAGS+= @STDLIB@
+
+LIBSFORBIN=@LIBS@
+LDFLAGSFORBIN=@LDFLAGS@ -L$(top_builddir)/lib/salome
+LDFLAGSFORBIN+= @STDLIB@
CP=@CP@
OCC_INCLUDES=@CAS_CPPFLAGS@
OCC_CXXFLAGS=@CAS_CXXFLAGS@
-OCC_KERNEL_LIBS=@CAS_KERNEL@
-OCC_OCAF_LIBS=@CAS_OCAF@
-OCC_VIEWER_LIBS=@CAS_VIEWER@
-OCC_MODELER_LIBS=@CAS_MODELER@
-OCC_DATAEXCHANGE_LIBS=@CAS_DATAEXCHANGE@
-OCC_LIBS=@CAS_LDFLAGS@
+CAS_KERNEL=@CAS_KERNEL@
+CAS_OCAF=@CAS_OCAF@
+CAS_VIEWER=@CAS_VIEWER@
+CAS_MODELER=@CAS_MODELER@
+CAS_DATAEXCHANGE=@CAS_DATAEXCHANGE@
+CAS=@CAS_LDFLAGS@
# MPICH
-#!/bin/bash
+#!/bin/sh
#
# Tool for updating list of .in file for the SALOME project
find_in()
{
- local i
- local f=$2
+ i=0
+ f=$2
# if the first argument is not a directory, returns
# Common part of the configure.in file
#
chmod u+w configure.in.base
-if ! \cp -f configure.in.base configure.in_tmp1
+if \cp -f configure.in.base configure.in_tmp1
then
+ echo
+ chmod u+w configure.in_tmp1
+else
echo
echo "error : can't create files in" ${CONF_DIR}
echo "aborting ..."
fi
else
echo -n "Updating 'configure.in' file ... "
- if ! \cp configure.in configure.in_old >& /dev/null
+ if \cp configure.in configure.in_old >& /dev/null
then
echo
+ else
+ echo
echo
echo "Can't backup previous configure.in"
echo -n "Continue (you will not be able to revert) - (Y/N) ? "
echo
echo
+dnl Modification B. Secher portage sur osf CCRT
+AC_CHECK_PROG(SHELL,sh,,)
+AC_SUBST(SHELL)
+
+AUX_CONFIG_DIR=${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
+
if test -z "$AR"; then
AC_CHECK_PROGS(AR,ar xar,:,$PATH)
fi
dnl full-path to the binary instead.
case "$INSTALL" in
*install-sh*)
- INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
- ;;
+ case $host_os in
+ osf*)
+ INSTALL="${AUX_CONFIG_DIR}/install-sh -c"
+ ;;
+ *)
+ INSTALL='\${AUX_CONFIG_DIR}'/install-sh
+ ;;
+ esac
esac
+AC_CXX_USE_STD_IOSTREAM
+
+dnl
+dnl Well we use sstream which is not in gcc pre-2.95.3
+dnl We must test if it exists. If not, add it in include !
+dnl
+
AC_CXX_HAVE_SSTREAM
# create directory $(idldir) and copy idl files into it
install-idl: $(IDL_FILES)
$(INSTALL) -d $(idldir)
- cp -p $^ $(idldir)
+ cp -fp $^ $(idldir)
OMNIORB_IDLCXXFLAGS+=-I${MED_ROOT_DIR}/idl/salome
OMNIORB_IDLPYFLAGS+=-I${MED_ROOT_DIR}/idl/salome
#include "MESHClient.hxx"
#include <string>
#include <strstream>
-using namespace std;
#include "MEDMEM_Mesh_i.hxx"
#include "MEDMEM_Support_i.hxx"
#include "MEDMEM_FieldTemplate_i.hxx"
#include <iomanip>
#include <cmath>
+using namespace std;
using namespace MEDMEM;
typedef FIELD<double,MEDMEM::FullInterlace> TFieldDouble;
+from omniORB import CORBA
+
import salome
import SALOME
import SALOME_MED
+#CCRT :
+import os
+import Engines
+import LifeCycleCORBA
+
+host = os.getenv( 'HOST' )
+
+orb = CORBA.ORB_init([''], CORBA.ORB_ID)
+
+lcc = LifeCycleCORBA.LifeCycleCORBA(orb)
+#endCCRT
+
################ GET A MED FIELD FROM FILE pointe.med ###################
#
# This test program is based on the field named fieldcelldoublevector in
# Launch the Med Component and use it to load into memory the test field
print "Launch the Med Component: "
-med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
+#CCRTmed_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED")
+med_comp = lcc.FindOrLoadComponent("FactoryServer", "MED")
# Get a Corba field proxy on the distant field (located in the med_comp server).
try:
CPPFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${MED_ROOT_DIR}/include/salome $(MED2_INCLUDES) $(HDF5_INCLUDES)
# CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
-LDFLAGS+= -lSalomeContainer -lOpUtil -L${KERNEL_ROOT_DIR}/lib/salome $(MED2_LIBS) $(HDF5_LIBS) -L${MED_ROOT_DIR}/lib/salome -lMEDClientcmodule
+LDFLAGS+= -L${KERNEL_ROOT_DIR}/lib/salome -lSalomeContainer -lOpUtil $(MED2_LIBS) $(HDF5_LIBS) -L${MED_ROOT_DIR}/lib/salome -lMEDClientcmodule
# -lmedmem -lMEDWrapper_V2_1 -lMEDWrapperBase
MED.hh MEDSK.cc: MED.idl