-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
58 lines (47 loc) · 1.09 KB
/
configure.in
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.6])
AC_INIT([cdctool], [0.0.5], [[email protected]])
AC_CONFIG_SRCDIR([bin/CDC_tool.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE
DX_INIT_DOXYGEN
DX_DOXYGEN_FEATURE(ON)
DX_HTML_FEATURE(ON)
DX_MAN_FEATURE(ON)
# Configuration.
CFLAGS="$CFLAGS -Wall"
CDC_PC_CFLAGS="-Wall"
CDC_PC_LDFLAGS="-lcdctool"
# Checks for programs.
AC_PROG_CC
gl_EARLY
gl_INIT
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h stdio.h popt.h])
# Checks for libraries.
AC_CHECK_LIB([popt], [poptGetContext], [
POPT="-lpopt"
], [
echo
echo "FATAL: Cannot find popt. It is needed to build cdctool."
echo
exit -1
])
AC_SUBST([POPT])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
AC_SUBST([CDC_PC_CFLAGS])
AC_SUBST([CDC_PC_LDFLAGS])
AC_CONFIG_FILES([
Makefile
cdctool.pc
bin/Makefile
lib/Makefile
gnulib/Makefile
])
AC_OUTPUT