Mail Archives: djgpp-workers/1999/08/05/16:58:52
Hello,
As I wrote in djgpp AT delorie DOT com, I'm still unable
to build GDB. However, I tried to configure GDB
myself but configure scripts failed on following
test:
---
checking for ld used by GCC... no
configure: error: no acceptable ld found in $PATH
Configure in c:/djgpp/gnu/gdb-4.18.original/opcodes failed, exiting.
---
I checked out and saw following in configure script:
ac_prog=ld
if test "$ac_cv_prog_gcc" = yes; then
# Check if gcc -print-prog-name=ld gives a path.
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
echo "configure:1329: checking for ld used by GCC" >&5
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
/* | [A-Za-z]:\\*)
---
Note that the check above accepts only backslashes, but
gcc prints program path with forward slashes. So I fixed
this by changing line above to
/* | [A-Za-z]:[\\/]*)
I patched configures and aclocal.m4s but aren't aclocal.m4
generated somewhere else? In that case the actual bug
is there, but I couldn't find it.
Now that configure test succeeds, but I'm still unable
to build GDB :(
Bye,
Laurynas Biveinis
---
diff -u -r gdb-4.18.original/bfd/aclocal.m4 gdb-4.18/bfd/aclocal.m4
--- gdb-4.18.original/bfd/aclocal.m4 Fri Feb 5 04:59:40 1999
+++ gdb-4.18/bfd/aclocal.m4 Thu Aug 5 20:28:20 1999
@@ -359,7 +359,7 @@
case "$ac_prog" in
# Accept absolute paths.
changequote(,)dnl
- /* | [A-Za-z]:\\*)
+ /* | [A-Za-z]:[\\/]*)
changequote([,])dnl
test -z "$LD" && LD="$ac_prog"
;;
diff -u -r gdb-4.18.original/bfd/configure gdb-4.18/bfd/configure
--- gdb-4.18.original/bfd/configure Wed Apr 7 20:57:06 1999
+++ gdb-4.18/bfd/configure Thu Aug 5 20:28:40 1999
@@ -1329,7 +1329,7 @@
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
- /* | [A-Za-z]:\\*)
+ /* | [A-Za-z]:[\\/]*)
test -z "$LD" && LD="$ac_prog"
;;
"")
diff -u -r gdb-4.18.original/opcodes/aclocal.m4 gdb-4.18/opcodes/aclocal.m4
--- gdb-4.18.original/opcodes/aclocal.m4 Fri Feb 5 05:10:02 1999
+++ gdb-4.18/opcodes/aclocal.m4 Thu Aug 5 20:28:58 1999
@@ -256,7 +256,7 @@
case "$ac_prog" in
# Accept absolute paths.
changequote(,)dnl
- /* | [A-Za-z]:\\*)
+ /* | [A-Za-z]:[\\/]*)
changequote([,])dnl
test -z "$LD" && LD="$ac_prog"
;;
diff -u -r gdb-4.18.original/opcodes/configure gdb-4.18/opcodes/configure
--- gdb-4.18.original/opcodes/configure Wed Apr 7 21:01:34 1999
+++ gdb-4.18/opcodes/configure Thu Aug 5 20:29:12 1999
@@ -1332,7 +1332,7 @@
ac_prog=`($CC -print-prog-name=ld) 2>&5`
case "$ac_prog" in
# Accept absolute paths.
- /* | [A-Za-z]:\\*)
+ /* | [A-Za-z]:[\\/]*)
test -z "$LD" && LD="$ac_prog"
;;
"")
- Raw text -