From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31027 invoked by alias); 8 Dec 2002 10:49:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30668 invoked from network); 8 Dec 2002 10:48:56 -0000 Received: from unknown (HELO dc-mx04.cluster1.charter.net) (209.225.8.14) by sources.redhat.com with SMTP; 8 Dec 2002 10:48:56 -0000 Received: from [66.189.46.2] (HELO platinum.local.) by dc-mx04.cluster1.charter.net (CommuniGate Pro SMTP 3.5.9) with ESMTP id 38633324; Sun, 08 Dec 2002 05:48:52 -0500 Date: Sun, 08 Dec 2002 10:53:00 -0000 Subject: Re: [RFC] Update to current automake/autoconf/libtool versions. Content-Type: multipart/mixed; boundary=Apple-Mail-4-907793062 Mime-Version: 1.0 (Apple Message framework v543) Cc: gdb-patches@sources.redhat.com, binutils@sources.redhat.com, newlib@sources.redhat.com, gcc@gcc.gnu.org To: Nathanael Nerode From: Klee Dienes In-Reply-To: <20021205190728.GA11507@doctormoo> Message-Id: X-SW-Source: 2002-12/txt/msg00254.txt.bz2 --Apple-Mail-4-907793062 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Content-length: 1807 On Thursday, December 5, 2002, at 02:07 PM, Nathanael Nerode wrote: > > Unfortunately I think some other aspects of the configure scripts > require --target to be passed down unconditionally. :-/ Otherwise I'd > just change it. There's a useful thread on the host/target/build business in http://sources.redhat.com/ml/autoconf/2002-02/msg00059.html (which I imagine you're already familiar with, but it makes a nice reference). I did some preliminary experiments with modifying what the top-level configure passes down, and at least from the binutils/gdb side of things, it looked promising. I ended up changing the top-level configure semantics to match that of autoconf: configure --build=BUILD --host=HOST --target=TARGET UNDEFS 1. You aren't allowed to specify --host, --build, --target, and undefs at the same time. 2. Build defaults to undefs. 3. If undefs is not specified, then build defaults to the current host, as determined by config.guess. 4. Host defaults to undefs. 5. If undefs is not specified, then host defaults to build. 6. Target defaults to undefs. 7. If undefs is not specified, then target defaults to host. passing --host means you cross compile (whatever the relationship between host and build) passing --target means you build a cross-tool (whatever the relationship between host and target). --host and --target are only passed to sub-configures if they were explicitly passed to the top-level configure on the command-line. This fixed the problem with things installing in the wrong places; the only fallout was that the emulation-selection code in binutils/ needed to be changed to refer to $target instead of $target_alias. A basic gcc build appeared to work, but I didn't try anything more complicated than a stadard cross-compile setup. --Apple-Mail-4-907793062 Content-Disposition: attachment; filename=ChangeLog Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="ChangeLog" Content-length: 3396 . 2002-12-04 Klee Dienes * .cvsignore: Add autom4te.cache. * configure: Change the rules for build/host/target processing to the following: The inputs are: configure --build=BUILD --host=HOST --target=TARGET UNDEFS The rules are: 1. You aren't allowed to specify --host, --build, --target, and undefs at the same time. 2. Build defaults to undefs. 3. If undefs is not specified, then build defaults to the current host, as determined by config.guess. 4. Host defaults to undefs. 5. If undefs is not specified, then host defaults to build. 6. Target defaults to undefs. 7. If undefs is not specified, then target defaults to host. Only pass --host= and --target= to sub-configures when they are passed by the top-level configure. Treat the build as a cross-compilation whenever --target is specified, even if it matches the value of --build and --host. bfd 2002-12-04 Klee Dienes * acinclude.m4: Remove include of libtool.m4. * configure.in: Use AC_DISABLE_SHARED and AC_PROG_LIBTOOL instead of the AM_ versions. binutils 2002-12-04 Klee Dienes * Makefile.am (YLWRAP): Refer to the top-level ylwrap. * acinclude.m4: Remove include of libtool.m4. * configure.in: Use AC_PROG_LEX instead of AM_PROG_LEX. (EMULATION): Use $target, not $target_alias. gas 2002-12-04 Klee Dienes * acinclude.m4: Remove include of libtool.m4. * configure.in: Pass explicit value to AC_CONFIG_FILES, not ${GDBINIT}. Use AC_CONFIG_FILES, AC_CONFIG_COMMANDS, and AC_OUTPUT, not the multi-argument AC_OUTPUT. gdb 2002-12-04 Klee Dienes * Makefile.in: Update to new ylwrap calling conventions. * configure.in: Pass description string to AC_DEFINE. gdb/testsuite 2002-12-04 Klee Dienes * gdb.hp/gdb.objdbg/configure.in: Remove objdbg0* from AC_CONFIG_SUBDIRS. gprof 2002-12-04 Klee Dienes * acinclude.m4: Remove include of libtool.m4. ld 2002-12-04 Klee Dienes * Makefile.am (YLWRAP): Refer to the top-level ylwrap. * acinclude.m4: Remove include of libtool.m4. libiberty 2002-12-04 Klee Dienes * aclocal.m4: Use AC_LIBOBJ instead of setting LIBOBJS directly. Use _AC_LANG_COMPILER_GNU and $ac_compiler_gnu instead of AC_PROG_CC_GNU and $ac_cv_prog_gcc. Call _AC_COMPILER_OBJEXT to get the object file extension. Use AC_PROG_CC_G instead of _AC_PROG_CC_G. * configure.in: Use AC_LIBOBJ instead of setting LIBOBJS directly. opcodes 2002-12-04 Klee Dienes * acinclude.m4: Remove include of libtool.m4. rda 2002-12-04 Klee Dienes * configure.in: Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL. rda/lib 2002-12-04 Klee Dienes * lib/Makefile.am: Remove noinst_LIBRARIES and librda_a_SOURCES (it's not possible to specify both a libtool version and a non-libtool version using the same object files). rda/unix 2002-12-04 Klee Dienes * unix/configure.in: Pass description strings to AC_DEFINE. rda/win32 2002-12-04 Klee Dienes * win32/configure.in: Pass description strings to AC_DEFINE. sim/common 2002-12-04 Klee Dienes * aclocal.m4: Pass description strings to AC_DEFINE. --Apple-Mail-4-907793062 Content-Disposition: attachment; filename=files.sh Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="files.sh" Content-length: 1177 echo "Versions:" dir=`echo $0 | sed -e 's/\/[^\/]*$//'` echo $dir libtool --version | grep \. | grep '(' | grep -v Copy 2>&1 autoconf --version | grep \. | grep '(' | grep -v Copy 2>&1 automake --version | grep \. | grep '(' | grep -v Copy 2>&1 gettext --version | grep \. | grep '(' | grep -v Copy 2>&1 # update=`grep '+++' $dir/bfd.txt | sed -e 's/+++ //' -e 's/[ ].*//'` # echo; echo Resetting: # echo Removing $update # rm -f $update # cvs -z9 -q update $update find . -name autom4te.cache | xargs rm -rf echo; echo "Patching:" patch -p0 < $dir/bfd.txt cp -p /usr/share/automake-1.7/depcomp . cp -p /usr/share/automake-1.7/missing . cp -p /usr/share/automake-1.7/mkinstalldirs . cp -p /usr/share/automake-1.7/ylwrap . cp -p /usr/share/libtool/ltmain.sh . rm -f ltcf-c.sh rm -f ltcf-cxx.sh rm -f ltcf-gcj.sh rm -f ltconfig rm -f libtool.m4 echo; echo "Configuring:" dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils" for i in $dirs; do dirs=`find $i -type d` dirs=`for j in $dirs; do if [ -f $j/configure.in ]; then echo $j; fi; done` for j in $dirs; do echo "Configuring $j" autoreconf -f -I`pwd` $j done done --Apple-Mail-4-907793062 Content-Disposition: attachment; filename=bfd.txt Content-Transfer-Encoding: 7bit Content-Type: text/plain; x-unix-mode=0644; name="bfd.txt" Content-length: 40089 --- .cvsignore 2002-12-04 12:16:15.000000000 -0500 +++ .cvsignore 2002-12-04 23:18:08.000000000 -0500 @@ -6,6 +6,7 @@ *-src *-stamp-* *-tagged +autom4te.cache blockit cfg-paper.info config.status --- configure Sat Nov 30 23:42:45 2002 +++ configure Sun Dec 8 01:08:59 2002 @@ -47,7 +47,7 @@ Makefile=Makefile Makefile_in=Makefile.in arguments= -build_alias= +build_alias=NOBUILD cache_file=config.cache cache_file_option= configdirs= @@ -400,71 +400,99 @@ esac done -# process host and target +# process build, host, and target # Do some error checking and defaulting for the host and target type. # The inputs are: -# configure --host=HOST --target=TARGET UNDEFS +# configure --build=BUILD --host=HOST --target=TARGET UNDEFS # # The rules are: -# 1. You aren't allowed to specify --host, --target, and undefs at the -# same time. -# 2. Host defaults to undefs. -# 3. If undefs is not specified, then host defaults to the current host, +# 1. You aren't allowed to specify --host, --build, --target, and undefs +# at the same time. +# 2. Build defaults to undefs. +# 3. If undefs is not specified, then build defaults to the current host, # as determined by config.guess. -# 4. Target defaults to undefs. -# 5. If undefs is not specified, then target defaults to host. +# 4. Host defaults to undefs. +# 5. If undefs is not specified, then host defaults to build. +# 6. Target defaults to undefs. +# 7. If undefs is not specified, then target defaults to host. case "${fatal}" in "") # Make sure that host, target & undefs aren't all specified at the # same time. - case $host_alias---$target_alias---$undefs in - NOHOST---*---* | *---NOTARGET---* | *---*---NOUNDEFS) + case $build_alias---$host_alias---$target_alias---$undefs in + NOBUILD---*---*---* | *---NOHOST---*---* | *---*---NOTARGET---* | *---*---*---NOUNDEFS) ;; - *) echo '***' Can only configure for one host and one target at a time. 1>&2 + *) echo '***' Can only configure for one build, host and target at a time. 1>&2 fatal=yes break 2 ;; esac - # Now, do defaulting for host. - case $host_alias in - NOHOST) + # Do defaulting for build. + case $build_alias in + NOBUILD) case $undefs in NOUNDEFS) - # Neither --host option nor undefs were present. + # Neither --build option nor undefs were present. # Call config.guess. guesssys=`echo ${progname} | sed 's/configure$/config.guess/'` - if host_alias=`${config_shell} ${guesssys}` + if build_alias=`${config_shell} ${guesssys}` then # If the string we are going to use for # the target is a prefix of the string - # we just guessed for the host, then + # we just guessed for the build, then # assume we are running native, and force - # the same string for both target and host. + # the same string for both target and build. case $target_alias in NOTARGET) ;; *) - if expr $host_alias : $target_alias >/dev/null + if expr $build_alias : $target_alias >/dev/null then - host_alias=$target_alias + echo "The target type ($target_alias) is a prefix of the build type ($build_alias)." + echo "Using $target_alias as the new build type." + build_alias=$target_alias fi ;; esac - echo "Configuring for a ${host_alias} host." - arguments="--host=$host_alias $arguments" + buildopt="--build=${build_alias}" + arguments="$buildopt $arguments" else - echo 'Config.guess failed to determine the host type. You need to specify one.' 1>&2 + echo 'Config.guess failed to determine the build type. You need to specify one.' 1>&2 fatal=yes fi ;; *) + build_alias=$undefs + buildopt="--build=${build_alias}" + arguments="$buildopt $arguments" + ;; + esac + ;; + *) + buildopt="--build=${build_alias}" + ;; + esac + + # Do defaulting for host. If --host option isn't present, default + # to undefs. If undefs isn't present, default to host. + case $host_alias in + NOHOST) + case $undefs in + NOUNDEFS) + host_alias="$build_alias" + ;; + *) host_alias=$undefs - arguments="--host=$host_alias $arguments" - undefs=NOUNDEFS + hostopt="--host=${host_alias}" + arguments="$hostopt $arguments" ;; esac + ;; + *) + hostopt="--host=${host_alias}" + ;; esac # Do defaulting for target. If --target option isn't present, default @@ -473,13 +501,18 @@ NOTARGET) case $undefs in NOUNDEFS) - target_alias=$host_alias + target_alias="$host_alias" ;; *) target_alias=$undefs - arguments="--target=$target_alias $arguments" + targetopt="--target=${target_alias}" + arguments="$targetopt $arguments" ;; esac + ;; + *) + targetopt="--target=${target_alias}" + ;; esac ;; *) ;; @@ -622,12 +655,8 @@ *) cache_file_option="--cache-file=${cache_file}" ;; esac srcdiroption="--srcdir=${srcdir}" - case "${build_alias}" in - "") buildopt= ;; - *) buildopt="--build=${build_alias}" ;; - esac eval exec ${config_shell} ${srcdir}/configure ${verbose} \ - ${buildopt} --host=${host_alias} --target=${target_alias} \ + ${buildopt} ${hostopt} ${targetopt} \ ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \ ${srcdiroption} ${diroptions} \ ${program_prefixoption} ${program_suffixoption} \ @@ -709,29 +738,16 @@ *) ;; esac -case "${build_alias}" in -"") - if result=`${config_shell} ${configsub} ${host_alias}` ; then - build_cpu=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` - build_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` - build_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - build=${build_cpu}-${build_vendor}-${build_os} - build_alias=${host_alias} - fi - ;; -*) - if result=`${config_shell} ${configsub} ${build_alias}` ; then - buildopt="--build=${build_alias}" - build_cpu=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` - build_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` - build_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - build=${build_cpu}-${build_vendor}-${build_os} - else - echo "Unrecognized build system name ${build_alias}." 1>&2 - exit 1 - fi - ;; -esac +if result=`${config_shell} ${configsub} ${build_alias}` ; then + true +else + echo "Unrecognized build system name ${build_alias}." 1>&2 + exit 1 +fi +build_cpu=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` +build=${build_cpu}-${build_vendor}-${build_os} if result=`${config_shell} ${configsub} ${host_alias}` ; then true @@ -759,6 +775,24 @@ . ${tmpfile}.tgt +if [ "$build_alias" != "$build" ]; then + echo "Configuring for a ${build_alias} (${build}) build." +else + echo "Configuring for a ${build_alias} build." +fi + +if [ "$host_alias" != "$host" ]; then + echo "Configuring for a ${host_alias} (${host}) host." +else + echo "Configuring for a ${host_alias} host." +fi + +if [ "$target_alias" != "$target" ]; then + echo "Configuring for a ${target_alias} (${target}) target." +else + echo "Configuring for a ${target_alias} target." +fi + # Find the source files, if location was not specified. case "${srcdir}" in "") @@ -785,7 +819,7 @@ # using) don't handle "\$" correctly, so don't use it here. tooldir='$(exec_prefix)'/${target_alias} -if [ "${host_alias}" != "${target_alias}" ] ; then +if [ -n "${target_alias}" ] ; then if [ "${program_prefixoption}" = "" ] ; then if [ "${program_suffixoption}" = "" ] ; then if [ "${program_transform_nameoption}" = "" ] ; then @@ -1520,7 +1554,7 @@ ### The recursion line is here. if [ ! -z "${recprog}" ] ; then - if eval ${config_shell} ${recprog} ${verbose} ${buildopt} --host=${host_alias} --target=${tgt_alias} \ + if eval ${config_shell} ${recprog} ${verbose} ${buildopt} ${hostopt} ${targetopt} \ ${prefixoption} ${tmpdiroption} ${exec_prefixoption} \ ${srcdiroption} ${diroptions} ${program_prefixoption} ${program_suffixoption} ${program_transform_nameoption} ${site_option} ${withoptions} ${withoutoptions} ${enableoptions} ${disableoptions} ${floating_pointoption} ${cache_file_option} ${other_options} ${redirect} ; then true --- bfd/acinclude.m4 2002-12-04 12:16:19.000000000 -0500 +++ bfd/acinclude.m4 2002-12-04 23:18:08.000000000 -0500 @@ -108,16 +108,6 @@ AC_MSG_RESULT($bfd_cv_have_sys_procfs_type_member_$1_$2) ]) -sinclude(../libtool.m4) -dnl The lines below arrange for aclocal not to bring libtool.m4 -dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake -dnl to add a definition of LIBTOOL to Makefile.in. -ifelse(yes,no,[ -AC_DEFUN([AM_PROG_LIBTOOL],) -AC_DEFUN([AM_DISABLE_SHARED],) -AC_SUBST(LIBTOOL) -]) - sinclude(../gettext.m4) ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) --- bfd/configure.in 2002-12-04 12:16:20.000000000 -0500 +++ bfd/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -23,16 +23,16 @@ AC_SUBST(bfd_version) AC_SUBST(bfd_version_string) -dnl These must be called before AM_PROG_LIBTOOL, because it may want +dnl These must be called before AC_PROG_LIBTOOL, because it may want dnl to call AC_CHECK_PROG. AC_CHECK_TOOL(AR, ar) AC_CHECK_TOOL(RANLIB, ranlib, :) dnl Default to a non shared library. This may be overridden by the dnl configure option --enable-shared. -AM_DISABLE_SHARED +AC_DISABLE_SHARED -AM_PROG_LIBTOOL +AC_PROG_LIBTOOL AC_ARG_ENABLE(64-bit-bfd, [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)], --- binutils/Makefile.am 2002-12-04 12:16:22.000000000 -0500 +++ binutils/Makefile.am 2002-12-04 23:18:08.000000000 -0500 @@ -15,6 +15,8 @@ CC_FOR_BUILD = @CC_FOR_BUILD@ EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@ +YLWRAP = $(srcdir)/../ylwrap + YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi` YFLAGS = -d LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi` --- binutils/acinclude.m4 2002-12-04 12:16:23.000000000 -0500 +++ binutils/acinclude.m4 2002-12-04 23:18:08.000000000 -0500 @@ -1,14 +1,5 @@ sinclude(../bfd/acinclude.m4) -dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4 -dnl The lines below arrange for aclocal not to bring libtool.m4 -dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake -dnl to add a definition of LIBTOOL to Makefile.in. -ifelse(yes,no,[ -AC_DEFUN([AM_PROG_LIBTOOL],) -AC_SUBST(LIBTOOL) -]) - dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4 ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) --- binutils/configure.in 2002-12-04 12:16:23.000000000 -0500 +++ binutils/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -62,7 +62,7 @@ AC_PROG_CC AC_PROG_YACC -AM_PROG_LEX +AC_PROG_LEX ALL_LINGUAS="fr tr ja es sv da" CY_GNU_GETTEXT @@ -320,7 +320,7 @@ [Define to 1 if user symbol names have a leading underscore, 0 if not.]) # Emulation -for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` +for targ_alias in `echo $target $enable_targets | sed 's/,/ /g'` do # Canonicalize the secondary target names. result=`$ac_config_sub $targ_alias 2>/dev/null` --- gas/acinclude.m4 2002-12-04 12:16:34.000000000 -0500 +++ gas/acinclude.m4 2002-12-04 23:18:08.000000000 -0500 @@ -55,16 +55,6 @@ $1=[$]_gas_uniq_newlist ])dnl -sinclude(../libtool.m4) -dnl The lines below arrange for aclocal not to bring libtool.m4 -dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake -dnl to add a definition of LIBTOOL to Makefile.in. -ifelse(yes,no,[ -AC_DEFUN([AM_PROG_LIBTOOL],) -AC_DEFUN([AC_CHECK_LIBM],) -AC_SUBST(LIBTOOL) -]) - sinclude(../gettext.m4) ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) --- gas/configure.in 2002-12-04 12:16:35.000000000 -0500 +++ gas/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -70,10 +70,14 @@ # If we are on a DOS filesystem, we must use gdb.ini rather than # .gdbinit. -GDBINIT=".gdbinit" case "${host}" in *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*) GDBINIT="gdb.ini" + AC_CONFIG_FILES(gdb.ini:gdbinit.in) + ;; + *) + GDBINIT=".gdbinit" + AC_CONFIG_FILES(.gdbinit:gdbinit.in) ;; esac AC_SUBST(GDBINIT) @@ -993,7 +997,9 @@ dnl the old symlinks don't exist, so that a reconfigure in an existing dnl directory behaves reasonably. -AC_OUTPUT(Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in, +AC_CONFIG_FILES(Makefile doc/Makefile po/Makefile.in:po/Make-in) + +AC_CONFIG_COMMANDS([default], [rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h @@ -1008,3 +1014,5 @@ cgen_cpu_prefix=${cgen_cpu_prefix} obj_format=${obj_format} te_file=${te_file}]) + +AC_OUTPUT \ No newline at end of file --- gdb/Makefile.in 2002-12-04 23:11:12.000000000 -0500 +++ gdb/Makefile.in 2002-12-04 23:18:08.000000000 -0500 @@ -1218,7 +1218,7 @@ .PRECIOUS: c-exp.tab.c c-exp.tab.o: c-exp.tab.c c-exp.tab.c: c-exp.y - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- $(YFLAGS) + $(SHELL) $(YLWRAP) $(srcdir)/c-exp.y y.tab.c c-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ @@ -1234,7 +1234,7 @@ .PRECIOUS: objc-exp.tab.c objc-exp.tab.o: objc-exp.tab.c objc-exp.tab.c: objc-exp.y - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- $(YFLAGS) + $(SHELL) $(YLWRAP) $(srcdir)/objc-exp.y y.tab.c objc-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ @@ -1250,7 +1250,7 @@ .PRECIOUS: jv-exp.tab.c jv-exp.tab.o: jv-exp.tab.c jv-exp.tab.c: jv-exp.y - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- $(YFLAGS) + $(SHELL) $(YLWRAP) $(srcdir)/jv-exp.y y.tab.c jv-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ @@ -1266,7 +1266,7 @@ .PRECIOUS: f-exp.tab.c f-exp.tab.o: f-exp.tab.c f-exp.tab.c: f-exp.y - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- $(YFLAGS) + $(SHELL) $(YLWRAP) $(srcdir)/f-exp.y y.tab.c f-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ @@ -1282,7 +1282,7 @@ .PRECIOUS: m2-exp.tab.c m2-exp.tab.o: m2-exp.tab.c m2-exp.tab.c: m2-exp.y - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- $(YFLAGS) + $(SHELL) $(YLWRAP) $(srcdir)/m2-exp.y y.tab.c m2-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ @@ -1298,7 +1298,7 @@ .PRECIOUS: ada-exp.tab.c ada-exp.tab.o: ada-exp.tab.c ada-exp.tab.c: ada-exp.y - $(YACC) $(YFLAGS) $(srcdir)/ada-exp.y + $(SHELL) $(YLWRAP) $(srcdir)/ada-exp.y y.tab.c ada-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ @@ -1327,7 +1327,7 @@ .PRECIOUS: p-exp.tab.c p-exp.tab.o: p-exp.tab.c p-exp.tab.c: p-exp.y - $(SHELL) $(YLWRAP) "$(YACC)" $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- $(YFLAGS) + $(SHELL) $(YLWRAP) $(srcdir)/p-exp.y y.tab.c p-exp.tmp -- "$(YACC)" $(YFLAGS) -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ --- gdb/configure.in 2002-12-04 12:16:47.000000000 -0500 +++ gdb/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -472,7 +472,7 @@ ac_cv_c_long_double=yes, ac_cv_c_long_double=no)]) AC_MSG_RESULT($ac_cv_c_long_double) if test $ac_cv_c_long_double = yes; then - AC_DEFINE(HAVE_LONG_DOUBLE) + AC_DEFINE([HAVE_LONG_DOUBLE], [], [Define if the `long double' type works]) fi dnl See if the compiler and runtime support printing long doubles --- gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 12:17:00.000000000 -0500 +++ gdb/testsuite/gdb.hp/gdb.objdbg/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -11,6 +11,5 @@ AC_SUBST(CC) AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../../../..) AC_CANONICAL_SYSTEM -AC_CONFIG_SUBDIRS(objdbg01 objdbg02 objdbg03 objdbg04) AC_OUTPUT(Makefile) --- gprof/acinclude.m4 2002-12-04 12:17:02.000000000 -0500 +++ gprof/acinclude.m4 2002-12-04 23:18:08.000000000 -0500 @@ -1,12 +1,3 @@ -sinclude(../libtool.m4) -dnl The lines below arrange for aclocal not to bring libtool.m4 -dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake -dnl to add a definition of LIBTOOL to Makefile.in. -ifelse(yes,no,[ -AC_DEFUN([AM_PROG_LIBTOOL],) -AC_SUBST(LIBTOOL) -]) - sinclude(../gettext.m4) ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) --- ld/Makefile.am 2002-12-04 12:17:11.000000000 -0500 +++ ld/Makefile.am 2002-12-04 23:18:08.000000000 -0500 @@ -9,6 +9,8 @@ tooldir = $(exec_prefix)/$(target_alias) +YLWRAP = $(srcdir)/../ylwrap + YACC = `if [ -f ../bison/bison ]; then echo ../bison/bison -y -L$(srcdir)/../bison/; else echo @YACC@; fi` YFLAGS = -d LEX = `if [ -f ../flex/flex ]; then echo ../flex/flex; else echo @LEX@; fi` --- ld/acinclude.m4 2002-12-04 12:17:11.000000000 -0500 +++ ld/acinclude.m4 2002-12-04 23:18:08.000000000 -0500 @@ -1,14 +1,5 @@ sinclude(../bfd/acinclude.m4) -dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4 -dnl The lines below arrange for aclocal not to bring libtool.m4 -dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake -dnl to add a definition of LIBTOOL to Makefile.in. -ifelse(yes,no,[ -AC_DEFUN([AM_PROG_LIBTOOL],) -AC_SUBST(LIBTOOL) -]) - dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4 ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) --- libiberty/aclocal.m4 2002-12-04 12:17:23.000000000 -0500 +++ libiberty/aclocal.m4 2002-12-04 23:18:08.000000000 -0500 @@ -69,7 +69,7 @@ ac_cv_func_strncmp_works=no) rm -f core core.* *.core]) if test $ac_cv_func_strncmp_works = no ; then - LIBOBJS="$LIBOBJS strncmp.o" + AC_LIBOBJ(strncmp) fi ]) @@ -102,9 +102,10 @@ test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) fi -AC_PROG_CC_GNU +_AC_COMPILER_OBJEXT +_AC_LANG_COMPILER_GNU -if test $ac_cv_prog_gcc = yes; then +if test $ac_compiler_gnu = yes; then GCC=yes ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic' dnl Check whether -g works, even if CFLAGS is set, in case the package @@ -113,7 +114,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= - AC_PROG_CC_G + _AC_PROG_CC_G if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then --- libiberty/configure.in 2002-12-04 12:17:23.000000000 -0500 +++ libiberty/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -240,7 +240,12 @@ # newlib provide and which ones we will be expected to provide. if test "x${with_newlib}" = "xyes"; then - LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o" + AC_LIBOBJ(asprintf) + AC_LIBOBJ(basename) + AC_LIBOBJ(insque) + AC_LIBOBJ(random) + AC_LIBOBJ(strdup) + AC_LIBOBJ(vasprintf) for f in $funcs; do case "$f" in @@ -308,8 +313,16 @@ # Handle VxWorks configuration specially, since on VxWorks the # libraries are actually on the target board, not in the file # system. - LIBOBJS="basename.o getpagesize.o insque.o random.o strcasecmp.o" - LIBOBJS="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o" + AC_LIBOBJ(basename) + AC_LIBOBJ(getpagesize) + AC_LIBOBJ(insque) + AC_LIBOBJ(random) + AC_LIBOBJ(strcasecmp) + AC_LIBOBJ(strncasecmp) + AC_LIBOBJ(strdup) + AC_LIBOBJ(vfork) + AC_LIBOBJ(waitpid) + AC_LIBOBJ(vasprintf) for f in $funcs; do case "$f" in basename | getpagesize | insque | random | strcasecmp) @@ -356,7 +369,7 @@ if test -n "${with_target_subdir}" then funcs="`echo $funcs | sed -e 's/random//'`" - LIBOBJS="$LIBOBJS random.o" + AC_LIBOBJ(random) vars="`echo $vars | sed -e 's/sys_siglist//'`" checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`" fi @@ -392,12 +405,12 @@ # We haven't set the list of objects yet. Use the standard autoconf # tests. This will only work if the compiler works. - AC_PROG_CC_WORKS + AC_PROG_CC AC_REPLACE_FUNCS($funcs) libiberty_AC_FUNC_C_ALLOCA AC_FUNC_VFORK if test $ac_cv_func_vfork_works = no; then - LIBOBJS="$LIBOBJS vfork.o" + AC_LIBOBJ(vfork) fi # We only need _doprnt if we might use it to implement v*printf. if test $ac_cv_func_vprintf != yes \ --- opcodes/acinclude.m4 2002-12-04 12:17:45.000000000 -0500 +++ opcodes/acinclude.m4 2002-12-04 23:18:08.000000000 -0500 @@ -1,15 +1,5 @@ sinclude(../bfd/acinclude.m4) -dnl sinclude(../libtool.m4) already included in bfd/acinclude.m4 -dnl The lines below arrange for aclocal not to bring libtool.m4 -dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake -dnl to add a definition of LIBTOOL to Makefile.in. -ifelse(yes,no,[ -AC_DEFUN([AM_PROG_LIBTOOL],) -AC_DEFUN([AM_DISABLE_SHARED],) -AC_SUBST(LIBTOOL) -]) - dnl sinclude(../gettext.m4) already included in bfd/acinclude.m4 ifelse(yes,no,[ AC_DEFUN([CY_WITH_NLS],) --- rda/configure.in 2002-12-04 12:17:46.000000000 -0500 +++ rda/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -7,7 +7,7 @@ dnl automake support AM_MAINTAINER_MODE dnl AC_LIBTOOL_WIN32_DLL -AM_PROG_LIBTOOL +AC_PROG_LIBTOOL AC_EXEEXT AC_LANG_C --- rda/lib/Makefile.am 2002-12-04 12:17:46.000000000 -0500 +++ rda/lib/Makefile.am 2002-12-04 23:18:08.000000000 -0500 @@ -9,7 +9,6 @@ # Create a libtool convenience archive # ... and a plain library archive for non-libtool clients noinst_LTLIBRARIES = librda.la -noinst_LIBRARIES = librda.a INCLUDES = -I$(srcdir) -I$(srcdir)/../include \ -I$(srcdir)/../../include @@ -17,4 +16,3 @@ THESOURCES=gdbserv-input.c gdbserv-output.c gdbserv-state.c gdbserv-utils.c gdbsocket.c gdblog.c stdio-log.c gdbserv-log.c gdbloop.c gdbsched.c gdbserv-target.c librda_la_SOURCES = $(THESOURCES) -librda_a_SOURCES = $(THESOURCES) --- rda/unix/configure.in 2002-12-04 12:17:47.000000000 -0500 +++ rda/unix/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -9,7 +9,7 @@ dnl automake support AM_MAINTAINER_MODE -AM_PROG_LIBTOOL +AC_PROG_LIBTOOL AC_EXEEXT AC_LANG_C @@ -32,43 +32,43 @@ case "$target" in mips64*linux*) TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o" - AC_DEFINE(LINUX_TARGET) - AC_DEFINE(GREGSET_T, prgregset_t) - AC_DEFINE(FPREGSET_T, prfpregset_t) - AC_DEFINE(HAVE_LWPID_T) - AC_DEFINE(HAVE_PSADDR_T) - AC_DEFINE(HAVE_PRGREGSET_T) - AC_DEFINE(HAVE_PRFPREGSET_T) + AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux]) + AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset]) + AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset]) + AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t]) + AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t]) + AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t]) + AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t]) ;; i?86*linux* | \ powerpc*linux* | \ arm*linux* | \ mips*linux*) TARGET_MODULES="linux-target.o thread-db.o ptrace-target.o" - AC_DEFINE(LINUX_TARGET) - AC_DEFINE(GREGSET_T, prgregset_t) - AC_DEFINE(FPREGSET_T, prfpregset_t) - AC_DEFINE(HAVE_LWPID_T) - AC_DEFINE(HAVE_PSADDR_T) - AC_DEFINE(HAVE_PRGREGSET_T) - AC_DEFINE(HAVE_PRFPREGSET_T) + AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux]) + AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset]) + AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset]) + AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t]) + AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t]) + AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t]) + AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t]) ;; *linux*) TARGET_MODULES="linux-target.o no-threads.o ptrace-target.o" - AC_DEFINE(LINUX_TARGET) - AC_DEFINE(GREGSET_T, prgregset_t) - AC_DEFINE(FPREGSET_T, prfpregset_t) - AC_DEFINE(HAVE_LWPID_T) - AC_DEFINE(HAVE_PSADDR_T) - AC_DEFINE(HAVE_PRGREGSET_T) - AC_DEFINE(HAVE_PRFPREGSET_T) + AC_DEFINE(LINUX_TARGET, [], [Define if target is any Linux]) + AC_DEFINE(GREGSET_T, prgregset_t, [Define the type name of a gregset]) + AC_DEFINE(FPREGSET_T, prfpregset_t, [Define the type name of an fpregset]) + AC_DEFINE(HAVE_LWPID_T, [], [Define if system headers will define lwpid_t]) + AC_DEFINE(HAVE_PSADDR_T, [], [Define if system headers will define psaddr_t]) + AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t]) + AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t]) ;; *solaris*) TARGET_MODULES="solaris-target.o dummy-target.o" - AC_DEFINE(SOLARIS_TARGET) -# Place-holders -- not necessarily correct... - AC_DEFINE(GREGSET_T, gregset_t) - AC_DEFINE(FPREGSET_T, fpregset_t) + AC_DEFINE(SOLARIS_TARGET, [], [Define if target is any Solaris]) + # Place-holders -- not necessarily correct... + AC_DEFINE(HAVE_PRGREGSET_T, [], [Define if system headers will define prgregset_t]) + AC_DEFINE(HAVE_PRFPREGSET_T, [], [Define if system headers will define prfpregset_t]) ;; esac @@ -77,116 +77,116 @@ case "$target" in *solaris*) dnl FIXME: differentiate between flavors of Solaris! - AC_DEFINE(SPARC32_SOLARIS_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(SPARC32_SOLARIS_TARGET, [], [Define is target is Sparc32]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; sh*linux*) - AC_DEFINE(SH_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(SH_LINUX_TARGET, [], [Define if target is SH (3? 4?) Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; mips64*linux*n64) - AC_DEFINE(MIPS64_LINUX_TARGET) - AC_DEFINE(MIPS_ABI_N64) - AC_DEFINE(PTRACE_XFER_SIZE, 8) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux]) + AC_DEFINE(MIPS_ABI_N64, [], [Define if target uses MIPS n64 ABI]) + AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; mips64*linux*n32) - AC_DEFINE(MIPS64_LINUX_TARGET) - AC_DEFINE(MIPS_ABI_N32) - AC_DEFINE(PTRACE_XFER_SIZE, 8) - AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG) + AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux]) + AC_DEFINE(MIPS_ABI_N32, [], [Define if target uses MIPS n32 ABI]) + AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; mips64*linux*o32) - AC_DEFINE(MIPS64_LINUX_TARGET) - AC_DEFINE(MIPS_ABI_O32) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(MIPS64_LINUX_TARGET, [], [Define if target is 64-bit MIPS Linux]) + AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; mips*linux*) - AC_DEFINE(MIPS_LINUX_TARGET) - AC_DEFINE(MIPS_ABI_O32) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(MIPS_LINUX_TARGET, [], [Define if target is (32-bit) MIPS Linux]) + AC_DEFINE(MIPS_ABI_O32, [], [Define if target uses MIPS o32 ABI]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; i?86*linux*) - AC_DEFINE(X86_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(X86_LINUX_TARGET, [], [Define if target is x86 Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; powerpc*linux*) - AC_DEFINE(PPC_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(PPC_LINUX_TARGET, [], [Define if target is powerpc Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; m68k*linux*) - AC_DEFINE(M68K_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(M68K_LINUX_TARGET, [], [Define if target is m68k Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; alpha*linux*) - AC_DEFINE(ALPHA_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 8) - AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG) + AC_DEFINE(ALPHA_LINUX_TARGET, [], [Define if target is alpha Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) ;; arm*linux*) if test "$arm32" = "yes"; then - AC_DEFINE(ARM_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 4) - AC_DEFINE(PTRACE_XFER_TYPE_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG) + AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 4, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG, [], [Define if ptrace transfer type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) else - AC_DEFINE(ARM_LINUX_TARGET) - AC_DEFINE(PTRACE_XFER_SIZE, 8) - AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG) - AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG) + AC_DEFINE(ARM_LINUX_TARGET, [], [Define if target is arm Linux]) + AC_DEFINE(PTRACE_XFER_SIZE, 8, [Define for ptrace systems, to the size of a ptrace word.]) + AC_DEFINE(PTRACE_XFER_TYPE_LONG_LONG, [], [Define if ptrace transfer type is long long or unsigned long long.]) + AC_DEFINE(PTRACE_ARG1_TYPE_LONG_LONG, [], [Define if ptrace arg1 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG2_TYPE_LONG_LONG, [], [Define if ptrace arg2 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG3_TYPE_LONG_LONG, [], [Define if ptrace arg3 type is long or unsigned long.]) + AC_DEFINE(PTRACE_ARG4_TYPE_LONG_LONG, [], [Define if ptrace arg4 type is long or unsigned long.]) fi ;; esac --- rda/win32/configure.in 2002-12-04 12:17:47.000000000 -0500 +++ rda/win32/configure.in 2002-12-04 23:18:08.000000000 -0500 @@ -24,14 +24,10 @@ case "$target" in *cygwin*) dnl FIXME: differentiate between flavors of Solaris! - AC_DEFINE(WIN32_TARGET) + AC_DEFINE(WIN32_TARGET, [], [Define if target is Win32]) ;; esac -if test -f /usr/include/foo.h; then - AC_DEFINE(HAVE_AC_DEFINE, 1, [define if have AC_DEFINE]) -fi - dnl Outputs AC_OUTPUT(Makefile) --- sim/common/aclocal.m4 2002-12-04 12:17:54.000000000 -0500 +++ sim/common/aclocal.m4 2002-12-04 23:18:08.000000000 -0500 @@ -904,7 +904,7 @@ dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then - AC_DEFINE(ENABLE_NLS) + AC_DEFINE(ENABLE_NLS, 1, [Define to 1 if NLS is requested]) AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH(included-gettext, [ --with-included-gettext use the GNU gettext library included here], @@ -938,7 +938,8 @@ if test "$gt_cv_func_gettext_libc" = "yes" \ || test "$gt_cv_func_gettext_libintl" = "yes"; then - AC_DEFINE(HAVE_GETTEXT) + AC_DEFINE(HAVE_GETTEXT, 1, + [Define as 1 if you have gettext and don't want to use GNU gettext.]) AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl if test "$MSGFMT" != "no"; then @@ -1217,7 +1218,8 @@ [AC_TRY_LINK([#include ], [return LC_MESSAGES], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then - AC_DEFINE(HAVE_LC_MESSAGES) + AC_DEFINE(HAVE_LC_MESSAGES, 1, + [Define if your locale.h file contains LC_MESSAGES.]) fi fi]) --Apple-Mail-4-907793062 Content-Disposition: attachment; filename=build.sh Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="build.sh" Content-length: 246 #! /bin/sh set -e src=$1 $src/configure dirs="bfd binutils gas gdb gprof ld libiberty mmalloc opcodes rda sim utils" for i in $dirs; do rm -f config.cache (cd $i && $src/$i/configure --enable-maintainer-mode) done rm -f config.cache --Apple-Mail-4-907793062--