--- /dev/null
+Index: gpsbabel-1.3.6/configure.in
+===================================================================
+--- gpsbabel-1.3.6.orig/configure.in 2008-10-31 12:43:21.000000000 +0000
++++ gpsbabel-1.3.6/configure.in 2009-06-11 17:15:12.000000000 +0000
+@@ -36,7 +36,7 @@
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
+ AC_EXEEXT
+-AC_SUBST(AC_EXEEXT)
++AC_SUBST(EXEEXT)
+ AC_C_BIGENDIAN
+
+ # Checks for libraries.
HOMEPAGE = "http://www.gpsbabel.org/"
LICENSE = "GPL"
-SRC_URI = "http://www.gpsbabel.org/plan9.php?dl=gpsbabel-${PV}.tar.gz"
+SRC_URI = "http://www.gpsbabel.org/plan9.php?dl=gpsbabel-${PV}.tar.gz \
+ file://autotools.patch;patch=1"
inherit autotools pkgconfig