summaryrefslogtreecommitdiff
path: root/legacy/eet/m4
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-06-27 06:42:14 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-06-27 06:42:14 +0000
commit390f94bcfd780ec3f4a805dc194213efede5f3e1 (patch)
tree7efc943e28d3af4753a31ee5a6f0c5ab4ea57869 /legacy/eet/m4
parenta7f2974e1305b39465c234154045937b56de9e4d (diff)
update m4 macros (mainly formatting)
SVN revision: 41212
Diffstat (limited to 'legacy/eet/m4')
-rw-r--r--legacy/eet/m4/ac_attribute.m45
-rw-r--r--legacy/eet/m4/efl_coverage.m412
-rw-r--r--legacy/eet/m4/efl_doxygen.m48
-rw-r--r--legacy/eet/m4/efl_tests.m415
4 files changed, 21 insertions, 19 deletions
diff --git a/legacy/eet/m4/ac_attribute.m4 b/legacy/eet/m4/ac_attribute.m4
index 3926d23d56..23479a92ac 100644
--- a/legacy/eet/m4/ac_attribute.m4
+++ b/legacy/eet/m4/ac_attribute.m4
@@ -31,8 +31,7 @@ int foo(int x __attribute__ ((unused)))
31 [], 31 [],
32 [ac_cv___attribute__="yes"], 32 [ac_cv___attribute__="yes"],
33 [ac_cv___attribute__="no"] 33 [ac_cv___attribute__="no"]
34 )] 34 )])
35)
36 35
37AC_MSG_RESULT($ac_cv___attribute__) 36AC_MSG_RESULT($ac_cv___attribute__)
38 37
@@ -44,3 +43,5 @@ if test "x${ac_cv___attribute__}" = "xyes" ; then
44fi 43fi
45 44
46]) 45])
46
47dnl End of ac_attribute.m4
diff --git a/legacy/eet/m4/efl_coverage.m4 b/legacy/eet/m4/efl_coverage.m4
index 1618f76fee..baf00021ec 100644
--- a/legacy/eet/m4/efl_coverage.m4
+++ b/legacy/eet/m4/efl_coverage.m4
@@ -16,7 +16,7 @@ AC_DEFUN([EFL_CHECK_COVERAGE],
16dnl configure option 16dnl configure option
17 17
18AC_ARG_ENABLE([coverage], 18AC_ARG_ENABLE([coverage],
19 [AC_HELP_STRING([--enable-coverage], [compile with coverage profiling instrumentation @<:@default=no@:>@])], 19 [AC_HELP_STRING([--enable-coverage], [enable coverage profiling instrumentation @<:@default=disabled@:>@])],
20 [ 20 [
21 if test "x${enableval}" = "xyes" ; then 21 if test "x${enableval}" = "xyes" ; then
22 _efl_enable_coverage="yes" 22 _efl_enable_coverage="yes"
@@ -24,8 +24,8 @@ AC_ARG_ENABLE([coverage],
24 _efl_enable_coverage="no" 24 _efl_enable_coverage="no"
25 fi 25 fi
26 ], 26 ],
27 [_efl_enable_coverage="no"] 27 [_efl_enable_coverage="no"])
28) 28
29AC_MSG_CHECKING([whether to use profiling instrumentation]) 29AC_MSG_CHECKING([whether to use profiling instrumentation])
30AC_MSG_RESULT([$_efl_enable_coverage]) 30AC_MSG_RESULT([$_efl_enable_coverage])
31 31
@@ -57,8 +57,10 @@ AC_SUBST(EFL_COVERAGE_LIBS)
57AM_CONDITIONAL(EFL_ENABLE_COVERAGE, test "x${_efl_enable_coverage}" = "xyes") 57AM_CONDITIONAL(EFL_ENABLE_COVERAGE, test "x${_efl_enable_coverage}" = "xyes")
58 58
59if test "x${_efl_enable_coverage}" = "xyes" ; then 59if test "x${_efl_enable_coverage}" = "xyes" ; then
60 ifelse([$2], , :, [$2]) 60 m4_default([$2], [:])
61else 61else
62 ifelse([$3], , :, [$3]) 62 m4_default([$3], [:])
63fi 63fi
64]) 64])
65
66dnl End of efl_coverage.m4
diff --git a/legacy/eet/m4/efl_doxygen.m4 b/legacy/eet/m4/efl_doxygen.m4
index dd6bc3e895..d83ed68b8a 100644
--- a/legacy/eet/m4/efl_doxygen.m4
+++ b/legacy/eet/m4/efl_doxygen.m4
@@ -32,9 +32,7 @@ AC_MSG_RESULT([${efl_enable_doc}])
32 32
33if test "x${efl_enable_doc}" = "xyes" ; then 33if test "x${efl_enable_doc}" = "xyes" ; then
34 34
35dnl
36dnl Specify the file name, without path 35dnl Specify the file name, without path
37dnl
38 36
39 efl_doxygen="doxygen" 37 efl_doxygen="doxygen"
40 38
@@ -42,9 +40,9 @@ dnl
42 [AC_HELP_STRING( 40 [AC_HELP_STRING(
43 [--with-doxygen=FILE], 41 [--with-doxygen=FILE],
44 [doxygen program to use @<:@default=doxygen@:>@])], 42 [doxygen program to use @<:@default=doxygen@:>@])],
45dnl 43
46dnl Check the given doxygen program. 44dnl Check the given doxygen program.
47dnl 45
48 [efl_doxygen=${withval} 46 [efl_doxygen=${withval}
49 AC_CHECK_PROG([efl_have_doxygen], 47 AC_CHECK_PROG([efl_have_doxygen],
50 [${efl_doxygen}], 48 [${efl_doxygen}],
@@ -96,4 +94,4 @@ fi
96 94
97]) 95])
98 96
99dnl End of doxygen.m4 97dnl End of efl_doxygen.m4
diff --git a/legacy/eet/m4/efl_tests.m4 b/legacy/eet/m4/efl_tests.m4
index 8d193b601c..98d11bb7e8 100644
--- a/legacy/eet/m4/efl_tests.m4
+++ b/legacy/eet/m4/efl_tests.m4
@@ -13,7 +13,7 @@ AC_DEFUN([EFL_CHECK_TESTS],
13dnl configure option 13dnl configure option
14 14
15AC_ARG_ENABLE([tests], 15AC_ARG_ENABLE([tests],
16 [AC_HELP_STRING([--enable-tests], [enable tests @<:@default=no@:>@])], 16 [AC_HELP_STRING([--enable-tests], [enable tests @<:@default=disabled@:>@])],
17 [ 17 [
18 if test "x${enableval}" = "xyes" ; then 18 if test "x${enableval}" = "xyes" ; then
19 _efl_enable_tests="yes" 19 _efl_enable_tests="yes"
@@ -21,8 +21,8 @@ AC_ARG_ENABLE([tests],
21 _efl_enable_tests="no" 21 _efl_enable_tests="no"
22 fi 22 fi
23 ], 23 ],
24 [_efl_enable_tests="no"] 24 [_efl_enable_tests="no"])
25) 25
26AC_MSG_CHECKING([whether tests are built]) 26AC_MSG_CHECKING([whether tests are built])
27AC_MSG_RESULT([${_efl_enable_tests}]) 27AC_MSG_RESULT([${_efl_enable_tests}])
28 28
@@ -32,15 +32,16 @@ if test "x${_efl_enable_tests}" = "xyes" ; then
32 PKG_CHECK_MODULES([CHECK], 32 PKG_CHECK_MODULES([CHECK],
33 [check >= 0.9.5], 33 [check >= 0.9.5],
34 [dummy="yes"], 34 [dummy="yes"],
35 [_efl_enable_tests="no"] 35 [_efl_enable_tests="no"])
36 )
37fi 36fi
38 37
39AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes") 38AM_CONDITIONAL(EFL_ENABLE_TESTS, test "x${_efl_enable_tests}" = "xyes")
40 39
41if test "x${_efl_enable_tests}" = "xyes" ; then 40if test "x${_efl_enable_tests}" = "xyes" ; then
42 ifelse([$1], , :, [$1]) 41 m4_default([$1], [:])
43else 42else
44 ifelse([$2], , :, [$2]) 43 m4_default([$2], [:])
45fi 44fi
46]) 45])
46
47dnl End of efl_tests.m4