diff options
| author | David M. Syzdek <david@syzdek.net> | 2021-10-04 11:01:14 -0800 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2021-10-04 11:01:14 -0800 |
| commit | 7bd4188297bf78545582d5e107447b1c35f3cbc9 (patch) | |
| tree | 75f82d09667086ff5bdff9d3e87683d0b1874953 | |
| parent | a5524500cde6944b2d6e4b78e014042c71cc4a50 (diff) | |
| download | dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.tar.gz dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.tar.bz2 dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.tar.xz dmstools-7bd4188297bf78545582d5e107447b1c35f3cbc9.zip | |
autotools: updating configure checks and order
| -rw-r--r-- | configure.ac | 48 |
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 | ||
| 37 | AC_PREREQ(2.61) | 37 | AC_PREREQ(2.65) |
| 38 | 38 | ||
| 39 | AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013 David M. Syzdek <david@syzdek.net>.]) | 39 | AC_COPYRIGHT([Copyright (c) 2008, 2009, 2010, 2011, 2013 David M. Syzdek <david@syzdek.net>.]) |
| 40 | AC_REVISION($Revision: 1.13 $) | 40 | AC_REVISION($Revision: 1.13 $) |
| @@ -44,17 +44,11 @@ AC_SUBST([RELEASE_MONTH], ["July 2014"]) | |||
| 44 | AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013 David M. Syzdek."]) | 44 | AC_SUBST([PACKAGE_COPYRIGHT], ["Copyright (C) 2008, 2009, 2010, 2011, 2013 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 | # 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 | ||
| 53 | AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0) | ||
| 54 | 47 | ||
| 55 | # autoconf options | 48 | # autoconf options |
| 56 | AC_CONFIG_AUX_DIR([build-aux]) | 49 | AC_CONFIG_AUX_DIR([build-aux]) |
| 57 | AC_CONFIG_SRCDIR([build-aux/dmstools.tags]) | 50 | AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) |
| 51 | #AC_CONFIG_LIBOBJ_DIR(compat) | ||
| 58 | AC_CONFIG_HEADERS([config.h]) | 52 | AC_CONFIG_HEADERS([config.h]) |
| 59 | AC_CONFIG_MACRO_DIR([m4]) | 53 | AC_CONFIG_MACRO_DIR([m4]) |
| 60 | 54 | ||
| @@ -64,17 +58,28 @@ AC_CANONICAL_HOST | |||
| 64 | AC_CANONICAL_TARGET | 58 | AC_CANONICAL_TARGET |
| 65 | 59 | ||
| 66 | # configures for automake | 60 | # configures for automake |
| 67 | AM_INIT_AUTOMAKE(gnu std-options subdir-objects color-tests) | 61 | AM_INIT_AUTOMAKE(gnu std-options subdir-objects foreign) |
| 68 | 62 | ||
| 69 | # Compilers | 63 | # Compilers |
| 70 | AC_PROG_CC | 64 | AC_PROG_CC |
| 71 | #AC_PROG_OBJC | 65 | #AC_PROG_OBJC |
| 72 | AC_PROG_CXX | 66 | #AC_PROG_CXX |
| 73 | AM_PROG_CC_C_O | 67 | AM_PROG_CC_C_O |
| 74 | AC_PROG_INSTALL | 68 | AC_PROG_INSTALL |
| 75 | #AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX | 69 | AC_PROG_MAKE_SET |
| 70 | AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX | ||
| 76 | AC_C_BIGENDIAN | 71 | AC_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) | ||
| 81 | AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0) | ||
| 82 | |||
| 78 | # binary locations | 83 | # binary locations |
| 79 | AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) | 84 | AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) |
| 80 | AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])]) | 85 | AC_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"]) | |||
| 87 | AC_PROG_AWK | 92 | AC_PROG_AWK |
| 88 | AC_PROG_EGREP | 93 | AC_PROG_EGREP |
| 89 | AC_PROG_FGREP | 94 | AC_PROG_FGREP |
| 90 | AM_PROG_LEX | 95 | #AM_PROG_LEX |
| 91 | AC_PROG_LN_S | 96 | AC_PROG_LN_S |
| 92 | 97 | AC_PROG_CPP | |
| 93 | # GNU Libtool Support | ||
| 94 | LT_INIT(dlopen disable-fast-install win32-dll) | ||
| 95 | 98 | ||
| 96 | # check for common functions | 99 | # check for common functions |
| 97 | AC_FUNC_FORK | 100 | AC_FUNC_FORK |
| 98 | AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | ||
| 99 | AC_FUNC_MALLOC | 101 | AC_FUNC_MALLOC |
| 100 | AC_FUNC_OBSTACK | ||
| 101 | AC_FUNC_REALLOC | 102 | AC_FUNC_REALLOC |
| 102 | AC_FUNC_STRERROR_R | 103 | AC_FUNC_STRERROR_R |
| 104 | AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK | ||
| 103 | 105 | ||
| 104 | # Type checks | 106 | # Type checks |
| 105 | AC_TYPE_INT8_T | 107 | AC_TYPE_INT8_T |
| @@ -137,7 +139,6 @@ AC_CHECK_HEADERS([arpa/inet.h], [], [AC_MSG_ERROR([missing required headers])]) | |||
| 137 | AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])]) | 139 | AC_CHECK_HEADERS([fcntl.h], [], [AC_MSG_ERROR([missing required headers])]) |
| 138 | AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])]) | 140 | AC_CHECK_HEADERS([getopt.h], [], [AC_MSG_ERROR([missing required headers])]) |
| 139 | AC_CHECK_HEADERS([inttypes.h], [], [AC_MSG_ERROR([missing required headers])]) | 141 | AC_CHECK_HEADERS([inttypes.h], [], [AC_MSG_ERROR([missing required headers])]) |
| 140 | AC_CHECK_HEADERS([libintl.h], [], [AC_MSG_ERROR([missing required headers])]) | ||
| 141 | AC_CHECK_HEADERS([locale.h], [], [AC_MSG_ERROR([missing required headers])]) | 142 | AC_CHECK_HEADERS([locale.h], [], [AC_MSG_ERROR([missing required headers])]) |
| 142 | AC_CHECK_HEADERS([netdb.h], [], [AC_MSG_ERROR([missing required headers])]) | 143 | AC_CHECK_HEADERS([netdb.h], [], [AC_MSG_ERROR([missing required headers])]) |
| 143 | AC_CHECK_HEADERS([sgtty.h], [], [AC_MSG_ERROR([missing required headers])]) | 144 | AC_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 | ||
| 167 | AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])]) | 168 | AC_CHECK_LIB([users],[noobs],,[AC_MSG_NOTICE([No noobs found, disabling hand_holding().])]) |
| 168 | 169 | ||
| 170 | |||
| 171 | # GNU Libtool Support | ||
| 172 | LT_INIT(dlopen disable-fast-install win32-dll) | ||
| 173 | |||
| 174 | |||
| 169 | # initiates bindle tools macros | 175 | # initiates bindle tools macros |
| 170 | AC_BINDLE(contrib/bindletools) | 176 | AC_BINDLE(contrib/bindletools) |
| 171 | 177 | ||
| @@ -173,7 +179,7 @@ AC_BINDLE(contrib/bindletools) | |||
| 173 | AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh]) | 179 | AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh]) |
| 174 | 180 | ||
| 175 | # custom configure options | 181 | # custom configure options |
| 176 | AC_BINDLE_ENABLE_WARNINGS | 182 | AC_BINDLE_ENABLE_WARNINGS([-Wno-unknown-pragmas], []) |
| 177 | AC_BINDLE_WITH_PERL | 183 | AC_BINDLE_WITH_PERL |
| 178 | AC_DMS_REGEX | 184 | AC_DMS_REGEX |
| 179 | AC_DMS_SIGNAL | 185 | AC_DMS_SIGNAL |
