forked from quark-mcu/qm-dfu-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
37 lines (28 loc) · 978 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT([dfu-util-qda],[1.3.0 (dfu-util 0.8)],,,])
AC_CONFIG_AUX_DIR(m4)
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_HEADERS([config.h])
# Test for new silent rules and enable only if they are available
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
LIBS="$LIBS"
CFLAGS="$CFLAGS"
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([usbpath.h windows.h sysexits.h])
# Check if it's a Windows system
AC_CHECK_HEADER([windows.h], [windows_build=yes])
AM_CONDITIONAL([WINDOWS_BUILD], [test "x$windows_build" = "xyes"])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MEMCMP
AC_CHECK_FUNCS([ftruncate getpagesize nanosleep err])
AC_CONFIG_FILES(Makefile src/Makefile)
AC_OUTPUT