diff options
| author | David M. Syzdek <syzdek@bindlebinaries.com> | 2015-04-29 11:06:52 -0800 |
|---|---|---|
| committer | David M. Syzdek <syzdek@bindlebinaries.com> | 2015-04-29 11:06:52 -0800 |
| commit | d4ce1a829b742ecbe5d06528583fb1d01bf9d069 (patch) | |
| tree | 3d8bd3b62984f45ea46e0dda2455cf89520cf09b | |
| parent | 03de80577a6700b31934bf23ac9d2c18682b8c60 (diff) | |
| download | bbfw-d4ce1a829b742ecbe5d06528583fb1d01bf9d069.tar.gz bbfw-d4ce1a829b742ecbe5d06528583fb1d01bf9d069.tar.bz2 bbfw-d4ce1a829b742ecbe5d06528583fb1d01bf9d069.tar.xz bbfw-d4ce1a829b742ecbe5d06528583fb1d01bf9d069.zip | |
Updating autotools files.v0.6
| -rw-r--r-- | ChangeLog | 1 | ||||
| -rwxr-xr-x | autogen.sh | 36 | ||||
| -rw-r--r-- | configure.ac | 34 |
3 files changed, 48 insertions, 23 deletions
| @@ -5,6 +5,7 @@ Copyright (C) 2014 Bindle Binaries <syzdek@bindlebinaries.com>. | |||
| 5 | 0.6 | 5 | 0.6 |
| 6 | - Adding explicity flush to lo interface in rc.inet1_local. (syzdek) | 6 | - Adding explicity flush to lo interface in rc.inet1_local. (syzdek) |
| 7 | - Updating version of bindletools used by autotools. (syzdek) | 7 | - Updating version of bindletools used by autotools. (syzdek) |
| 8 | - Updating configure and autogen scripts. (syzdek) | ||
| 8 | 9 | ||
| 9 | 0.5 | 10 | 0.5 |
| 10 | - Updating logic in bash profile for determining hostname. (syzdek) | 11 | - Updating logic in bash profile for determining hostname. (syzdek) |
| @@ -37,7 +37,6 @@ | |||
| 37 | 37 | ||
| 38 | AUTOGENNAME="`basename ${0}`" || exit $? | 38 | AUTOGENNAME="`basename ${0}`" || exit $? |
| 39 | SRCDIR=`dirname ${0}` | 39 | SRCDIR=`dirname ${0}` |
| 40 | cd $SRCDIR || exit 1 | ||
| 41 | 40 | ||
| 42 | 41 | ||
| 43 | # check for required programs | 42 | # check for required programs |
| @@ -51,22 +50,45 @@ done | |||
| 51 | 50 | ||
| 52 | 51 | ||
| 53 | # updates git repository | 52 | # updates git repository |
| 54 | if test -d .git || test -f .git;then | 53 | if test -d ${SRCDIR}/.git || test -f ${SRCDIR}/.git;then |
| 55 | git submodule init 2>&1 | sed -e 's/^/git submodule init: /g' || exit 1 | 54 | cd ${SRCDIR} |
| 56 | git submodule sync 2>&1 | sed -e 's/^/git submodule sync: /g' || exit 1 | 55 | git submodule init || exit 1 |
| 57 | git submodule update --merge 2>&1 | sed -e 's/^/git submodule update: /g' || exit 1 | 56 | git submodule sync || exit 1 |
| 57 | git submodule update --init --recursive --merge || exit 1 | ||
| 58 | cd - | ||
| 58 | fi | 59 | fi |
| 59 | 60 | ||
| 60 | 61 | ||
| 62 | # generates files for bindletools | ||
| 63 | #${SRCDIR}/contrib/bindletools/autogen.sh || exit 1 | ||
| 64 | #echo "running ${0} ..." | ||
| 65 | |||
| 66 | |||
| 67 | # symlinks M4 macros | ||
| 68 | cd ${SRCDIR}/m4 | ||
| 69 | rm -f ./bindle*.m4 || exit 1 | ||
| 70 | ln -s ../contrib/bindletools/m4/bindle*.m4 ./ | ||
| 71 | cd - | ||
| 72 | |||
| 73 | |||
| 61 | # Performs some useful checks | 74 | # Performs some useful checks |
| 62 | autoscan . || exit 1 | 75 | autoscan ${SRCDIR} || exit 1 |
| 63 | 76 | ||
| 64 | 77 | ||
| 65 | # generates/installs autotools files | 78 | # generates/installs autotools files |
| 66 | autoreconf -v -i -f -Wall \ | 79 | autoreconf -v -i -f -Wall \ |
| 67 | -I m4 \ | 80 | -I m4 \ |
| 68 | -I contrib/bindletools/m4 \ | 81 | -m \ |
| 82 | ${SRCDIR} \ | ||
| 69 | || exit 1 | 83 | || exit 1 |
| 70 | 84 | ||
| 71 | 85 | ||
| 86 | # makes build directory | ||
| 87 | mkdir -p ${SRCDIR}/build | ||
| 88 | |||
| 89 | |||
| 90 | # add newline to create visual separation | ||
| 91 | echo " " | ||
| 92 | |||
| 93 | |||
| 72 | # end of script | 94 | # end of script |
diff --git a/configure.ac b/configure.ac index b21fcf8..766231a 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -38,20 +38,11 @@ AC_PREREQ([2.65]) | |||
| 38 | 38 | ||
| 39 | AC_COPYRIGHT([Copyright (c) 2015 Bindle Binaries <syzdek@bindlebinaries.com>.]) | 39 | AC_COPYRIGHT([Copyright (c) 2015 Bindle Binaries <syzdek@bindlebinaries.com>.]) |
| 40 | AC_REVISION(0.1) | 40 | AC_REVISION(0.1) |
| 41 | AC_INIT([Bindle Binaries Admin Tools],[0.5],[syzdek@bindlebinaries.com],[bindleadmin]) | 41 | AC_INIT([Bindle Binaries Admin Tools],[0.6],[syzdek@bindlebinaries.com],[bindleadmin]) |
| 42 | 42 | ||
| 43 | AC_SUBST([RELEASE_MONTH],["March 20115]) | 43 | AC_SUBST([RELEASE_MONTH],["March 2015"]) |
| 44 | |||
| 45 | # Version Info: | ||
| 46 | # Current -- the current version number of this API | ||
| 47 | # Revision -- the revision of the implementation of the API version | ||
| 48 | # Age -- How many seqential past API versions is supported by | ||
| 49 | # this implementation | ||
| 50 | # Format => Current:Revision:Age | ||
| 51 | # Convenience macro: | ||
| 52 | # AC_BINDLE_LIBTOOL_VERSION_INFO(current, revision, age) | ||
| 53 | AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0) | ||
| 54 | 44 | ||
| 45 | # directory locations | ||
| 55 | AC_CONFIG_AUX_DIR([build-aux]) | 46 | AC_CONFIG_AUX_DIR([build-aux]) |
| 56 | AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) | 47 | AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) |
| 57 | #AC_CONFIG_LIBOBJ_DIR(compat) | 48 | #AC_CONFIG_LIBOBJ_DIR(compat) |
| @@ -72,11 +63,21 @@ AC_PROG_CC | |||
| 72 | AC_PROG_CXX | 63 | AC_PROG_CXX |
| 73 | AM_PROG_CC_C_O | 64 | AM_PROG_CC_C_O |
| 74 | AC_PROG_INSTALL | 65 | AC_PROG_INSTALL |
| 66 | AC_PROG_MAKE_SET | ||
| 75 | AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX | 67 | AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX |
| 76 | AC_C_BIGENDIAN | 68 | AC_C_BIGENDIAN |
| 77 | 69 | ||
| 70 | # Version Info: | ||
| 71 | # Current -- the current version number of this API | ||
| 72 | # Revision -- the revision of the implementation of the API version | ||
| 73 | # Age -- How many seqential past API versions is supported by | ||
| 74 | # this implementation | ||
| 75 | # Format => Current:Revision:Age | ||
| 76 | # Convenience macro: | ||
| 77 | # AC_BINDLE_LIBTOOL_VERSION_INFO(current, revision, age) | ||
| 78 | AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0) | ||
| 79 | |||
| 78 | # binary locations | 80 | # binary locations |
| 79 | AC_PROG_INSTALL | ||
| 80 | AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) | 81 | AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) |
| 81 | AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])]) | 82 | AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])]) |
| 82 | AC_CHECK_TOOLS(LD, ld gld, [AC_MSG_ERROR([missing binutil "ld"])]) | 83 | AC_CHECK_TOOLS(LD, ld gld, [AC_MSG_ERROR([missing binutil "ld"])]) |
| @@ -97,6 +98,10 @@ LT_INIT(dlopen disable-fast-install win32-dll) | |||
| 97 | # initiates bindle tools macros | 98 | # initiates bindle tools macros |
| 98 | AC_BINDLE(contrib/bindletools) | 99 | AC_BINDLE(contrib/bindletools) |
| 99 | 100 | ||
| 101 | # determine PACKAGE_VERSION via Git | ||
| 102 | AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh]) | ||
| 103 | |||
| 104 | |||
| 100 | # custom configure options | 105 | # custom configure options |
| 101 | AC_BINDLE_ENABLE_WARNINGS | 106 | AC_BINDLE_ENABLE_WARNINGS |
| 102 | AC_BINDLE_WITH_PERL | 107 | AC_BINDLE_WITH_PERL |
| @@ -105,9 +110,6 @@ AC_BINDLEADMIN_SLACKWARE | |||
| 105 | # enables getopt_long if header and functions were found | 110 | # enables getopt_long if header and functions were found |
| 106 | AC_CHECK_HEADERS([getopt.h], [AC_DEFINE_UNQUOTED(USE_GETOPT_LONG, 1, [Use GNU getopt_long])]) | 111 | AC_CHECK_HEADERS([getopt.h], [AC_DEFINE_UNQUOTED(USE_GETOPT_LONG, 1, [Use GNU getopt_long])]) |
| 107 | 112 | ||
| 108 | # determine PACKAGE_VERSION via Git | ||
| 109 | AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh]) | ||
| 110 | |||
| 111 | # Creates outputs | 113 | # Creates outputs |
| 112 | AC_CONFIG_FILES([Makefile]) | 114 | AC_CONFIG_FILES([Makefile]) |
| 113 | AC_OUTPUT | 115 | AC_OUTPUT |
