diff options
| -rw-r--r-- | Makefile.am | 35 | ||||
| -rw-r--r-- | configure.ac | 24 |
2 files changed, 36 insertions, 23 deletions
diff --git a/Makefile.am b/Makefile.am index 1d45fd2..123e316 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -38,6 +38,8 @@ | |||
| 38 | SUBDIRS = | 38 | SUBDIRS = |
| 39 | DIST_SUBDIRS = | 39 | DIST_SUBDIRS = |
| 40 | 40 | ||
| 41 | # GNU make options | ||
| 42 | V = 0 | ||
| 41 | 43 | ||
| 42 | # Global flags | 44 | # Global flags |
| 43 | AM_LIBS = | 45 | AM_LIBS = |
| @@ -53,14 +55,25 @@ AM_CPPFLAGS = -O2 \ | |||
| 53 | ACLOCAL_AMFLAGS = -I m4 -W all -W error | 55 | ACLOCAL_AMFLAGS = -I m4 -W all -W error |
| 54 | DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@ | 56 | DEFS = -DLOCALEDIR="\"$(localedir)\"" @DEFS@ |
| 55 | 57 | ||
| 58 | # custom directories | ||
| 56 | 59 | ||
| 57 | # automake targets | 60 | # automake targets |
| 61 | check_PROGRAMS = | ||
| 58 | bin_PROGRAMS = | 62 | bin_PROGRAMS = |
| 63 | bin_SCRIPTS = | ||
| 59 | include_HEADERS = | 64 | include_HEADERS = |
| 60 | lib_LTLIBRARIES = | 65 | lib_LTLIBRARIES = |
| 66 | lib_LIBRARIES = | ||
| 67 | sbin_SCRIPTS = | ||
| 68 | sbin_PROGRAMS = | ||
| 69 | noinst_PROGRAMS = | ||
| 70 | noinst_HEADERS = src/common.h \ | ||
| 71 | include/bindle_prefix.h | ||
| 72 | noinst_LTLIBRARIES = | ||
| 73 | noinst_LIBRARIES = lib/libbindle.a | ||
| 61 | noinst_PROGRAMS = | 74 | noinst_PROGRAMS = |
| 62 | noinst_HEADERS = src/common.h | ||
| 63 | man_MANS = | 75 | man_MANS = |
| 76 | EXTRA_PROGRAMS = | ||
| 64 | EXTRA = src/bindump \ | 77 | EXTRA = src/bindump \ |
| 65 | src/bitcopy \ | 78 | src/bitcopy \ |
| 66 | src/bitops \ | 79 | src/bitops \ |
| @@ -78,8 +91,8 @@ EXTRA = src/bindump \ | |||
| 78 | 91 | ||
| 79 | # lists | 92 | # lists |
| 80 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = | 93 | AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = |
| 81 | BUILT_SOURCES = | 94 | BUILT_SOURCES = include/bindle_prefix.h |
| 82 | TESTS = | 95 | TESTS = $(LIBBINDLE_TESTS) |
| 83 | XFAIL_TESTS = | 96 | XFAIL_TESTS = |
| 84 | EXTRA_MANS = | 97 | EXTRA_MANS = |
| 85 | EXTRA_DIST = autogen.sh \ | 98 | EXTRA_DIST = autogen.sh \ |
| @@ -103,13 +116,13 @@ EXTRA_DIST = autogen.sh \ | |||
| 103 | $(srcdir)/examples/example.txt \ | 116 | $(srcdir)/examples/example.txt \ |
| 104 | $(srcdir)/build-aux/Makefile-xcode \ | 117 | $(srcdir)/build-aux/Makefile-xcode \ |
| 105 | $(srcdir)/dmstools.xcodeproj/project.pbxproj | 118 | $(srcdir)/dmstools.xcodeproj/project.pbxproj |
| 106 | CLEANFILES = \ | 119 | CLEANFILES = $(builddir)/a.out $(srcdir)/a.out \ |
| 107 | $(builddir)/a.out $(srcdir)/a.out \ | ||
| 108 | $(builddir)/*/a.out $(srcdir)/*/a.out \ | 120 | $(builddir)/*/a.out $(srcdir)/*/a.out \ |
| 109 | autoscan.log $(srcdir)/autoscan.log \ | 121 | autoscan.log $(srcdir)/autoscan.log \ |
| 110 | config.h.in~ $(srcdir)/config.h.in~ \ | 122 | config.h.in~ $(srcdir)/config.h.in~ \ |
| 111 | configure.scan $(srcdir)/configure.scan \ | 123 | configure.scan $(srcdir)/configure.scan \ |
| 112 | $(man_MANS) \ | 124 | $(man_MANS) \ |
| 125 | include/bindle_prefix.h \ | ||
| 113 | @PACKAGE_TARNAME@-*.tar.* \ | 126 | @PACKAGE_TARNAME@-*.tar.* \ |
| 114 | @PACKAGE_TARNAME@-*.zip | 127 | @PACKAGE_TARNAME@-*.zip |
| 115 | DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \ | 128 | DISTCHECK_CONFIGURE_FLAGS = --enable-strictwarnings \ |
| @@ -232,12 +245,12 @@ endif | |||
| 232 | 245 | ||
| 233 | # Makefile includes | 246 | # Makefile includes |
| 234 | GIT_PACKAGE_VERSION_DIR=include | 247 | GIT_PACKAGE_VERSION_DIR=include |
| 235 | SUBST_EXPRESSIONS = \ | 248 | SUBST_EXPRESSIONS = -e 's,[@]RELEASE_MONTH[@],@RELEASE_MONTH@,g' |
| 236 | -e 's,[@]RELEASE_MONTH[@],@RELEASE_MONTH@,g' | 249 | include contrib/bindletools/build-aux/makefile-subst.am |
| 237 | include $(srcdir)/contrib/bindletools/build-aux/makefile-bindle.am | 250 | include contrib/bindletools/build-aux/makefile-version.am |
| 238 | include $(srcdir)/contrib/bindletools/build-aux/makefile-autotools.am | 251 | include contrib/bindletools/build-aux/makefile-libbindle.am |
| 239 | include $(srcdir)/contrib/bindletools/build-aux/makefile-subst.am | 252 | include contrib/bindletools/build-aux/makefile-bindle.am |
| 240 | include $(srcdir)/contrib/bindletools/build-aux/makefile-version.am | 253 | include contrib/bindletools/build-aux/makefile-autotools.am |
| 241 | 254 | ||
| 242 | 255 | ||
| 243 | # custom targets | 256 | # custom targets |
diff --git a/configure.ac b/configure.ac index 6772979..8c53980 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # | 1 | # |
| 2 | # DMS Tools and Utilities | 2 | # DMS Tools and Utilities |
| 3 | # Copyright (C) 2008, 2009, 2010, 2021 David M. Syzdek <david@syzdek.net> | 3 | # Copyright (C) 2008, 2009, 2010, 2021, 2022 David M. Syzdek <david@syzdek.net> |
| 4 | # | 4 | # |
| 5 | # @SYZDEK_LICENSE_HEADER_START@ | 5 | # @SYZDEK_LICENSE_HEADER_START@ |
| 6 | # | 6 | # |
| @@ -36,16 +36,15 @@ | |||
| 36 | 36 | ||
| 37 | AC_PREREQ(2.65) | 37 | AC_PREREQ(2.65) |
| 38 | 38 | ||
| 39 | AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013, 2021 David M. Syzdek <david@syzdek.net>.]) | 39 | AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013, 2021, 2022 David M. Syzdek <david@syzdek.net>.]) |
| 40 | AC_REVISION(0.2) | 40 | AC_REVISION(0.2) |
| 41 | AC_INIT([DMS Tools and Utilities],[1.6],[david@syzdek.net],[dmstools]) | 41 | AC_INIT([DMS Tools and Utilities],[1.6],[david@syzdek.net],[dmstools]) |
| 42 | 42 | ||
| 43 | AC_SUBST([RELEASE_MONTH], ["October 2021"]) | 43 | AC_SUBST([RELEASE_MONTH], ["October 2021"]) |
| 44 | AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013, 2021 David M. Syzdek."]) | 44 | AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013, 2021, 2022 David M. Syzdek."]) |
| 45 | AC_DEFINE_UNQUOTED(PACKAGE_COPYRIGHT, ["$PACKAGE_COPYRIGHT"], ["Copyright info"]) | 45 | AC_DEFINE_UNQUOTED(PACKAGE_COPYRIGHT, ["$PACKAGE_COPYRIGHT"], ["Copyright info"]) |
| 46 | 46 | ||
| 47 | 47 | # directory locations | |
| 48 | # autoconf options | ||
| 49 | AC_CONFIG_AUX_DIR([build-aux]) | 48 | AC_CONFIG_AUX_DIR([build-aux]) |
| 50 | AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) | 49 | AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) |
| 51 | #AC_CONFIG_LIBOBJ_DIR(compat) | 50 | #AC_CONFIG_LIBOBJ_DIR(compat) |
| @@ -69,6 +68,8 @@ AC_PROG_INSTALL | |||
| 69 | AC_PROG_MAKE_SET | 68 | AC_PROG_MAKE_SET |
| 70 | AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX | 69 | AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX |
| 71 | AC_C_BIGENDIAN | 70 | AC_C_BIGENDIAN |
| 71 | AC_C_INLINE | ||
| 72 | AC_C_RESTRICT | ||
| 72 | 73 | ||
| 73 | # Version Info: | 74 | # Version Info: |
| 74 | # Current -- the current version number of this API | 75 | # Current -- the current version number of this API |
| @@ -155,7 +156,9 @@ AC_CHECK_HEADERS([wchar.h], [], [AC_MSG_ERROR([missing required headers])]) | |||
| 155 | AC_CHECK_HEADERS([wctype.h], [], [AC_MSG_ERROR([missing required headers])]) | 156 | AC_CHECK_HEADERS([wctype.h], [], [AC_MSG_ERROR([missing required headers])]) |
| 156 | 157 | ||
| 157 | # check types | 158 | # check types |
| 158 | AC_CHECK_TYPES([ptrdiff_t], [], [AC_MSG_ERROR([missing required data type])]) | 159 | AC_CHECK_TYPES([ptrdiff_t], [], [AC_MSG_ERROR([missing required data type])]) |
| 160 | AC_CHECK_TYPES([atomic_intmax_t], [], [AC_MSG_ERROR([missing required data type])], [#include <stdatomic.h>]) | ||
| 161 | AC_CHECK_TYPES([atomic_uintmax_t], [], [AC_MSG_ERROR([missing required data type])], [#include <stdatomic.h>]) | ||
| 159 | 162 | ||
| 160 | # Symbol checks | 163 | # Symbol checks |
| 161 | AC_CHECK_DECLS([environ]) | 164 | AC_CHECK_DECLS([environ]) |
| @@ -164,14 +167,10 @@ AC_CHECK_LIB([dl], [dlclose], [], [AC_MSG_ERROR([missing required library | |||
| 164 | AC_CHECK_LIB([dl], [dlerror], [], [AC_MSG_ERROR([missing required library -ldl])]) | 167 | AC_CHECK_LIB([dl], [dlerror], [], [AC_MSG_ERROR([missing required library -ldl])]) |
| 165 | AC_CHECK_LIB([dl], [dlopen], [], [AC_MSG_ERROR([missing required library -ldl])]) | 168 | AC_CHECK_LIB([dl], [dlopen], [], [AC_MSG_ERROR([missing required library -ldl])]) |
| 166 | AC_CHECK_LIB([dl], [dlsym], [], [AC_MSG_ERROR([missing required library -ldl])]) | 169 | AC_CHECK_LIB([dl], [dlsym], [], [AC_MSG_ERROR([missing required library -ldl])]) |
| 167 | 170 | AC_CHECK_LIB([users],[noobs], [], [AC_MSG_NOTICE([No noobs found, disabling hand_holding().])]) | |
| 168 | |||
| 169 | AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])]) | ||
| 170 | |||
| 171 | 171 | ||
| 172 | # GNU Libtool Support | 172 | # GNU Libtool Support |
| 173 | LT_INIT(dlopen disable-fast-install win32-dll) | 173 | LT_INIT(dlopen disable-fast-install) |
| 174 | |||
| 175 | 174 | ||
| 176 | # initiates bindle tools macros | 175 | # initiates bindle tools macros |
| 177 | AC_BINDLE(contrib/bindletools) | 176 | AC_BINDLE(contrib/bindletools) |
| @@ -181,6 +180,7 @@ AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version | |||
| 181 | 180 | ||
| 182 | # custom configure options | 181 | # custom configure options |
| 183 | AC_BINDLE_ENABLE_WARNINGS([-Wno-unknown-pragmas], []) | 182 | AC_BINDLE_ENABLE_WARNINGS([-Wno-unknown-pragmas], []) |
| 183 | AC_BINDLE_LIBBINDLE([dmstools_]) | ||
| 184 | AC_BINDLE_WITH_PERL | 184 | AC_BINDLE_WITH_PERL |
| 185 | AC_DMS_REGEX | 185 | AC_DMS_REGEX |
| 186 | AC_DMS_TOOL_ALL | 186 | AC_DMS_TOOL_ALL |
