diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | Makefile.am | 4 | ||||
| -rwxr-xr-x | autogen.sh | 53 | ||||
| -rw-r--r-- | m4/.gitignore | 21 |
4 files changed, 61 insertions, 19 deletions
| @@ -14,11 +14,13 @@ | |||
| 14 | /build-aux/git-package-version | 14 | /build-aux/git-package-version |
| 15 | aclocal.m4 | 15 | aclocal.m4 |
| 16 | autom4te.cache | 16 | autom4te.cache |
| 17 | autoscan.log | ||
| 17 | build/ | 18 | build/ |
| 18 | config.h | 19 | config.h |
| 19 | config.h.in | 20 | config.h.in |
| 20 | config.log | 21 | config.log |
| 21 | config.status | 22 | config.status |
| 22 | configure | 23 | configure |
| 24 | configure.scan | ||
| 23 | stamp-h1 | 25 | stamp-h1 |
| 24 | xcuserdata | 26 | xcuserdata |
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 \ | |||
| 221 | CLEANFILES = \ | 221 | CLEANFILES = \ |
| 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.* \ |
| @@ -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 | ||
| 38 | AUTOGENNAME="`basename ${0}`" || exit $? | 38 | AUTOGENNAME="`basename ${0}`" || exit 1 |
| 39 | SRCDIR=`dirname ${0}` | 39 | SRCDIR="`dirname ${0}`" |
| 40 | 40 | ||
| 41 | 41 | ||
| 42 | cd $SRCDIR || exit 1 | 42 | # check for required programs |
| 43 | for 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 | ||
| 49 | done | ||
| 43 | 50 | ||
| 44 | if 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 | 53 | if 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 - | ||
| 48 | fi | 59 | fi |
| 49 | 60 | ||
| 50 | autoreconf -v -i -f -I m4 -I contrib/bindletools/m4 -W all || exit 1 | 61 | |
| 62 | # Performs some useful checks | ||
| 63 | autoscan ${SRCDIR} || exit 1 | ||
| 64 | |||
| 65 | |||
| 66 | # symlinks M4 macros | ||
| 67 | cd ${SRCDIR}/m4 | ||
| 68 | rm -f ./bindle*.m4 || exit 1 | ||
| 69 | ln -s ../contrib/bindletools/m4/bindle*.m4 ./ | ||
| 70 | cd - | ||
| 71 | |||
| 72 | |||
| 73 | # generates/installs autotools files | ||
| 74 | autoreconf -v -i -f -Wall \ | ||
| 75 | -I m4 \ | ||
| 76 | -m \ | ||
| 77 | ${SRCDIR} \ | ||
| 78 | || exit 1 | ||
| 79 | |||
| 80 | |||
| 81 | # makes build directory | ||
| 82 | mkdir -p ${SRCDIR}/build | ||
| 83 | |||
| 84 | |||
| 85 | # add newline to create visual separation | ||
| 86 | echo " " | ||
| 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 @@ | |||
| 1 | iconv.m4 | 1 | /bindle-*.m4 |
| 2 | lib-ld.m4 | 2 | /iconv.m4 |
| 3 | lib-link.m4 | 3 | /lib-ld.m4 |
| 4 | lib-prefix.m4 | 4 | /lib-link.m4 |
| 5 | libtool.m4 | 5 | /lib-prefix.m4 |
| 6 | ltoptions.m4 | 6 | /libtool.m4 |
| 7 | ltsugar.m4 | 7 | /ltoptions.m4 |
| 8 | ltversion.m4 | 8 | /ltsugar.m4 |
| 9 | lt~obsolete.m4 | 9 | /ltversion.m4 |
| 10 | progtest.m4 | 10 | /lt~obsolete.m4 |
| 11 | /progtest.m4 | ||
