Drag build machinery into the 21st century. master
authorMark Wooding <mdw@distorted.org.uk>
Fri, 19 Oct 2012 18:41:10 +0000 (19:41 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 19 Oct 2012 18:53:30 +0000 (19:53 +0100)
.cvsignore [deleted file]
.gitignore [new file with mode: 0644]
.links
configure.ac [moved from configure.in with 71% similarity]
setup [deleted file]

diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644 (file)
index 89c5931..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-.deps
-Makefile.in
-aclocal.m4
-configure
-debian.diff
-BASIC2
-build
diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..17534b3
--- /dev/null
@@ -0,0 +1,9 @@
+COPYING
+INSTALL
+Makefile.in
+aclocal.m4
+autom4te.cache
+configure
+config/
+mdwopt.c
+mdwopt.h
diff --git a/.links b/.links
index ed8a3f9..c95b2ff 100644 (file)
--- a/.links
+++ b/.links
@@ -2,3 +2,4 @@ COPYING
 INSTALL
 mdwopt.c
 mdwopt.h
+config/auto-version
similarity index 71%
rename from configure.in
rename to configure.ac
index 17f4a72..6008a4e 100644 (file)
@@ -25,18 +25,22 @@ dnl You should have received a copy of the GNU General Public License
 dnl along with Bascat; if not, write to the Free Software Foundation,
 dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-AC_INIT(bascat.c)
-AM_INIT_AUTOMAKE(bascat, 1.3)
-
+mdw_AUTO_VERSION
+AC_INIT([bascat], AUTO_VERSION, [mdw@distorted.org.uk])
+AC_CONFIG_SRCDIR([bascat.c])
+AC_CONFIG_AUX_DIR([config])
+AM_INIT_AUTOMAKE([foreign])
 AC_PROG_CC
-AC_PROG_INSTALL
+AX_CFLAGS_WARN_ALL
+
+mdw_SILENT_RULES
 
-mdw_GCC_FLAGS
-mdw_CHECK_MANYLIBS(tgetent, termcap ncurses, [AC_DEFINE(HAVE_LIBTERMCAP, 1)])
-mdw_OPT_NDEBUG
+AC_SEARCH_LIBS([tcgetent], [termcap], [AC_DEFINE(HAVE_LIBTERMCAP, 1)])
 
-AC_ARG_WITH(pager,
-[  --with-pager=PAGER    set the default pager (default is \`more')],
+AC_ARG_WITH([pager],
+  AS_HELP_STRING([--with-pager=PAGER],
+                [set the default pager (default is \`more')]),
   [AC_DEFINE(PAGER, "$withval")], [AC_DEFINE(PAGER, "more")])
 
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/setup b/setup
deleted file mode 100755 (executable)
index 77f8a03..0000000
--- a/setup
+++ /dev/null
@@ -1,8 +0,0 @@
-#! /bin/sh
-
-set -e
-mklinks
-mkaclocal
-autoconf
-automake -a
-mkdir build