blob: 4e35bf67797aa3f58e1a43787d15b3e8880236a4 [file] [log] [blame]
Peter Stuge85a14f42011-05-09 08:12:24 +02001dnl These m4 macros are whitespace sensitive and break if moved around much.
2m4_define([LU_VERSION_H], m4_include([libusb/version.h]))
3m4_define([LU_DEFINE_VERSION_ATOM],
4 [m4_define([$1], m4_bregexp(LU_VERSION_H,
5 [^#define\s*$1\s*\([0-9]*\).*], [\1]))])
Peter Stugecbc2d7b2011-09-15 16:48:35 +02006m4_define([LU_DEFINE_VERSION_RC_ATOM],
7 [m4_define([$1], m4_bregexp(LU_VERSION_H,
8 [^#define\s*$1\s*"\(-rc[0-9]*\)".*], [\1]))])
Peter Stuge85a14f42011-05-09 08:12:24 +02009dnl The m4_bregexp() returns (only) the numbers following the #define named
10dnl in the first macro parameter. m4_define() then defines the name for use
Ludovic Rousseauc9d41fe2012-06-01 11:30:00 +020011dnl in AC_INIT.
Pete Batard9a4249f2010-07-10 17:51:13 -060012
Peter Stuge85a14f42011-05-09 08:12:24 +020013LU_DEFINE_VERSION_ATOM([LIBUSB_MAJOR])
14LU_DEFINE_VERSION_ATOM([LIBUSB_MINOR])
15LU_DEFINE_VERSION_ATOM([LIBUSB_MICRO])
Peter Stugecbc2d7b2011-09-15 16:48:35 +020016LU_DEFINE_VERSION_RC_ATOM([LIBUSB_RC])
Daniel Draked7c25452010-10-04 20:03:58 +010017
hjelmn@cs.unm.edu1eff2202014-01-08 23:50:34 +000018AC_INIT([libusb],[LIBUSB_MAJOR[.]LIBUSB_MINOR[.]LIBUSB_MICRO[]LIBUSB_RC],[libusb-devel@lists.sourceforge.net],[libusb],[http://libusb.info])
Daniel Draked7c25452010-10-04 20:03:58 +010019
Daniel Draked192c5b2010-10-04 18:45:18 +010020# Library versioning
21# These numbers should be tweaked on every release. Read carefully:
22# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
23# http://sourceware.org/autobook/autobook/autobook_91.html
24lt_current="1"
25lt_revision="0"
26lt_age="1"
Peter Stuge717f4762010-11-15 19:58:51 +010027LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}"
Pete Batard9a4249f2010-07-10 17:51:13 -060028
Daniel Drake852bba42007-11-28 13:48:45 +000029AM_INIT_AUTOMAKE
Peter Stuge6e52ea02010-11-21 23:37:27 +010030AM_MAINTAINER_MODE
31
Daniel Drakee9364d72008-01-04 00:40:49 +000032AC_CONFIG_SRCDIR([libusb/core.c])
Daniel Drake8be25602009-06-13 17:19:07 +010033AC_CONFIG_MACRO_DIR([m4])
Ludovic Rousseauc9d41fe2012-06-01 11:30:00 +020034AC_CONFIG_HEADERS([config.h])
Daniel Drake9b120c22009-11-07 10:03:07 +000035m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
Daniel Drake852bba42007-11-28 13:48:45 +000036
37AC_PREREQ([2.50])
38AC_PROG_CC
Chris Dickens3dc781c2015-12-03 12:59:20 -080039AC_PROG_CXX
Ludovic Rousseauc9d41fe2012-06-01 11:30:00 +020040LT_INIT
Peter Stugefa9b6822011-09-22 21:17:37 +020041LT_LANG([Windows Resource])
Daniel Drake852bba42007-11-28 13:48:45 +000042AC_C_INLINE
43AM_PROG_CC_C_O
Peter Stuge19d58822010-11-21 23:09:02 +010044AC_DEFINE([_GNU_SOURCE], 1, [Use GNU extensions])
Daniel Drake852bba42007-11-28 13:48:45 +000045
Peter Stuge717f4762010-11-15 19:58:51 +010046LTLDFLAGS="${LTLDFLAGS} -no-undefined"
47
Daniel Drakec0c94322008-03-13 12:36:56 +000048AC_MSG_CHECKING([operating system])
Pete Batard968df122012-04-19 18:01:04 +010049
Kuangye Guo7e3de5d2013-10-21 18:36:15 -070050dnl on linux-android platform, some functions are in different places
51case $host in
52*-linux-android*)
53 AC_MSG_RESULT([This is a Linux-Android system])
54 is_backend_android="yes"
55 ;;
56*)
57 is_backend_android="no"
58esac
59
Daniel Drakec0c94322008-03-13 12:36:56 +000060case $host in
Gustavo Zacarias5f366712013-09-03 10:24:04 -030061*-linux* | *-uclinux*)
Daniel Drakec0c94322008-03-13 12:36:56 +000062 AC_MSG_RESULT([Linux])
63 backend="linux"
Peter Stuge23b5db82010-05-11 00:51:43 +010064 threads="posix"
Nathan Hjelmb49f6bf2009-02-16 21:39:29 -030065 ;;
66*-darwin*)
Peter Stuge0bd4a4d2011-02-26 04:08:38 +010067 AC_MSG_RESULT([Darwin/Mac OS X])
Nathan Hjelmb49f6bf2009-02-16 21:39:29 -030068 backend="darwin"
Peter Stuge23b5db82010-05-11 00:51:43 +010069 threads="posix"
Peter Stuge6e52ea02010-11-21 23:37:27 +010070 ;;
Martin Pieuchotc5682882012-01-30 09:59:30 +010071*-openbsd*)
Martin Pieuchotc5682882012-01-30 09:59:30 +010072 AC_MSG_RESULT([OpenBSD])
Hans de Goedeeb4e7be2013-08-21 16:18:39 +020073 backend="openbsd"
Martin Pieuchotc5682882012-01-30 09:59:30 +010074 threads="posix"
Pete Batard968df122012-04-19 18:01:04 +010075 ;;
76*-netbsd*)
Hans de Goedeeb4e7be2013-08-21 16:18:39 +020077 AC_MSG_RESULT([NetBSD])
78 backend="netbsd"
Pete Batard968df122012-04-19 18:01:04 +010079 threads="posix"
Martin Pieuchotc5682882012-01-30 09:59:30 +010080 ;;
Pete Batard9a4249f2010-07-10 17:51:13 -060081*-mingw*)
Pete Batard9a4249f2010-07-10 17:51:13 -060082 AC_MSG_RESULT([Windows])
83 backend="windows"
Pete Batard968df122012-04-19 18:01:04 +010084 threads="windows"
Pete Batard6b33cd42012-06-08 23:31:56 +010085 create_import_lib="yes"
Pete Batardff3259b2012-06-07 11:55:30 +010086 AM_CFLAGS="${AM_CFLAGS} -fno-omit-frame-pointer"
Pete Batard9a4249f2010-07-10 17:51:13 -060087 ;;
88*-cygwin*)
Peter Stuge0bd4a4d2011-02-26 04:08:38 +010089 AC_MSG_RESULT([Cygwin (using Windows backend)])
Pete Batard9a4249f2010-07-10 17:51:13 -060090 backend="windows"
91 threads="posix"
Pete Batard9a4249f2010-07-10 17:51:13 -060092 ;;
Akshay Jaggidc974252014-09-24 22:46:17 +010093*-haiku*)
94 AC_MSG_RESULT([Haiku])
Akshay Jaggidc974252014-09-24 22:46:17 +010095 backend="haiku"
96 threads="posix"
97 ;;
Daniel Drakec0c94322008-03-13 12:36:56 +000098*)
99 AC_MSG_ERROR([unsupported operating system])
100esac
Pete Batard968df122012-04-19 18:01:04 +0100101
102case $backend in
103linux)
104 AC_DEFINE(OS_LINUX, 1, [Linux backend])
105 AC_SUBST(OS_LINUX)
Peter Stuge94b0ccc2012-10-23 00:15:23 +0000106 AC_SEARCH_LIBS(clock_gettime, rt, [], [], -pthread)
Nathan Hjelm68532912012-11-29 16:14:03 -0700107 AC_ARG_ENABLE([udev],
Toby Gray9222a542013-07-09 16:05:39 +0100108 [AC_HELP_STRING([--enable-udev], [use udev for device enumeration and hotplug support (recommended) [default=yes]])],
Nathan Hjelm68532912012-11-29 16:14:03 -0700109 [], [enable_udev="yes"])
110 if test "x$enable_udev" = "xyes" ; then
111 # system has udev. use it or fail!
112 AC_CHECK_HEADERS([libudev.h],[],[AC_ERROR(["udev support requested but libudev not installed"])])
113 AC_CHECK_LIB([udev], [udev_new], [], [AC_ERROR(["udev support requested but libudev not installed"])])
114 AC_DEFINE(USE_UDEV, 1, [Use udev for device enumeration/hotplug])
115 else
Chris Dickens3f4df892016-01-28 14:15:29 -0800116 AC_CHECK_HEADERS([asm/types.h], [], [])
117 AC_CHECK_HEADERS([sys/socket.h linux/netlink.h], [], [AC_ERROR(["Linux netlink headers not found"])], [
Nathan Hjelm83021ab2013-07-27 12:35:51 -0600118#ifdef HAVE_ASM_TYPES_H
119#include <asm/types.h>
120#endif
Nathan Hjelm83021ab2013-07-27 12:35:51 -0600121#include <sys/socket.h>
Nathan Hjelm83021ab2013-07-27 12:35:51 -0600122])
Nathan Hjelm68532912012-11-29 16:14:03 -0700123 fi
124 AC_SUBST(USE_UDEV)
Kuangye Guo7e3de5d2013-10-21 18:36:15 -0700125
126case $is_backend_android in
127yes)
Kuangye Guo7e3de5d2013-10-21 18:36:15 -0700128 dnl there are gettimeofday function but configure doesn't seem to be able to find it.
129 AC_DEFINE([HAVE_GETTIMEOFDAY], [1], [Define if you have gettimeofday])
130 ;;
131*)
Pete Batard968df122012-04-19 18:01:04 +0100132 THREAD_CFLAGS="-pthread"
Peter Stuge94b0ccc2012-10-23 00:15:23 +0000133 LIBS="${LIBS} -pthread"
Kuangye Guo7e3de5d2013-10-21 18:36:15 -0700134esac
135
Pete Batard968df122012-04-19 18:01:04 +0100136 AC_CHECK_HEADERS([poll.h])
137 AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])
138 ;;
139darwin)
140 AC_DEFINE(OS_DARWIN, 1, [Darwin backend])
141 AC_SUBST(OS_DARWIN)
Peter Stuge94b0ccc2012-10-23 00:15:23 +0000142 LIBS="-lobjc -Wl,-framework,IOKit -Wl,-framework,CoreFoundation"
Pete Batard968df122012-04-19 18:01:04 +0100143 LTLDFLAGS="${LTLDFLAGS} -Wl,-prebind"
144 AC_CHECK_HEADERS([poll.h])
145 AC_CHECK_TYPE([nfds_t],
146 [AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])],
147 [AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument])],
148 [#include <poll.h>])
149 ;;
Hans de Goedeeb4e7be2013-08-21 16:18:39 +0200150openbsd)
151 AC_DEFINE(OS_OPENBSD, 1, [OpenBSD backend])
Pete Batard968df122012-04-19 18:01:04 +0100152 AC_SUBST(OS_OPENBSD)
153 THREAD_CFLAGS="-pthread"
Peter Stuge94b0ccc2012-10-23 00:15:23 +0000154 LIBS="-pthread"
Pete Batard968df122012-04-19 18:01:04 +0100155 AC_CHECK_HEADERS([poll.h])
156 AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])
157 ;;
Hans de Goedeeb4e7be2013-08-21 16:18:39 +0200158netbsd)
159 AC_DEFINE(OS_NETBSD, 1, [NetBSD backend])
160 AC_SUBST(OS_NETBSD)
161 THREAD_CFLAGS="-pthread"
162 LIBS="-pthread"
163 AC_CHECK_HEADERS([poll.h])
164 AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])
165 ;;
Pete Batard968df122012-04-19 18:01:04 +0100166windows)
Peter Stuge1a2d21f2011-02-26 04:21:05 +0100167 AC_DEFINE(OS_WINDOWS, 1, [Windows backend])
168 AC_SUBST(OS_WINDOWS)
Peter Stuge94b0ccc2012-10-23 00:15:23 +0000169 LIBS=""
Peter Stuge1a2d21f2011-02-26 04:21:05 +0100170 LTLDFLAGS="${LTLDFLAGS} -avoid-version -Wl,--add-stdcall-alias"
Peter Stuge1a2d21f2011-02-26 04:21:05 +0100171 AC_DEFINE([POLL_NFDS_TYPE],[unsigned int],[type of second poll() argument])
Tormod Volden4e95d0e2014-09-02 19:25:00 +0100172 AC_DEFINE([WINVER], 0x0501, [Oldest Windows version supported])
Dmitry Fleytman24c52892016-01-20 17:05:55 +0200173
174 AC_ARG_ENABLE([usbdk],
175 [AC_HELP_STRING([--enable-usbdk], [use UsbDk Windows backend [default=no]])],
176 [], [enable_usbdk="no"])
177 if test "x$enable_usbdk" = "xyes" ; then
178 AC_DEFINE(USE_USBDK, 1, [Use UsbDk Windows backend])
179 fi
180 AC_SUBST(USE_USBDK)
Pete Batard968df122012-04-19 18:01:04 +0100181 ;;
Akshay Jaggidc974252014-09-24 22:46:17 +0100182haiku)
183 AC_DEFINE(OS_HAIKU, 1, [Haiku backend])
184 AC_SUBST(OS_HAIKU)
185 LIBS="${LIBS} -lbe"
186 AC_CHECK_HEADERS([poll.h])
187 AC_DEFINE([POLL_NFDS_TYPE],[nfds_t],[type of second poll() argument])
188 ;;
Pete Batard968df122012-04-19 18:01:04 +0100189esac
190
Peter Stuge94b0ccc2012-10-23 00:15:23 +0000191AC_SUBST(LIBS)
Daniel Drakec0c94322008-03-13 12:36:56 +0000192
Peter Stugec24649d2010-10-30 22:28:59 +0200193AM_CONDITIONAL(OS_LINUX, test "x$backend" = xlinux)
194AM_CONDITIONAL(OS_DARWIN, test "x$backend" = xdarwin)
Hans de Goedeeb4e7be2013-08-21 16:18:39 +0200195AM_CONDITIONAL(OS_OPENBSD, test "x$backend" = xopenbsd)
196AM_CONDITIONAL(OS_NETBSD, test "x$backend" = xnetbsd)
Peter Stugec24649d2010-10-30 22:28:59 +0200197AM_CONDITIONAL(OS_WINDOWS, test "x$backend" = xwindows)
Akshay Jaggidc974252014-09-24 22:46:17 +0100198AM_CONDITIONAL(OS_HAIKU, test "x$backend" = xhaiku)
Peter Stugec24649d2010-10-30 22:28:59 +0200199AM_CONDITIONAL(THREADS_POSIX, test "x$threads" = xposix)
Nathan Hjelm68532912012-11-29 16:14:03 -0700200AM_CONDITIONAL(CREATE_IMPORT_LIB, test "x$create_import_lib" = "xyes")
201AM_CONDITIONAL(USE_UDEV, test "x$enable_udev" = xyes)
Dmitry Fleytman24c52892016-01-20 17:05:55 +0200202AM_CONDITIONAL(USE_USBDK, test "x$enable_usbdk" = xyes)
Peter Stugec24649d2010-10-30 22:28:59 +0200203if test "$threads" = posix; then
204 AC_DEFINE(THREADS_POSIX, 1, [Use POSIX Threads])
205fi
Daniel Drakec0c94322008-03-13 12:36:56 +0000206
Daniel Drake47830082009-10-28 20:33:49 +0545207# timerfd
208AC_CHECK_HEADER([sys/timerfd.h], [timerfd_h=1], [timerfd_h=0])
209AC_ARG_ENABLE([timerfd],
210 [AS_HELP_STRING([--enable-timerfd],
Toby Gray9222a542013-07-09 16:05:39 +0100211 [use timerfd for timing [default=auto]])],
Daniel Drake47830082009-10-28 20:33:49 +0545212 [use_timerfd=$enableval], [use_timerfd='auto'])
213
214if test "x$use_timerfd" = "xyes" -a "x$timerfd_h" = "x0"; then
Daniel Drake0bd7ef52009-11-21 16:57:25 +0000215 AC_MSG_ERROR([timerfd header not available; glibc 2.9+ required])
216fi
217
218AC_CHECK_DECL([TFD_NONBLOCK], [tfd_hdr_ok=yes], [tfd_hdr_ok=no], [#include <sys/timerfd.h>])
219if test "x$use_timerfd" = "xyes" -a "x$tfd_hdr_ok" = "xno"; then
220 AC_MSG_ERROR([timerfd header not usable; glibc 2.9+ required])
Daniel Drake47830082009-10-28 20:33:49 +0545221fi
222
223AC_MSG_CHECKING([whether to use timerfd for timing])
224if test "x$use_timerfd" = "xno"; then
225 AC_MSG_RESULT([no (disabled by user)])
226else
Daniel Drake0bd7ef52009-11-21 16:57:25 +0000227 if test "x$timerfd_h" = "x1" -a "x$tfd_hdr_ok" = "xyes"; then
Daniel Drake47830082009-10-28 20:33:49 +0545228 AC_MSG_RESULT([yes])
Peter Stuge19d58822010-11-21 23:09:02 +0100229 AC_DEFINE(USBI_TIMERFD_AVAILABLE, 1, [timerfd headers available])
Daniel Drake47830082009-10-28 20:33:49 +0545230 else
231 AC_MSG_RESULT([no (header not available)])
232 fi
233fi
234
Pete Batard9a4249f2010-07-10 17:51:13 -0600235AC_CHECK_TYPES(struct timespec)
236
Daniel Drake852bba42007-11-28 13:48:45 +0000237# Message logging
238AC_ARG_ENABLE([log], [AS_HELP_STRING([--disable-log], [disable all logging])],
239 [log_enabled=$enableval],
240 [log_enabled='yes'])
241if test "x$log_enabled" != "xno"; then
242 AC_DEFINE([ENABLE_LOGGING], 1, [Message logging])
243fi
244
245AC_ARG_ENABLE([debug-log], [AS_HELP_STRING([--enable-debug-log],
Toby Gray9222a542013-07-09 16:05:39 +0100246 [start with debug message logging enabled [default=no]])],
Daniel Drake852bba42007-11-28 13:48:45 +0000247 [debug_log_enabled=$enableval],
248 [debug_log_enabled='no'])
249if test "x$debug_log_enabled" != "xno"; then
Pete Batardcf6e68a2012-05-31 18:31:34 +0100250 AC_DEFINE([ENABLE_DEBUG_LOGGING], 1, [Start with debug message logging enabled])
Daniel Drake852bba42007-11-28 13:48:45 +0000251fi
252
Toby Gray9222a542013-07-09 16:05:39 +0100253AC_ARG_ENABLE([system-log], [AS_HELP_STRING([--enable-system-log],
254 [output logging messages to system wide log, if supported by the OS [default=no]])],
255 [system_log_enabled=$enableval],
256 [system_log_enabled='no'])
257if test "x$system_log_enabled" != "xno"; then
258 AC_DEFINE([USE_SYSTEM_LOGGING_FACILITY], 1, [Enable output to system log])
259fi
260
261# Check if syslog is available in standard C library
262AC_CHECK_HEADERS(syslog.h)
263AC_CHECK_FUNC([syslog], [have_syslog=yes], [have_syslog=no])
264if test "x$have_syslog" != "xno"; then
265 AC_DEFINE([HAVE_SYSLOG_FUNC], 1, [syslog() function available])
266fi
267
Daniel Drake852bba42007-11-28 13:48:45 +0000268# Examples build
269AC_ARG_ENABLE([examples-build], [AS_HELP_STRING([--enable-examples-build],
Toby Gray9222a542013-07-09 16:05:39 +0100270 [build example applications [default=no]])],
Daniel Drake852bba42007-11-28 13:48:45 +0000271 [build_examples=$enableval],
272 [build_examples='no'])
273AM_CONDITIONAL([BUILD_EXAMPLES], [test "x$build_examples" != "xno"])
274
Toby Gray21cf6e42012-11-21 14:00:31 +0000275# Tests build
276AC_ARG_ENABLE([tests-build], [AS_HELP_STRING([--enable-tests-build],
Toby Gray9222a542013-07-09 16:05:39 +0100277 [build test applications [default=no]])],
Toby Gray21cf6e42012-11-21 14:00:31 +0000278 [build_tests=$enableval],
279 [build_tests='no'])
280AM_CONDITIONAL([BUILD_TESTS], [test "x$build_tests" != "xno"])
281
Alex Vatchenkob5017952009-05-28 15:58:50 -0400282# check for -fvisibility=hidden compiler support (GCC >= 3.4)
283saved_cflags="$CFLAGS"
Pete Batard9a4249f2010-07-10 17:51:13 -0600284# -Werror required for cygwin
285CFLAGS="$CFLAGS -Werror -fvisibility=hidden"
Peter Stuge44b85da2010-11-21 23:10:35 +0100286AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
Alex Vatchenkob5017952009-05-28 15:58:50 -0400287 [VISIBILITY_CFLAGS="-fvisibility=hidden"
Pete Batard29f9f9e2010-08-13 11:59:49 +0100288 AC_DEFINE([DEFAULT_VISIBILITY], [__attribute__((visibility("default")))], [Default visibility]) ],
Alex Vatchenkob5017952009-05-28 15:58:50 -0400289 [ VISIBILITY_CFLAGS=""
Pete Batard29f9f9e2010-08-13 11:59:49 +0100290 AC_DEFINE([DEFAULT_VISIBILITY], [], [Default visibility]) ],
Alex Vatchenkob5017952009-05-28 15:58:50 -0400291 ])
292CFLAGS="$saved_cflags"
Nathan Hjelmb49f6bf2009-02-16 21:39:29 -0300293
Alex Vatchenkob5017952009-05-28 15:58:50 -0400294# check for -Wno-pointer-sign compiler support (GCC >= 4)
295saved_cflags="$CFLAGS"
296CFLAGS="$CFLAGS -Wno-pointer-sign"
Peter Stuge44b85da2010-11-21 23:10:35 +0100297AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
Alex Vatchenkob5017952009-05-28 15:58:50 -0400298 nopointersign_cflags="-Wno-pointer-sign", nopointersign_cflags="")
299CFLAGS="$saved_cflags"
300
Daniel Drakea516fcb2010-07-21 17:49:21 -0600301# sigaction not available on MinGW
302AC_CHECK_FUNC([sigaction], [have_sigaction=yes], [have_sigaction=no])
303AM_CONDITIONAL([HAVE_SIGACTION], [test "x$have_sigaction" = "xyes"])
304
Daniel Drake7211aba2010-06-25 12:01:58 -0500305# headers not available on all platforms but required on others
306AC_CHECK_HEADERS([sys/time.h])
Peter Stuge463dda02012-05-06 17:04:00 +0000307AC_CHECK_FUNCS(gettimeofday)
Pete Batard1e6928c2013-01-15 22:24:32 +0000308AC_CHECK_HEADERS([signal.h])
Daniel Drake7211aba2010-06-25 12:01:58 -0500309
Akshay Jaggidc974252014-09-24 22:46:17 +0100310# check for -std=gnu99 compiler support
311saved_cflags="$CFLAGS"
312CFLAGS="-std=gnu99"
313AC_MSG_CHECKING([whether CC supports -std=gnu99])
314AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
315 [AC_MSG_RESULT([yes])]
316 [AM_CFLAGS="${AM_CFLAGS} -std=gnu99"],
317 [AC_MSG_RESULT([no])]
318)
319CFLAGS="$saved_cflags"
320
321AM_CFLAGS="${AM_CFLAGS} -Wall -Wundef -Wunused -Wstrict-prototypes -Werror-implicit-function-declaration $nopointersign_cflags -Wshadow ${THREAD_CFLAGS} ${VISIBILITY_CFLAGS}"
Alex Vatchenkob5017952009-05-28 15:58:50 -0400322
Daniel Drake852bba42007-11-28 13:48:45 +0000323AC_SUBST(AM_CFLAGS)
Peter Stuge717f4762010-11-15 19:58:51 +0100324AC_SUBST(LTLDFLAGS)
Daniel Drake852bba42007-11-28 13:48:45 +0000325
Peter Stugeef39d152011-02-25 02:33:29 +0100326AC_CONFIG_FILES([libusb-1.0.pc])
327AC_CONFIG_FILES([Makefile])
328AC_CONFIG_FILES([libusb/Makefile])
Peter Stugeef39d152011-02-25 02:33:29 +0100329AC_CONFIG_FILES([examples/Makefile])
Toby Gray21cf6e42012-11-21 14:00:31 +0000330AC_CONFIG_FILES([tests/Makefile])
Peter Stugeef39d152011-02-25 02:33:29 +0100331AC_CONFIG_FILES([doc/Makefile])
332AC_CONFIG_FILES([doc/doxygen.cfg])
Daniel Drake852bba42007-11-28 13:48:45 +0000333AC_OUTPUT