-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
44 lines (32 loc) · 1.15 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([jamyxer], [1.0], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([src/package_config.h])
LDFLAGS="$LDFLAGS -ljack -ljsoncpp -pthread"
AC_ARG_WITH([readline],
[AS_HELP_STRING([--with-readline], [use libreadline for better interactive cmd-line])],
CPPFLAGS="$CPPFLAGS -DWITH_READLINE"
LDFLAGS="$LDFLAGS -lreadline")
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug], [enable DEBUG flag in compilation])],
CPPFLAGS="$CPPFLAGS -DDEBUG")
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# AC_PROG_AWK
# AC_PROG_INSTALL
# AC_PROG_MKDIR_P
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
if [test $CXX = "clang++"]; then
echo "$CXX compiler set... using -std=c++11..."
CXXFLAGS="$CXXFLAGS -std=c++11"
fi
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT