From 680e4d14e0534bb535059d0239b71d42317fe0b1 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Mon, 11 Jan 2010 07:16:42 +0000 Subject: [PATCH] update efl_path_max.m4 SVN revision: 45040 --- 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