From c081f1f407e68bc5ee25c203968b983aaa800e65 Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Ortega Date: Wed, 1 Jan 2014 18:01:39 +0100 Subject: [PATCH] Updates autotools files The autoconf/automake files were outdated. These couple of small changes adapt them for newer versions of the autotools. --- autogen.sh | 4 ++-- configure.in => configure.ac | 5 +++-- src/Makefile.am | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) rename configure.in => configure.ac (70%) diff --git a/autogen.sh b/autogen.sh index 9861379..c46cf1c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -53,7 +53,7 @@ if test -z "$*"; then fi # Libtool -if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then +if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then echo "Running: libtoolize --force --copy..." $LIBTOOLIZE --force --copy fi @@ -64,7 +64,7 @@ rm -f aclocal.m4 $ACLOCAL $ACLOCAL_FLAGS # Autoheader -if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then +if grep "^AM_CONFIG_HEADER" configure.ac >/dev/null; then echo "Running: autoheader..." $AUTOHEADER fi diff --git a/configure.in b/configure.ac similarity index 70% rename from configure.in rename to configure.ac index 902f142..e100490 100644 --- a/configure.in +++ b/configure.ac @@ -1,5 +1,6 @@ -AC_INIT(src/main.c) -AM_INIT_AUTOMAKE(macchanger, 1.6.0) +AC_INIT([macchanger], [1.7.0]) +AC_CONFIG_SRCDIR([src/main.c]) +AM_INIT_AUTOMAKE m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) diff --git a/src/Makefile.am b/src/Makefile.am index e96e41d..bb97002 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -INCLUDES = -DLISTDIR="\"$(datadir)/$(PACKAGE)\"" +AM_CPPFLAGS = -DLISTDIR="\"$(datadir)/$(PACKAGE)\"" bin_PROGRAMS = macchanger @@ -6,4 +6,4 @@ macchanger_SOURCES = \ mac.h mac.c \ maclist.h maclist.c \ netinfo.h netinfo.c \ -main.c \ No newline at end of file +main.c