diff options
author | Charles-François Natali <neologix@free.fr> | 2011-11-27 12:01:35 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2011-11-27 12:01:35 (GMT) |
commit | 93a1175bacd415061ac61107e58f24fe9ced82ff (patch) | |
tree | 5737c3ed9555248fad1a25d2cdc3d581af6af3c8 /configure | |
parent | 710671a72277b0196611cdfbb11b3cd0c49a93de (diff) | |
download | cpython-93a1175bacd415061ac61107e58f24fe9ced82ff.zip cpython-93a1175bacd415061ac61107e58f24fe9ced82ff.tar.gz cpython-93a1175bacd415061ac61107e58f24fe9ced82ff.tar.bz2 |
Issue #13415: Test in configure if unsetenv() has a return value or not.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -9924,6 +9924,34 @@ $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 +$as_echo_n "checking for broken unsetenv... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include <stdlib.h> + +int +main () +{ +int res = unsetenv("DUMMY") + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +else + +$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + for ac_prog in true do # Extract the first word of "$ac_prog", so it can be a program name with args. |