-# Copyright (C) 2010 CEA/DEN, EDF R&D
-#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#
-# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-#
-
-AC_INIT([DATASSIM module], [0.1], [andre.ribes@edf.fr], [SalomeDATASSIM])
-AC_CONFIG_AUX_DIR(adm_local/unix/config_files)
-AC_CANONICAL_HOST
-AC_CANONICAL_TARGET
-AM_INIT_AUTOMAKE([-Wno-portability])
-
-XVERSION=`echo $VERSION | awk -F. '{printf("0x%02x%02x%02x",$1,$2,$3)}'`
-AC_SUBST(XVERSION)
-
-# set up MODULE_NAME variable for dynamic construction of directories (resources, etc.)
-MODULE_NAME=datassim
-AC_SUBST(MODULE_NAME)
-
+dnl Copyright (C) 2008-2020 EDF R&D
dnl
-dnl Initialize source and build root directories
+dnl This file is part of SALOME ADAO module
dnl
+dnl This library is free software; you can redistribute it and/or
+dnl modify it under the terms of the GNU Lesser General Public
+dnl License as published by the Free Software Foundation; either
+dnl version 2.1 of the License.
+dnl
+dnl This library is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+dnl Lesser General Public License for more details.
+dnl
+dnl You should have received a copy of the GNU Lesser General Public
+dnl License along with this library; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+dnl
+dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+dnl
+dnl Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
-ROOT_BUILDDIR=`pwd`
-ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
-cd $ROOT_SRCDIR
-ROOT_SRCDIR=`pwd`
-cd $ROOT_BUILDDIR
-
-AC_SUBST(ROOT_SRCDIR)
-AC_SUBST(ROOT_BUILDDIR)
-
-echo
-echo Source root directory : $ROOT_SRCDIR
-echo Build root directory : $ROOT_BUILDDIR
-echo
-echo
-
-AC_CHECK_PROG(SHELL,sh)
-AC_SUBST(SHELL)
-
-if test -z "$AR"; then
- AC_CHECK_PROGS(AR,ar xar,:,$PATH)
-fi
-AC_SUBST(AR)
-
-dnl Export the AR macro so that it will be placed in the libtool file
-dnl correctly.
-export AR
-
-echo
-echo ---------------------------------------------
-echo testing make
-echo ---------------------------------------------
-echo
-
-AC_PROG_MAKE_SET
-AC_PROG_INSTALL
-AC_LOCAL_INSTALL
-dnl
-dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
+AC_INIT(ADAO_SRC, [7.2.0])
+AC_CONFIG_AUX_DIR(adm_local)
+AM_INIT_AUTOMAKE
+AM_CONFIG_HEADER(adao_config.h)
+MODULE_NAME=adao
+AC_SUBST(MODULE_NAME)
AC_ENABLE_DEBUG(yes)
AC_DISABLE_PRODUCTION
-echo ---------------------------------------------
-echo testing libtool
-echo ---------------------------------------------
-
-dnl first, we set static to no!
-dnl if we want it, use --enable-static
-AC_ENABLE_STATIC(no)
-
-AC_LIBTOOL_DLOPEN
AC_PROG_LIBTOOL
+AC_PROG_CC
+AC_PROG_CXX
-dnl Fix up the INSTALL macro if it s a relative path. We want the
-dnl full-path to the binary instead.
-case "$INSTALL" in
- *install-sh*)
- INSTALL='\${KERNEL_ROOT_DIR}'/adm_local/unix/config_files/install-sh
- ;;
-esac
-
-echo
-echo ---------------------------------------------
-echo testing python
-echo ---------------------------------------------
-echo
-
-CHECK_PYTHON
-
-AM_PATH_PYTHON(2.4)
+CHECK_KERNEL
+CHECK_OMNIORB
+CHECK_EFICAS
+CHECK_MODULE_EFICAS
+CHECK_SCIPY
+CHECK_SPHINX
echo
-echo ---------------------------------------------
-echo testing QT
-echo ---------------------------------------------
echo
-
-CHECK_QT
-
echo
-echo ---------------------------------------------
-echo Testing html generators
-echo ---------------------------------------------
+echo "------------------------------------------------------------------------"
+echo "$PACKAGE $VERSION"
+echo "------------------------------------------------------------------------"
echo
-
-CHECK_HTML_GENERATORS
-
+echo "Configuration Options Summary:"
echo
-echo ---------------------------------------------
-echo Testing Kernel
-echo ---------------------------------------------
+echo "Mandatory products:"
+echo " Threads ................ : $threads_ok"
+echo " Python ................. : $python_ok"
+echo " Scipy .................. : $scipy_ok"
echo
-
-CHECK_KERNEL
-
+echo "SALOME Integration mandatory products:"
+echo " OmniOrb (CORBA) ........ : $omniORB_ok"
+echo " OmniOrbpy (CORBA) ...... : $omniORBpy_ok"
+echo " SALOME KERNEL .......... : $Kernel_ok"
+echo " Eficas ................. : $eficas_ok"
+echo " Module Eficas .......... : $module_eficas_ok"
echo
-echo ---------------------------------------------
-echo Testing GUI
-echo ---------------------------------------------
+echo "Optional products:"
+echo " Sphinx (for doc)........ : $threads_ok"
+echo "------------------------------------------------------------------------"
echo
-CHECK_SALOME_GUI
+if test "x$threads_ok" = "xno"; then
+ AC_MSG_ERROR([Thread is required],1)
+fi
+if test "x$python_ok" = "xno"; then
+ AC_MSG_ERROR([Python is required],1)
+fi
+if test "x$scipy_ok" = "xno"; then
+ AC_MSG_ERROR([Scipy is required],1)
+fi
-echo
-echo ---------------------------------------------
-echo Summary
-echo ---------------------------------------------
-echo
+salome_module_ok=yes
-echo Configure
-variables="python_ok qt_ok doxygen_ok Kernel_ok"
+if test "x$omniORB_ok" = "xno"; then
+ AC_MSG_WARN([OmniOrb is required for SALOME Module part])
+ salome_module_ok=no
+fi
+if test "x$omniORBpy_ok" = "xno"; then
+ AC_MSG_WARN([OmniOrbpy is required for SALOME Module part])
+ salome_module_ok=no
+fi
+if test "x$Kernel_ok" = "xno"; then
+ AC_MSG_WARN([SALOME KERNEL is required for SALOME Module part -
+ You could define a correct KERNEL_ROOT_DIR or use the --with-kernel= configure option])
+ salome_module_ok=no
+fi
+if test "x$eficas_ok" = "xno"; then
+ AC_MSG_WARN([Eficas is required for SALOME Module part])
+ salome_module_ok=no
+fi
+if test "x$module_eficas_ok" = "xno"; then
+ AC_MSG_WARN([Module Eficas is required for SALOME Module part])
+ salome_module_ok=no
+fi
-for var in $variables
-do
- printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
- eval echo \$$var
-done
+AM_CONDITIONAL(SALOME_MODULE, test x$salome_module_ok = xyes)
-dnl We don t need to say when we re entering directories if we re using
-dnl GNU make becuase make does it for us.
-if test "X$GMAKE" = "Xyes"; then
- AC_SUBST(SETX) SETX=":"
-else
- AC_SUBST(SETX) SETX="set -x"
+if test "x$sphinx_ok" = "xno"; then
+ AC_MSG_WARN([Sphinx is required for ADAO documentation])
fi
-echo
-echo ---------------------------------------------
-echo generating Makefiles and configure files
-echo ---------------------------------------------
-echo
-AC_OUTPUT_COMMANDS([ \
- chmod +x ./bin/*; \
-])
+if test -f a.out; then
+ rm a.out
+fi
-# This list is initiated using autoscan and must be updated manually
-# when adding a new file <filename>.in to manage. When you execute
-# autoscan, the Makefile list is generated in the output file configure.scan.
-# This could be helpfull to update de configuration.
-AC_OUTPUT([ \
- adm_local/Makefile \
- adm_local/unix/Makefile \
- src/Makefile \
- src/DATASSIM/Makefile \
- src/DATASSIMGUI/Makefile \
- resources/Makefile \
- Makefile \
-])
+AC_CONFIG_FILES([
+ Makefile
+ idl/Makefile
+ resources/Makefile
+ src/Makefile
+ src/daComposant/Makefile
+ src/daEficas/Makefile
+ src/daEficas/prefs_ADAO.py
+ src/daSalome/Makefile
+ src/daSalome/daGUI/Makefile
+ src/daSalome/daGUI/daUtils/Makefile
+ src/daSalome/daGUI/daGuiImpl/Makefile
+ src/daSalome/daGUI/daEficasWrapper/Makefile
+ examples/Makefile
+ examples/daSalome/Makefile
+ examples/daSalome/test003_ADAO_JDC_using_scripts.comm
+ examples/daSalome/test003_ADAO_JDC_using_scripts.py
+ examples/daSalome/test003_bis_ADAO_JDC_using_user_data_init.comm
+ examples/daSalome/test003_bis_ADAO_JDC_using_user_data_init.py
+ examples/daSalome/test004_ADAO_JDC_using_scripts.comm
+ examples/daSalome/test004_ADAO_JDC_using_scripts.py
+ examples/daSalome/test005_ADAO_Operators.comm
+ examples/daSalome/test005_ADAO_Operators.py
+ examples/daSalome/test006_Observers.comm
+ examples/daSalome/test006_Observers.py
+ examples/daSkeletons/Makefile
+ examples/daSkeletons/External_data_definition_by_scripts/Makefile
+ examples/daSkeletons/External_data_definition_by_scripts/ADAO_Case.comm
+ bin/Makefile
+ bin/qtEficas_adao_study.py
+ doc/Makefile
+ doc/en/Makefile
+ doc/fr/Makefile
+ test/Makefile
+ i18n/Makefile
+ ])
+AC_OUTPUT