aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2021-10-04 11:01:14 -0800
committerDavid M. Syzdek <david@syzdek.net>2021-10-04 11:01:14 -0800
commit7bd4188297bf78545582d5e107447b1c35f3cbc9 (patch)
tree75f82d09667086ff5bdff9d3e87683d0b1874953
parenta5524500cde6944b2d6e4b78e014042c71cc4a50 (diff)
downloaddmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.tar.gz
dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.tar.bz2
dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.tar.xz
dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.zip
autotools: updating configure checks and order
-rw-r--r--configure.ac48
1 files changed, 27 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac
index 89ce7c0..d077e78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@
34# configure.in - automate compiling on a unix platform 34# configure.in - automate compiling on a unix platform
35# 35#
36 36
37AC_PREREQ(2.61) 37AC_PREREQ(2.65)
38 38
39AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013 David M. Syzdek <david@syzdek.net>.]) 39AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013 David M. Syzdek <david@syzdek.net>.])
40AC_REVISION($Revision: 1.13 $) 40AC_REVISION($Revision: 1.13 $)
@@ -44,17 +44,11 @@ AC_SUBST([RELEASE_MONTH], ["July 2014"])
44AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013 David M. Syzdek."]) 44AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013 David M. Syzdek."])
45AC_DEFINE_UNQUOTED(PACKAGE_COPYRIGHT, ["$PACKAGE_COPYRIGHT"], ["Copyright info"]) 45AC_DEFINE_UNQUOTED(PACKAGE_COPYRIGHT, ["$PACKAGE_COPYRIGHT"], ["Copyright info"])
46 46
47# Version Info:
48# Current -- the current version number of this API
49# Revision -- the revision of the implementation of the API version
50# Age -- How many seqential past API versions is supported by
51# this implementation
52# Format => Current:Revision:Age
53AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
54 47
55# autoconf options 48# autoconf options
56AC_CONFIG_AUX_DIR([build-aux]) 49AC_CONFIG_AUX_DIR([build-aux])
57AC_CONFIG_SRCDIR([build-aux/dmstools.tags]) 50AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt])
51#AC_CONFIG_LIBOBJ_DIR(compat)
58AC_CONFIG_HEADERS([config.h]) 52AC_CONFIG_HEADERS([config.h])
59AC_CONFIG_MACRO_DIR([m4]) 53AC_CONFIG_MACRO_DIR([m4])
60 54
@@ -64,17 +58,28 @@ AC_CANONICAL_HOST
64AC_CANONICAL_TARGET 58AC_CANONICAL_TARGET
65 59
66# configures for automake 60# configures for automake
67AM_INIT_AUTOMAKE(gnu std-options subdir-objects color-tests) 61AM_INIT_AUTOMAKE(gnu std-options subdir-objects foreign)
68 62
69# Compilers 63# Compilers
70AC_PROG_CC 64AC_PROG_CC
71#AC_PROG_OBJC 65#AC_PROG_OBJC
72AC_PROG_CXX 66#AC_PROG_CXX
73AM_PROG_CC_C_O 67AM_PROG_CC_C_O
74AC_PROG_INSTALL 68AC_PROG_INSTALL
75#AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX 69AC_PROG_MAKE_SET
70AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX
76AC_C_BIGENDIAN 71AC_C_BIGENDIAN
77 72
73# Version Info:
74# Current -- the current version number of this API
75# Revision -- the revision of the implementation of the API version
76# Age -- How many seqential past API versions is supported by
77# this implementation
78# Format => Current:Revision:Age
79# Convenience macro:
80# AC_BINDLE_LIBTOOL_VERSION_INFO(current, revision, age)
81AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
82
78# binary locations 83# binary locations
79AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) 84AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH])
80AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])]) 85AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])])
@@ -87,19 +92,16 @@ AC_CHECK_TOOLS(STRIP, strip gstrip, [AC_MSG_ERROR([missing binutil "strip"])
87AC_PROG_AWK 92AC_PROG_AWK
88AC_PROG_EGREP 93AC_PROG_EGREP
89AC_PROG_FGREP 94AC_PROG_FGREP
90AM_PROG_LEX 95#AM_PROG_LEX
91AC_PROG_LN_S 96AC_PROG_LN_S
92 97AC_PROG_CPP
93# GNU Libtool Support
94LT_INIT(dlopen disable-fast-install win32-dll)
95 98
96# check for common functions 99# check for common functions
97AC_FUNC_FORK 100AC_FUNC_FORK
98AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
99AC_FUNC_MALLOC 101AC_FUNC_MALLOC
100AC_FUNC_OBSTACK
101AC_FUNC_REALLOC 102AC_FUNC_REALLOC
102AC_FUNC_STRERROR_R 103AC_FUNC_STRERROR_R
104AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
103 105
104# Type checks 106# Type checks
105AC_TYPE_INT8_T 107AC_TYPE_INT8_T
@@ -137,7 +139,6 @@ AC_CHECK_HEADERS([arpa/inet.h], [], [AC_MSG_ERROR([missing required headers])])
137AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])]) 139AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])])
138AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])]) 140AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])])
139AC_CHECK_HEADERS([inttypes.h], [], [AC_MSG_ERROR([missing required headers])]) 141AC_CHECK_HEADERS([inttypes.h], [], [AC_MSG_ERROR([missing required headers])])
140AC_CHECK_HEADERS([libintl.h], [], [AC_MSG_ERROR([missing required headers])])
141AC_CHECK_HEADERS([locale.h], [], [AC_MSG_ERROR([missing required headers])]) 142AC_CHECK_HEADERS([locale.h], [], [AC_MSG_ERROR([missing required headers])])
142AC_CHECK_HEADERS([netdb.h], [], [AC_MSG_ERROR([missing required headers])]) 143AC_CHECK_HEADERS([netdb.h], [], [AC_MSG_ERROR([missing required headers])])
143AC_CHECK_HEADERS([sgtty.h], [], [AC_MSG_ERROR([missing required headers])]) 144AC_CHECK_HEADERS([sgtty.h], [], [AC_MSG_ERROR([missing required headers])])
@@ -166,6 +167,11 @@ AC_CHECK_LIB([dl], [dlsym], [], [AC_MSG_ERROR([missing required library
166 167
167AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])]) 168AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])])
168 169
170
171# GNU Libtool Support
172LT_INIT(dlopen disable-fast-install win32-dll)
173
174
169# initiates bindle tools macros 175# initiates bindle tools macros
170AC_BINDLE(contrib/bindletools) 176AC_BINDLE(contrib/bindletools)
171 177
@@ -173,7 +179,7 @@ AC_BINDLE(contrib/bindletools)
173AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh]) 179AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh])
174 180
175# custom configure options 181# custom configure options
176AC_BINDLE_ENABLE_WARNINGS 182AC_BINDLE_ENABLE_WARNINGS([-Wno-unknown-pragmas], [])
177AC_BINDLE_WITH_PERL 183AC_BINDLE_WITH_PERL
178AC_DMS_REGEX 184AC_DMS_REGEX
179AC_DMS_SIGNAL 185AC_DMS_SIGNAL