forked from libconfuse/libconfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
64 lines (51 loc) · 1.88 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Process this file with -*- autoconf -*- to produce a configure script.
# The bundled autogen.sh script does this and also calls autoamake.
AC_PREREQ(2.50)
AC_INIT(libConfuse, 3.4-dev, https://github.com/libconfuse/libconfuse/issues, confuse)
AC_CONFIG_AUX_DIR(support)
AM_INIT_AUTOMAKE([foreign dist-xz])
AM_SILENT_RULES([no])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(src/confuse.c)
# Checks for programs.
AC_PROG_CC
AM_PROG_AR
AM_PROG_LEX
LT_INIT([win32-dll])
# optional building of examples:
AC_ARG_ENABLE([examples],
[AC_HELP_STRING([--disable-examples], [don't build examples in examples])],
[], [enable_examples=yes])
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "$enable_examples" = yes])
# 0.19.6 enables AM_GNU_GETTEXT_REQUIRE_VERSION whixh is required
# for use with support compiling if gettext 0.20 or later is found.
# Thus a minimum of Ubuntu 16.04, Debian Stretch, CentOS7, or RHEL7,
# is now require.
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.6])
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6])
# Checks for OS settings.
AC_SYS_LARGEFILE
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([unistd.h string.h strings.h sys/stat.h windows.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
# Checks for library functions.
AC_CHECK_FUNCS([fmemopen funopen reallocarray strcasecmp strdup strndup setenv unsetenv _putenv])
# Set conditional includes in Makefile.am
AM_CONDITIONAL(MISSING_FMEMOPEN, [test "x$ac_cv_func_fmemopen" = "xno"])
AM_CONDITIONAL(MISSING_REALLOCARRAY, [test "x$ac_cv_func_reallocarray" = "xno"])
AM_CONDITIONAL(WINDOWS_BUILD, [test "x$ac_cv_header_windows_h" = "xyes"])
# Files to generate
AC_CONFIG_FILES([Makefile \
src/Makefile \
examples/Makefile \
po/Makefile.in \
m4/Makefile \
tests/Makefile \
doc/Makefile \
doc/Doxyfile \
libconfuse.pc \
libconfuse.spec])
AC_OUTPUT