1dnl This file is part of MED. 2dnl 3dnl COPYRIGHT (C) 1999 - 2019 EDF R&D, CEA/DEN 4dnl MED is free software: you can redistribute it and/or modify 5dnl it under the terms of the GNU Lesser General Public License as published by 6dnl the Free Software Foundation, either version 3 of the License, or 7dnl (at your option) any later version. 8dnl 9dnl MED is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12dnl GNU Lesser General Public License for more details. 13dnl 14dnl You should have received a copy of the GNU Lesser General Public License 15dnl along with MED. If not, see <http://www.gnu.org/licenses/>. 16dnl 17 18AC_DEFUN([MED_ENABLE_API23],dnl 19[ 20 21AC_ARG_ENABLE([api23], 22 AC_HELP_STRING([--enable-api23], 23 [Provide the complete 2.3.6 MED API. [default = enabled]]), 24 [med_api23=$enableval], 25 [med_api23=yes]) 26if test "x$med_api23" = "xyes" 27then 28 MED_API_23="-DMED_API_23=1" 29 AC_DEFINE([MED_API_23],[1],[Define to 1 if the complete 2.3.6 API is provided.]) 30 AC_MSG_NOTICE([The complete 2.3.6 API is provided.]) 31else 32dnl TODO: Tester l'utilisation d'un compilateur GNU GCC > 4.0 33 MED_API_23="-DMED_API_23=0" 34 AC_DEFINE([MED_API_23],[0],[Define to 1 if the complete 2.3.6 API is provided.]) 35 AC_MSG_WARN([The complete 2.3.6 API is not provided.]) 36fi 37 38AC_SUBST([MED_API_23]) 39AM_CONDITIONAL([ENABLE_API23],[test "x$med_api23" = "xyes" ]) 40 41]) 42 43