forked from rtyler/gmrun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
52 lines (41 loc) · 1.08 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
# Process this file with autoconf to produce a configure script.
AC_INIT([gmrun], [0.9.4w])
AM_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([-Wall foreign])
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE
LT_INIT
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_PROG_CXX
AC_ARG_ENABLE(debug,
[ --enable-debug=[no/yes] Debugging information == no <--> optimization == yes],[],
enable_debug=no)
if [ ! test "x$enable_debug" != "xyes"]; then
CFLAGS="-g3 -O0 -DDEBUG"
CXXFLAGS="-g3 -O0 -DDEBUG"
fi
AC_ARG_ENABLE(mtrace,
[ --enable-mtrace=[no/yes] Trace memory (de)allocation calls to detect memory leaks ],[],
enable_mtrace=no)
if [ ! test "x$enable_mtrace" != "xyes"]; then
CFLAGS="$CFLAGS -DMTRACE"
CXXFLAGS="$CXXFLAGS -DMTRACE"
fi
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.0.4
gobject-2.0 >= 2.0.4
gthread-2.0 >= 2.0.4)
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.0.5)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
PREFIX=${prefix}
AC_SUBST(PREFIX)
AC_OUTPUT([
Makefile
src/Makefile
])