summaryrefslogtreecommitdiff
path: root/legacy/evil/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2008-10-05 15:53:22 +0000
committerVincent Torri <vincent.torri@gmail.com>2008-10-05 15:53:22 +0000
commit22d8fefc05e13ecb71ff9fb8cfdb3e5264961b66 (patch)
tree9ad656d772ede9b5cf3a668e25ff98470df45de1 /legacy/evil/configure.ac
parentaee5f5cec673f56a1ed4fe5848feeb0aa3af939b (diff)
* m4:
add m4 macro for doxygen, mpatrol and __attribute__ * doc: move Doxyfile from toplevel dir to doc/ * src/bin/Makefile.am * src/lib/Makefile.am * src/lib/dlfcn/Makefile.am remove _DEPENDENCIES, add flags for mpatrol and put defines for EAPI * src/bin: add memcpy for i686. Need an asm expert to modify it * src/bin/memcpy_glibc_arm.S: formatting * src/bin/suite.c: fix seg fault by increasing the size of the buffers * src/bin/test_memcpy.c: add a test with a bigger size for the memory to copy * configure.ac: reorganise a lot, use m4 macro, add mpatrol support * Makefile.am: add doc rule SVN revision: 36446
Diffstat (limited to 'legacy/evil/configure.ac')
-rw-r--r--legacy/evil/configure.ac115
1 files changed, 71 insertions, 44 deletions
diff --git a/legacy/evil/configure.ac b/legacy/evil/configure.ac
index 6246327ff0..6fb7f5ee74 100644
--- a/legacy/evil/configure.ac
+++ b/legacy/evil/configure.ac
@@ -1,45 +1,18 @@
1 1
2AC_INIT(evil, 0.0.1, enlightenment-devel@lists.sourceforge.net) 2AC_INIT([evil], [0.0.1], [enlightenment-devel@lists.sourceforge.net])
3AC_PREREQ(2.52) 3AC_PREREQ([2.52])
4AC_CONFIG_SRCDIR([configure.ac]) 4AC_CONFIG_SRCDIR([configure.ac])
5AC_CONFIG_HEADERS([config.h]) 5AC_CONFIG_HEADERS([config.h])
6AC_CANONICAL_HOST 6AC_CANONICAL_HOST
7 7
8dnl If the host is not windows, we exit, 8dnl If the host is not Windows, we exit
9dnl otherwise, we set the correct flags
10dnl for each platform.
11have_wince="no"
12win32_libs=""
13win32_cflags=""
14case "$host_os" in 9case "$host_os" in
15 mingw | mingw32 | mingw32msvc) 10 mingw* | cegcc*)
16 win32_libs="-lole32 -luuid -lws2_32"
17 ;;
18 cegcc)
19 have_wince="yes"
20 win32_cflags="-mwin32"
21 win32_libs="-lws2"
22 ;;
23 mingw32ce)
24 have_wince="yes"
25 win32_libs="-lws2"
26 ;; 11 ;;
27 *) 12 *)
28 AC_MSG_ERROR([OS must be Windows. Exiting...]) 13 AC_MSG_ERROR([OS must be Windows. Exiting...])
29 ;; 14 ;;
30esac 15esac
31AC_SUBST(win32_cflags)
32AC_SUBST(win32_libs)
33
34if test "x${have_wince}" = "xyes" ; then
35 AC_DEFINE(EVIL_HAVE_WINCE, 1, [Define to mention that Windows CE is the target])
36fi
37
38AM_CONDITIONAL(EVIL_HAVE_WINCE, test "x${have_wince}" = "xyes")
39
40dnl needed for correct definition of EAPI
41AC_DEFINE(EFL_EVIL_BUILD, 1, [Define to mention that evil is built])
42AC_DEFINE(EFL_EVIL_DLFCN_BUILD, 1, [Define to mention that evil dlfcn is built])
43 16
44AM_INIT_AUTOMAKE(1.6 dist-bzip2) 17AM_INIT_AUTOMAKE(1.6 dist-bzip2)
45 18
@@ -55,31 +28,82 @@ SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
55version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN" 28version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
56AC_SUBST(version_info) 29AC_SUBST(version_info)
57 30
31
32### Checks for libraries
33
34win32_libs=""
35case "$host_os" in
36 mingw | mingw32 | mingw32msvc)
37 win32_libs="-lole32 -luuid -lws2_32"
38 ;;
39 cegcc)
40 win32_libs="-lws2"
41 ;;
42 mingw32ce)
43 win32_libs="-lws2"
44 ;;
45esac
46AC_SUBST(win32_libs)
47
48EFL_CHECK_MPATROL([have_mpatrol="yes"], [have_mpatrol="no"])
49
50
51### Checks for header files
52
53
54### Checks for programs
58AM_PROG_AS 55AM_PROG_AS
59AC_LANG(C) 56AC_LANG(C)
60AC_PROG_CPP 57AC_PROG_CPP
61AC_PROG_CC 58AC_PROG_CC
59
60# doxygen program for documentation building
61
62EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
63
64
65### Checks for types
66
67
68### Checks for structures
69
70
71### Checks for compiler characteristics
62AC_C_CONST 72AC_C_CONST
73AC_C___ATTRIBUTE__
74
75win32_cflags=""
76case "$host_os" in
77 cegcc)
78 have_wince="yes"
79 win32_cflags="-mwin32"
80 ;;
81 mingw32ce)
82 have_wince="yes"
83 ;;
84 *)
85 have_wince="no"
86 ;;
87esac
88AC_SUBST(win32_cflags)
63 89
64AC_MSG_CHECKING([for __attribute__]) 90if test "x${have_wince}" = "xyes" ; then
65AC_CACHE_VAL(_cv_have___attribute__, 91 AC_DEFINE(EVIL_HAVE_WINCE, 1, [Define to mention that Windows CE is the target])
66 [
67 AC_TRY_COMPILE([#include <stdlib.h>],
68 [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }],
69 [_cv_have___attribute__="yes"],
70 [_cv_have___attribute__="no"])
71 ]
72)
73
74if test "x${_cv_have___attribute__}" = "xyes" ; then
75 AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__])
76fi 92fi
77AC_MSG_RESULT(${_cv_have___attribute__}) 93
94AM_CONDITIONAL(EVIL_HAVE_WINCE, test "x${have_wince}" = "xyes")
95
96
97### Checks for linker characteristics
98
99
100### Checks for library functions
78 101
79 102
80AC_CONFIG_FILES([ 103AC_CONFIG_FILES([
81Makefile 104Makefile
82evil.pc 105evil.pc
106doc/Makefile
83src/Makefile 107src/Makefile
84src/bin/Makefile 108src/bin/Makefile
85src/lib/Makefile 109src/lib/Makefile
@@ -103,6 +127,9 @@ echo "Configuration Options Summary:"
103echo 127echo
104echo " OS...................: ${host_os}" 128echo " OS...................: ${host_os}"
105echo 129echo
130echo " Documentation........: ${build_doc}"
131echo " Mpatrol..............: ${have_mpatrol}"
132echo
106echo " Compilation..........: make" 133echo " Compilation..........: make"
107echo 134echo
108echo " Installation.........: make install" 135echo " Installation.........: make install"