Skip to content
Snippets Groups Projects
configure.ac 777 B
Newer Older
Nigel Kukard's avatar
Nigel Kukard committed
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.67])
AC_INIT([cputool], [@VERSION@], [nkukard@lbsd.net])
AM_INIT_AUTOMAKE

Nigel Kukard's avatar
Nigel Kukard committed
AC_CONFIG_SRCDIR([cputool.h])
AC_CONFIG_HEADERS([config.h])


# Checks for programs.
AC_PROG_CC_STDC
AC_GNU_SOURCE
Nigel Kukard's avatar
Nigel Kukard committed

# Checks for libraries.
AC_CHECK_LIB([rt], [fabs])
Nigel Kukard's avatar
Nigel Kukard committed

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h])
Nigel Kukard's avatar
Nigel Kukard committed

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_PID_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
Nigel Kukard's avatar
Nigel Kukard committed

# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
Nigel Kukard's avatar
Nigel Kukard committed
AC_FUNC_STRTOD
AC_CHECK_FUNCS([clock_gettime strerror])
Nigel Kukard's avatar
Nigel Kukard committed

Nigel Kukard's avatar
Nigel Kukard committed
AC_CONFIG_FILES([Makefile])
AC_OUTPUT