aboutsummaryrefslogtreecommitdiff
path: root/configure.in
blob: ef0ea566afe91326df7c5d23172f37970da76e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dnl Process this file with autoconf to produce a configure script.
AC_INIT(filesize.c)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_SUBST(STK)


dnl Checks for libraries.
dnl Replace `main' with a function in -lc:
AC_CHECK_LIB(c, main)
dnl Replace `main' with a function in -lm:
AC_CHECK_LIB(m, main)
dnl Replace `main' with a function in -lpthread:
AC_CHECK_LIB(pthread, main)
dnl Replace `main' with a function in -lstk:
AC_CHECK_LIB(stk, main, STK=yes)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_TIME

dnl Checks for library functions.
AC_FUNC_MMAP
AC_CHECK_FUNCS(select socket strerror)


AC_OUTPUT(makefile)