summaryrefslogtreecommitdiff
path: root/legacy/eina/configure.ac
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2011-12-05 13:57:10 +0000
committerCedric BAIL <cedric.bail@free.fr>2011-12-05 13:57:10 +0000
commit1561954c05fb6959d5e041deb9b014baa492c323 (patch)
tree249b57a1946818c5b8f3dfd0291d5612032f81c5 /legacy/eina/configure.ac
parent30af9a785fb22460593fa986a0afa85de7ff08a3 (diff)
eina: improve system header detection.
SVN revision: 65900
Diffstat (limited to 'legacy/eina/configure.ac')
-rw-r--r--legacy/eina/configure.ac22
1 files changed, 19 insertions, 3 deletions
diff --git a/legacy/eina/configure.ac b/legacy/eina/configure.ac
index 31e2996ae3..126f1d0235 100644
--- a/legacy/eina/configure.ac
+++ b/legacy/eina/configure.ac
@@ -355,10 +355,9 @@ AM_CONDITIONAL([BUILD_TILER_EXAMPLE], [test "x${build_tiler_example}" = "xyes"])
355 355
356### Checks for header files 356### Checks for header files
357AC_HEADER_ASSERT 357AC_HEADER_ASSERT
358AC_HEADER_DIRENT
359AC_HEADER_TIME 358AC_HEADER_TIME
360EFL_CHECK_PATH_MAX 359EFL_CHECK_PATH_MAX
361AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h]) 360AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h siginfo.h strings.h sys/mman.h])
362 361
363if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then 362if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
364 EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H" 363 EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"
@@ -372,6 +371,14 @@ if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
372fi 371fi
373AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H]) 372AC_SUBST([EINA_CONFIGURE_HAVE_STDINT_H])
374 373
374if test "x${ac_cv_header_strings_h}" = "xyes" ; then
375 AC_DEFINE([HAVE_STRINGS_H], [1], [Define to 1 if you have the <strings.h> header file.])
376fi
377
378if test "x${ac_cv_header_sys_mman_h}" = "xyes" ; then
379 AC_DEFINE([HAVE_MMAN_H], [1], [Define to 1 if you have the <sys/mman.h> header file.])
380fi
381
375### Checks for types 382### Checks for types
376 383
377AC_CHECK_SIZEOF([wchar_t]) 384AC_CHECK_SIZEOF([wchar_t])
@@ -384,8 +391,17 @@ AC_CHECK_TYPES([siginfo_t], [], [],
384 #endif 391 #endif
385 ]]) 392 ]])
386 393
387### Checks for structures 394### Check if dirent.h is usable
388 395
396AC_CHECK_TYPES([struct dirent], [have_dirent="yes"], [have_dirent="no"],
397 [[#include <dirent.h>
398 ]])
399
400if test "x${have_dirent_h}" = "xyes" ; then
401 EINA_CONFIGURE_HAVE_DIRENT_H="#define EINA_HAVE_DIRENT_H"
402 AC_DEFINE([HAVE_DIRENT_H], [1], [Define to 1 if you have a valid <dirent.h> header file.])
403fi
404AC_SUBST([EINA_CONFIGURE_HAVE_DIRENT_H])
389 405
390### Checks for compiler characteristics 406### Checks for compiler characteristics
391AC_C_CONST 407AC_C_CONST