title: How to modify binutils 2.29 Makefile.am and recreate a new Makefile?
body: <p>I have changed a Makefile.am inside binutils-2.29/binutils directory to create a new library. So I'm running the following command to create a new Makefile</p>
  
  <pre><code>dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ sudo libtoolize &amp;&amp; aclocal -I./ &amp;&amp; autoreconf &amp;&amp; automake
  </code></pre>
  
  <p>It gives me following error:</p>
  
  <pre><code>dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ sudo libtoolize &amp;&amp; aclocal -I./ &amp;&amp; autoreconf &amp;&amp; automake
  libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
  autom4te: cannot open autom4te.cache/requests: Permission denied
  aclocal: error: echo failed with exit status: 1
  </code></pre>
  
  <p>But there is no Makefile.am in the Parent directory, there are Makefile.am inside sub directories.
  When i search for Makefile.am I get this:</p>
  
  <pre><code>dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ find -iname "Makefile.am" | xargs grep -inr "ACLOCAL_AMFLAGS"
  ./gas/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  ./gold/Makefile.am:26:ACLOCAL_AMFLAGS = -I ../bfd -I ../config
  ./opcodes/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  ./binutils/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  ./ld/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  ./zlib/Makefile.am:5:ACLOCAL_AMFLAGS = -I .. -I ../config
  ./gprof/Makefile.am:21:ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
  ./bfd/Makefile.am:21:ACLOCAL_AMFLAGS = -I . -I .. -I ../config
  </code></pre>
  
  <p>In which Makefile.am should I add -I m4 ?</p>
  
  <p>Also In parent directory there are   Makefiles with different extensions</p>
  
  <pre><code>dinesh@dinesh-HP-Ubuntu:/home/packages/binutils-2.29$ ls Makefile.*
  Makefile.def  Makefile.in  Makefile.tpl
  </code></pre>