Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (29 sloc) 0.773 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.
763a6ef [ update ] apply pipe support patch from chrisj@rtems.org
lementec authored
24 AC_CHECK_HEADER([libusb.h], [USB_LIBS="-lusb-1.0"])
087a359 @WinterMute autoconfiscate
WinterMute authored
25
26 LIBS="$LIBS $USB_LIBS"
27 CFLAGS="$CFLAGS $USB_CFLAGS"
28
7ed5be2 @WinterMute build with mingw
WinterMute authored
29 case "${host}" in
30 *-mingw32*)
31 LIBS="$LIBS -lws2_32"
c5b021c @WinterMute allow use of %zx format specifier om mingw
WinterMute authored
32 CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $CPPFLAGS"
7ed5be2 @WinterMute build with mingw
WinterMute authored
33 ;;
34 esac
087a359 @WinterMute autoconfiscate
WinterMute authored
35 AC_CONFIG_FILES([Makefile])
36 AC_OUTPUT
37
Something went wrong with that request. Please try again.