81997e09b7d00f46de3433a3031ffce32a025f2f
[ira/wip.git] / lib / replace / configure.ac
1 AC_PREREQ(2.50)
2 AC_INIT(replace.c)
3 AC_CONFIG_SRCDIR([replace.c])
4 AC_CONFIG_HEADER(config.h)
5
6 CFLAGS="$CFLAGS -I$srcdir"
7
8 AC_LIBREPLACE_ALL_CHECKS
9 AC_LIBREPLACE_NETWORK_CHECKS
10
11 if test "$ac_cv_prog_gcc" = yes; then
12    CFLAGS="$CFLAGS -Wall"
13    CFLAGS="$CFLAGS -W"
14    CFLAGS="$CFLAGS -Wshadow"
15    CFLAGS="$CFLAGS -Wstrict-prototypes"
16    CFLAGS="$CFLAGS -Wpointer-arith"
17    CFLAGS="$CFLAGS -Wcast-qual"
18    CFLAGS="$CFLAGS -Wcast-align"
19    CFLAGS="$CFLAGS -Wwrite-strings"
20    CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
21    CFLAGS="$CFLAGS -Wformat=2"
22    CFLAGS="$CFLAGS -Wno-format-y2k"
23 fi
24
25 LIBS="${LIBREPLACE_NETWORK_LIBS}"
26 AC_SUBST(LIBS)
27
28 AC_SUBST(LDFLAGS)
29
30 AC_OUTPUT(Makefile)