-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
31 lines (23 loc) · 874 Bytes
/
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
AC_INIT(lsucpd, 0.90, [email protected])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AM_MAINTAINER_MODE
# AM_CONFIG_HEADER(config.h)
AC_CONFIG_HEADERS([config.h])
AC_LANG(C++)
AC_PROG_CXX
AC_PROG_INSTALL
AC_CANONICAL_HOST
AC_CHECK_HEADERS([format], [FMT_LDADD=''], [FMT_LDADD='-lfmt'], [])
AC_SUBST(FMT_LDADD)
AC_CHECK_HEADERS([source_location], [], [], [])
# AM_PROG_AR is supported and needed since automake v1.12+
ifdef([AM_PROG_AR], [AM_PROG_AR], [])
AC_ARG_ENABLE([debug],
[ --enable-debug Turn on debugging],
[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 = xtrue])
AC_OUTPUT(Makefile src/Makefile doc/Makefile)