Commit 1e0f07d3 by Paolo Bonzini Committed by Nathanael Nerode

configure.in (DEFAULT_YACC, [...]): Set with AC_CHECK_PROGS.

2004-03-15  Paolo Bonzini  <bonzini@gnu.org>
            Nathanael Nerode  <neroden@gcc.gnu.org>

	* configure.in (DEFAULT_YACC, DEFAULT_M4, DEFAULT_LEX):
        Set with AC_CHECK_PROGS.
	* configure.in: Fix comment typo from last patch.
	* configure: Regenerate.

Co-Authored-By: Nathanael Nerode <neroden@gcc.gnu.org>

From-SVN: r79552
parent fd5580cb
2004-03-15 Paolo Bonzini <bonzini@gnu.org>
Nathanael Nerode <neroden@gcc.gnu.org>
* configure.in (DEFAULT_YACC, DEFAULT_M4, DEFAULT_LEX):
Set with AC_CHECK_PROGS.
* configure.in: Fix comment typo from last patch.
* configure: Regenerate.
2004-03-15 Nathanael Nerode <neroden@gcc.gnu.org> 2004-03-15 Nathanael Nerode <neroden@gcc.gnu.org>
* Makefile.tpl: Introduce experimental top level bootstrap support. * Makefile.tpl: Introduce experimental top level bootstrap support.
......
...@@ -1070,7 +1070,7 @@ fi ...@@ -1070,7 +1070,7 @@ fi
ACX_PROG_GNAT ACX_PROG_GNAT
# By default, C is the only stage 1 langauge. # By default, C is the only stage 1 language.
stage1_languages=c stage1_languages=c
AC_SUBST(stage1_languages) AC_SUBST(stage1_languages)
...@@ -1497,62 +1497,12 @@ esac ...@@ -1497,62 +1497,12 @@ esac
tooldir='${exec_prefix}'/${target_alias} tooldir='${exec_prefix}'/${target_alias}
build_tooldir=${tooldir} build_tooldir=${tooldir}
# Generate a default definition for YACC. This is used if the makefile can't # Generate default definitions for YACC, M4, LEX. These are used if the
# locate bison or byacc in objdir. # Makefile can't locate these programs in objdir.
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
for prog in 'bison -y' byacc yacc AC_CHECK_PROGS([DEFAULT_YACC], ['bison -y' byacc yacc], [$MISSING bison])
do AC_CHECK_PROGS([DEFAULT_M4], [gm4 gnum4 m4], [$MISSING m4])
set dummy $prog; tmp=$2 AC_CHECK_PROGS([DEFAULT_LEX], [flex lex], [$MISSING flex])
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/$tmp; then
DEFAULT_YACC="$prog"
break
fi
done
IFS="$save_ifs"
test -n "$DEFAULT_YACC" && break
done
# Generate a default definition for M4. This is used if the makefile can't
# locate m4 in objdir.
for prog in gm4 gnum4 m4
do
set dummy $prog; tmp=$2
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/$tmp; then
DEFAULT_M4="$prog"
break
fi
done
IFS="$save_ifs"
test -n "$DEFAULT_M4" && break
done
# Generate a default definition for LEX. This is used if the makefile can't
# locate flex in objdir.
for prog in flex lex
do
set dummy $prog; tmp=$2
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
for dir in $PATH; do
test -z "$dir" && dir=.
if test -f $dir/$tmp; then
DEFAULT_LEX="$prog"
break
fi
done
IFS="$save_ifs"
test -n "$DEFAULT_LEX" && break
done
# FIXME Should this be done recursively ??? (Useful for e.g. gdbtest) # FIXME Should this be done recursively ??? (Useful for e.g. gdbtest)
# Set up the list of links to be made. # Set up the list of links to be made.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment