forked from resurrecting-open-source-projects/dcfldd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
65 lines (55 loc) · 2.01 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# configure.ac, was previously configure.in (before 2019)
#
# Copyright ?-2001 Jim Meyering <[email protected]>
# Copyright 2001-2006 Nicholas Harbour <[email protected]>
# Copyright 2019-2022 Joao Eriberto Mota Filho <[email protected]>
# Copyright 2022 David Polverari <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
AC_PREREQ([2.69])
AC_INIT([dcfldd],[1.9],[https://github.com/resurrecting-open-source-projects/dcfldd/issues])
AC_CONFIG_SRCDIR(src/dcfldd.c)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
AC_CANONICAL_HOST
AC_PROG_CC
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_EGREP
AC_C_CONST
AC_C_BIGENDIAN
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_ARG_ENABLE([runtime-endian-check],
AC_HELP_STRING([--disable-runtime-endian-check], [disable runtime checks for endianness])
)
AS_IF([test "x$enable_runtime_endian_check" != "xno"], [
dnl Do the stuff needed for enabling the feature
AC_DEFINE([RUNTIME_ENDIAN], 1, [Define whether to check for endianness during runtime])
])
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [enable debugging, default: no]),
[ case "${enableval}" in
yes|"") CFLAGS="$CFLAGS -DDEBUG" ;;
*) ;;
esac],
)
AC_CHECK_DECLS([strtol, strtoul, strtoumax, strndup])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT