File libsangoma-05-simplify-autoinit.diff of Package wanpipe

From: Jan Engelhardt <jengelh@medozas.de>
Date: 2011-10-27 16:56:41.562271223 +0200
Upstream: tbd

libsangoma/build: simplify autotools initialization

There is no need to call the tools one by one.

Using "foreign" automake option allows to get rid of zero-length
files AUTHORS, COPYING, ChangeLog, NEWS, INSTALL.

One of bootstrap/init-automake.sh is redundant.

---
 api/libsangoma/bootstrap        |    6 ------
 api/libsangoma/configure.in     |    2 +-
 api/libsangoma/init-automake.sh |   25 ++-----------------------
 3 files changed, 3 insertions(+), 30 deletions(-)

Index: wanpipe-3.5.23.6/api/libsangoma/bootstrap
===================================================================
--- wanpipe-3.5.23.6.orig/api/libsangoma/bootstrap
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/bash
-autoheader
-libtoolize --force
-aclocal
-automake -a
-autoconf
Index: wanpipe-3.5.23.6/api/libsangoma/configure.in
===================================================================
--- wanpipe-3.5.23.6.orig/api/libsangoma/configure.in
+++ wanpipe-3.5.23.6/api/libsangoma/configure.in
@@ -17,7 +17,7 @@
 
 AC_INIT([libsangoma],[3.5.0],[ncorbic@sangoma.com])
 AC_CONFIG_HEADERS(config.h)
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([-Wall foreign])
 
 LIBSANGOMA_LT_CURRENT=3  # interface 3
 LIBSANGOMA_LT_REVISION=5 # first revision of this interface
Index: wanpipe-3.5.23.6/api/libsangoma/init-automake.sh
===================================================================
--- wanpipe-3.5.23.6.orig/api/libsangoma/init-automake.sh
+++ wanpipe-3.5.23.6/api/libsangoma/init-automake.sh
@@ -1,27 +1,6 @@
-#!/bin/sh
+#!/bin/sh -e
 
-PWD=$(pwd)
-
-eval "autoheader"
-if [ $? -ne 0 ]; then
-	exit $?
-fi
-eval "libtoolize --force"
-if [ $? -ne 0 ]; then
-	exit $?
-fi
-eval "aclocal"
-if [ $? -ne 0 ]; then
-	exit $?
-fi
-eval "automake --add-missing"
-if [ $? -ne 0 ]; then
-	exit $?
-fi
-eval "autoconf"
-if [ $? -ne 0 ]; then
-	exit $?
-fi
+autoreconf -fi
 
 cd sample_c
 if [ -f Makefile ]; then
openSUSE Build Service is sponsored by