-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in.in
186 lines (154 loc) · 5.84 KB
/
configure.in.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
dnl
dnl Copyright (c) 2006
dnl The Xfce development team. All rights reserved.
dnl
dnl Originally written for Xfce by Benedikt Meurer <[email protected]>
dnl Modified by Stephan Arts <[email protected]>
dnl
dnl ***************************
dnl *** Version information ***
dnl ***************************
m4_define([squeeze_verinfo], [0:3:0])
m4_define([squeeze_version_branch], [])
m4_define([squeeze_version_major], [0])
m4_define([squeeze_version_minor], [4])
m4_define([squeeze_version_micro], [90])
m4_define([squeeze_version_nano], []) # Leave empty for no nano version
m4_define([squeeze_version_build], [@REVISION@])
m4_define([squeeze_version_tag], [git]) # Leave empty for releases
m4_define([squeeze_version], [squeeze_version_major().squeeze_version_minor().squeeze_version_micro()ifelse(squeeze_version_tag(), [], [], [squeeze_version_tag()-squeeze_version_build()])])
dnl *******************************************
dnl *** Debugging support for GIT snapshots ***
dnl *******************************************
m4_define([squeeze_debug_default], [ifelse(squeeze_version_tag(), [git], [yes], [])])
AC_COPYRIGHT([Copyright (c) 2006
The Xfce development team. All rights reserved.
Written for Xfce by Stephan Arts <[email protected]>
and Peter de Ridder <[email protected]>.])
AC_INIT([Squeeze], [squeeze_version], [http://bugzilla.xfce.org/])
AC_PREREQ([2.50])
AC_CONFIG_MACRO_DIR([m4])
SQUEEZE_VERSION=squeeze_version
AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
AM_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
SQUEEZE_VERINFO=squeeze_verinfo
AC_SUBST(SQUEEZE_VERINFO)
dnl check for UNIX variants
AC_AIX
AC_ISC_POSIX
AC_MINIX
AM_CONDITIONAL([HAVE_CYGWIN], [test "`uname | grep \"CYGWIN\"`" != ""])
dnl check for standard header files
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_INTLTOOL([0.31], [no-xml])
AC_HEADER_STDC
AC_SYS_LARGEFILE
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
dnl Check for libtool
LT_PREREQ([2.2.6])
LT_INIT([disable-static])
GTK_DOC_CHECK([1.0])
dnl Check for i18n support
XDT_I18N([@LINGUAS@])
XDT_CHECK_PACKAGE([GTK], [gtk+-2.0], [2.20.0])
XDT_CHECK_PACKAGE([GLIB], [glib-2.0], [2.24.0])
XDT_CHECK_PACKAGE([GOBJECT], [gobject-2.0], [2.24.0])
XDT_CHECK_PACKAGE([GIO], [gio-2.0], [2.20.0])
XDT_CHECK_PACKAGE([LIBXFCE4UTIL], [libxfce4util-1.0], [4.8.0])
XDT_CHECK_PACKAGE([DBUS], [dbus-glib-1], [0.34])
XDT_CHECK_PACKAGE([XFCONF], [libxfconf-0], [4.7.0])
dnl Some distro's have dbus < 1.0, need to define the following to make it compile. (Squeeze depends on the glib-bindings anyways)
AC_DEFINE([DBUS_API_SUBJECT_TO_CHANGE], [1], [Define we understand dbus is subject to api churn])
AC_ARG_ENABLE([pcre],
AC_HELP_STRING([--enable-pcre], [Enable pcre (default)])
AC_HELP_STRING([--disable-pcre], [Disable pcre]),
[check_for_pcre=$enableval], [check_for_pcre=yes])
if test x"$check_for_pcre" = x"yes"; then
AC_CHECK_HEADERS([pcre.h])
AC_CHECK_LIB([pcre], [main])
if test x"$ac_cv_header_pcre_h" = x"yes" -a x"$ac_cv_lib_pcre_main" = x"yes"; then
AC_DEFINE([HAVE_PCRE], [1], [Define if libpcre is present])
fi
fi
AM_CONDITIONAL([HAVE_PCRE], [test x"$ac_cv_header_pcre_h" = x"yes" -a x"$ac_cv_lib_pcre_main" = x"yes"])
AC_ARG_ENABLE([pathbar],
[AC_HELP_STRING([--disable-pathbar],
[Do not compile support for a PathBar (default=enabled)])],
[sq_pathbar=$enableval],
[sq_pathbar=yes])
if test "$sq_pathbar" = "yes"; then
AC_DEFINE([ENABLE_PATHBAR], [1], [Define if we should include pathbar support])
fi
AM_CONDITIONAL([ENABLE_PATHBAR], [test "$sq_pathbar" = "yes"])
AC_ARG_ENABLE([toolbar],
[AC_HELP_STRING([--disable-toolbar],
[Do not compile support for a ToolBar (default=enabled)])],
[sq_toolbar=$enableval],
[sq_toolbar=yes])
if test "$sq_toolbar" = "yes"; then
AC_DEFINE([ENABLE_TOOLBAR], [1], [Define if we should include toolbar support])
fi
AM_CONDITIONAL([ENABLE_TOOLBAR], [test "$sq_toolbar" = "yes"])
AC_ARG_ENABLE([iter-slices],
[AC_HELP_STRING([--disable-iter-slices],
[Use LSQArchiveIter slices (default=enabled)])],
[lsq_iter_slices=$enableval],
[lsq_iter_slices=yes])
if test "$lsq_iter_slices" = "yes"; then
AC_DEFINE([USE_LSQITER_SLICES], [1], [Define if we should use LSQArchiveIter slices])
fi
AC_ARG_ENABLE([gslices],
[AC_HELP_STRING([--enable-gslices],
[Use GSlices (default=disabled)])],
[lsq_gslices=$enableval],
[lsq_gslices=no])
if test "$lsq_gslices" = "yes"; then
AC_DEFINE([USE_GSLICES], [1], [Define if we should use GSlices])
fi
AC_ARG_ENABLE([profiling],
[AC_HELP_STRING([--enable-profiling=no|prof|gprof|instrument],
[Build with profiler support (default=disabled)])],
[enable_profiling=$enableval],
[enable_profiling=no])
case "$enable_profiling" in
no) ;;
prof)
AC_DEFINE([WANT_PROFILING_PROF], [1], [Define if --enable-profiling=prof])
CFLAGS="$CFLAGS -p" ;;
gprof)
AC_DEFINE([WANT_PROFILING_GPROF], [1], [Define if --enable-profiling=gprof])
CFLAGS="$CFLAGS -pg" ;;
instrument)
AC_DEFINE([WANT_PROFILING_INSTRUMENT], [1], [Define if --enable-profiling=instrument])
CFLAGS="$CFLAGS -finstrument-functions" ;;
*)
AC_MSG_ERROR([Bad value $enableval for --enable-profiling, need no/prof/gprof/instrument]) ;;
esac
dnl check for debugging support
XDT_FEATURE_DEBUG([squeeze_debug_default])
XDT_FEATURE_LINKER_OPTS
AC_OUTPUT([
Makefile
po/Makefile.in
src/Makefile
libsqueeze/Makefile
squeeze-cli/Makefile
icons/Makefile
icons/16x16/Makefile
icons/48x48/Makefile
icons/scalable/Makefile
pixmaps/Makefile
data/Makefile
docs/Makefile
docs/reference/Makefile
docs/reference/libsqueeze/Makefile
docs/reference/libsqueeze/version.xml
])
echo "----------------------------------------"
echo "$PACKAGE $VERSION"
echo ""
echo "The binary will be installed in $prefix/bin"
echo ""
echo "Configure finished, type 'make' to build."