* configure.in: (AC_CHECK_FUNCS) Added test for
authorAndrew Cagney <cagney@redhat.com>
Sat, 23 Feb 2002 21:54:25 +0000 (21:54 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 23 Feb 2002 21:54:25 +0000 (21:54 +0000)
canonicalize_file_name Regenerated.
* config.in, configure: Regenerated.
* utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
defined use canonicalize_file_name.

gdb/ChangeLog
gdb/config.in
gdb/configure
gdb/configure.in
gdb/utils.c

index 65ae27501dccf4e0a6f4118e92735389ec89a96d..3361c1ec3925383e28ac78e398d1cfc1f40e17a3 100644 (file)
@@ -1,3 +1,13 @@
+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.
index c8ac3fa04e4569609219c1c04d734aa1ade69cc8..f2bab550d1482de77066c96e05f454a38035a58a 100644 (file)
 /* 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
 
index 8a9500b81476d57950876c41bba1fc618d4fc841..c111aea9ffea1d688c475c1dd31985f67bb8f49f 100755 (executable)
@@ -3582,8 +3582,8 @@ EOF
 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
index 672f2600579118a8721b1bcb11dd3f5f24db7789..cb9e59beccc955917a9d34d080348d25032d9240 100644 (file)
@@ -131,8 +131,8 @@ AC_HEADER_STAT
 
 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
index 627c89e39ec6d812b5b03237106229c04251c629..8646020d9c7c6cd0bd8c12a1dcae14cd8cb3d5ed 100644 (file)
@@ -2526,7 +2526,9 @@ string_to_core_addr (const char *my_string)
 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)