summaryrefslogtreecommitdiff
path: root/legacy/efreet/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-29 23:06:03 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-29 23:06:03 +0000
commit80e4fe5254be9eecb9b8ee6d5cf20261955d3a67 (patch)
tree33c813888500381fc2949ebe8aa2df5c5dfa874f /legacy/efreet/configure.ac
parent4bc0210bd31ed1de6554441562bd93ea863ee9d9 (diff)
move efreet.
SVN revision: 81890
Diffstat (limited to 'legacy/efreet/configure.ac')
-rw-r--r--legacy/efreet/configure.ac301
1 files changed, 0 insertions, 301 deletions
diff --git a/legacy/efreet/configure.ac b/legacy/efreet/configure.ac
deleted file mode 100644
index bf326507f9..0000000000
--- a/legacy/efreet/configure.ac
+++ /dev/null
@@ -1,301 +0,0 @@
1##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
2##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3m4_define([v_maj], [1])
4m4_define([v_min], [7])
5m4_define([v_mic], [99])
6m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
7m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
8##-- When released, remove the dnl on the below line
9dnl m4_undefine([v_rev])
10##-- When doing snapshots - change soname. remove dnl on below line
11dnl m4_define([relname], [ver-pre-svn-07])
12dnl m4_define([v_rel], [-release relname])
13##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
14m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
15m4_define([lt_cur], m4_eval(v_maj + v_min))
16m4_define([lt_rev], v_mic)
17m4_define([lt_age], v_min)
18##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21AC_INIT([efreet], [v_ver], [enlightenment-devel@lists.sourceforge.net])
22AC_PREREQ([2.52])
23AC_CONFIG_SRCDIR([configure.ac])
24AC_CONFIG_MACRO_DIR([m4])
25
26AC_CONFIG_HEADERS([config.h])
27AH_TOP([
28#ifndef EFL_CONFIG_H__
29#define EFL_CONFIG_H__
30])
31AH_BOTTOM([
32#endif /* EFL_CONFIG_H__ */
33])
34
35AM_INIT_AUTOMAKE([1.6 dist-bzip2])
36m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
37
38AC_LIBTOOL_WIN32_DLL
39define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
40define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
41AC_PROG_LIBTOOL
42
43##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
44##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
45m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
46m4_ifdef([v_rel], , [m4_define([v_rel], [])])
47AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version])
48AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version])
49AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version])
50AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
51version_info="lt_cur:lt_rev:lt_age"
52release_info="v_rel"
53AC_SUBST(version_info)
54AC_SUBST(release_info)
55##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
56##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
57VMAJ=v_maj
58AC_SUBST(VMAJ)
59
60AM_GNU_GETTEXT_VERSION(0.17)
61
62m4_ifdef([AM_GNU_GETTEXT], [
63AM_GNU_GETTEXT([external])
64po_makefile_in=po/Makefile.in
65have_po="yes"
66],[
67have_po="no"
68])
69AC_SUBST(LTLIBINTL)
70LOCALE_DIR="${localedir}"
71AC_SUBST(LOCALE_DIR)
72
73if test "x${POSUB}" = "x" ; then
74 have_po="no"
75fi
76
77AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
78
79### Needed information
80
81AC_CANONICAL_BUILD
82AC_CANONICAL_HOST
83
84
85### Additional options to configure
86
87AC_ARG_ENABLE([strict-spec],
88 [AC_HELP_STRING([--enable-strict-spec], [Enable strict spec compliance @<:@default=disabled@:>@])],
89 [
90 if test "x${enableval}" = "xyes" ; then
91 enable_strict_spec="yes"
92 else
93 enable_strict_spec="no"
94 fi
95 ],
96 [enable_strict_spec="no"])
97
98if test "x${enable_strict_spec}" = "xyes" ; then
99 AC_DEFINE([STRICT_SPEC], [1], [Strict Spec Compliance])
100fi
101
102AC_ARG_ENABLE([sloppy-spec],
103 [AC_HELP_STRING([--disable-sloppy-spec], [Enable sloppy spec compliance @<:@default=enabled@:>@])],
104 [
105 if test "x${enableval}" = "xyes" ; then
106 enable_sloppy_spec="yes"
107 else
108 enable_sloppy_spec="no"
109 fi
110 ],
111 [enable_sloppy_spec="yes"])
112
113if test "x${enable_sloppy_spec}" = "xyes" ; then
114 AC_DEFINE([SLOPPY_SPEC], [1], [Sloppy Spec Compliance])
115fi
116
117
118#AC_ARG_ENABLE(hidden-visibility,
119# [AC_HELP_STRING([--enable-hidden-visibility],[Enable hidden visibility])],
120# [enable_hidden_visibility=$enableval], [enable_hidden_visibility="auto"])
121#if test "x$enable_hidden_visibility" = "xyes" ; then
122# CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
123#else
124# AC_DEFINE(DEFAULT_VISIBLITY, 1, [Default visibility])
125#fi
126#AM_CONDITIONAL(DEFAULT_VISIBILITY, test "x$enable_hidden_visibility" != "xyes")
127AM_CONDITIONAL(DEFAULT_VISIBILITY, false)
128
129dbusservicedir="${datadir}/dbus-1/services"
130AC_ARG_WITH([dbus-services],
131 [AC_HELP_STRING([--with-dbus-services=DBUS_SERVICES],
132 [specify a directory to store dbus service files.])],
133 [dbusservicedir=$withval])
134
135
136### Checks for programs
137AC_PROG_CC
138
139# pkg-config
140PKG_PROG_PKG_CONFIG
141
142# Check whether pkg-config supports Requires.private
143if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
144 pkgconfig_requires_private="Requires.private"
145else
146 pkgconfig_requires_private="Requires"
147fi
148AC_SUBST(pkgconfig_requires_private)
149
150# doxygen program for documentation building
151EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
152
153
154### Checks for libraries
155
156# Evil library for compilation on Windows CE
157
158EFL_EFREET_BUILD=""
159EFL_EFREET_MIME_BUILD=""
160EFL_EFREET_TRASH_BUILD=""
161case "$host_os" in
162 mingw*)
163 PKG_CHECK_MODULES([EVIL], [evil >= 1.6.99])
164 AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
165 requirement_efreet="evil"
166 EFL_EFREET_BUILD="-DEFL_EFREET_BUILD"
167 EFL_EFREET_MIME_BUILD="-DEFL_EFREET_MIME_BUILD"
168 EFL_EFREET_TRASH_BUILD="-DEFL_EFREET_TRASH_BUILD"
169 ;;
170esac
171AC_SUBST(EFL_EFREET_BUILD)
172AC_SUBST(EFL_EFREET_MIME_BUILD)
173AC_SUBST(EFL_EFREET_TRASH_BUILD)
174
175PKG_CHECK_MODULES([EFREETD],
176 [
177 eina >= 1.7.99
178 ecore >= 1.7.99
179 ecore-file >= 1.7.99
180 edbus2 >= 1.7.99
181 ]
182)
183requirement_efreet="ecore-file >= 1.6.99 ecore >= 1.6.99 eet >= 1.6.99 eina >= 1.6.99 edbus2 >= 1.7.99 ${requirement_efreet}"
184PKG_CHECK_MODULES(EFREET, [${requirement_efreet}])
185
186### Checks for header files
187
188AC_CHECK_HEADERS([netinet/in.h arpa/inet.h])
189
190### Checks for types
191
192
193### Checks for structures
194
195
196### Checks for compiler characteristics
197
198AC_C_CONST
199AC_C___ATTRIBUTE__
200AM_PROG_CC_STDC
201AC_HEADER_STDC
202
203case "${host_os}" in
204 mingw*)
205 EFREET_CFLAGS="${EFREET_CFLAGS} ${EVIL_CFLAGS}"
206 ;;
207esac
208
209if ! test "x${VMIC}" = "x" ; then
210 EFL_COMPILER_FLAG([-Wall])
211 EFL_COMPILER_FLAG([-W])
212fi
213
214EFL_COMPILER_FLAG([-Wshadow])
215
216EFL_CHECK_PATH_MAX
217
218
219### Checks for linker characteristics
220lt_enable_auto_import=""
221WIN32_LIBS=""
222case "${host_os}" in
223 mingw*)
224 WIN32_LIBS="-lws2_32"
225 lt_enable_auto_import="-Wl,--enable-auto-import"
226 ;;
227esac
228AC_SUBST(WIN32_LIBS)
229AC_SUBST(lt_enable_auto_import)
230
231
232### Checks for library functions
233AC_ISC_POSIX
234AC_FUNC_ALLOCA
235AC_CHECK_FUNCS(strlcpy clearenv)
236
237### Unit tests, coverage
238
239EFL_CHECK_TESTS([enable_tests="yes"], [enable_tests="no"])
240
241EFL_CHECK_COVERAGE([${enable_tests}], [enable_coverage="yes"], [enable_coverage="no"])
242EFREET_CFLAGS="${EFREET_CFLAGS} ${EFL_COVERAGE_CFLAGS}"
243EFREET_LIBS="${EFREET_LIBS} ${EFL_COVERAGE_LIBS}"
244if test "x$enable_coverage" = "xyes" ; then
245 EFREET_CFLAGS="${EFREET_CFLAGS} ${EFL_DEBUG_CFLAGS}"
246fi
247
248AC_SUBST(requirement_efreet)
249AC_SUBST(dbusservicedir)
250
251AC_OUTPUT([
252efreet.spec
253efreet.pc
254efreet-mime.pc
255efreet-trash.pc
256Makefile
257doc/Makefile
258doc/Doxyfile
259src/Makefile
260src/lib/Makefile
261src/bin/Makefile
262src/tests/Makefile
263src/tests/data/Makefile
264src/tests/data/sub/Makefile
265src/tests/compare/Makefile
266$po_makefile_in
267org.enlightenment.Efreet.service
268])
269
270
271#####################################################################
272## Info
273
274echo
275echo
276echo
277echo "------------------------------------------------------------------------"
278echo "$PACKAGE $VERSION"
279echo "------------------------------------------------------------------------"
280echo
281echo "Configuration Options Summary:"
282echo
283echo " Specification compliance:"
284echo " Strict.............: ${enable_strict_spec}"
285echo " Sloppy.............: ${enable_sloppy_spec}"
286echo
287echo " DBus services dir....: ${dbusservicedir}"
288echo
289echo " Tests................: ${enable_tests}"
290echo " Coverage.............: ${enable_coverage}"
291echo
292echo " Documentation........: ${build_doc}"
293echo
294echo "Compilation............: make (or gmake)"
295echo " CPPFLAGS.............: $CPPFLAGS"
296echo " CFLAGS...............: $CFLAGS"
297echo " LDFLAGS..............: $LDFLAGS"
298echo
299echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
300echo " prefix...............: $prefix"
301echo