Skip to content
Permalink
Browse files

Remove the detection of `secure_getenv` and `__secure_getenv` from co…

…nfigure.
  • Loading branch information
xclerc authored and lpw25 committed May 31, 2019
1 parent a095535 commit 6e7eed95eaf5a2a55972997142b41f3e20529bb2
Showing with 0 additions and 32 deletions.
  1. +0 −21 configure
  2. +0 −11 configure.ac
@@ -13943,27 +13943,6 @@ if test "x$ac_cv_func_times" = xyes; then :
fi


## secure_getenv and __secure_getenv

saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"

ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
if test "x$ac_cv_func_secure_getenv" = xyes; then :
$as_echo "#define HAS_SECURE_GETENV 1" >>confdefs.h

else
ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
if test "x$ac_cv_func___secure_getenv" = xyes; then :
$as_echo "#define HAS___SECURE_GETENV 1" >>confdefs.h

fi

fi


CPP_FLAGS="$saved_CPPFLAGS"

## issetugid

ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
@@ -1053,17 +1053,6 @@ AC_CHECK_FUNC([getrusage], [AC_DEFINE([HAS_GETRUSAGE])])
## times
AC_CHECK_FUNC([times], [AC_DEFINE([HAS_TIMES])])

## secure_getenv and __secure_getenv

saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"

AC_CHECK_FUNC([secure_getenv],
[AC_DEFINE([HAS_SECURE_GETENV])],
[AC_CHECK_FUNC([__secure_getenv], [AC_DEFINE([HAS___SECURE_GETENV])])])

CPP_FLAGS="$saved_CPPFLAGS"

## issetugid

AC_CHECK_FUNC([issetugid], [AC_DEFINE([HAS_ISSETUGID])])

0 comments on commit 6e7eed9

Please sign in to comment.
You can’t perform that action at this time.