-
Notifications
You must be signed in to change notification settings - Fork 10
/
configure.ac
40 lines (30 loc) · 929 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
38
39
40
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.69)
AC_INIT(emmcdl, 1.0, cchua.cn@gmail.com)
AC_CONFIG_SRCDIR([inc/diskwriter.h])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_CHECK_HEADERS(stdlib.h string.h termios.h)
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS(memset strstr)
AC_PROG_RANLIB
AC_ARG_ENABLE([sysdeps],
[ --enable-sysdeps Turn on debugging],
[case "${enableval}" in
yes) sysdeps=true ;;
no) sysdeps=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-sysdeps]) ;;
esac],[sysdeps=false])
AM_CONDITIONAL([SYSDEPS_WIN32], [test x$sysdeps = xtrue])
AC_OUTPUT(Makefile)