Show the timeout casted as a float as it happens that way anyhow in the
[state-utils.git] / configure.ac
blob7650b15085f90893755f537867fdf2e1d717c0ab
1 AC_PREREQ(2.52)
2 AC_INIT(
3 state-utils, dnl `Package Name`
4 0.12.3, dnl `Package Version`
5 Avuton Olrich (avuton@gmail.com) dnl `Name/email`
8 AM_INIT_AUTOMAKE(
9         $PACKAGE_NAME,
10         $PACKAGE_VERSION
13 AC_PROG_CC
14 AC_PROG_INSTALL
15 AC_CONFIG_LINKS
17 case "$CC" in
18 *gcc*)
19         CFLAGS="-Wall -Wextra -pedantic"
20 dnl CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wnested-externs -Wno-long-long -pedantic -Wmissing-noreturn -Wshadow -Wstrict-prototypes -Wvolatile-register-var -Wvariadic-macros -Winvalid-pch -Winline -Wunreachable-code -Wnested-externs -Wredundant-decls -Wpadded -Wpacked -Wno-multichar -Wmissing-format-attribute -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wstrict-prototypes -Waggregate-return  -Wconversion -Wwrite-strings -Wcast-align -Wcast-qual -Wbad-function-cast -Wpointer-arith -Wdeclaration-after-statement -Wtraditional -Wfloat-equal -Wsystem-headers $CFLAGS"
21         ;;
22 esac
24 AM_CONFIG_HEADER(config.h)
26 dnl For state
27 AC_CHECK_HEADER(getopt.h)
28 AC_CHECK_HEADER(stdio.h)
29 AC_CHECK_HEADER(errno.h)
30 AC_CHECK_HEADER(ctype.h)
32 dnl For libmpdclient
33 AC_CHECK_HEADER(netdb.h)
34 AC_CHECK_HEADER(fcntl.h)
35 AC_CHECK_HEADER(netinet/in.h)
36 AC_CHECK_HEADER(arpa/inet.h)
37 AC_CHECK_HEADER(sys/param.h)
39 AC_CHECK_LIB(
40         socket,
41         socket,
42         LIBS="$LIBS -lsocket",
45 AC_CHECK_LIB(
46         nsl,
47         gethostbyname,
48         LIBS="$LIBS -lnsl"
51 AC_DEFINE_UNQUOTED(
52         DEFAULT_HOST,
53         "$DEFAULT_HOST",
54         [Define default host]
57 AC_DEFINE_UNQUOTED(
58         DEFAULT_PORT,
59         "$DEFAULT_PORT",
60         [Define default port]
63 AC_OUTPUT(doc/Makefile src/Makefile Makefile)