1 dnl Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 dnl See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 dnl AC_ENABLE_RENUMBER AC_DISABLE_RENUMBER
22 dnl author Vincent BERGEAUD
25 AC_DEFUN([AC_ENABLE_RENUMBER], [dnl
26 define([AC_ENABLE_RENUMBER_DEFAULT], ifelse($1, yes, yes, no))dnl
27 AC_ARG_ENABLE(renumber,
28 changequote(<<, >>)dnl
29 << --enable-renumber[=PKGS] build with renumber tool [default=>>AC_ENABLE_RENUMBER_DEFAULT],
33 yes) enable_renumber=yes ;;
34 no) enable_renumber=no ;;
37 # Look at the argument we got. We use all the common list separators.
38 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
39 for pkg in $enableval; do
40 if test "X$pkg" = "X$p"; then
47 enable_renumber=AC_ENABLE_RENUMBER_DEFAULT)dnl
49 if test "X$enable_renumber" = "Xyes"; then
51 AC_SUBST(ENABLE_RENUMBER)
55 # AC_DISABLE_RENUMBER - set the default flag to --disable-renumber
56 AC_DEFUN([AC_DISABLE_RENUMBER], [AC_ENABLE_RENUMBER(no)])