-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
37 lines (28 loc) · 1.09 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
AC_INIT([stdcsv], [1.0])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
AM_PROG_AR
LT_INIT
AC_PROG_CC
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile lib/util/Makefile lib/Makefile src/Makefile])
# Check
AC_ARG_WITH([check],
AS_HELP_STRING([--without-check], [Ignore presence of check and disable it]))
AS_IF([test "x$with_check" != "xno"],
[PKG_CHECK_MODULES([CHECK], [check >= 0.12.0], [have_check=yes], [have_check=no])],
[have_check=no])
AS_IF([test "x$have_check" = "xyes"], [AC_CONFIG_FILES([tests/Makefile])],
[AS_IF([test "x$with_check" = "xyes"],
[AC_MSG_ERROR([check not found.])
])
])
AM_CONDITIONAL([USE_CHECK], [test "x$with_check" != "xno" -a "x$have_check" = "xyes"])
AC_CHECK_PROGS([DOXYGEN], [doxygen])
AS_IF([test "x$DOXYGEN" = "x"],
[AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])],
[AC_CONFIG_FILES([lib/docs/Makefile])])
AM_CONDITIONAL([USE_DOXYGEN],[test "x$DOXYGEN" != "x"])
AM_COND_IF([USE_DOXYGEN], [AC_CONFIG_FILES([lib/docs/Doxyfile])])
AC_OUTPUT