canonicalize_file_name Regenerated.
* config.in, configure: Regenerated.
* utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
defined use canonicalize_file_name.
+2002-02-23 Andrew Cagney <ac131313@redhat.com>
+
+ From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
+
+ * configure.in: (AC_CHECK_FUNCS) Added test for
+ canonicalize_file_name Regenerated.
+ * config.in, configure: Regenerated.
+ * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
+ defined use canonicalize_file_name.
+
2002-02-23 Michael Chastain <mec@shout.net>
* MAINTAINERS: Remove Michael Chastain from "paper trail" list.
/* Define if you have the bzero function. */
#undef HAVE_BZERO
+/* Define if you have the canonicalize_file_name function. */
+#undef HAVE_CANONICALIZE_FILE_NAME
+
/* Define if you have the dcgettext function. */
#undef HAVE_DCGETTEXT
fi
-for ac_func in bcopy btowc bzero isascii poll realpath sbrk setpgid setpgrp \
- sigaction sigprocmask sigsetmask
+for ac_func in bcopy btowc bzero canonicalize_file_name isascii poll \
+ realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:3590: checking for $ac_func" >&5
AC_C_CONST
-AC_CHECK_FUNCS(bcopy btowc bzero isascii poll realpath sbrk setpgid setpgrp \
- sigaction sigprocmask sigsetmask)
+AC_CHECK_FUNCS(bcopy btowc bzero canonicalize_file_name isascii poll \
+ realpath sbrk setpgid setpgrp sigaction sigprocmask sigsetmask )
AC_FUNC_ALLOCA
AC_FUNC_VFORK
dnl AC_FUNC_SETPGRP does not work when cross compiling
char *
gdb_realpath (const char *filename)
{
-#ifdef HAVE_REALPATH
+#ifdef HAVE_CANONICALIZE_FILE_NAME
+ return canonicalize_file_name (filename);
+#elif defined (HAVE_REALPATH)
#if defined (PATH_MAX)
char buf[PATH_MAX];
#elif defined (MAXPATHLEN)