File: 04_autoconf_2.69.patch

package info (click to toggle)
liboauth 1.0.3-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,404 kB
  • sloc: sh: 11,295; ansic: 2,700; makefile: 88
file content (35 lines) | stat: -rw-r--r-- 1,235 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Carlos Maddela <e7appew@gmail.com>
Date: Sun, 27 Aug 2017 22:38:09 +1000
Subject: Update configure.ac for Autoconf 2.69.

Description: Update configure.ac for Autoconf 2.69.
 Remove use of 2-parameter AM_INIT_AUTOMAKE macro.
Author: Carlos Maddela <e7appew@gmail.com>
Forwarded: https://github.com/x42/liboauth/pull/11
Last-Update: 2019-01-27
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 828f730..477c45f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
 AC_PREREQ(2.57)
-AC_INIT([liboauth], [-], [robin AT gareus DOT org], [], [http://liboauth.sourceforge.net/])
+AC_INIT([liboauth], m4_esyscmd_s([sed -ne 's/^#define LIBOAUTH_VERSION "\(.*\)"/\1/p' src/oauth.h]), [robin AT gareus DOT org], [], [http://liboauth.sourceforge.net/])
 #AM_MAINTAINER_MODE
 
 AC_PATH_PROG(SED, sed, "", $PATH:/bin:/usr/bin:/usr/local/bin)
@@ -23,7 +23,7 @@ AC_CONFIG_SRCDIR([src/oauth.c])
 AC_CONFIG_TESTDIR([tests])
 AC_CANONICAL_TARGET([])
 AC_COPYRIGHT([Copyright (C) Robin Gareus 2007-2012])
-AM_INIT_AUTOMAKE(liboauth,$VERSION)
+AM_INIT_AUTOMAKE
 
 AM_CONFIG_HEADER(src/config.h)