summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@samsung.com>2014-01-24 10:28:05 +0900
committerCedric BAIL <cedric.bail@samsung.com>2014-01-24 10:29:22 +0900
commit9aa68bca91678dcd83de3e35be1a7121094d6ef7 (patch)
treeae0a50520bc3ffdae20792011865a34dfea4b90b /configure.ac
parent30a3d9263379e430dae63e2256b400dbb946a940 (diff)
autotools: restore support of static compilation.
This should fix T599.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac174
1 files changed, 68 insertions, 106 deletions
diff --git a/configure.ac b/configure.ac
index b7fcec9e7..4f5215d06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,25 +1,7 @@
1##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## 1EFL_VERSION([1], [8], [99], [dev])
2##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
3m4_define([v_maj], [1])
4m4_define([v_min], [8])
5m4_define([v_mic], [99])
6m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))
7##-- When released, remove the dnl on the below line
8dnl m4_undefine([v_rev])
9##-- When doing snapshots - change soname. remove dnl on below line
10dnl m4_define([relname], [dev])
11dnl m4_define([v_rel], [-release relname])
12##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
13m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])],
14[m4_define([v_ver], [v_maj.v_min.v_mic])])
15m4_define([lt_rev], m4_eval(v_maj + v_min))
16m4_define([lt_cur], v_mic)
17m4_define([lt_age], v_min)
18##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
19##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
20
21AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net]) 2AC_INIT([elementary], [v_ver], [enlightenment-devel@lists.sourceforge.net])
22AC_PREREQ(2.52) 3
4AC_PREREQ(2.60)
23AC_CONFIG_SRCDIR([configure.ac]) 5AC_CONFIG_SRCDIR([configure.ac])
24AC_CONFIG_MACRO_DIR([m4]) 6AC_CONFIG_MACRO_DIR([m4])
25AC_CANONICAL_BUILD 7AC_CANONICAL_BUILD
@@ -34,19 +16,11 @@ AH_BOTTOM([
34#endif /* EFL_CONFIG_H__ */ 16#endif /* EFL_CONFIG_H__ */
35]) 17])
36 18
19AC_USE_SYSTEM_EXTENSIONS
20
37AM_INIT_AUTOMAKE([1.6 dist-bzip2]) 21AM_INIT_AUTOMAKE([1.6 dist-bzip2])
38m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) 22m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
39 23
40AC_GNU_SOURCE
41
42AC_C_BIGENDIAN
43AC_ISC_POSIX
44AC_PROG_CC
45AC_PROG_CC_STDC
46AC_HEADER_STDC
47AC_C_CONST
48AC_FUNC_ALLOCA
49
50# pkg-config 24# pkg-config
51PKG_PROG_PKG_CONFIG 25PKG_PROG_PKG_CONFIG
52 26
@@ -145,28 +119,21 @@ define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
145define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl 119define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
146m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 120m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
147LT_INIT([win32-dll disable-static pic-only]) 121LT_INIT([win32-dll disable-static pic-only])
122EFL_INIT
148#AC_PROG_LIBTOOL 123#AC_PROG_LIBTOOL
149 124
150##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## 125AC_GNU_SOURCE
151##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## 126
152m4_ifdef([v_rev], , [m4_define([v_rev], [0])]) 127AC_C_BIGENDIAN
153m4_ifdef([v_rel], , [m4_define([v_rel], [])]) 128AC_ISC_POSIX
154AC_DEFINE_UNQUOTED(VMAJ, [v_maj], [Major version]) 129AC_PROG_CC
155AC_DEFINE_UNQUOTED(VMIN, [v_min], [Minor version]) 130AC_PROG_CC_STDC
156AC_DEFINE_UNQUOTED(VMIC, [v_mic], [Micro version]) 131AC_HEADER_STDC
157AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison]) 132AC_C_CONST
158version_info="lt_rev:lt_cur:lt_age" 133AC_FUNC_ALLOCA
159release_info="v_rel" 134
160AC_SUBST(version_info) 135ELM_VERSION_MAJOR="v_maj"
161AC_SUBST(release_info) 136ELM_VERSION_MINOR="v_min"
162##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
163##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
164VMAJ=v_maj
165VMIN=v_min
166AC_SUBST(VMAJ)
167AC_SUBST(VMIN)
168ELM_VERSION_MAJOR=v_maj
169ELM_VERSION_MINOR=v_min
170AC_SUBST(ELM_VERSION_MAJOR) 137AC_SUBST(ELM_VERSION_MAJOR)
171AC_SUBST(ELM_VERSION_MINOR) 138AC_SUBST(ELM_VERSION_MINOR)
172 139
@@ -178,7 +145,6 @@ case "$host_os" in
178 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic" 145 MODULE_ARCH="$host_os-$host_cpu-v_maj.v_min.v_mic"
179 ;; 146 ;;
180esac 147esac
181AC_SUBST(release_info)
182AC_SUBST(MODULE_ARCH) 148AC_SUBST(MODULE_ARCH)
183AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture") 149AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")
184 150
@@ -187,8 +153,6 @@ AC_DEFINE_UNQUOTED(EFL_SHARED_EXTENSION, "${EFL_SHARED_EXTENSION}", "Shared exte
187 153
188requirement_elm="" 154requirement_elm=""
189 155
190PKG_PROG_PKG_CONFIG
191
192# Check whether pkg-config supports Requires.private 156# Check whether pkg-config supports Requires.private
193if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then 157if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
194 pkgconfig_requires_private="Requires.private" 158 pkgconfig_requires_private="Requires.private"
@@ -239,28 +203,26 @@ AC_SUBST(ELM_WINCE_DEF)
239 203
240AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"]) 204AM_CONDITIONAL([ELEMENTARY_WINDOWS_BUILD], [test "x${have_windows}" = "xyes"])
241 205
242efl_version="1.8.99"
243
244PKG_CHECK_MODULES([ELEMENTARY], 206PKG_CHECK_MODULES([ELEMENTARY],
245 [ 207 [
246 eina >= ${efl_version} 208 eina >= efl_version
247 eet >= ${efl_version} 209 eet >= efl_version
248 evas >= ${efl_version} 210 evas >= efl_version
249 ecore >= ${efl_version} 211 ecore >= efl_version
250 ecore-evas >= ${efl_version} 212 ecore-evas >= efl_version
251 ecore-file >= ${efl_version} 213 ecore-file >= efl_version
252 ecore-input >= ${efl_version} 214 ecore-input >= efl_version
253 edje >= ${efl_version} 215 edje >= efl_version
254 eo >= ${efl_version} 216 eo >= efl_version
255 ethumb_client >= ${efl_version} 217 ethumb_client >= efl_version
256 emotion >= ${efl_version} 218 emotion >= efl_version
257 ecore-imf >= ${efl_version} 219 ecore-imf >= efl_version
258 ecore-con >= ${efl_version} 220 ecore-con >= efl_version
259 eio >= ${efl_version} 221 eio >= efl_version
260 eldbus >= ${efl_version} 222 eldbus >= efl_version
261 efreet >= ${efl_version} 223 efreet >= efl_version
262 efreet-mime >= ${efl_version} 224 efreet-mime >= efl_version
263 efreet-trash >= ${efl_version} 225 efreet-trash >= efl_version
264 ] 226 ]
265) 227)
266 228
@@ -268,24 +230,24 @@ EFL_ENABLE_EO_API_SUPPORT
268EFL_ENABLE_BETA_API_SUPPORT 230EFL_ENABLE_BETA_API_SUPPORT
269 231
270requirement_elm="\ 232requirement_elm="\
271 eina >= ${efl_version} \ 233 eina >= efl_version \
272 eet >= ${efl_version} \ 234 eet >= efl_version \
273 evas >= ${efl_version} \ 235 evas >= efl_version \
274 ecore >= ${efl_version} \ 236 ecore >= efl_version \
275 ecore-evas >= ${efl_version} \ 237 ecore-evas >= efl_version \
276 ecore-file >= ${efl_version} \ 238 ecore-file >= efl_version \
277 ecore-input >= ${efl_version} \ 239 ecore-input >= efl_version \
278 edje >= ${efl_version} \ 240 edje >= efl_version \
279 eo >= ${efl_version} \ 241 eo >= efl_version \
280 ethumb_client >= ${efl_version} \ 242 ethumb_client >= efl_version \
281 emotion >= ${efl_version} \ 243 emotion >= efl_version \
282 ecore-imf >= ${efl_version} \ 244 ecore-imf >= efl_version \
283 ecore-con >= ${efl_version} \ 245 ecore-con >= efl_version \
284 eio >= ${efl_version} \ 246 eio >= efl_version \
285 eldbus >= ${efl_version} \ 247 eldbus >= efl_version \
286 efreet >= ${efl_version} \ 248 efreet >= efl_version \
287 efreet-mime >= ${efl_version} \ 249 efreet-mime >= efl_version \
288 efreet-trash >= ${efl_version} \ 250 efreet-trash >= efl_version \
289 " 251 "
290 252
291have_elementary_x="no" 253have_elementary_x="no"
@@ -296,11 +258,11 @@ AC_ARG_ENABLE([ecore-x],
296 258
297if test "x$want_elementary_x" != "xno"; then 259if test "x$want_elementary_x" != "xno"; then
298 PKG_CHECK_MODULES([ELEMENTARY_X], 260 PKG_CHECK_MODULES([ELEMENTARY_X],
299 [ecore-x >= ${efl_version}], 261 [ecore-x >= efl_version],
300 [ 262 [
301 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary]) 263 AC_DEFINE(HAVE_ELEMENTARY_X, 1, [X11 support for Elementary])
302 have_elementary_x="yes" 264 have_elementary_x="yes"
303 requirement_elm="ecore-x >= ${efl_version} ${requirement_elm}" 265 requirement_elm="ecore-x >= efl_version ${requirement_elm}"
304 ], 266 ],
305 [have_elementary_x="no"] 267 [have_elementary_x="no"]
306 ) 268 )
@@ -320,11 +282,11 @@ AC_ARG_ENABLE([ecore-fb],
320 282
321if test "x$want_elementary_fb" != "xno"; then 283if test "x$want_elementary_fb" != "xno"; then
322 PKG_CHECK_MODULES([ELEMENTARY_FB], 284 PKG_CHECK_MODULES([ELEMENTARY_FB],
323 [ecore-fb >= ${efl_version}], 285 [ecore-fb >= efl_version],
324 [ 286 [
325 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary]) 287 AC_DEFINE(HAVE_ELEMENTARY_FB, 1, [FB support for Elementary])
326 have_elementary_fb="yes" 288 have_elementary_fb="yes"
327 requirement_elm="ecore-fb >= ${efl_version} ${requirement_elm}" 289 requirement_elm="ecore-fb >= efl_version ${requirement_elm}"
328 ], 290 ],
329 [have_elementary_fb="no"] 291 [have_elementary_fb="no"]
330 ) 292 )
@@ -343,11 +305,11 @@ AC_ARG_ENABLE([ecore-psl1ght],
343 305
344if test "x$want_elementary_psl1ght" != "xno"; then 306if test "x$want_elementary_psl1ght" != "xno"; then
345 PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT], 307 PKG_CHECK_MODULES([ELEMENTARY_PSL1GHT],
346 [ecore-psl1ght >= ${efl_version}], 308 [ecore-psl1ght >= efl_version],
347 [ 309 [
348 AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary]) 310 AC_DEFINE(HAVE_ELEMENTARY_PSL1GHT, 1, [PSL1GHT support for Elementary])
349 have_elementary_psl1ght="yes" 311 have_elementary_psl1ght="yes"
350 requirement_elm="ecore-psl1ght >= ${efl_version} ${requirement_elm}" 312 requirement_elm="ecore-psl1ght >= efl_version ${requirement_elm}"
351 ], 313 ],
352 [have_elementary_psl1ght="no"] 314 [have_elementary_psl1ght="no"]
353 ) 315 )
@@ -366,11 +328,11 @@ AC_ARG_ENABLE([ecore-sdl],
366 328
367if test "x$want_elementary_sdl" != "xno"; then 329if test "x$want_elementary_sdl" != "xno"; then
368 PKG_CHECK_MODULES([ELEMENTARY_SDL], 330 PKG_CHECK_MODULES([ELEMENTARY_SDL],
369 [ecore-sdl >= ${efl_version}], 331 [ecore-sdl >= efl_version],
370 [ 332 [
371 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary]) 333 AC_DEFINE(HAVE_ELEMENTARY_SDL, 1, [SDL support for Elementary])
372 have_elementary_sdl="yes" 334 have_elementary_sdl="yes"
373 requirement_elm="ecore-sdl >= ${efl_version} ${requirement_elm}" 335 requirement_elm="ecore-sdl >= efl_version ${requirement_elm}"
374 ], 336 ],
375 [have_elementary_sdl="no"] 337 [have_elementary_sdl="no"]
376 ) 338 )
@@ -389,11 +351,11 @@ AC_ARG_ENABLE([ecore-cocoa],
389 351
390if test "x$want_elementary_cocoa" != "xno"; then 352if test "x$want_elementary_cocoa" != "xno"; then
391 PKG_CHECK_MODULES([ELEMENTARY_COCOA], 353 PKG_CHECK_MODULES([ELEMENTARY_COCOA],
392 [ecore-cocoa >= ${efl_version}], 354 [ecore-cocoa >= efl_version],
393 [ 355 [
394 AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary]) 356 AC_DEFINE(HAVE_ELEMENTARY_COCOA, 1, [COCOA support for Elementary])
395 have_elementary_cocoa="yes" 357 have_elementary_cocoa="yes"
396 requirement_elm="ecore-cocoa >= ${efl_version} ${requirement_elm}" 358 requirement_elm="ecore-cocoa >= efl_version ${requirement_elm}"
397 ], 359 ],
398 [have_elementary_cocoa="no"] 360 [have_elementary_cocoa="no"]
399 ) 361 )
@@ -412,11 +374,11 @@ AC_ARG_ENABLE([ecore-win32],
412 374
413if test "x$want_elementary_win32" != "xno"; then 375if test "x$want_elementary_win32" != "xno"; then
414 PKG_CHECK_MODULES([ELEMENTARY_WIN32], 376 PKG_CHECK_MODULES([ELEMENTARY_WIN32],
415 [ecore-win32 >= ${efl_version}], 377 [ecore-win32 >= efl_version],
416 [ 378 [
417 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary]) 379 AC_DEFINE(HAVE_ELEMENTARY_WIN32, 1, [Windows XP support for Elementary])
418 have_elementary_win32="yes" 380 have_elementary_win32="yes"
419 requirement_elm="ecore-win32 >= ${efl_version} ${requirement_elm}" 381 requirement_elm="ecore-win32 >= efl_version ${requirement_elm}"
420 ], 382 ],
421 [have_elementary_win32="no"] 383 [have_elementary_win32="no"]
422 ) 384 )
@@ -435,11 +397,11 @@ AC_ARG_ENABLE([ecore-wince],
435 397
436if test "x$want_elementary_wince" != "xno"; then 398if test "x$want_elementary_wince" != "xno"; then
437 PKG_CHECK_MODULES([ELEMENTARY_WINCE], 399 PKG_CHECK_MODULES([ELEMENTARY_WINCE],
438 [ecore-wince >= ${efl_version}], 400 [ecore-wince >= efl_version],
439 [ 401 [
440 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary]) 402 AC_DEFINE(HAVE_ELEMENTARY_WINCE, 1, [Windows CE support for Elementary])
441 have_elementary_wince="yes" 403 have_elementary_wince="yes"
442 requirement_elm="ecore-wince >= ${efl_version} ${requirement_elm}" 404 requirement_elm="ecore-wince >= efl_version ${requirement_elm}"
443 ], 405 ],
444 [have_elementary_wince="no"] 406 [have_elementary_wince="no"]
445 ) 407 )