Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 40 lines (31 sloc) 0.901 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)
4080a3e @WinterMute bump version
WinterMute authored
5 AC_INIT([stlink],[0.5.3],[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
087a359 @WinterMute autoconfiscate
WinterMute authored
17 AM_PROG_CC_C_O
18
691e9af @WinterMute Changes for compiling with mingw32
WinterMute authored
19 AC_CHECK_HEADERS(sys/mman.h)
7ed5be2 @WinterMute build with mingw
WinterMute authored
20 AC_CHECK_HEADERS(sys/poll.h)
8e4efc3 @WinterMute reimplement mingw mmap
WinterMute authored
21 AC_REPLACE_FUNCS(mmap)
691e9af @WinterMute Changes for compiling with mingw32
WinterMute authored
22
087a359 @WinterMute autoconfiscate
WinterMute authored
23 # Checks for libraries.
24 PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,
25 AC_MSG_ERROR([*** Required libusb-1.0 >= 1.0.0 not installed ***]))
26 AC_CHECK_LIB([usbpath],[usb_path2devnum],,,-lusb)
27
28 LIBS="$LIBS $USB_LIBS"
29 CFLAGS="$CFLAGS $USB_CFLAGS"
30
7ed5be2 @WinterMute build with mingw
WinterMute authored
31 case "${host}" in
32 *-mingw32*)
33 LIBS="$LIBS -lws2_32"
c5b021c @WinterMute allow use of %zx format specifier om mingw
WinterMute authored
34 CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $CPPFLAGS"
7ed5be2 @WinterMute build with mingw
WinterMute authored
35 ;;
36 esac
087a359 @WinterMute autoconfiscate
WinterMute authored
37 AC_CONFIG_FILES([Makefile])
38 AC_OUTPUT
39
Something went wrong with that request. Please try again.