Salome HOME
Ajout d'un engine Python pour ADAO
[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_MODULE_EFICAS
39 CHECK_SCIPY
40 CHECK_SPHINX
41
42 echo
43 echo
44 echo
45 echo "------------------------------------------------------------------------"
46 echo "$PACKAGE $VERSION"
47 echo "------------------------------------------------------------------------"
48 echo
49 echo "Configuration Options Summary:"
50 echo
51 echo "Mandatory products:"
52 echo "  Threads ................ : $threads_ok"
53 echo "  Python ................. : $python_ok"
54 echo "  Scipy .................. : $scipy_ok"
55 echo
56 echo "SALOME Integration mandatory products:"
57 echo "  OmniOrb (CORBA) ........ : $omniORB_ok"
58 echo "  OmniOrbpy (CORBA) ...... : $omniORBpy_ok"
59 echo "  SALOME KERNEL .......... : $Kernel_ok"
60 echo "  Eficas ................. : $eficas_ok"
61 echo "  Module Eficas .......... : $module_eficas_ok"
62 echo
63 echo "Optional products:"
64 echo "  Sphinx (for doc)........ : $threads_ok"
65 echo "------------------------------------------------------------------------"
66 echo
67
68 if test "x$threads_ok" = "xno"; then
69   AC_MSG_ERROR([Thread is required],1)
70 fi
71 if test "x$python_ok" = "xno"; then
72   AC_MSG_ERROR([Python is required],1)
73 fi
74 if test "x$scipy_ok" = "xno"; then
75   AC_MSG_ERROR([Scipy is required],1)
76 fi
77
78 salome_module_ok=yes
79
80 if test "x$omniORB_ok" = "xno"; then
81   AC_MSG_WARN([OmniOrb is required for SALOME Module part])
82   salome_module_ok=no
83 fi
84 if test "x$omniORBpy_ok" = "xno"; then
85   AC_MSG_WARN([OmniOrbpy is required for SALOME Module part])
86   salome_module_ok=no
87 fi
88 if test "x$Kernel_ok" = "xno"; then
89   AC_MSG_WARN([SALOME KERNEL is required for SALOME Module part - 
90                You could define a correct KERNEL_ROOT_DIR or use the --with-kernel= configure option])
91   salome_module_ok=no
92 fi
93 if test "x$eficas_ok" = "xno"; then
94   AC_MSG_WARN([Eficas is required for SALOME Module part])
95   salome_module_ok=no
96 fi
97 if test "x$module_eficas_ok" = "xno"; then
98   AC_MSG_WARN([Module Eficas is required for SALOME Module part])
99   salome_module_ok=no
100 fi
101
102 AM_CONDITIONAL(SALOME_MODULE, test x$salome_module_ok = xyes)
103
104 if test "x$sphinx_ok" = "xno"; then
105   AC_MSG_WARN([Sphinx is required for ADAO documentation])
106 fi
107
108 AC_CONFIG_FILES([
109         Makefile
110         idl/Makefile
111         resources/Makefile
112         src/Makefile
113         src/daComposant/Makefile
114         src/daEficas/Makefile
115         src/daEficas/prefs_ADAO.py
116         src/daSalome/Makefile
117         src/daSalome/daGUI/Makefile
118         src/daSalome/daGUI/daUtils/Makefile
119         src/daSalome/daGUI/daGuiImpl/Makefile
120         src/daSalome/daGUI/daEficasWrapper/Makefile
121         src/tests/Makefile
122         src/tests/daSalome/Makefile
123         src/tests/daSalome/test000_Blue_AnalysisFile.py
124         src/tests/daSalome/test017_3DVAR_par_fonction.py
125         src/tests/daSalome/test_aster_zzzz159a_init_parameters.py
126         src/tests/daSalome/test_aster_zzzz159a.py
127         src/tests/daSalome/test_aster_zzzz159a_LBFGSB.py
128         src/tests/daSalome/zzzz159a.export.esclave
129         bin/Makefile
130         bin/qtEficas_adao_study.py
131         doc/Makefile
132         ])
133 AC_OUTPUT