ftdi_eeprom: Fix git build problems by using autoreconf
authorJim Paris <jim@jtan.com>
Fri, 22 May 2009 18:48:56 +0000 (14:48 -0400)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 25 May 2009 15:15:27 +0000 (17:15 +0200)
For recent versions of automake, the autotools steps in Makefile.cvs
don't work:
  $ make -f Makefile.cvs
  aclocal
  autoheader
  automake
  configure.in: required file `./install-sh' not found
  configure.in: required file `./mkinstalldirs' not found
  configure.in: required file `./missing' not found
  src/Makefile.am: required file `./depcomp' not found
  make: *** [all] Error 1

This is because automake no longer calls libtoolize, as described in:
  http://www.gnu.org/software/automake/manual/html_node/Error-required-file-ltmain_002esh-not-found.html
The recommended workaround there is to use autoreconf rather than
calling individual autotools programs.

This patch also removes the use of all_includes and all_libraries, as
they are undefined and cause automake errors.

Signed-off-by: Jim Paris <jim@jtan.com>

Makefile.cvs
src/Makefile.am

index d160702..5f31aa2 100644 (file)
@@ -1,8 +1,4 @@
 default: all
 
 all:
-       aclocal
-       autoheader
-       automake
-       autoconf
-
+       autoreconf --install
index 2216570..7966720 100644 (file)
@@ -1,10 +1,10 @@
 bin_PROGRAMS = ftdi_eeprom
 
 # set the include path found by configure
-INCLUDES = @LIBFTDI_CFLAGS@ $(all_includes)
+INCLUDES = @LIBFTDI_CFLAGS@
 
 # the library search path.
-ftdi_eeprom_LDFLAGS = $(all_libraries) 
+ftdi_eeprom_LDFLAGS = 
 ftdi_eeprom_SOURCES = main.c
 
 noinst_DATA =  example.conf