aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/configure.ac
diff options
context:
space:
mode:
authorJanne Blomqvist <jb@gcc.gnu.org>2014-10-20 10:53:37 +0300
committerJanne Blomqvist <jb@gcc.gnu.org>2014-10-20 10:53:37 +0300
commit70480968b46b95f2f1a6b290b271290c210f2cd4 (patch)
treeca6deadcd02431554c183b307d7d10cc4ef3a6af /libgfortran/configure.ac
parente0d37441927c02aa63e61ad5f4b37067640fe4b2 (diff)
downloadgcc-70480968b46b95f2f1a6b290b271290c210f2cd4.zip
gcc-70480968b46b95f2f1a6b290b271290c210f2cd4.tar.gz
gcc-70480968b46b95f2f1a6b290b271290c210f2cd4.tar.bz2
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. From-SVN: r216449
Diffstat (limited to 'libgfortran/configure.ac')
-rw-r--r--libgfortran/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
index 9d8e05c..b3150f4 100644
--- a/libgfortran/configure.ac
+++ b/libgfortran/configure.ac
@@ -275,6 +275,7 @@ if test "x${with_newlib}" = "xyes"; then
AC_DEFINE(HAVE_GMTIME_R, 1, [Define if you have gmtime_r.])
AC_DEFINE(HAVE_STRNLEN, 1, [Define if you have strnlen.])
AC_DEFINE(HAVE_STRNDUP, 1, [Define if you have strndup.])
+ AC_DEFINE(HAVE_STRTOK_R, 1, [Define if you have strtok_r.])
# At some point, we should differentiate between architectures
# like x86, which have long double versions, and alpha/powerpc/etc.,
@@ -289,7 +290,7 @@ else
strcasestr getrlimit gettimeofday stat fstat lstat getpwuid vsnprintf dup \
getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \
readlink getgid getpid getppid getuid geteuid umask getegid \
- secure_getenv __secure_getenv mkostemp strnlen strndup)
+ secure_getenv __secure_getenv mkostemp strnlen strndup strtok_r)
fi
# Check strerror_r, cannot be above as versions with two and three arguments exist