djgpp/config.sed: Adjust config.sed for the use of autoconf 2.60.

This commit is contained in:
Juan Manuel Guerrero
2006-10-15 22:38:27 +00:00
parent 179de98b6e
commit b36e835baa

View File

@@ -1,6 +1,6 @@
# DJGPP specific configuration file. # DJGPP specific configuration file.
# Sed script for additional DJGPP specific editing # Sed script for additional DJGPP specific editing
# of the configure script generated by autoconf 2.57. # of the configure script generated by autoconf 2.60.
# Copyright (C) 2005, 2006 Free Software Foundation, Inc. # Copyright (C) 2005, 2006 Free Software Foundation, Inc.
@@ -19,59 +19,63 @@
# along with this program; if not, write to the Free Software Foundation, # along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# Additional editing of Makefiles # Additional editing of Makefiles
/(echo[ ]*':t/ a\ /^".*ac_file_inputs.*tmp\/out$/ a\
cat > "$tmp/subs-3.sed" << eof_djgpp\
# DJGPP specific Makefile changes.\ # DJGPP specific Makefile changes.\
/^aliaspath * *=/s,:,";",g;t t\ /^aliaspath * *=/s,:,";",g\
/TEXINPUTS=/s,:,";",g;t t\ /TEXINPUTS=/s,:,";",g\
/PATH=/s,:,";",g;t t\ /PATH=/s,:,";",g\
s,\\.deps,_deps,g;t t\ s,\\.deps,_deps,g\
s,\\.new\\.,_new.,g;t t\ s,\\.libs,_libs,g\
s,\\.old\\.,_old.,g;t t\ s,\\.new\\.,_new.,g\
s,c++\\.at,cxx.at,g;t t\ s,\\.old\\.,_old.,g\
s,c++\\.m4,cxx.m4,g;t t\ s,\\.tab\\.,_tab.,g\
s,calc++,calcxx,g;t t\ s,c++\\.at,cxx.at,g\
s,scan-gram-c,c-scan-gram,g;t t\ s,c++\\.m4,cxx.m4,g\
s,scan-skel-c,c-scan-skel,g;t t\ s,calc++,calcxx,g\
s,Makefile\\.in\\.in,Makefile.in-in,g;t t\ s,scan-gram-c,c-scan-gram,g\
s,Makefile\\.am\\.in,Makefile.am-in,g;t t\ s,scan-skel-c,c-scan-skel,g\
s,(MAKEINFOFLAGS),& --no-split,\ s,Makefile\\.am\\.in,Makefile.am-in,g\
/^install-info-am:/,/^$/ {\ s,Makefile\\.in\\.in,Makefile.in-in,g\
/@list=/ s,\\\$(INFO_DEPS),& bison.i,\ /^\\.y\\.c:/,/^$/ {\
/@for *file/ s,\\\$(INFO_DEPS),& bison.i,\ /\\\$(YACCCOMPILE)/ {\
s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\ a\\\\\
}\ -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\
/^\\.y\\.c:/,/^$/ {\
/\\\$(YACCCOMPILE)/ {\
a\\\
-@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\
-@test -f y.tab.h && mv -f y.tab.h y_tab.h\ -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
}\
}\ }\
/^libbison.a:/ i\\\ }\
\\$(top_srcdir)/djgpp/subpipe.c: \\$(top_srcdir)/djgpp/subpipe.h\\\ /^libbison.a:/ i\\\\\
subpipe.o: \\$(top_srcdir)/djgpp/subpipe.c \\$(top_srcdir)/djgpp/subpipe.h\\\ \\$(top_srcdir)/djgpp/subpipe.c: \\$(top_srcdir)/djgpp/subpipe.h\\\\\
subpipe.o: \\$(top_srcdir)/djgpp/subpipe.c \\$(top_srcdir)/djgpp/subpipe.h\\\\\
\\$(COMPILE) -c \\$<\ \\$(COMPILE) -c \\$<\
/^yacc:/ i\\\ /^yacc:/ i\\\\\
yacc.bat:\\\ yacc.bat:\\\\\
echo "bison\\$(EXEEXT) -y %1 %2 %3 %4 %5 %6 %7 %8 %9" >\\$@\ echo "bison\\$(EXEEXT) -y %1 %2 %3 %4 %5 %6 %7 %8 %9" >\\$@\
/^bin_SCRIPTS =/s/$/ yacc.bat/\ /^bin_SCRIPTS =/s/$/ yacc.bat/\
/^MOSTLYCLEANFILES = yacc/s/$/ yacc.bat/ /^MOSTLYCLEANFILES = yacc/s/$/ yacc.bat/\
eof_djgpp\
sed -f "\$tmp/subs-3.sed" \$tmp/out > \$tmp/out.djgpp\
mv -f \$tmp/out.djgpp \$tmp/out
# Makefile.in.in is renamed to Makefile.in-in. # Makefile.in.in is renamed to Makefile.in-in.
/ac_config_files=/,/_ACEOF/ { /ac_config_files=/ {
s|po/Makefile\.in|&:po/Makefile.in-in| /runtime-po/!s|po/Makefile\.in|&:po/Makefile.in-in|
s|runtime-po/Makefile\.in|&:runtime-po/Makefile.in-in|
}
/CONFIG_FILES=/ {
/runtime-po/!s|po/Makefile\.in|&:po/Makefile.in-in|2
s|runtime-po/Makefile\.in|&:runtime-po/Makefile.in-in|2
} }
/CONFIG_FILES=/ s|po/Makefile\.in|&:po/Makefile.in-in|2
# We always use _deps and _libs instead of .deps and .libs, because # We always use _deps and _libs instead of .deps and .libs, because
# the latter is an invalid name on 8+3 MS-DOS file system. This makes # the latter is an invalid name on 8+3 MS-DOS file system. This makes
# the generated Makefiles good for every DJGPP installation, not only # the generated Makefiles good for every DJGPP installation, not only
# the one where the package was configured (which could happen to be # the one where the package was configured (which could happen to be
# a Windows box, where leading dots in file names are allowed). # a Windows box, where leading dots in file names are allowed).
s,\.deps,_deps,g
s,\.libs,_libs,g
/^rmdir[ ]*\.tst/ i\ /^rmdir[ ]*\.tst/ i\
am__leading_dot=_ am__leading_dot=_
@@ -91,18 +95,6 @@ am__leading_dot=_
# DOS-style absolute file names should be supported as well # DOS-style absolute file names should be supported as well
/\*) top_srcdir=/s,/\*,[\\\\/]* | ?:[\\\\/]*, /\*) top_srcdir=/s,/\*,[\\\\/]* | ?:[\\\\/]*,
# Prevent the spliting of subs.sed.
# The sed script: subs.sed is split into 48 lines long files.
# This will produce sed scripts called subs-$ac_sed_frag.sed, where
# $ac_sed_frag is some unique number. This will not work if the splited
# sed script contains a multiple line sed command at line #48. In this
# case the first part of the multiple line sed command will be written
# at the end of one particular subs-$ac_sed_frag.sed and the rest of the
# sed command will be written at the begining of the next subs-$ac_sed_frag.sed
# making both sed script useless.
# This matches the configure script produced by Autoconf 2.57
/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $tmp/subs.sed`,
# The following two items are changes needed for configuring # The following two items are changes needed for configuring
# and compiling across partitions. # and compiling across partitions.
# 1) The given srcdir value is always translated from the # 1) The given srcdir value is always translated from the
@@ -120,32 +112,30 @@ am__leading_dot=_
# which the package has not been configured for. # which the package has not been configured for.
/MISSING=/,/^$/ { /MISSING=/,/^$/ {
/^fi$/ a\ /^fi$/ a\
am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*%${top_srcdir}%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*%${top_srcdir}%'` am_missing_run=`echo "$am_missing_run" | sed 's%/dev/.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%'`
} }
/^install_sh=/a\ /^install_sh=/a\
install_sh=`echo "$install_sh" | sed 's%/dev.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*%${top_srcdir}%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*%${top_srcdir}%'` install_sh=`echo "$install_sh" | sed 's%/dev/.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%'`
# This will only work if the assumption that the # This will only work if the assumption that the
# testsuite is ran from the following path: # testsuite is ran from the following path:
# ${top_srcdir}/tests/testsuite.dir # ${top_srcdir}/tests/testsuite.dir
# holds. The explicit names are of no importance. # holds. The explicit names are of no importance.
# ../../. == ${top_srcdir} # ../../. == ${top_srcdir}
/\.)[ ]*ac_abs_builddir=/,/^esac$/ { #/^esac$/,/^ac_abs_srcdir=/ {
/^esac$/ a\ /^ac_abs_srcdir=/ i\
ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%/dev.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../.%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../.%"` ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%/dev/.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%"`\
} ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%/dev/.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%"`\
/\.)[ ]*ac_abs_top_builddir=/,/^esac$/ { ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%/dev/.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%"`
/^esac$/ a\ #ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%/dev/.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%"`
ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%/dev.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../../%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../../%"` /^ac_abs_srcdir=/ a\
} for dj_dir in $ac_abs_builddir $ac_abs_top_builddir $ac_abs_top_srcdir $ac_abs_srcdir\
/\.)[ ]*ac_abs_srcdir=/,/^esac$/ { do\
/^esac$/ a\ ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%//%/%g"`\
ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%/dev.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../.%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../.%"` ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%//%/%g"`\
} ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%//%/%g"`\
/\.)[ ]*ac_abs_top_srcdir=/,/^esac$/ { ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%//%/%g"`\
/^esac$/ a\ done
ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%/dev.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../../%;s%.:.*/bison[-_0-9]\\{1,1\\}[-.0-9A-z]*/[^/]*%../../../%"`
}
# Add DJGPP version information. # Add DJGPP version information.
/^#define VERSION/ s/\$VERSION/& (DJGPP port (r1))/ /^#define VERSION/ s/\$VERSION/& (DJGPP port (r1))/