configure.ac (vnstat-2.8) | : | configure.ac (vnstat-2.9) | ||
---|---|---|---|---|
# -*- Autoconf -*- | # -*- Autoconf -*- | |||
# Process this file with autoconf to produce a configure script. | # Process this file with autoconf to produce a configure script. | |||
AC_INIT([vnstat], [2.8]) | AC_INIT([vnstat], [2.9]) | |||
AM_INIT_AUTOMAKE([foreign subdir-objects std-options -Wall -Werror]) | AM_INIT_AUTOMAKE([foreign subdir-objects std-options -Wall -Werror]) | |||
AM_MAINTAINER_MODE | AM_MAINTAINER_MODE | |||
AC_CONFIG_SRCDIR([src/vnstatd.c]) | AC_CONFIG_SRCDIR([src/vnstatd.c]) | |||
AC_CONFIG_HEADERS([src/config.h]) | AC_CONFIG_HEADERS([src/config.h]) | |||
# Checks for programs. | # Checks for programs. | |||
AC_PROG_CC | AC_PROG_CC | |||
AM_PROG_CC_C_O | AM_PROG_CC_C_O | |||
AC_PROG_MAKE_SET | AC_PROG_MAKE_SET | |||
skipping to change at line 35 | skipping to change at line 35 | |||
AC_ARG_ENABLE([extra-paths], [ | AC_ARG_ENABLE([extra-paths], [ | |||
AS_HELP_STRING([--disable-extra-paths], [do not add extra paths to CFLAGS and LD FLAGS])], [], [ | AS_HELP_STRING([--disable-extra-paths], [do not add extra paths to CFLAGS and LD FLAGS])], [], [ | |||
CFLAGS="$CFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib"]) | CFLAGS="$CFLAGS -I/usr/local/include" LDFLAGS="$LDFLAGS -L/usr/local/lib"]) | |||
# Checks for libraries. | # Checks for libraries. | |||
AC_CHECK_LIB([m], [pow], [], [AC_MSG_ERROR([could not find required math library ])]) | AC_CHECK_LIB([m], [pow], [], [AC_MSG_ERROR([could not find required math library ])]) | |||
AC_CHECK_LIB([sqlite3], [sqlite3_prepare_v2], [], [AC_MSG_ERROR([could not find required sqlite3 library])]) | AC_CHECK_LIB([sqlite3], [sqlite3_prepare_v2], [], [AC_MSG_ERROR([could not find required sqlite3 library])]) | |||
AS_IF([test "x$enable_image_output" != "xno"], [ | AS_IF([test "x$enable_image_output" != "xno"], [ | |||
AC_CHECK_LIB([gd], [gdImagePng], [IMAGELIBS=-lgd]) | AC_CHECK_LIB([gd], [gdImagePng], [IMAGELIBS=-lgd]) | |||
AC_CHECK_DECLS([GD_NEAREST_NEIGHBOUR], [], [], [[#include <gd.h>]]) | AC_CHECK_DECLS([GD_NEAREST_NEIGHBOUR, gdImageFile], [], [], [[#include <gd.h>]]) | |||
AC_SUBST([IMAGELIBS])]) | AC_SUBST([IMAGELIBS])]) | |||
AM_CONDITIONAL([HAVE_LIBGD], [test "$IMAGELIBS" = "-lgd"]) | AM_CONDITIONAL([HAVE_LIBGD], [test "$IMAGELIBS" = "-lgd"]) | |||
PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [], [AC_MSG_NOTICE([testcases can n ot be execute without check installed])]) | PKG_CHECK_MODULES([CHECK], [check >= 0.9.6], [], [AC_MSG_NOTICE([testcases can n ot be execute without check installed])]) | |||
AM_CONDITIONAL([HAVE_CHECK], [test "$CHECK_LIBS"]) | AM_CONDITIONAL([HAVE_CHECK], [test "$CHECK_LIBS"]) | |||
# Checks for header files. | # Checks for header files. | |||
AC_CHECK_HEADERS([fcntl.h inttypes.h locale.h stdint.h stdlib.h string.h sys/fil e.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h syslog.h unist d.h wchar.h linux/rtnetlink.h]) | AC_CHECK_HEADERS([fcntl.h inttypes.h locale.h stdint.h stdlib.h string.h sys/fil e.h sys/mount.h sys/param.h sys/socket.h sys/statvfs.h sys/time.h syslog.h unist d.h wchar.h linux/rtnetlink.h]) | |||
# Check if being cross-compiled | # Check if being cross-compiled | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |