summaryrefslogtreecommitdiffstats
path: root/configure.in
blob: ffe67c0aec45df6a59a7dea61666fc2e3cb1d4cc (plain)
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
41
42
dnl
dnl autoconf input file to generate MCONFIG
dnl

AC_PREREQ(2.57)
AC_REVISION([$Id: configure.in,v 1.7 2004/07/20 04:04:22 hpa Exp $])
AC_INIT(MCONFIG.in)
AC_PREFIX_DEFAULT(/usr)

AC_PROG_CC
AC_GNU_SOURCE
AC_SYS_LARGEFILE
AC_C_CONST
AC_C_INLINE

PA_ADD_CFLAGS(-Wall)
PA_ADD_CFLAGS(-W)
PA_ADD_CFLAGS(-Wpointer-arith)
PA_ADD_CFLAGS(-Wbad-function-cast)
PA_ADD_CFLAGS(-Wcast-equal)
PA_ADD_CFLAGS(-Wstrict-prototypes)
PA_ADD_CFLAGS(-Wmissing-prototypes)
PA_ADD_CFLAGS(-Wmissing-declarations)
PA_ADD_CFLAGS(-Wnested-externs)
PA_ADD_CFLAGS(-Winline)
PA_ADD_CFLAGS(-Wshadow)
PA_ADD_CFLAGS(-Wcast-align)
PA_ADD_CFLAGS(-pipe)

AC_CHECK_HEADERS(inttypes.h)
AC_CHECK_HEADERS(sysexits.h)
AC_CHECK_HEADERS(getopt.h)

AC_CHECK_TYPE(off_t, signed long)
AC_CHECK_TYPE(size_t, unsigned long)
AC_CHECK_TYPE(ssize_t, signed long)

AC_PROG_RANLIB
AC_PROG_INSTALL

AC_CONFIG_HEADER(config.h)
AC_OUTPUT(MCONFIG)