summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 8266ac8057df7367854aa0949294a68d209c1fd5 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([sunmake], [2006.12.19], [pashev.igor@gmail.com])
AC_CONFIG_SRCDIR([usr/src/make_src/Make/bin/make/common/nse_printdep.cc])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_SILENT_RULES([silent])

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_INIT

ARCH_CPPFLAGS=
case $host in
    *-pc-solaris*)
        ARCH_CPPFLAGS="$ARCH_CFLAGS -DSUN5_0 -DSYSV -Dx86 -DSUNOS4_AND_AFTER"
        ;;
    *)
        ;;
esac
AC_SUBST(ARCH_CPPFLAGS)


# Checks for libraries.

# Checks for header files.
AC_FUNC_ALLOCA
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h nl_types.h stdlib.h string.h sys/file.h sys/mount.h sys/param.h sys/socket.h sys/systeminfo.h sys/time.h sys/vfs.h unistd.h wchar.h wctype.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_DECLS([sys_siglist])

# Checks for library functions.
AC_FUNC_CHOWN
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([alarm atexit dup2 getcwd gethostbyname memchr memset mkdir putenv rmdir setenv setlocale strcasecmp strchr strdup strerror strrchr strstr uname])

AC_CONFIG_FILES([Makefile])
AC_OUTPUT