3 AC_CONFIG_SRCDIR([replace.c])
4 AC_CONFIG_HEADER(config.h)
6 CFLAGS="$CFLAGS -I$srcdir"
8 AC_LIBREPLACE_ALL_CHECKS
9 AC_LIBREPLACE_NETWORK_CHECKS
11 if test "$ac_cv_prog_gcc" = yes; then
12 CFLAGS="$CFLAGS -Wall"
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"
25 m4_include(build_macros.m4)
26 BUILD_WITH_SHARED_BUILD_DIR
28 LIBS="${LIBREPLACE_NETWORK_LIBS}"