Salome HOME
Ajout du premier test avec Aster
[modules/adao.git] / configure.ac
1 dnl  Copyright (C) 2010  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 dnl  Author: AndrĂ© Ribes, andre.ribes@edf.fr, EDF R&D
20
21 AC_INIT(adao, 0.1)
22 AC_CONFIG_AUX_DIR(adm_local)
23 AM_INIT_AUTOMAKE
24 AM_CONFIG_HEADER(adao_config.h)
25 MODULE_NAME=adao
26 AC_SUBST(MODULE_NAME)
27
28 AC_ENABLE_DEBUG(yes)
29 AC_DISABLE_PRODUCTION
30
31 AC_PROG_LIBTOOL
32 AC_PROG_CC
33 AC_PROG_CXX
34
35 CHECK_KERNEL
36 CHECK_OMNIORB
37 CHECK_EFICAS
38 CHECK_SCIPY
39 CHECK_SPHINX
40
41 echo
42 echo
43 echo
44 echo "------------------------------------------------------------------------"
45 echo "$PACKAGE $VERSION"
46 echo "------------------------------------------------------------------------"
47 echo
48 echo "Configuration Options Summary:"
49 echo
50 echo "Mandatory products:"
51 echo "  Threads ................ : $threads_ok"
52 echo "  Python ................. : $python_ok"
53 echo "  Scipy .................. : $scipy_ok"
54 echo
55 echo "SALOME Integration mandatory products:"
56 echo "  OmniOrb (CORBA) ........ : $omniORB_ok"
57 echo "  OmniOrbpy (CORBA) ...... : $omniORBpy_ok"
58 echo "  SALOME KERNEL .......... : $Kernel_ok"
59 echo "  Eficas ................. : $eficas_ok"
60 echo
61 echo "Optional products:"
62 echo "  Sphinx (for doc)........ : $threads_ok"
63 echo "------------------------------------------------------------------------"
64 echo
65
66 if test "x$threads_ok" = "xno"; then
67   AC_MSG_ERROR([Thread is required],1)
68 fi
69 if test "x$python_ok" = "xno"; then
70   AC_MSG_ERROR([Python is required],1)
71 fi
72 if test "x$scipy_ok" = "xno"; then
73   AC_MSG_ERROR([Scipy is required],1)
74 fi
75
76 salome_module_ok=yes
77
78 if test "x$omniORB_ok" = "xno"; then
79   AC_MSG_WARN([OmniOrb is required for SALOME Module part])
80   salome_module_ok=no
81 fi
82 if test "x$omniORBpy_ok" = "xno"; then
83   AC_MSG_WARN([OmniOrbpy is required for SALOME Module part])
84   salome_module_ok=no
85 fi
86 if test "x$Kernel_ok" = "xno"; then
87   AC_MSG_WARN([SALOME KERNEL is required for SALOME Module part - 
88                You could define a correct KERNEL_ROOT_DIR or use the --with-kernel= configure option])
89   salome_module_ok=no
90 fi
91 if test "x$eficas_ok" = "xno"; then
92   AC_MSG_WARN([Eficas is required for SALOME Module part])
93   salome_module_ok=no
94 fi
95
96 AM_CONDITIONAL(SALOME_MODULE, test x$salome_module_ok = xyes)
97
98 if test "x$sphinx_ok" = "xno"; then
99   AC_MSG_WARN([Sphinx is required for ADAO documentation])
100 fi
101
102 AC_CONFIG_FILES([
103         Makefile
104         idl/Makefile
105         resources/Makefile
106         src/Makefile
107         src/daComposant/Makefile
108         src/daEficas/Makefile
109         src/daEficas/prefs_ADAO.py
110         src/daSalome/Makefile
111         src/daSalome/daGUI/Makefile
112         src/daSalome/daGUI/daGuiImpl/Makefile
113         src/daSalome/daGUI/daEficasWrapper/Makefile
114         src/daSalome/daGUI/daEficasWrapper/eficasWrapper.py
115         src/tests/Makefile
116         src/tests/daSalome/Makefile
117         src/tests/daSalome/test000_Blue_AnalysisFile.py
118         src/tests/daSalome/test017_3DVAR_par_fonction.py
119         src/tests/daSalome/test_aster_zzzz159a_init_parameters.py
120         src/tests/daSalome/test_aster_zzzz159a.py
121         src/tests/daSalome/zzzz159a.export.esclave
122         src/tests/daComposant/Makefile
123         src/tests/daComposant/Plateforme/Makefile
124         bin/Makefile
125         bin/qtEficas_adao_study.py
126         doc/Makefile
127         ])
128 AC_OUTPUT