summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorDaniel Elstner <daniel.kitta@gmail.com>2015-08-24 21:09:47 +0200
committerDaniel Elstner <daniel.kitta@gmail.com>2015-08-25 17:20:53 +0200
commitbcd4e47e8cc688d2a04c6fbfde1e0a354405f769 (patch)
tree3c79b96053a347d404a73dc627f7eeb4a103cbc7 /autogen.sh
parent28aeef67d01b0263934feb3147813d3c750f942c (diff)
downloadlibsigrokdecode-bcd4e47e8cc688d2a04c6fbfde1e0a354405f769.tar.gz
libsigrokdecode-bcd4e47e8cc688d2a04c6fbfde1e0a354405f769.zip
Build: Reduce autogen.sh to trivial stub
Use autoreconf instead of invoking the various Auto tools separately. Get rid of the Darwin-specific guesswork -- it does not make sense to handle this at the level of libsigrokdecode. People should set up their ACLOCAL_PATH themselves as appropriate for their own system; just as they already need to set up various other paths.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh34
1 files changed, 5 insertions, 29 deletions
diff --git a/autogen.sh b/autogen.sh
index 93441ed..f55f4ef 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/sh -e
##
## This file is part of the libsigrokdecode project.
##
-## Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
+## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -18,31 +18,7 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##
-OS=`uname`
-
-LIBTOOLIZE=libtoolize
-
-if [ "x$OS" = "xDarwin" ]; then
- LIBTOOLIZE=glibtoolize
- 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..."
-${LIBTOOLIZE} --install --copy --quiet || exit 1
-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"