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_INSTALLTEST],dnl 19[ 20AC_ARG_ENABLE([installtest], 21 AC_HELP_STRING([--enable-installtest], 22 [Install test programs. [default = disabled]]), 23 [med_installtest=$enableval], 24 [med_installtest=no]) 25if test "x$med_installtest" = "xyes" 26then 27 AM_CONDITIONAL([INSTALLTEST],[ true ]) 28 AC_MSG_NOTICE([Test programs will be installed.]) 29else 30 AM_CONDITIONAL([INSTALLTEST],[ false ]) 31 AC_MSG_WARN([Test programs will not be installed.]) 32fi 33]) 34 35