defined QSE_PATH_MAX

added more operators to qse_ip4ad_t for c++
This commit is contained in:
2018-01-17 04:38:21 +00:00
parent 825cf63d04
commit 8ce346e1ed
10 changed files with 141 additions and 13 deletions

View File

@ -380,6 +380,25 @@ AC_TRY_LINK(
[AC_MSG_RESULT(no)]
)
dnl check the defined value of PATH_MAX in limits.h.
dnl look for a numeric value of 2 or more digits after preprocessing.
AC_MSG_CHECKING([for PATH_MAX])
AC_LANG_CONFTEST([
AC_LANG_PROGRAM(
[#include <limits.h>],
[;;;;;;;;;;
PATH_MAX])
])
qse_cv_path_max="`$ac_cv_prog_CPP conftest.c | awk '/;;;;;;;;;;/ { start=1 } /^(0|1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)*/ { if (start == 1) { print $0; start++; } }'`"
if test "x${qse_cv_path_max}" = "x"
then
dnl either not defined or defined to a non-numeric value
AC_MSG_RESULT(not defined)
else
AC_MSG_RESULT(${qse_cv_path_max})
AC_DEFINE_UNQUOTED(QSE_PATH_MAX, ${qse_cv_path_max}, [PATH_MAX])
fi
dnl check the size of primitive data types
AC_CHECK_SIZEOF(char,,[[]])
AC_CHECK_SIZEOF(short,,[[]])