1# Additional editing of Makefiles and of config.status 2 3# Copyright (C) 2001, 2002 Free Software Foundation, Inc. 4 5# This program is free software; you can redistribute it and/or modify 6# it under the terms of the GNU General Public License as published by 7# the Free Software Foundation; either version 2, or (at your option) 8# any later version. 9 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13# GNU General Public License for more details. 14 15# You should have received a copy of the GNU General Public License 16# along with this program; if not, write to the Free Software 17# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 18# 02111-1307, USA. 19 20# Written by Eli Zaretskii. 21 22 23/(echo[ ]*':t/ a\ 24# DJGPP specific Makefile changes.\ 25 /^aliaspath * *=/s,:,";",g;t t\ 26 /TEXINPUTS=/s,:,";",g;t t\ 27 /PATH=/s,:,";",g;t t\ 28 s,\\.deps,_deps,g;t t\ 29 s,\\.new\\.,_new.,g;t t\ 30 s,\\.old\\.,_old.,g;t t\ 31 s,\\.tab\\.,_tab.,g;t t\ 32 s,Makefile\\.in\\.in,Makefile.in-in,g;t t\ 33 s,Makefile\\.am\\.in,Makefile.am-in,g;t t\ 34 /^install-info-am:/,/^$/ {\ 35 /@list=.\\\$(INFO_DEPS)\[^ \]/s,DEPS),& diff.i,\ 36 s,\\(\\\$\\\$d/\\\$\\\$file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$d/\\$\\$file[0-9] \\$\\$d/\\$\\$file[0-9][0-9]\\2,\ 37 s,\\( \\\$\\\$file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$file[0-9] \\$\\$file[0-9][0-9]\\2,\ 38 }\ 39 /^uninstall-info-am:/,/^$/ {\ 40 /@list=.\\\$(INFO_DEPS)\[^ \]/s,DEPS),& diff.i,\ 41 s,\\(file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$file[0-9] \\$\\$file[0-9][0-9]\\2,\ 42 } 43 44# Makefile.in.in is renamed to Makefile.in-in. 45/^ac_config_files=/,/_ACEOF/ { 46 s|po/Makefile\.in|&:po/Makefile.in-in| 47} 48/CONFIG_FILES=/ s|po/Makefile\.in|&:po/Makefile.in-in|2 49 50# We always use _deps instead of .deps, because the latter is an 51# invalid name on 8+3 MS-DOS filesystem. This makes the generated 52# Makefiles good for every DJGPP installation, not only the one 53# where the package was configured (which could happen to be a 54# Windows box, where leading dots in file names are allowed). 55s,\.deps,_deps,g 56 57# The following two items are changes needed for configuring 58# and compiling across partitions. 59# The given srcdir value is always translated from the 60# "x:" syntax into "/dev/x" syntax while we run configure. 61/^[ ]*-srcdir=\*.*$/ a\ 62 ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` 63/set X `ls -Lt \$srcdir/ i\ 64 if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ 65 srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ 66 fi 67 68# Autoconf 2.52e generated configure scripts write absolute paths into 69# Makefiles, making them useless for DJGPP installations other than the 70# one for which the package has been configured. 71/MISSING=/,/^$/ { 72 /^fi$/ a\ 73am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/diffutil.*[-.]2.*[7-9].*[0-9]%${top_srcdir}%'` 74} 75/^install_sh=/a\ 76install_sh=`echo "$install_sh" | sed 's%/dev.*/diffutil.*[-.]2.*[7-9].*[0-9]%${top_srcdir}%'` 77 78 79# The following makes sure we are not going to remove a directory 80# which is the cwd on its drive (DOS doesn't allow to remove such 81# a directory). The trick is to chdir to the root directory on 82# temp directory's drive. 83/^ *trap 'exit_status=\$\?; rm -rf/s%rm -rf%cd $tmp; cd /; &% 84 85# AC_CONFIG_LINKS fails if the source and destination are on 86# different file systems and symlinks don't work. 87/^ ln \$srcdir/s%||%|| cp -pf $srcdir/$ac_source $ac_dest ||% 88