File: configure.ac

package info (click to toggle)
ocaml-dtools 0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 688 kB
  • sloc: sh: 3,262; ml: 986; makefile: 73
file content (37 lines) | stat: -rw-r--r-- 943 bytes parent folder | download
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
AC_INIT([ocaml-dtools],[0.4.1],[savonet-users@lists.sourceforge.net])
VERSION=$PACKAGE_VERSION
AC_MSG_RESULT(configuring $PACKAGE_STRING)

AC_BASE_CHECKS()

REQUIRES="str unix threads"
#
# Syslog
#

AC_ARG_WITH([syslog-dir],
   AS_HELP_STRING([--with-syslog-dir=path],[look for ocaml-syslog library in "path" (autodetected by default)]))
AC_ARG_ENABLE([syslog],
              AS_HELP_STRING([--disable-syslog],["don't use ocaml-syslog"]))

if test "x$enable_syslog" != "xno" ; then
AC_CHECK_OCAML_BINDING([syslog])
fi

if test "$W_SYSLOG" != ""; then
	SYSLOG_FILES="dtools_syslog.ml"
	REQUIRES="$REQUIRES syslog"
	INC="$INC `$OCAMLFIND query syslog`"
fi

# substitutions to perform
AC_SUBST(REQUIRES)
AC_SUBST(SYSLOG_FILES)
AC_SUBST(INC)
AC_SUBST(VERSION)

# Finally create the Makefile and samples
AC_CONFIG_FILES([src/Makefile],[chmod a-w src/Makefile])
AC_CONFIG_FILES([src/META])
AC_CONFIG_FILES([Makefile],[chmod a-w Makefile])
AC_OUTPUT