Skip to content

Commit

Permalink
Updates autotools files
Browse files Browse the repository at this point in the history
The autoconf/automake files were outdated. These couple of small
changes adapt them for newer versions of the autotools.
  • Loading branch information
alobbs committed Jan 1, 2014
1 parent ffc8608 commit c081f1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions configure.in → configure.ac
Original file line number Diff line number Diff line change
@@ -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])])

Expand Down
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
INCLUDES = -DLISTDIR="\"$(datadir)/$(PACKAGE)\""
AM_CPPFLAGS = -DLISTDIR="\"$(datadir)/$(PACKAGE)\""

bin_PROGRAMS = macchanger

macchanger_SOURCES = \
mac.h mac.c \
maclist.h maclist.c \
netinfo.h netinfo.c \
main.c
main.c

0 comments on commit c081f1f

Please sign in to comment.