-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
48 lines (38 loc) · 1.41 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([dchat-gui], [0.9], [[email protected]])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_CONFIG_SRCDIR([src/dchat-gui.c])
AC_CONFIG_HEADERS([config.h])
PREFIX=`test "$prefix" = NONE && prefix=""; eval echo "${prefix}"`
AC_DEFINE_UNQUOTED([INP_SOCK_PATH], ["$PREFIX/var/run/dinp.sock"], [Location of user interface input socket])
AC_DEFINE_UNQUOTED([OUT_SOCK_PATH], ["$PREFIX/var/run/dout.sock"], [Location of user interface output socket])
AC_DEFINE_UNQUOTED([LOG_SOCK_PATH], ["$PREFIX/var/run/dlog.sock"], [Location of user interface logging socket])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_STDC
#Doxygen
#DX_HTML_FEATURE(ON)
#DX_CHM_FEATURE(OFF)
#DX_CHI_FEATURE(OFF)
#DX_MAN_FEATURE(OFF)
#DX_RTF_FEATURE(OFF)
#DX_XML_FEATURE(OFF)
#DX_PDF_FEATURE(OFF)
#DX_PS_FEATURE(OFF)
#DX_INIT_DOXYGEN([dchat], [doxygen.cfg])
# Checks for libraries.
AX_WITH_CURSES
if test "x$ax_cv_ncurses" != xyes || test "x$ax_cv_curses_color" != xyes; then
AC_MSG_ERROR([requires Ncurses library with color support])
fi
AX_PTHREAD([LIBS+="$PTHREAD_CFLAGS $PTHREAD_LIBS"])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h ncurses.h])
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])
AC_CONFIG_FILES([Makefile
src/Makefile])
AC_OUTPUT