aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am4
-rwxr-xr-xautogen.sh53
-rw-r--r--m4/.gitignore21
4 files changed, 61 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore
index ae72a03..aff0601 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,11 +14,13 @@
14/build-aux/git-package-version 14/build-aux/git-package-version
15aclocal.m4 15aclocal.m4
16autom4te.cache 16autom4te.cache
17autoscan.log
17build/ 18build/
18config.h 19config.h
19config.h.in 20config.h.in
20config.log 21config.log
21config.status 22config.status
22configure 23configure
24configure.scan
23stamp-h1 25stamp-h1
24xcuserdata 26xcuserdata
diff --git a/Makefile.am b/Makefile.am
index 02f5b75..1f039e8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -221,7 +221,9 @@ EXTRA_DIST = autogen.sh \
221CLEANFILES = \ 221CLEANFILES = \
222 $(builddir)/a.out $(srcdir)/a.out \ 222 $(builddir)/a.out $(srcdir)/a.out \
223 $(builddir)/*/a.out $(srcdir)/*/a.out \ 223 $(builddir)/*/a.out $(srcdir)/*/a.out \
224 config.h.in~ $(srcdir)/config.h.in~ \ 224 autoscan.log $(srcdir)/autoscan.log \
225 config.h.in~ $(srcdir)/config.h.in~ \
226 configure.scan $(srcdir)/configure.scan \
225 $(man_MANS) \ 227 $(man_MANS) \
226 include/dmsversion.h \ 228 include/dmsversion.h \
227 @PACKAGE_TARNAME@-*.tar.* \ 229 @PACKAGE_TARNAME@-*.tar.* \
diff --git a/autogen.sh b/autogen.sh
index 319e693..9b80d31 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -35,18 +35,55 @@
35# build-aux/autogen.sh - runs GNU Autotools to create build environment 35# build-aux/autogen.sh - runs GNU Autotools to create build environment
36# 36#
37 37
38AUTOGENNAME="`basename ${0}`" || exit $? 38AUTOGENNAME="`basename ${0}`" || exit 1
39SRCDIR=`dirname ${0}` 39SRCDIR="`dirname ${0}`"
40 40
41 41
42cd $SRCDIR || exit 1 42# check for required programs
43for TEST_PROG in which autoreconf autoscan find git;do
44 which ${TEST_PROG} 2> /dev/null > /dev/null;
45 if test $? -ne 0;then
46 echo "${AUTOGENNAME}: unable to find \"${TEST_PROG}\""
47 exit 1
48 fi
49done
43 50
44if test -d .git || test -f .git;then 51
45 git submodule init 2>&1 | sed -e 's/^/git submodule init: /g' || exit 1 52# updates git repository
46 git submodule sync 2>&1 | sed -e 's/^/git submodule sync: /g' || exit 1 53if test -d ${SRCDIR}/.git || test -f ${SRCDIR}/.git;then
47 git submodule update --merge 2>&1 | sed -e 's/^/git submodule update: /g' || exit 1 54 cd ${SRCDIR}
55 git submodule init || exit 1
56 git submodule sync || exit 1
57 git submodule update --init --recursive --merge || exit 1
58 cd -
48fi 59fi
49 60
50autoreconf -v -i -f -I m4 -I contrib/bindletools/m4 -W all || exit 1 61
62# Performs some useful checks
63autoscan ${SRCDIR} || exit 1
64
65
66# symlinks M4 macros
67cd ${SRCDIR}/m4
68rm -f ./bindle*.m4 || exit 1
69ln -s ../contrib/bindletools/m4/bindle*.m4 ./
70cd -
71
72
73# generates/installs autotools files
74autoreconf -v -i -f -Wall \
75 -I m4 \
76 -m \
77 ${SRCDIR} \
78 || exit 1
79
80
81# makes build directory
82mkdir -p ${SRCDIR}/build
83
84
85# add newline to create visual separation
86echo " "
87
51 88
52# end of script 89# end of script
diff --git a/m4/.gitignore b/m4/.gitignore
index d343f26..05b8008 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -1,10 +1,11 @@
1iconv.m4 1/bindle-*.m4
2lib-ld.m4 2/iconv.m4
3lib-link.m4 3/lib-ld.m4
4lib-prefix.m4 4/lib-link.m4
5libtool.m4 5/lib-prefix.m4
6ltoptions.m4 6/libtool.m4
7ltsugar.m4 7/ltoptions.m4
8ltversion.m4 8/ltsugar.m4
9lt~obsolete.m4 9/ltversion.m4
10progtest.m4 10/lt~obsolete.m4
11/progtest.m4