forked from enlightenment/efl
parent
db52717d88
commit
1979834385
|
@ -38,6 +38,8 @@ AC_SUBST(efreet_release_info)
|
||||||
AC_SUBST(efreet_mime_release_info)
|
AC_SUBST(efreet_mime_release_info)
|
||||||
AC_SUBST(efreet_trash_release_info)
|
AC_SUBST(efreet_trash_release_info)
|
||||||
|
|
||||||
|
EFL_CHECK_PATH_MAX
|
||||||
|
|
||||||
PKG_PROG_PKG_CONFIG
|
PKG_PROG_PKG_CONFIG
|
||||||
|
|
||||||
# Check whether pkg-config supports Requires.private
|
# Check whether pkg-config supports Requires.private
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
dnl Check for PATH_MAX in limits.h, and define a default value if not found
|
||||||
|
dnl This is a workaround for systems not providing PATH_MAX, like GNU/Hurd
|
||||||
|
|
||||||
|
dnl EFL_CHECK_PATH_MAX([DEFAULT_VALUE_IF_NOT_FOUND])
|
||||||
|
dnl
|
||||||
|
dnl If PATH_MAX is not defined in <limits.h>, defines it
|
||||||
|
dnl to DEFAULT_VALUE_IF_NOT_FOUND if it exists, or fallback
|
||||||
|
dnl to using 4096
|
||||||
|
|
||||||
|
AC_DEFUN([EFL_CHECK_PATH_MAX],
|
||||||
|
[
|
||||||
|
|
||||||
|
default_max=m4_default([$1], "4096")
|
||||||
|
AC_LANG_PUSH([C])
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for PATH_MAX in limit.h])
|
||||||
|
AC_COMPILE_IFELSE(
|
||||||
|
[AC_LANG_PROGRAM([[#include <limits.h>]],
|
||||||
|
[[int i = PATH_MAX]])
|
||||||
|
],
|
||||||
|
AC_MSG_RESULT([yes]),
|
||||||
|
[
|
||||||
|
AC_DEFINE_UNQUOTED([PATH_MAX],
|
||||||
|
[${default_max}],
|
||||||
|
[default value since PATH_MAX is not defined])
|
||||||
|
AC_MSG_RESULT([no: using ${default_max}])
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
AC_LANG_POP([C])
|
||||||
|
|
||||||
|
])
|
||||||
|
dnl end of efl_path_max.m4
|
|
@ -9,10 +9,6 @@
|
||||||
#include <Ecore.h>
|
#include <Ecore.h>
|
||||||
#include <Ecore_File.h>
|
#include <Ecore_File.h>
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
|
||||||
#define PATH_MAX 4096
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define SIZE 128
|
#define SIZE 128
|
||||||
#define THEME "Tango"
|
#define THEME "Tango"
|
||||||
#define FREE(x) do { free(x); x = NULL; } while (0);
|
#define FREE(x) do { free(x); x = NULL; } while (0);
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "ef_test.h"
|
#include "ef_test.h"
|
||||||
|
|
||||||
#define PATH_MAX 4096
|
|
||||||
|
|
||||||
static void dump(Efreet_Menu *menu, const char *path);
|
static void dump(Efreet_Menu *menu, const char *path);
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
|
@ -63,14 +63,6 @@
|
||||||
(x) = NULL; \
|
(x) = NULL; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#ifndef PATH_MAX
|
|
||||||
/**
|
|
||||||
* @def PATH_MAX
|
|
||||||
* Convenience define to set the maximim path length
|
|
||||||
*/
|
|
||||||
#define PATH_MAX 4096
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def _efree_log_domain_global
|
* @def _efree_log_domain_global
|
||||||
* global log domain for efreet (see eina_log module)
|
* global log domain for efreet (see eina_log module)
|
||||||
|
|
Loading…
Reference in New Issue