-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
39 lines (33 loc) · 1.04 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
AC_PREREQ(2.64)
AC_INIT([dvdpacking], [1.0.2], [https://github.com/whatdoineed2do/dvdpacking/issues], [https://github.com/whatdoineed2do/dvdpacking], [[email protected]])
AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
AC_CONFIG_MACRO_DIRS([m4])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([src/])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX([14], [noext], [mandatory])
AX_CXX_COMPILE_STDCXX([17], [noext], [optional])
AC_PROG_INSTALL
AC_ARG_ENABLE([17-readdir],
AS_HELP_STRING([--enable-17-readdir], [Enable std 17 filesystem (no readdir(2))]),
)
AS_IF([test "x$enable_17_readdir" = "xyes" && test $HAVE_CXX17 = 1], [
AC_DEFINE(CXX17_READDIR,1,[readdir])
])
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[enable debug (default is no)])],
[no_debug=false],
[no_debug=true])
if test "$no_debug" = true; then
building_debug=no
AC_DEFINE(NDEBUG,1,[debug])
else
building_debug=yes
AC_DEFINE(DEBUG,1,[debug])
fi
AC_OUTPUT([
Makefile
src/Makefile
])