diff options
author | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-20 07:53:37 +0000 |
---|---|---|
committer | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-10-20 07:53:37 +0000 |
commit | 7f0d992b62e64e043b544dd36596a9b218423dc7 (patch) | |
tree | ca6deadcd02431554c183b307d7d10cc4ef3a6af /libgfortran/configure | |
parent | 881bdfe36ad91e1d0b49a2586b04fa0c858f66b4 (diff) | |
download | gcc-7f0d992b62e64e043b544dd36596a9b218423dc7.tar.gz |
PR 63589 Fix splitting of PATH in find_addr2line.
2014-10-20 Janne Blomqvist <jb@gcc.gnu.org>
PR libfortran/63589
* configure.ac: Check for strtok_r.
* runtime/main.c (gfstrtok_r): Fallback implementation of
strtok_r.
(find_addr2line): Use strtok_r to split PATH.
* config.h.in: Regenerated.
* configure: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216449 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-x | libgfortran/configure | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libgfortran/configure b/libgfortran/configure index a4951bff66a..df1782929ac 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -2604,6 +2604,7 @@ as_fn_append ac_func_list " __secure_getenv" as_fn_append ac_func_list " mkostemp" as_fn_append ac_func_list " strnlen" as_fn_append ac_func_list " strndup" +as_fn_append ac_func_list " strtok_r" as_fn_append ac_header_list " math.h" # Check that the precious variables saved in the cache have kept the same # value. @@ -12349,7 +12350,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12352 "configure" +#line 12353 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12455,7 +12456,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12458 "configure" +#line 12459 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16485,6 +16486,9 @@ $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h +$as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h + + # At some point, we should differentiate between architectures # like x86, which have long double versions, and alpha/powerpc/etc., # which don't. For the time being, punt. @@ -16621,6 +16625,8 @@ done + + fi # Check strerror_r, cannot be above as versions with two and three arguments exist |