[27306] in Source-Commits
authwatch commit: Clean up autoconf configuration
daemon@ATHENA.MIT.EDU (Victor Vasiliev)
Sat Sep 28 23:12:52 2013
Date: Sat, 28 Sep 2013 23:12:45 -0400
From: Victor Vasiliev <vasilvv@MIT.EDU>
Message-Id: <201309290312.r8T3CjTm019948@drugstore.mit.edu>
To: source-commits@MIT.EDU
https://github.com/mit-athena/authwatch/commit/e02d4bcbac8c0897d592cb1c553f0adb4375cbc2
commit e02d4bcbac8c0897d592cb1c553f0adb4375cbc2
Author: Victor Vasiliev <vasilvv@mit.edu>
Date: Wed Sep 11 18:23:10 2013 -0400
Clean up autoconf configuration
Makefile.in | 5 +++--
configure.ac | 21 +++++++++++++++++++++
configure.in | 16 ----------------
3 files changed, 24 insertions(+), 18 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index e1e6425..11e885f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -4,6 +4,7 @@ SHELL=/bin/sh
VPATH=@srcdir@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
+MKDIR_P=@MKDIR_P@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
@@ -31,8 +32,8 @@ authwatch: authwatch.o
check:
install:
- ${top_srcdir}/mkinstalldirs ${DESTDIR}${bindir}
- ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man1
+ ${MKDIR_P} ${DESTDIR}${bindir}
+ ${MKDIR_P} ${DESTDIR}${mandir}/man1
${INSTALL_PROGRAM} authwatch ${DESTDIR}${bindir}
${INSTALL} ${srcdir}/authwatch.1 ${DESTDIR}${mandir}/man1
diff --git a/configure.in b/configure.ac
similarity index 71%
rename from configure.in
rename to configure.ac
index 1c89bdd..26209dd 100644
--- a/configure.in
+++ b/configure.ac
@@ -1,16 +1,21 @@
dnl Process this file with autoconf to produce a configure script.
dnl $Id: configure.in,v 1.1 2002-01-23 22:15:29 mwhitson Exp $
-AC_INIT(authwatch.c)
+AC_INIT([authwatch], [10.0], [debathena@mit.edu])
+AC_CONFIG_SRCDIR([authwatch.c])
AC_PROG_CC
AC_PROG_INSTALL
+AC_PROG_MKDIR_P
+
ATHENA_KRB5_REQUIRED
ATHENA_KRB5
+ATHENA_UTIL_COM_ERR
dnl "gnome-config --libs" returns -lintl before -lgnome, which will
dnl fail if libintl is static. This hack gets an extra -lintl at the
dnl end of the link line.
AC_CHECK_LIB(intl, gettext)
-AC_OUTPUT(Makefile)
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT