-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
59 lines (47 loc) · 1.3 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([YaSh],[0.0.9],[hunter@openrobotics.org])
AC_CONFIG_SRCDIR([src/command.cpp])
AC_CONFIG_MACRO_DIRS([m4])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE
# Set CXXFLAGS
CXXFLAGS=""
CFLAGS=""
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AM_PROG_LEX
AC_PROG_YACC
AC_PROG_LIBTOOL
LT_INIT
AC_CONFIG_HEADER(config.h)
# Check for debug mode
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
[enable debugging, default: no]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],
[debug=false])
AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h termios.h unistd.h])
AC_CHECK_HEADERS([alloca.h regex.h sys/ioctl.h sys/types.h sys/wait.h])
AC_CHECK_HEADERS([sys/stat.h dirent.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_FORK
AC_CHECK_FUNCS([dup2 gethostname memset regcomp setenv strchr strdup strstr])
AC_CONFIG_FILES([Makefile src/Makefile])
# Output
AC_OUTPUT