aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rwxr-xr-xautogen.sh36
-rw-r--r--configure.ac34
3 files changed, 48 insertions, 23 deletions
diff --git a/ChangeLog b/ChangeLog
index 46fbc93..fe6c47c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ Copyright (C) 2014 Bindle Binaries <syzdek@bindlebinaries.com>.
50.6 50.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
90.5 100.5
10 - Updating logic in bash profile for determining hostname. (syzdek) 11 - Updating logic in bash profile for determining hostname. (syzdek)
diff --git a/autogen.sh b/autogen.sh
index 444031c..6eec939 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -37,7 +37,6 @@
37 37
38AUTOGENNAME="`basename ${0}`" || exit $? 38AUTOGENNAME="`basename ${0}`" || exit $?
39SRCDIR=`dirname ${0}` 39SRCDIR=`dirname ${0}`
40cd $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
54if test -d .git || test -f .git;then 53if 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 -
58fi 59fi
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
68cd ${SRCDIR}/m4
69rm -f ./bindle*.m4 || exit 1
70ln -s ../contrib/bindletools/m4/bindle*.m4 ./
71cd -
72
73
61# Performs some useful checks 74# Performs some useful checks
62autoscan . || exit 1 75autoscan ${SRCDIR} || exit 1
63 76
64 77
65# generates/installs autotools files 78# generates/installs autotools files
66autoreconf -v -i -f -Wall \ 79autoreconf -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
87mkdir -p ${SRCDIR}/build
88
89
90# add newline to create visual separation
91echo " "
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
39AC_COPYRIGHT([Copyright (c) 2015 Bindle Binaries <syzdek@bindlebinaries.com>.]) 39AC_COPYRIGHT([Copyright (c) 2015 Bindle Binaries <syzdek@bindlebinaries.com>.])
40AC_REVISION(0.1) 40AC_REVISION(0.1)
41AC_INIT([Bindle Binaries Admin Tools],[0.5],[syzdek@bindlebinaries.com],[bindleadmin]) 41AC_INIT([Bindle Binaries Admin Tools],[0.6],[syzdek@bindlebinaries.com],[bindleadmin])
42 42
43AC_SUBST([RELEASE_MONTH],["March 20115]) 43AC_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)
53AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
54 44
45# directory locations
55AC_CONFIG_AUX_DIR([build-aux]) 46AC_CONFIG_AUX_DIR([build-aux])
56AC_CONFIG_SRCDIR([build-aux/git-tar-name.txt]) 47AC_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
72AC_PROG_CXX 63AC_PROG_CXX
73AM_PROG_CC_C_O 64AM_PROG_CC_C_O
74AC_PROG_INSTALL 65AC_PROG_INSTALL
66AC_PROG_MAKE_SET
75AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX 67AC_USE_SYSTEM_EXTENSIONS # replaces AC_AIX AC_GNU_SOURCE AC_MINIX
76AC_C_BIGENDIAN 68AC_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)
78AC_BINDLE_LIBTOOL_VERSION_INFO(0, 0, 0)
79
78# binary locations 80# binary locations
79AC_PROG_INSTALL
80AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH]) 81AC_PATH_PROG([SHELL], sh bash, [AC_MSG_ERROR([missing "sh"])], [$PATH])
81AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])]) 82AC_CHECK_TOOLS(AR, ar gar, [AC_MSG_ERROR([missing binutil "ar"])])
82AC_CHECK_TOOLS(LD, ld gld, [AC_MSG_ERROR([missing binutil "ld"])]) 83AC_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
98AC_BINDLE(contrib/bindletools) 99AC_BINDLE(contrib/bindletools)
99 100
101# determine PACKAGE_VERSION via Git
102AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh])
103
104
100# custom configure options 105# custom configure options
101AC_BINDLE_ENABLE_WARNINGS 106AC_BINDLE_ENABLE_WARNINGS
102AC_BINDLE_WITH_PERL 107AC_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
106AC_CHECK_HEADERS([getopt.h], [AC_DEFINE_UNQUOTED(USE_GETOPT_LONG, 1, [Use GNU getopt_long])]) 111AC_CHECK_HEADERS([getopt.h], [AC_DEFINE_UNQUOTED(USE_GETOPT_LONG, 1, [Use GNU getopt_long])])
107 112
108# determine PACKAGE_VERSION via Git
109AC_BINDLE_GIT_PACKAGE_VERSION([contrib/bindletools/build-aux/git-package-version.sh])
110
111# Creates outputs 113# Creates outputs
112AC_CONFIG_FILES([Makefile]) 114AC_CONFIG_FILES([Makefile])
113AC_OUTPUT 115AC_OUTPUT