summaryrefslogtreecommitdiff
path: root/libgfortran/configure
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2012-05-05 09:30:51 +0300
committerJanne Blomqvist <jb@gcc.gnu.org>2012-05-05 09:30:51 +0300
commit68ee9c0807fd3c9a66c649aa7bd3bebacfb0dff0 (patch)
treeac63807666eaf2ebc05379c848806981ba536332 /libgfortran/configure
parent9154c66213636f44954feb8d73257560370c11c2 (diff)
downloadgcc-68ee9c0807fd3c9a66c649aa7bd3bebacfb0dff0.tar.gz
Fix handling of temporary files.
2012-05-05 Janne Blomqvist <jb@gcc.gnu.org> * gfortran.texi (GFORTRAN_TMPDIR): Rename to TMPDIR, explain algorithm for choosing temp directory. 2012-05-05 Janne Blomqvist <jb@gcc.gnu.org> * config.h.in: Regenerated. * configure: Regenerated. * configure.ac: Add checks for getegid and __secure_getenv. * io/unix.c (P_tmpdir): Fallback definition for macro. (tempfile_open): New function. (tempfile): Use secure_getenv, call tempfile_open to try each directory in turn. * libgfortran.h (DEFAULT_TMPDIR): Remove macro. (secure_getenv): New macro/prototype. * runtime/environ.c (secure_getenv): New function. (variable_table): Rename GFORTRAN_TMPDIR to TMPDIR. * runtime/main.c (find_addr2line): Use secure_getenv. From-SVN: r187190
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-xlibgfortran/configure10
1 files changed, 8 insertions, 2 deletions
diff --git a/libgfortran/configure b/libgfortran/configure
index b80f5453d00..e2db9ea2537 100755
--- a/libgfortran/configure
+++ b/libgfortran/configure
@@ -2592,6 +2592,8 @@ as_fn_append ac_func_list " getppid"
as_fn_append ac_func_list " getuid"
as_fn_append ac_func_list " geteuid"
as_fn_append ac_func_list " umask"
+as_fn_append ac_func_list " getegid"
+as_fn_append ac_func_list " __secure_getenv"
as_fn_append ac_header_list " math.h"
# Check that the precious variables saved in the cache have kept the same
# value.
@@ -12319,7 +12321,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12322 "configure"
+#line 12324 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12425,7 +12427,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12428 "configure"
+#line 12430 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16536,6 +16538,10 @@ done
+
+
+
+
# Check for C99 (and other IEEE) math functions
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
$as_echo_n "checking for sin in -lm... " >&6; }