]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libusb/libusb-0.1.8/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libusb / libusb-0.1.8 / configure.patch
1 --- libusb-0.1.8/configure.in~configure.patch   2004-02-12 03:27:18.000000000 +1100
2 +++ libusb-0.1.8/configure.in   2004-11-03 20:17:45.949802575 +1100
3 @@ -1,10 +1,11 @@
4  # This configure.in is based off of the one that glib uses
5  
6  # require atleast autoconf 2.13
7 -AC_PREREQ(2.13)
8 +AC_PREREQ(2.57)
9  
10  # init autoconf (and check for presence of usb.c)
11 -AC_INIT(usb.c)
12 +AC_INIT
13 +AC_CONFIG_SRCDIR([usb.c])
14  
15  AH_TOP(
16  #undef LINUX_API
17 @@ -29,8 +30,8 @@
18  
19  dnl we need to AC_DIVERT_PUSH/AC_DIVERT_POP these variable definitions so they
20  dnl are available for $ac_help expansion (don't we all *love* autoconf?)
21 -ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
22 -                            [AC_DIVERT_PUSH(NOTICE)])
23 +dnl ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
24 +dnl                         [AC_DIVERT_PUSH(NOTICE)])
25  
26  #
27  # The following version number definitions apply to libusb
28 @@ -52,7 +53,7 @@
29  LIBUSB_BINARY_AGE=4
30  LIBUSB_VERSION=$LIBUSB_MAJOR_VERSION.$LIBUSB_MINOR_VERSION.$LIBUSB_MICRO_VERSION
31  dnl
32 -AC_DIVERT_POP()dnl
33 +dnl AC_DIVERT_POP()dnl
34  
35  AC_SUBST(LIBUSB_MAJOR_VERSION)
36  AC_SUBST(LIBUSB_MINOR_VERSION)
37 @@ -81,7 +82,7 @@
38  AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
39  
40  # Specify a configuration file
41 -AM_CONFIG_HEADER(config.h)
42 +AC_CONFIG_HEADERS([config.h])
43  
44  AC_DEFINE_UNQUOTED(LIBUSB_MAJOR_VERSION, $LIBUSB_MAJOR_VERSION)
45  AC_DEFINE_UNQUOTED(LIBUSB_MINOR_VERSION, $LIBUSB_MINOR_VERSION)
46 @@ -149,14 +150,14 @@
47  
48  dnl figure debugging default, prior to $ac_help setup
49  dnl
50 -ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
51 -                            [AC_DIVERT_PUSH(NOTICE)])
52 +dnl ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
53 +dnl                         [AC_DIVERT_PUSH(NOTICE)])
54  if test `expr $LIBUSB_MINOR_VERSION \% 2` = 1 ; then
55    debug_default=yes
56  else
57    debug_default=minimum
58  fi
59 -AC_DIVERT_POP()dnl
60 +dnl AC_DIVERT_POP()dnl
61  
62  dnl declare --enable-* args and collect ac_help strings
63  AC_ARG_ENABLE(debug, [  --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]],,enable_debug=$debug_default)
64 @@ -207,15 +208,11 @@
65  
66  if test "$os_support" = "bsd"; then
67    AC_MSG_CHECKING(if dev/usb/usb.h uses new naming convention)
68 -  AC_TRY_COMPILE(
69 -    [#include <dev/usb/usb.h>],
70 -    [int main(void)
71 +  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <dev/usb/usb.h>]], [[int main(void)
72       {
73         int a = ((struct usb_ctl_request *)0L)->ucr_addr;
74         return 0;
75 -     }],
76 -    [AC_MSG_RESULT(yes)],
77 -    [AC_MSG_RESULT(no)
78 +     }]])],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
79      AC_DEFINE_UNQUOTED(HAVE_OLD_DEV_USB_USB_H)])
80  fi
81  
82 @@ -246,7 +243,7 @@
83  
84  AM_CONDITIONAL(BUILD_DOCS, test "$build_docs" != "no")
85  
86 -AC_OUTPUT([
87 +AC_CONFIG_FILES([
88    Makefile
89    doc/Makefile
90    libusb.spec
91 @@ -255,5 +252,6 @@
92    README
93    INSTALL.libusb
94    usb.h
95 -],[chmod +x libusb-config])
96 -
97 +])
98 +AC_CONFIG_COMMANDS([default],[[chmod +x libusb-config]],[[]])
99 +AC_OUTPUT