Salome HOME
mergefrom branch BR_V511_PR tag mergeto_trunk_03feb09
[modules/yacs.git] / src / wrappergen / src / HXX2SALOME_GENERIC_CLASS_NAME_SRC / adm_local / unix / config_files / check_corba.m4
1 dnl  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 dnl
3 dnl  This library is free software; you can redistribute it and/or
4 dnl  modify it under the terms of the GNU Lesser General Public
5 dnl  License as published by the Free Software Foundation; either
6 dnl  version 2.1 of the License.
7 dnl
8 dnl  This library is distributed in the hope that it will be useful,
9 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 dnl  Lesser General Public License for more details.
12 dnl
13 dnl  You should have received a copy of the GNU Lesser General Public
14 dnl  License along with this library; if not, write to the Free Software
15 dnl  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 dnl
17 dnl  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 dnl
19 AC_DEFUN([CHECK_CORBA],[
20
21 if test x"$DEFAULT_ORB" = x"omniORB"
22 then
23
24   #  Contient le nom de l'ORB
25   ORB=omniorb
26
27   AC_MSG_RESULT(default orb : omniORB)
28   IDL=$OMNIORB_IDL
29   AC_SUBST(IDL)
30
31   CORBA_ROOT=$OMNIORB_ROOT
32   CORBA_INCLUDES=$OMNIORB_INCLUDES
33   CORBA_CXXFLAGS=$OMNIORB_CXXFLAGS
34   CORBA_LIBS=$OMNIORB_LIBS
35   IDLCXXFLAGS=$OMNIORB_IDLCXXFLAGS
36   IDLPYFLAGS=$OMNIORB_IDLPYFLAGS
37
38   AC_SUBST(CORBA_ROOT)
39   AC_SUBST(CORBA_INCLUDES)
40   AC_SUBST(CORBA_CXXFLAGS)
41   AC_SUBST(CORBA_LIBS)
42   AC_SUBST(IDLCXXFLAGS)
43   AC_SUBST(IDLPYFLAGS)
44
45   IDL_CLN_H=$OMNIORB_IDL_CLN_H
46   IDL_CLN_CXX=$OMNIORB_IDL_CLN_CXX
47   IDL_CLN_OBJ=$OMNIORB_IDL_CLN_OBJ
48
49   AC_SUBST(IDL_CLN_H)
50   AC_SUBST(IDL_CLN_CXX)
51   AC_SUBST(IDL_CLN_OBJ)
52
53   IDL_SRV_H=$OMNIORB_IDL_SRV_H
54   IDL_SRV_CXX=$OMNIORB_IDL_SRV_CXX
55   IDL_SRV_OBJ=$OMNIORB_IDL_SRV_OBJ
56
57   AC_SUBST(IDL_SRV_H)
58   AC_SUBST(IDL_SRV_CXX)
59   AC_SUBST(IDL_SRV_OBJ)
60
61 else
62     AC_MSG_RESULT($DEFAULT_ORB unknown orb)
63
64 fi
65
66 ])dnl
67 dnl