summaryrefslogtreecommitdiff
path: root/configure.in
blob: 1f460f46d7b2bb53fd89afd640d8d1cdaf5fbed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
AC_INIT([src/eeprom_main.c])
AM_INIT_AUTOMAKE([mts-id-eeprom], [0.5.2])
AM_CONFIG_HEADER([config.h])

AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_MAKE_SET

AC_HEADER_STDC

AC_CHECK_HEADERS([ \
stdio.h stdlib.h unistd.h getopt.h errno.h time.h \
ctype.h sys/types.h sys/stat.h fcntl.h stdarg.h string.h printf.h \
stdint.h sys/ioctl.h linux/limits.h linux/mts_eeprom.h \
], [],AC_MSG_ERROR([
required header missing]))

AC_DEFINE([DEBUG], 0, [set to 1 to enable debug])

AC_OUTPUT([Makefile src/Makefile])