Upstream-Status: Inappropriate [configuration]

--- a/configure.in
+++ b/configure.in
@@ -599,6 +599,8 @@ if test "$class_driver" = "no" && test "
       AC_CHECK_HEADERS(usb.h, ,[AC_MSG_ERROR([cannot find libusb-devel support], 11)])
    else
       AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb 1.0 support], 2)])
+      LIBUSBINCLUDEROOT?="/usr/include/"
+      AC_ARG_VAR(LIBUSBINCLUDEROOT, [path to libusb-1.0 folder])
       AC_CHECK_HEADERS(libusb-1.0/libusb.h, ,[AC_MSG_ERROR([cannot find libusb-1.0-devel support], 11)])
    fi
 fi
--- a/Makefile.am
+++ b/Makefile.am
@@ -109,7 +109,7 @@ libhpmud_la_SOURCES += io/hpmud/musb_lib
 libhpmud_la_LDFLAGS += -lusb
 else
 libhpmud_la_SOURCES += io/hpmud/musb.c 
-libhpmud_la_CFLAGS  += -I/usr/include/libusb-1.0
+libhpmud_la_CFLAGS  += -I$(LIBUSBINCLUDEROOT)/libusb-1.0
 libhpmud_la_LDFLAGS += -lusb-1.0
 endif
 
@@ -362,7 +362,7 @@ hpmudext_la_CFLAGS += -Iprotocol/discove
 endif
 
 if !LIBUSB01_BUILD
-hpmudext_la_CFLAGS +=-I/usr/include/libusb-1.0 
+hpmudext_la_CFLAGS +=-I$(LIBUSBINCLUDEROOT)/libusb-1.0 
 endif
 endif #!HPLIP_CLASS_DRIVER
 # ui (qt3)
