| 1 | # Additional editing of configure and Makefiles for DJGPP | 
|---|
| 2 |  | 
|---|
| 3 | /(echo[         ]*':t/ a\ | 
|---|
| 4 | # DJGPP specific Makefile changes.\ | 
|---|
| 5 | /^aliaspath * *=/s,:,";",g;t t\ | 
|---|
| 6 | /TEXINPUTS=/s,:,";",g;t t\ | 
|---|
| 7 | /PATH=/s,:,";",g;t t\ | 
|---|
| 8 | s,\\.deps,_deps,g;t t\ | 
|---|
| 9 | s,\\.new\\.,_new.,g;t t\ | 
|---|
| 10 | s,\\.old\\.,_old.,g;t t\ | 
|---|
| 11 | s,\\.tab\\.,_tab.,g;t t\ | 
|---|
| 12 | s,Makefile\\.in\\.in,Makefile.in-in,g;t t\ | 
|---|
| 13 | s,Makefile\\.am\\.in,Makefile.am-in,g;t t\ | 
|---|
| 14 | /^install-info-am:/,/^$/ {\ | 
|---|
| 15 | /@list=.\\\$(INFO_DEPS)\[^ \]/s,DEPS),& texinf- texin- info-stn.i info.inf,\ | 
|---|
| 16 | s,\\(\\\$\\\$d/\\\$\\\$file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$d/\\$\\$file[0-9] \\$\\$d/\\$\\$file[0-9][0-9]\\2,\ | 
|---|
| 17 | s,\\( \\\$\\\$file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$file[0-9] \\$\\$file[0-9][0-9]\\2,\ | 
|---|
| 18 | }\ | 
|---|
| 19 | /^uninstall-info-am:/,/^$/ {\ | 
|---|
| 20 | /@list=.\\\$(INFO_DEPS)\[^ \]/s,DEPS),& texinf- texin- info-stn.i info.inf,\ | 
|---|
| 21 | s,\\(file-\\[0-9\\]\\[0-9\\]\\)\\(\[^ \]\\),\\1 \\$\\$file[0-9] \\$\\$file[0-9][0-9]\\2,\ | 
|---|
| 22 | } | 
|---|
| 23 |  | 
|---|
| 24 | # Makefile.in.in is renamed to Makefile.in-in. | 
|---|
| 25 | /ac_config_files=/,/_ACEOF/ { | 
|---|
| 26 | s|po/Makefile\.in|&:po/Makefile.in-in| | 
|---|
| 27 | } | 
|---|
| 28 | /CONFIG_FILES=/ s|po/Makefile\.in|&:po/Makefile.in-in|2 | 
|---|
| 29 |  | 
|---|
| 30 | # We always use _deps instead of .deps, because the latter is an | 
|---|
| 31 | # invalid name on 8+3 MS-DOS filesystem.  This makes the generated | 
|---|
| 32 | # Makefiles good for every DJGPP installation, not only the one | 
|---|
| 33 | # where the package was configured (which could happen to be a | 
|---|
| 34 | # Windows box, where leading dots in file names are allowed). | 
|---|
| 35 | s,\.deps,_deps,g | 
|---|
| 36 |  | 
|---|
| 37 | # The following two items are changes needed for configuring | 
|---|
| 38 | # and compiling across partitions. | 
|---|
| 39 | # The given srcdir value is always translated from the | 
|---|
| 40 | # "x:" syntax into "/dev/x" syntax while we run configure. | 
|---|
| 41 | /^[     ]*-srcdir=\*.*$/ a\ | 
|---|
| 42 | ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` | 
|---|
| 43 | /set X `ls -Lt \$srcdir/ i\ | 
|---|
| 44 | if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ | 
|---|
| 45 | srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ | 
|---|
| 46 | fi | 
|---|
| 47 |  | 
|---|
| 48 | # Autoconf 2.52e generated configure scripts | 
|---|
| 49 | # write absolute paths into Makefiles making | 
|---|
| 50 | # them useless for DJGPP installations for which | 
|---|
| 51 | # the package has not been configured for. | 
|---|
| 52 | /MISSING=/,/^$/ { | 
|---|
| 53 | /^fi$/ a\ | 
|---|
| 54 | am_missing_run=`echo "$am_missing_run" | sed 's%/dev.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%;s%.:.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%'` | 
|---|
| 55 | } | 
|---|
| 56 | /^install_sh=/a\ | 
|---|
| 57 | install_sh=`echo "$install_sh" | sed 's%/dev.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%;s%.:.*/texinfo-\\{0,1\\}4\\.[0-9][a-z]\\{0,1\\}%${top_srcdir}%'` | 
|---|
| 58 |  | 
|---|
| 59 | # The following makes sure we are not going to remove a directory | 
|---|
| 60 | # which is the cwd on its drive (DOS doesn't allow to remove such | 
|---|
| 61 | # a directory).  The trick is to chdir to the root directory on | 
|---|
| 62 | # temp directory's drive before removing $tmp. | 
|---|
| 63 | /^ *trap 'exit_status=\$\?; rm -rf/s%rm -rf%cd $tmp; cd /; &% | 
|---|
| 64 |  | 
|---|
| 65 | # AC_CONFIG_LINKS fails if the source and destination are on | 
|---|
| 66 | # different file systems and symlinks don't work. | 
|---|
| 67 | /^    ln \$srcdir/s%||%|| cp -pf $srcdir/$ac_source $ac_dest ||% | 
|---|