Hi Philipp,

* Philipp Thomas wrote on Thu, Apr 30, 2009 at 03:29:37PM CEST:
> As requested here is our patch to make require_file_internal able to deal
> with file names containing path names along with a tarball containing the
> test case. Simply unpack the tarball and call 'autoreconf -fi' in the
> created automake_test directory. Without the attached patch, automake will
> fail with
> 
> Makefile.am:5: required file `./src/getopt.c' not found
> Makefile.am:5: required file `./src/getopt1.c' not found

Thank you for the report, test case, and patch.  The right fix for this
would be to do this inside the package:

  AC_CONFIG_LIBOBJ_DIR([src])
  AC_LIBOBJ([getopt])
  AC_LIBOBJ([getopt1])

which then would work correctly with Automake 1.10 or newer.

I'm still considering applying your patch to Automake, but it alone is
not sufficient, because as is, "make clean" will erroneously not remove
src/getopt*.$OBJEXT.

(Note to self: this is tested in tests/pr401.test.)

Cheers,
Ralf


Reply via email to