title: subdir-objects option for automake doesn't work
body: <p>After reading the <a href="https://autotools.io" rel="nofollow" title="autotools mythbuster">autotools mythbuster</a>, I have tried to write a little example of the non recursive makefile with the use of <em>subdir-objects</em> in order to have my binary in the directory of my source files.</p>
  
  <p>Here is the the <strong>organization</strong> of my little test:</p>
  
  <pre><code>/
     autogen.sh
     configure.ac
     Makefile.am
     src/
        main.c
  </code></pre>
  
  <p>The <strong>autogen.sh</strong> :</p>
  
  <pre><code>#!/bin/sh
  echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS || exit 1
  echo "Running autoheader..." ; autoheader || exit 1
  echo "Running autoconf..." ; autoconf || exit 1
  echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
  ./configure "$@"
  </code></pre>
  
  <p>The <strong>configure.ac</strong> :</p>
  
  <pre><code>AC_PREREQ([2.69])
  AC_INIT([test], [0.0.1], [devel@hell.org])
  AC_CONFIG_SRCDIR([src/main.c])
  AC_CONFIG_HEADERS([config.h])
  
  # Checks for programs.
  AC_PROG_CC
  AM_INIT_AUTOMAKE([1.14 foreign subdir-objects])
  AM_MAINTAINER_MODE([enable])
  AC_OUTPUT(Makefile)
  </code></pre>
  
  <p>The <strong>Makefile.am</strong> :</p>
  
  <pre><code>MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in configure depcomp install-sh missing compile
  bin_PROGRAMS=toto
  toto_SOURCES=src/main.c
  </code></pre>
  
  <p>I compile everything with :</p>
  
  <pre><code>./autogen.sh
  make
  </code></pre>
  
  <p>I thought that the binary toto would have been created in the src directory with the option <em>subdir-objects</em> but it seems that this option have no effect and the toto binary is always generated in the root directory.</p>
  
  <p>I have also tried to pass this option in the Makefile.am with AUTOMAKE_OPTIONS = subdir-objects but wihtout success.</p>