commit 1eade663ed6ba757ea84224a7a00cd50556962ce Author: Felipe Contreras <felipe.contre...@gmail.com> AuthorDate: Sun Apr 7 16:53:31 2013 +0200 Commit: Oswald Buddenhagen <o...@users.sf.net> CommitDate: Sun Apr 7 16:57:45 2013 +0200
Fix build with recent autoconf and modernize configure.ac configure.ac:2: warning: macro 'AM_CONFIG_HEADERS' not found in library configure.ac:7: error: 'AM_PROG_CC_STDC': this macro is obsolete. You should simply use the 'AC_PROG_CC' macro instead. Also, your code should no longer depend upon 'am_cv_prog_cc_stdc', but upon 'ac_cv_prog_cc_stdc'. configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments Signed-off-by: Felipe Contreras <felipe.contre...@gmail.com> configure.ac | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 80ad75b..cd16883 100644 --- a/configure.ac +++ b/configure.ac @@ -1,10 +1,10 @@ -AC_INIT(src/isync.h) -AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(isync, 1.1.0) +AC_INIT([isync], [1.1.0]) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE AM_MAINTAINER_MODE -AM_PROG_CC_STDC +AC_PROG_CC if test "$GCC" = yes; then CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes -ansi -pedantic -Wno-overlength-strings" fi @@ -18,11 +18,9 @@ AC_CHECK_LIB(socket, socket, [SOCK_LIBS="-lsocket"]) AC_CHECK_LIB(nsl, inet_ntoa, [SOCK_LIBS="$SOCK_LIBS -lnsl"]) AC_SUBST(SOCK_LIBS) -m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) - have_ssl_paths= AC_ARG_WITH(ssl, - AS_HELP_STRING([--with-ssl[=PATH]], [where to look for SSL [detect]]), + AC_HELP_STRING([--with-ssl[=PATH]], [where to look for SSL [detect]]), [ob_cv_with_ssl=$withval]) if test "x$ob_cv_with_ssl" != xno; then case $ob_cv_with_ssl in @@ -88,14 +86,15 @@ if test "x$ac_cv_berkdb4" = xno; then fi AC_ARG_ENABLE(compat, - AS_HELP_STRING([--disable-compat], [don't include isync compatibility wrapper [no]]), + AC_HELP_STRING([--disable-compat], [don't include isync compatibility wrapper [no]]), [ob_cv_enable_compat=$enableval]) if test "x$ob_cv_enable_compat" != xno; then AC_CHECK_FUNCS(getopt_long) fi AM_CONDITIONAL(with_compat, test "x$ob_cv_enable_compat" != xno) -AC_OUTPUT(Makefile src/Makefile src/compat/Makefile isync.spec) +AC_CONFIG_FILES([Makefile src/Makefile src/compat/Makefile isync.spec]) +AC_OUTPUT if test -n "$have_ssl_paths"; then AC_MSG_RESULT([ ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel