Hi, On 2013-07-26 16:53 +0100, Rudra Banerjee wrote: > Hello friends, > In my laptop, I can very well use autotools with the following > Makefile.am : > bin_PROGRAMS = scasr > scasr_SOURCES = src/main.f90\ > src/constants.f90 src/environment.f90 src/util.f90 \ > src/init.f90 > src/constants.o : src/constants.f90 > src/environment.o : src/environment.f90 > src/init.o : src/init.f90 src/util.o src/constants.o > src/main.o : src/main.f90 src/init.o src/constants.o src/environment.o > src/util.o : src/util.f90 src/constants.o [...] > But, in the running environment, with SUSE Linux Enterprise Desktop 11 > SP2, I have: > $autoconf --version > autoconf (GNU Autoconf) 2.63 > $automake --version > automake (GNU automake) 1.10.1 > $make --version > GNU Make 3.81 > > the same thing is giving error: [...] > I am concluding either automake or make is too old to handle > non-recursive makefile. Is this correct? Or, in my Makefile.am itself is > causing the error(may be with some non-standard)?
The release notes for Automake 1.11 say: "subdir-object mode works now with Fortran ..." Your Makefile is clearly depends on the subdir-object feature (typical for non-recursive setups), so it appears that you must require Automake 1.11 at minimum. Your SUSE install only has Automake 1.10.1. This is normally not a huge problem as it is normally only necessary to run automake when (re)generating the build system; this is not something users building from a release tarball will ordinarily need to do. Hope that helps, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)