Date: Tue, 24 Aug 1999 08:26:59 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Peter Wuesten cc: djgpp AT delorie DOT com Subject: Re: building binutils 2.91 In-Reply-To: <7pauqg$oho@news.rhrz.uni-bonn.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 17 Aug 1999, Peter Wuesten wrote: > I've been trying to build the binutils 2.91 package from sources, but > it doesn't work out. The configure scripts check my system etc., but they > abort after the script finds out it my linker ld isn't acceptable, and that > there was no suitable ranlib in my path (although it is). To build Binutils 2.9.1, you need to patch the distribution first, as it doesn't support DJGPP out of the box. You also need the latest beta version of the DJGPP port of Bash 2.03; older versions of Bash won't be able to build Binutils. (It goes without saying that you also need all the auxiliary utilities: Fileutils, Textutils, Sh-utils, Diffutils, Sed, Grep, Gawk, Patch, and of course Make.) Here's what you need to do once you have Bash and the other utilities installed: Step 1: create a file called "config.site" in the `share' subdirectory of your main DJGPP installation, and put the following 36 lines into that file: #! /bin/sh # Sanity check if test "x${DJDIR}" = "x"; then echo "Your DJGPP installation is not setup correctly. DJDIR is not set." exit 1 fi # The root of the DJGPP tree serves as the default prefix dj_prefix="/dev/env/DJDIR" ac_default_prefix=$dj_prefix # This is required for config.status script to be run, since # ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh} # Needed for Bash 1.147, but not for Bash 2.03 # since it has special handling for the /bin directory export CONFIG_SHELL=${CONFIG_SHELL='sh'} # $INSTALL must be an absolute path name, otherwise config.status # will try to prepend ./ and ../ to it when it goes into subdirs. export INSTALL=${INSTALL=$dj_prefix'/bin/ginstall -c'} # Help out libtool ac_exeext=".exe" export PATH_SEPARATOR=: export PATH_EXPAND=Y export TEST_FINDS_EXE=Y # Force the test for 'ln -s' to report no. ac_cv_prog_LN_S="ln" Step 2: save the last part of this message that begins after the line which says "cut here" to a file called, say, binutils.pat, in the same directory where you unpacked Binutils, and then invoke the Patch utility on that file, like this: patch -p0 -b < binutils.pat Make sure Patch doesn't print any error messages when it patches the distribution! Step 3: invoke the "configure.bat" batch file like this: configure This will run for a while, so be patient. Step 4: run Make by typing "make [Enter]". Step 5: to install the programs (and overwrite your previous versions of Binutils programs), type this: make install INSTALL='c:/djgpp/bin/ginstall -c' To install the Info docs, type this: make install-info INSTALL='c:/djgpp/bin/ginstall -c' (this assumes that DJGPP is installed under C:\DJGPP; if not, change the above accordingly). That's it! If you have any trouble building Binutils, post the problems here. ---------------------- cut here ------------------------- *** bfd/acinclud.m~0 Fri May 1 18:47:58 1998 --- bfd/acinclud.m4 Fri Jul 30 20:51:52 1999 *************** *** 24,37 **** EXEEXT_FOR_BUILD='$(EXEEXT)' else AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext, ! [cat > ac_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5 ! bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//` ! rm -f ac_c_test* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no]) EXEEXT_FOR_BUILD="" test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} --- 24,37 ---- EXEEXT_FOR_BUILD='$(EXEEXT)' else AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext, ! [cat > ac_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_ctest am_ctest.c 1>&5 2>&5 ! bfd_cv_build_exeext=`ls -1 ac_ctest.* | grep -v ac_ctest.c | sed -e s/ac_ctest//` ! rm -f ac_ctest* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no]) EXEEXT_FOR_BUILD="" test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} *** bfd/aclocal.m~0 Fri May 1 18:47:58 1998 --- bfd/aclocal.m4 Fri Jul 30 20:46:16 1999 *************** *** 36,49 **** EXEEXT_FOR_BUILD='$(EXEEXT)' else AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext, ! [cat > ac_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5 ! bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//` ! rm -f ac_c_test* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no]) EXEEXT_FOR_BUILD="" test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} --- 36,49 ---- EXEEXT_FOR_BUILD='$(EXEEXT)' else AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext, ! [cat > ac_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_ctest am_ctest.c 1>&5 2>&5 ! bfd_cv_build_exeext=`ls -1 ac_ctest.* | grep -v ac_ctest.c | sed -e s/ac_ctest//` ! rm -f ac_ctest* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no]) EXEEXT_FOR_BUILD="" test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} *************** *** 324,330 **** case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; --- 324,330 ---- case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; *************** *** 390,396 **** AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; --- 390,396 ---- AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *************** *** 496,509 **** [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" --- 496,509 ---- [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" *** bfd/configure.~0 Fri May 1 18:48:04 1998 --- bfd/configure. Fri Jul 30 18:24:50 1999 *************** *** 1272,1278 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 1272,1278 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 1346,1352 **** echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) --- 1346,1352 ---- echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) *************** *** 1600,1613 **** if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no --- 1600,1613 ---- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no *************** *** 1840,1848 **** /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5 ! bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//` ! rm -f ac_c_test* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no fi --- 1840,1848 ---- /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_ctest am_ctest.c 1>&5 2>&5 ! bfd_cv_build_exeext=`ls -1 ac_ctest.* | grep -v ac_ctest.c | sed -e s/ac_ctest//` ! rm -f ac_ctest* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no fi *** binutils/aclocal.m~0 Fri May 1 18:49:30 1998 --- binutils/aclocal.m4 Fri Jul 30 20:46:48 1999 *************** *** 258,264 **** case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; --- 258,264 ---- case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; *************** *** 324,330 **** AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; --- 324,330 ---- AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *************** *** 430,443 **** [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" --- 430,443 ---- [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" *** binutils/configure.~0 Fri May 1 18:49:30 1998 --- binutils/configure. Fri Jul 30 18:24:20 1999 *************** *** 1143,1149 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 1143,1149 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 1217,1223 **** echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) --- 1217,1223 ---- echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) *************** *** 1839,1852 **** if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no --- 1839,1852 ---- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`echo am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no *************** *** 1921,1929 **** /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_c_test am_c_test.c 1>&5 2>&5 ! bfd_cv_build_exeext=`echo ac_c_test.* | grep -v ac_c_test.c | sed -e s/ac_c_test//` ! rm -f ac_c_test* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no fi --- 1921,1929 ---- /* Nothing needed here */ } EOF ! ${CC_FOR_BUILD} -o ac_ctest am_ctest.c 1>&5 2>&5 ! bfd_cv_build_exeext=`ls -1 ac_ctest.* | grep -v ac_ctest.c | sed -e s/ac_ctest//` ! rm -f ac_ctest* test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no fi *** configure.b~0 Fri May 1 18:49:44 1998 --- configure.bat Sun Jul 25 19:06:52 1999 *************** *** 1,17 **** @echo off - chdir libiberty - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir ..\bfd - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir ..\opcodes - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir ..\gprof - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir ..\binutils - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir ..\gas - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir ..\ld - call configure %1 %2 %3 %4 %5 %6 %7 %8 %9 - chdir .. --- 1,3 ---- @echo off + sh djconfig.sh *** gas/aclocal.m~0 Fri May 1 18:45:04 1998 --- gas/aclocal.m4 Fri Jul 30 20:48:02 1999 *************** *** 315,321 **** case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; --- 315,321 ---- case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; *************** *** 381,387 **** AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; --- 381,387 ---- AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *************** *** 487,500 **** [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" --- 487,500 ---- [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" *** gas/configure.~0 Fri May 1 18:45:06 1998 --- gas/configure. Fri Jul 30 18:32:40 1999 *************** *** 1145,1151 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 1145,1151 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 1219,1225 **** echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) --- 1219,1225 ---- echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) *************** *** 2534,2547 **** if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no --- 2534,2547 ---- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no *************** *** 3351,3357 **** ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" ! trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then --- 3471,3477 ---- cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then *** gprof/aclocal.m~0 Fri May 1 18:49:40 1998 --- gprof/aclocal.m4 Fri Jul 30 20:48:52 1999 *************** *** 256,262 **** case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; --- 256,262 ---- case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; *************** *** 322,328 **** AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; --- 322,328 ---- AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *************** *** 428,441 **** [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" --- 428,441 ---- [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" *** gprof/configure.~0 Fri May 1 18:49:42 1998 --- gprof/configure. Fri Jul 30 18:23:42 1999 *************** *** 1139,1145 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 1139,1145 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 1213,1219 **** echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) --- 1213,1219 ---- echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) *************** *** 1607,1620 **** if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no --- 1607,1620 ---- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no *** ld/aclocal.m~0 Fri May 1 18:48:46 1998 --- ld/aclocal.m4 Fri Jul 30 20:49:42 1999 *************** *** 258,264 **** case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; --- 258,264 ---- case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; *************** *** 324,330 **** AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; --- 324,330 ---- AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *************** *** 407,420 **** [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" --- 407,420 ---- [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" *** ld/configure.~0 Fri May 1 18:48:48 1998 --- ld/configure. Fri Jul 30 18:23:30 1999 *************** *** 1143,1149 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 1143,1149 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 1217,1223 **** echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) --- 1217,1223 ---- echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) *************** *** 1592,1605 **** if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no --- 1592,1605 ---- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no *** ltconfig.~0 Fri May 1 18:49:28 1998 --- ltconfig. Sat Jul 31 19:28:14 1999 *************** *** 625,631 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 625,631 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 890,896 **** if test -z "$NM"; then echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6 case "$NM" in ! /* | [A-Za-z]:\\*) ;; # Let the user override the test with a path. *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do --- 890,896 ---- if test -z "$NM"; then echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6 case "$NM" in ! /* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path. *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do *** ltmain.s~0 Fri May 1 18:49:28 1998 --- ltmain.sh Sat Jul 31 19:29:32 1999 *************** *** 495,501 **** -L*) dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'` case "$dir" in ! /* | [A-Za-z]:\\*) # Add the corresponding hardcode_libdir_flag, if it is not identical. ;; *) --- 495,501 ---- -L*) dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'` case "$dir" in ! /* | [A-Za-z]:[\\/]*) # Add the corresponding hardcode_libdir_flag, if it is not identical. ;; *) *************** *** 711,717 **** relink) # We need an absolute path. case "$dir" in ! /* | [A-Za-z]:\\*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then --- 711,717 ---- relink) # We need an absolute path. case "$dir" in ! /* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then *************** *** 1371,1377 **** rpath= for dir in $temp_rpath; do case "$dir" in ! /* | [A-Za-z]:\\*) # Absolute path. rpath="$rpath$dir:" ;; --- 1371,1377 ---- rpath= for dir in $temp_rpath; do case "$dir" in ! /* | [A-Za-z]:[\\/]*) # Absolute path. rpath="$rpath$dir:" ;; *************** *** 1477,1483 **** # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in ! /* | [A-Za-z]:\\*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi --- 1477,1483 ---- # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in ! /* | [A-Za-z]:[\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi *************** *** 1726,1732 **** fi fi case "$destdir" in ! /* | [A-Za-z]:\\*) ;; *) for file in $files; do case "$file" in --- 1726,1732 ---- fi fi case "$destdir" in ! /* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case "$file" in *** opcodes/aclocal.m~0 Fri May 1 18:48:18 1998 --- opcodes/aclocal.m4 Fri Jul 30 20:50:40 1999 *************** *** 258,264 **** case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; --- 258,264 ---- case "$ac_prog" in # Accept absolute paths. changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl test -z "$LD" && LD="$ac_prog" ;; *************** *** 324,330 **** AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:\\*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; --- 324,330 ---- AC_CACHE_VAL(ac_cv_path_NM, [case "$NM" in changequote(,)dnl ! /* | [A-Za-z]:[\\/]*) changequote([,])dnl ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *************** *** 430,443 **** [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" --- 430,443 ---- [if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest*]) test x"${am_cv_exeext}" = x && am_cv_exeext=no fi EXEEXT="" *** opcodes/configure.~0 Fri May 1 18:48:18 1998 --- opcodes/configure. Fri Jul 30 18:25:10 1999 *************** *** 1252,1258 **** ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:\\*) test -z "$LD" && LD="$ac_prog" ;; "") --- 1252,1258 ---- ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. ! /* | [A-Za-z]:[\\/]*) test -z "$LD" && LD="$ac_prog" ;; "") *************** *** 1326,1332 **** echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:\\*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) --- 1326,1332 ---- echo $ac_n "(cached) $ac_c" 1>&6 else case "$NM" in ! /* | [A-Za-z]:[\\/]*) ac_cv_path_NM="$NM" # Let the user override the test with a path. ;; *) *************** *** 1558,1571 **** if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_c_test.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ! am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` ! rm -f am_c_test* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no --- 1558,1571 ---- if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then am_cv_exeext=.exe else ! cat > am_ctest.c << 'EOF' int main() { /* Nothing needed here */ } EOF ! ${CC-cc} -o am_ctest $CFLAGS $CPPFLAGS $LDFLAGS am_ctest.c $LIBS 1>&5 ! am_cv_exeext=`ls -1 am_ctest.* | grep -v am_ctest.c | sed -e s/am_ctest//` ! rm -f am_ctest* fi test x"${am_cv_exeext}" = x && am_cv_exeext=no *** /dev/null Mon Aug 23 19:10:26 1999 --- djconfig.sh Wed Aug 4 18:28:46 1999 *************** *** 0 **** --- 1,69 ---- + #! /bin/sh + + echo "Editing Makefile.in files..." + TMPFILE="./cfg.tmp" + STARTDIR=`pwd` + for fix_dir in \ + . \ + ./bfd/doc \ + ./bfd \ + ./binutils \ + ./etc \ + ./gas/doc \ + ./gas \ + ./gprof \ + ./ld \ + ./libiberty \ + ./opcodes + do + if test ! -f ${fix_dir}/Makefile.ori ; then + cp -p ${fix_dir}/Makefile.in ${fix_dir}/Makefile.ori + fi + sed -f ${STARTDIR}/djconfig.sed ${fix_dir}/Makefile.ori > $TMPFILE + update $TMPFILE ${fix_dir}/Makefile.in + touch ${fix_dir}/Makefile.in -r ${fix_dir}/Makefile.ori + rm -f $TMPFILE + done + + echo "Editing the configure scripts..." + if test ! -f ./configure.ori; then + cp -p ./configure ./configure.ori + fi + sed -e '/^tmpfile=/s,cONf,cNf,' ./configure.ori > $TMPFILE + update $TMPFILE ./configure + touch ./configure -r ./configure.ori + rm -f $TMPFILE + + # Set some important variables + + if test -z $DJDIR ; then + echo "DJDIR is not defined. Check your DJGPP setup and try again." + exit 1 + fi + + # Check for the /dev/env feature in DJGPP 2.03. + # It survives expansion, so prefer it over the older solution. + + if test -d "/dev/env/DJDIR" ; then + djprefix="/dev/env/DJDIR" + else + djprefix="\${DJDIR}" + fi + + export PATH_SEPARATOR=: + export PATH_EXPAND=y + export TEST_FINDS_EXE=y + export SHELL=bash + + if test -f install-sh.txt; then + mv -f install-sh.txt install-sh + fi + + # Run the configure script + + echo 'Running the configure script ...' + ./configure --prefix=${djprefix} --verbose --disable-bfd-assembler --disable-nls $* + + if test -f install-sh; then + mv -f install-sh install-sh.txt + fi *** /dev/null Mon Aug 23 19:10:31 1999 --- djconfig.sed Sat Jul 31 22:04:16 1999 *************** *** 0 **** --- 1,10 ---- + s%\([y*]\)\.tab%\1_tab%g + /^ @rm -f/s%\$@-\[0-9\]\[0-9\]%&$*.i[1-9] $*[1-9][0-9]% + s%:\$\$TEXINPUTS%\\\\;$$TEXINPUTS%g + s%\.dep%_dep%g + s%c++filt%cxxfilt%g + s%\.gdbinit%gdb.ini%g + s%itbl-test-ops%itbl-tops%g + s%(TARGETLIB)\.n%(TARGETLIB)n%g + s%standards\.info\*%standard*.i*%g + /\$\$file-\[0-9\]/s%echo%& *.i[1-9] *.i[1-9][0-9]%