-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
65 lines (55 loc) · 2.11 KB
/
configure.ac
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
58
59
60
61
62
63
64
65
# Copyright (C) 2021 Benjamin Stürz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
AC_INIT([microcoreutils],[1.3],[benni@stuerz.xyz],[microcoreutils],[https://github.com/Benni3D/microcoreutils])
AC_PREREQ([2.71])
AC_CONFIG_SRCDIR([src/echo.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.16 foreign subdir-objects -Wall])
AC_SUBST([datarootdir], ['${prefix}/usr/share'])
# Setup default installation paths
AC_PREFIX_DEFAULT([/])
AC_USE_SYSTEM_EXTENSIONS
# Check for programs.
AC_PROG_CC
# Check for header files.
AC_CHECK_HEADERS([fcntl.h shadow.h sys/sysmacros.h sys/mount.h unistd.h stdbool.h crypt.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_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_STRUCT_ST_BLOCKS
# Checks for library functions.
AC_FUNC_CHOWN
AC_FUNC_FORK
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STRCOLL
AC_CHECK_FUNCS([getcwd getspnam lchown memmove mkdir putenv realpath
rmdir sethostname strchr strdup strerror strndup strrchr
strtol strtoul uname setresuid clearenv strcasestr
strcasecmp])
# Enable extra programs
AC_ARG_ENABLE([extra-progs],
[AS_HELP_STRING([--enable-extra-progs], [enable extra programs (like halt)])],
[AM_CONDITIONAL([ENABLE_EXTRA_PROGS], [test x$enableval = xyes])],
[AM_CONDITIONAL([ENABLE_EXTRA_PROGS], false)])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT