1 # Copyright © 2015, 2019-2024 Nick Bowler
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17 AC_INIT([dxcommon], [0], [nbowler@draconx.ca])
18 AC_CONFIG_SRCDIR([m4/base.m4])
22 AM_INIT_AUTOMAKE([-Wall -Wno-portability foreign subdir-objects])
26 # To ensure automake --add-missing copies config.guess/config.sub
33 AC_USE_SYSTEM_EXTENSIONS
38 DX_CHECK_MBRTOWC_WCWIDTH
39 AM_CONDITIONAL([TEST_WCWIDTH], [test x"$dx_cv_have_mbrtowc_wcwidth" = x"yes"])
41 AC_CONFIG_TESTDIR([.], [t:$srcdir/t])
44 AM_CONDITIONAL([HAVE_STRUCT_OPTION],
45 [test x"$dx_cv_have_struct_option" = x"yes"])
47 AC_ARG_VAR([PERL], [command to execute perl programs])
48 AC_CHECK_PROGS([PERL], [perl], [false])
50 AC_CONFIG_FILES([Makefile atlocal])