Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (26 sloc) 0.802 kb
087a359 @WinterMute autoconfiscate
WinterMute authored
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
691e9af @WinterMute Changes for compiling with mingw32
WinterMute authored
5 AC_INIT([stlink],[0.5.1],[davem@devkitpro.org])
087a359 @WinterMute autoconfiscate
WinterMute authored
6 AC_CONFIG_SRCDIR([src/stlink-common.c])
691e9af @WinterMute Changes for compiling with mingw32
WinterMute authored
7 AC_CONFIG_LIBOBJ_DIR([src])
087a359 @WinterMute autoconfiscate
WinterMute authored
8 AM_INIT_AUTOMAKE([1.10])
9
10
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_INSTALL
14 AC_CANONICAL_HOST
15 AC_CANONICAL_BUILD
691e9af @WinterMute Changes for compiling with mingw32
WinterMute authored
16 AC_PROG_RANLIB
17 #AC_PROG_LIBTOOL
087a359 @WinterMute autoconfiscate
WinterMute authored
18 AM_PROG_CC_C_O
19
691e9af @WinterMute Changes for compiling with mingw32
WinterMute authored
20 AC_CHECK_HEADERS(sys/mman.h)
21 AC_CHECK_FUNCS(mmap)
22 AC_REPLACE_FUNCS(mmap pread)
23
087a359 @WinterMute autoconfiscate
WinterMute authored
24 # Checks for libraries.
25 PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,
26 AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
27 AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
28
29 LIBS="$LIBS $USB_LIBS"
30 CFLAGS="$CFLAGS $USB_CFLAGS"
31
32 AC_CONFIG_FILES([Makefile])
33 AC_OUTPUT
34
Something went wrong with that request. Please try again.