]> sigrok.org Git - sigrok-firmware.git/commitdiff
Build: Modernize Autotools configuration
authorDaniel Elstner <redacted>
Sat, 5 Sep 2015 22:04:27 +0000 (00:04 +0200)
committerDaniel Elstner <redacted>
Thu, 10 Sep 2015 17:47:01 +0000 (19:47 +0200)
Makefile.am
autogen.sh
configure.ac

index 28236286ca8d659bb37e8955400da1cb4e969ed3..0d894449224987c7927a42db77a9e17879ae944b 100644 (file)
@@ -19,7 +19,7 @@
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-ACLOCAL_AMFLAGS = -I autostuff
+GNUMAKEFLAGS = --no-print-directory
 
 SUBDIRS = asix-sigma sysclk-lwla
 
index 70d4c18ea7a46ba27497216eb1f0d63c40df5e69..a9b58435db6110ebc2b1531a7cb1a12bd63f55c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 ##
 ## This file is part of the sigrok-firmware project.
 ##
 ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 ##
 
-OS=`uname`
-
-if [ "x$OS" = "xDarwin" ]; then
-       if [ -d /sw/share/aclocal ]; then
-               # fink installs aclocal macros here
-               ACLOCAL_DIR="-I /sw/share/aclocal"
-       elif [ -d /opt/local/share/aclocal ]; then
-               # Macports installs aclocal macros here
-               ACLOCAL_DIR="-I /opt/local/share/aclocal"
-       elif [ -d /usr/local/share/aclocal ]; then
-               # Homebrew installs aclocal macros here
-               ACLOCAL_DIR="-I /usr/local/share/aclocal"
-       elif [ -d /usr/share/aclocal ]; then
-               # Xcode installs aclocal macros here
-               ACLOCAL_DIR="-I /usr/share/aclocal"
-       fi
-fi
-
-echo "Generating build system..."
-mkdir -p autostuff
-aclocal ${ACLOCAL_DIR} || exit 1
-autoheader || exit 1
-automake --add-missing --copy || exit 1
-autoconf || exit 1
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
 
+autoreconf --force --install --verbose "$srcdir"
index ca963ef76cdc40cd44f78dd1995d5cf4a05311db..9ba54a9acc73412d1491402f66d44e138098b3b3 100644 (file)
@@ -23,24 +23,16 @@ AC_PREREQ([2.63])
 
 AC_INIT([sigrok-firmware], [0.1.0], [sigrok-devel@lists.sourceforge.net],
        [sigrok-firmware], [http://www.sigrok.org])
-AC_CONFIG_HEADER([config.h])
-AC_CONFIG_MACRO_DIR([autostuff])
 AC_CONFIG_AUX_DIR([autostuff])
 
 # We require at least automake 1.11 (needed for 'silent rules').
-AM_INIT_AUTOMAKE([1.11 -Wall -Werror check-news])
-m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+AM_INIT_AUTOMAKE([1.11 -Wall -Werror no-define nostdinc check-news])
+AM_SILENT_RULES([yes])
 
 AC_PROG_INSTALL
-AC_PROG_LN_S
-
-AC_SUBST(FIRMWARE_DIR, "$datadir/sigrok-firmware")
-AC_SUBST(MAKEFLAGS, '--no-print-directory')
 
 AC_CONFIG_FILES([Makefile
                 asix-sigma/Makefile
                 sysclk-lwla/Makefile
                ])
-
 AC_OUTPUT
-