# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.67]) AC_INIT([qrngd], 1.0) AM_INIT_AUTOMAKE([-Wall gnu foreign]) AC_CONFIG_SRCDIR([qrngd.c]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CC # Checks for libraries. # Checks for header files. AC_CHECK_HEADERS([sys/types.h sys/stat.h unistd.h string.h fcntl.h errno.h stdio.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_OFF_T AC_TYPE_SIZE_T AC_HEADER_STDBOOL # Checks for library functions. AC_FUNC_FORK AC_FUNC_MALLOC AC_CHECK_FUNCS([unlink mknod open chmod chown read strncmp system fprintf perror memset close]) AS_CASE([$host], [arm*], [ARM=yes], [ARM=no] ) AC_SUBST([CFLAGS]) AC_SUBST([CC]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT