~ubuntu-branches/ubuntu/natty/u3-tool/natty

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Evgeni Golov
  • Date: 2009-11-24 11:36:34 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091124113634-fu5nx0ntsxb9y7f1
Tags: 0.3-1
* New upstream release
* debian/watch:
  + Make watchfile working, as upstream has tarballs now.
* debian/README.source:
  + Remove README.source, it's not needed anymore.
* debian/control:
  + Standards-Version: 3.8.3
* debian/rules:
  + Don't override configure, upstream installs in sbin now.
* debian/u3-tool.links:
  + Remove the links, we ship only one backend now.
* debian/control:
  + Update years and upstream url.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Process this file with autoconf to produce a configure script.
3
3
 
4
4
AC_PREREQ(2.61)
5
 
AC_INIT(u3-tool, 0.2, daviedev@users.sourceforge.net)
 
5
AC_INIT(u3-tool, 0.3, daviedev@users.sourceforge.net)
6
6
AM_INIT_AUTOMAKE
7
7
AC_CONFIG_SRCDIR([config.h.in])
8
8
AC_CONFIG_HEADER([config.h])
 
9
AC_CANONICAL_HOST
9
10
 
10
11
# Checks for programs.
11
12
AC_PROG_CC
12
13
AM_PROG_CC_C_O
13
14
AC_PROG_INSTALL
14
15
 
 
16
# Parse arguments
 
17
AC_ARG_ENABLE([libusb],
 
18
     [  --enable-libusb    Force using libUSB subsystem instead of platform specific],
 
19
     [case "${enableval}" in
 
20
       yes) force_libusb=true ;;
 
21
       no)  force_libusb=false ;;
 
22
       *) AC_MSG_ERROR([bad value ${enableval} for --enable-libusb]) ;;
 
23
     esac],[force_libusb=false])
 
24
 
 
25
# Determine subsystem
 
26
AS_IF([test x$force_libusb = xtrue],
 
27
        [ subsystem=libusb ],
 
28
        [ AS_CASE([$host_os],
 
29
                [linux*], [subsystem=sg],
 
30
                [mingw32], [subsystem=spt],
 
31
                [subsystem=libusb])]
 
32
        )
 
33
 
 
34
AS_IF([test x$subsystem = xlibusb ], [ AC_DEFINE([SUBSYS_LIBUSB], [1], [Use libusb subsystem]) ])
 
35
AS_IF([test x$subsystem = xsg ], [ AC_DEFINE([SUBSYS_SG], [1], [Use sg subsystem]) ])
 
36
AS_IF([test x$subsystem = xspt ], [ AC_DEFINE([SUBSYS_SPT], [1], [Use spt subsystem]) ])
 
37
 
15
38
# Checks for libraries.
16
 
PKG_CHECK_MODULES([LIBUSB], [libusb],
17
 
        [ 
18
 
                LIBUSB_MSG=yes
19
 
        ],
20
 
        [ LIBUSB_MSG=no ])
21
 
AM_CONDITIONAL(HAVE_LIBUSB, [test x$LIBUSB_MSG = xyes])
 
39
#FIXME: PKG_CHECK_MODULES not provided on MinGW
 
40
#AS_IF([ test x$subsystem = xlibusb ],
 
41
#       [ PKG_CHECK_MODULES([LIBUSB], [libusb],
 
42
#               [  ],
 
43
#               [ AC_MSG_FAILURE([libusb is required but not found.]) ])
 
44
#       ])
22
45
 
23
46
# Checks for header files.
24
47
AC_HEADER_STDC
45
68
AC_OUTPUT
46
69
 
47
70
echo ""
48
 
echo "Options:"
49
 
echo "LibUSB used:     ${LIBUSB_MSG}"
 
71
echo "Subsystem:     ${subsystem}"
50
72
echo ""