summaryrefslogtreecommitdiff
path: root/test/mocklibc/configure.ac
blob: 70798ee18f99d1b43c40f3aeed4a221e03604c9f (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
33
34
35
36
37
38
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.65])
AC_INIT([MockLibc], [1.1], [vonhollen@google.com])
AC_CONFIG_SRCDIR([src])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC

# Checks for libraries.
AC_PROG_LIBTOOL

# Checks for header files.
AC_CHECK_HEADERS([netdb.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([endgrent endpwent memset regcomp strdup])

# Build wrapper scripts from templates
AC_SUBST([libname], [libmocklibc.so])
#AC_CONFIG_FILES([bin/mocklibc], [chmod +x bin/mocklibc], [libname=${libname}])
#AC_CONFIG_FILES([bin/mocklibc-test], [chmod +x bin/mocklibc-test],
#                [libname=${libname}]))

AC_OUTPUT([
Makefile
src/Makefile
bin/Makefile
])