From c417aba1428c5dd66bd09a5ff44e2be0a55f0953 Mon Sep 17 00:00:00 2001 From: caro Date: Mon, 11 Jan 2010 07:12:43 +0000 Subject: [PATCH] update efl_path_max.m4 git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@45037 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- m4/efl_path_max.m4 | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/m4/efl_path_max.m4 b/m4/efl_path_max.m4 index 2c9b60a..f57bfd2 100644 --- a/m4/efl_path_max.m4 +++ b/m4/efl_path_max.m4 @@ -13,19 +13,22 @@ 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_MSG_CHECKING([for PATH_MAX in limits.h]) AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[#include ]], - [[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_PROGRAM( + [[ +#include + ]], + [[ +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]) -- 2.7.4