1 # geda-gattrib.m4 -*-Autoconf-*-
4 dnl Check for dependencies for gattrib and optionally disable it.
5 dnl Copyright (C) 2009 Dan McMahill <dan@mcmahill.net>
7 dnl This program is free software; you can redistribute it and/or modify
8 dnl it under the terms of the GNU General Public License as published by
9 dnl the Free Software Foundation; either version 2 of the License, or
10 dnl (at your option) any later version.
12 dnl This program is distributed in the hope that it will be useful,
13 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
14 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 dnl GNU General Public License for more details.
17 dnl You should have received a copy of the GNU General Public License
18 dnl along with this program; if not, write to the Free Software
19 dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 # Check if gattrib should be disabled
22 AC_DEFUN([AX_OPTION_GATTRIB],
26 AC_MSG_CHECKING([whether to enable gattrib])
27 AC_ARG_ENABLE([gattrib],
28 [AS_HELP_STRING([--disable-gattrib], [turn off building and installing gattrib])],
29 [], [enable_gattrib="yes"])
31 if test "X$enable_gattrib" = "Xyes"; then
37 AM_CONDITIONAL([ENABLE_GATTRIB], test "X$enable_gattrib" = "Xyes")
39 ])dnl AX_OPTION_GATTRIB