summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-11-11 21:04:21 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-11-11 21:04:21 +0000
commit7d66c87e9dd1b4a2876c66e93748638a588da232 (patch)
treeb6c1954baf446a07d9f8cb3c277f046fd372c11b /configure.ac
parent6b0fa7d2d4e6fdb1f6990ac3a69181e0189347b8 (diff)
Check backtrace_symbols_fd() availability for e_signal.c
Should help the BSD guys (though OpenBSD seems to need a flag passed in LDFLAGS to be happy. Strange...) SVN revision: 43623
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac53
1 files changed, 51 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 01c885e..48e68ae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -149,6 +149,56 @@ CPPFLAGS="${PCPPFLAGS}"
149AC_SUBST(cf_cflags) 149AC_SUBST(cf_cflags)
150AC_SUBST(cf_libs) 150AC_SUBST(cf_libs)
151 151
152
153execinfo_libs=""
154AC_CHECK_HEADERS([execinfo.h], [have_execinfo="yes"], [have_execinfo="no"])
155if test "x${have_execinfo}" = "xyes" ; then
156 AC_MSG_CHECKING([whether backtrace_symbols_fd() is in libc])
157
158 AC_LINK_IFELSE(
159 [AC_LANG_PROGRAM(
160 [[
161#include <stdlib.h>
162#include <execinfo.h>
163 ]],
164 [[
165backtrace_symbols_fd(NULL, 0, 0);
166 ]])],
167 [link_execinfo="yes"],
168 [link_execinfo="no"])
169
170 AC_MSG_RESULT([${link_execinfo}])
171fi
172
173if test "x${link_execinfo}" = "xno" ; then
174 AC_MSG_CHECKING([whether backtrace_symbols_fd() is in libexecinfo])
175
176 LDFLAGS_save="${LDFLAGS}"
177 LDFLAGS="${LDFLAGS} -lexecinfo"
178 AC_LINK_IFELSE(
179 [AC_LANG_PROGRAM(
180 [[
181#include <stdlib.h>
182#include <execinfo.h>
183 ]],
184 [[
185backtrace_symbols_fd(NULL, 0, 0);
186 ]])],
187 [
188 linkexec_info="yes"
189 execinfo_libs="-lexecinfo"
190 ],
191 [linkexec_info="no"])
192 LDFLAGS="${LDFLAGS_save}"
193
194 AC_MSG_RESULT([${link_execinfo}])
195fi
196
197if test "x${link_execinfo}" = "xno" ; then
198 AC_MSG_ERROR([Cannot use backtrace_symbols_fd()])
199fi
200
201
152#ALL_LINGUAS="bg de eo es fi fr ja pl pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW ko" 202#ALL_LINGUAS="bg de eo es fi fr ja pl pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW ko"
153#ALL_LINGUAS="bg de eo es fi fr ja pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW" 203#ALL_LINGUAS="bg de eo es fi fr ja pt ru zh_CN hu sl it cs da sk sv nb nl zh_TW"
154# a lot of .po's are broken 204# a lot of .po's are broken
@@ -260,8 +310,7 @@ requirements_e="evas ecore ecore-x ecore-evas ecore-con ecore-ipc ecore-job ecor
260 310
261AC_E_CHECK_PKG(ECORE_IMF, [ecore-imf ecore-imf-evas], [], [:]) 311AC_E_CHECK_PKG(ECORE_IMF, [ecore-imf ecore-imf-evas], [], [:])
262 312
263 313e_libs=$E_LIBS" "$LIBINTL" "$fnmatch_libs" "$ECORE_IMF_LIBS" "$execinfo_libs
264e_libs=$E_LIBS" "$LIBINTL" "$fnmatch_libs" "$ECORE_IMF_LIBS
265e_cflags="-DUSE_E_CONFIG_H "$E_CFLAGS" "$ECORE_IMF_CFLAGS 314e_cflags="-DUSE_E_CONFIG_H "$E_CFLAGS" "$ECORE_IMF_CFLAGS
266e_configflags="-DUSE_E_CONFIG_H" 315e_configflags="-DUSE_E_CONFIG_H"
267 316