summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2000-01-17 00:47:04 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2000-01-17 00:47:04 +0000
commit42751c941b4918f219470257f5723c7d68ca3dbc (patch)
tree04d320e011af4c54e7e47e7921419651ee0c7836 /configure.in
parent0a68a790e1dd2a38e4af9b583b466e01c9733638 (diff)
downloadATCD-42751c941b4918f219470257f5723c7d68ca3dbc.tar.gz
ChangeLogTag:Sun Jan 16 16:13:00 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in50
1 files changed, 50 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 4bcc3c14889..bfe6aaff140 100644
--- a/configure.in
+++ b/configure.in
@@ -3885,6 +3885,56 @@ AC_CHECK_FUNC(getppid, dnl
,
AC_DEFINE(ACE_LACKS_GETPPID))
+AC_CHECK_FUNC(setregid, dnl
+ [
+ dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
+ dnl needed to make the setregid() prototype visible.
+ ACE_CACHE_CHECK(for setregid prototype,
+ ace_cv_lib_has_setregid_prototype,
+ [
+ save_CPPFLAGS="$CPPFLAGS"
+ ace_no_xopen="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
+ CPPFLAGS="$CPPFLAGS $ace_no_xopen"
+ AC_EGREP_HEADER([[^_]+setregid], time.h,
+ [
+ ace_cv_lib_has_setregid_prototype=yes
+ ],
+ [
+ ace_cv_lib_has_setregid_prototype=no
+ ])
+ dnl Reset the compiler flags
+ CPPFLAGS="$save_CPPFLAGS"
+ ],, AC_DEFINE(ACE_LACKS_SETREGID_PROTO))
+ ],
+ [
+ AC_DEFINE(ACE_LACKS_SETREGID)
+ ])
+
+AC_CHECK_FUNC(setreuid, dnl
+ [
+ dnl Check if _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED macros are
+ dnl needed to make the setreuid() prototype visible.
+ ACE_CACHE_CHECK(for setreuid prototype,
+ ace_cv_lib_has_setreuid_prototype,
+ [
+ save_CPPFLAGS="$CPPFLAGS"
+ ace_no_xopen="-U_XOPEN_SOURCE -U_XOPEN_SOURCE_EXTENDED"
+ CPPFLAGS="$CPPFLAGS $ace_no_xopen"
+ AC_EGREP_HEADER([[^_]+setreuid], time.h,
+ [
+ ace_cv_lib_has_setreuid_prototype=yes
+ ],
+ [
+ ace_cv_lib_has_setreuid_prototype=no
+ ])
+ dnl Reset the compiler flags
+ CPPFLAGS="$save_CPPFLAGS"
+ ],, AC_DEFINE(ACE_LACKS_SETREUID_PROTO))
+ ],
+ [
+ AC_DEFINE(ACE_LACKS_SETREUID)
+ ])
+
AC_CHECK_FUNC(getpagesize, dnl
AC_DEFINE(ACE_HAS_GETPAGESIZE),
AC_DEFINE(ACE_PAGE_SIZE, 4096))