cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] configure: explicitly use subdir-objects in automake init

From: Dave Reisner <dreisner_at_archlinux.org>
Date: Mon, 8 Jul 2013 09:13:14 -0400

This avoids a large warning on invocation of ./buildconf on automake
1.14:

  automake: warning: possible forward-incompatibility.
  automake: At least a source file is in a subdirectory, but the 'subdir-objects'
  automake: automake option hasn't been enabled. For now, the corresponding output
  automake: object file(s) will be placed in the top-level directory. However,
  automake: this behaviour will change in future Automake versions: they will
  automake: unconditionally cause object files to be placed in the same subdirectory
  automake: of the corresponding sources.
  automake: You are advised to start using 'subdir-objects' option throughout your
  automake: project, to avoid future incompatibilities.

Rather than pepper all the Makefile.am's with the option, initialize
automake with subdir-objects as the default behavior.

---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 49309e6..4050fd9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,7 +126,7 @@ fi
 dnl figure out the libcurl version
 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
 XC_CHECK_PROG_CC
-AM_INIT_AUTOMAKE
+AM_INIT_AUTOMAKE([subdir-objects])
 AC_MSG_CHECKING([curl version])
 AC_MSG_RESULT($CURLVERSION)
 
-- 
1.8.3.2
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-07-08