Annotation of embedaddon/libiconv/libcharset/djgpp/config.sed, revision 1.1.1.1
1.1 misho 1: # DJGPP specific configuration file.
2: # Sed script for additional DJGPP specific editing
3: # of the configure script generated by autoconf 2.60.
4:
5:
6: # Additional editing of Makefiles
7: /^".*ac_file_inputs.*tmp\/out$/ a\
8: cat > "$tmp/subs-3.sed" << eof_djgpp\
9: # DJGPP specific Makefile changes.\
10: s,\\.deps,_deps,g\
11: s,\\.libs,_libs,g\
12: s,\\.new\\.,_new.,g\
13: s,\\.old\\.,_old.,g\
14: s,\\.tab\\.,_tab.,g\
15: s,config\\.h\\.in,config.h-in,g\
16: s,\\.\\([1-9]\\)\\.html,.\\1-html,g\
17: s,\\.html,-html,g\
18: s,libcharset\\.h\\.in,libcharset.h-in,g\
19: s,localcharset\\.h\\.inst,localcharset_h.ins,g\
20: s,localcharset\\.h\\.in,localcharset.h-in,g\
21: s,localcharset\\.h\\.build\\.in,localcharset.h-build-in,g\
22: s,Makefile\\.am\\.in,Makefile.am-in,g\
23: s,Makefile\\.in\\.in,Makefile.in-in,g\
24: /^\\.y\\.c:/,/^$/ {\
25: /\\\$(YACCCOMPILE)/ {\
26: a\\\\\
27: -@test -f y.tab.c && mv -f y.tab.c y_tab.c\\\\\
28: -@test -f y.tab.h && mv -f y.tab.h y_tab.h\
29: }\
30: }\
31: eof_djgpp\
32: sed -f "\$tmp/subs-3.sed" \$tmp/out > \$tmp/out.djgpp\
33: mv -f \$tmp/out.djgpp \$tmp/out
34:
35:
36: # Rename config.h.in into config.h-in
37: /ac_config_headers=/s|config\.h|&:config.h-in|g
38: /CONFIG_HEADERS=/ s|config\.h\.in|&:config.h-in|2
39:
40: # Rename localcharset.h.build.in, localcharset.h.inst, localcharset.h.in and Makefile.in.in into localcharset.h-build-in, localcharset_h.ins, localcharset.h-in and Makefile.in-in
41: /ac_config_files=/ {
42: s|localcharset\.h\.build\.in|localcharset.h-build-in|
43: s|localcharset\.h\.inst|localcharset_h.ins|
44: s|localcharset\.h\.in|localcharset.h-in|
45: s|po/Makefile\.in|&:po/Makefile.in-in|
46: }
47: /CONFIG_FILES=/ {
48: s|localcharset\.h\.build\.in|localcharset.h-build-in|
49: s|localcharset\.h\.inst|localcharset_h.ins|
50: s|localcharset\.h\.in|localcharset.h-in|
51: s|po/Makefile\.in|&:po/Makefile.in-in|2
52: }
53:
54:
55: # We always use _deps and _libs instead of .deps and .libs, because
56: # the latter is an invalid name on 8+3 MS-DOS file system. This makes
57: # the generated Makefiles good for every DJGPP installation, not only
58: # the one where the package was configured (which could happen to be
59: # a Windows box, where leading dots in file names are allowed).
60: s,\.deps,_deps,g
61: s,\.libs,_libs,g
62: /^rmdir[ ]*\.tst/ i\
63: am__leading_dot=_
64:
65: # Replace (command) > /dev/null with `command > /dev/null`, since
66: # parenthesized commands always return zero status in the ported Bash,
67: # even if the named command doesn't exist
68: /if ([^|;`]*null/{
69: s,(,`,
70: s,),,
71: /null[ ]*2>&1/ s,2>&1,&`,
72: /null.*null/ s,null.*null,&`,
73: /null.*null/ !{
74: /null[ ]*2>&1/ !s,null,&`,
75: }
76: }
77:
78: # DOS-style absolute file names should be supported as well
79: /\*) top_srcdir=/s,/\*,[\\\\/]* | ?:[\\\\/]*,
80:
81: # The following two items are changes needed for configuring
82: # and compiling across partitions.
83: # 1) The given srcdir value is always translated from the
84: # "x:" syntax into "/dev/x" syntax while we run configure.
85: /^[ ]*-srcdir=\*.*$/ a\
86: ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"`
87: /set X `ls -Lt \$srcdir/ i\
88: if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\
89: srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\
90: fi
91:
92: # Autoconf 2.52e generated configure scripts
93: # write absolute paths into Makefiles and bison.in
94: # making them useless for DJGPP installations for
95: # which the package has not been configured for.
96: /MISSING=/,/^$/ {
97: /^fi$/ a\
98: am_missing_run=`echo "$am_missing_run" | sed 's%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%'`
99: }
100: /^install_sh=/a\
101: install_sh=`echo "$install_sh" | sed 's%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%${top_srcdir}%'`
102:
103: # This will only work if the assumption that the
104: # testsuite is ran from the following path:
105: # ${top_srcdir}/tests/testsuite.dir
106: # holds. The explicit names are of no importance.
107: # ../../. == ${top_srcdir}
108: #/^esac$/,/^ac_abs_srcdir=/ {
109: /^ac_abs_srcdir=/ i\
110: ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%"`\
111: ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%"`\
112: ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../..%"`
113: #ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%/dev/.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%;s%.:.*/libcharset[-_0-9]\\{1,1\\}[-.0-9A-Za-z+]*%../../.%"`
114: /^ac_abs_srcdir=/ a\
115: for dj_dir in $ac_abs_builddir $ac_abs_top_builddir $ac_abs_top_srcdir $ac_abs_srcdir\
116: do\
117: ac_abs_builddir=`echo "$ac_abs_builddir" | sed "s%//%/%g"`\
118: ac_abs_top_builddir=`echo "$ac_abs_top_builddir" | sed "s%//%/%g"`\
119: ac_abs_top_srcdir=`echo "$ac_abs_top_srcdir" | sed "s%//%/%g"`\
120: ac_abs_srcdir=`echo "$ac_abs_srcdir" | sed "s%//%/%g"`\
121: done
122:
123: # Add DJGPP version information.
124: /^#define VERSION/ s/\$VERSION/& (DJGPP port (r1))/
125:
126: # We need makeinfo to make the html formated docs.
127: /\$am_missing_run[ ]*makeinfo/ s,\$am_missing_run,,
128:
129: # The path to the FORTRAN compiler and libraries
130: # shall contain no absolute path reference so it
131: # will be good for all djgpp installations.
132: /^FLIBS="\$ac_cv_flibs"/ i\
133: ac_djgpp_path=`echo "$DJDIR" | sed 's%\\\\\\%/%g' | tr $as_cr_LETTERS $as_cr_letters`\
134: ac_cv_flibs=`echo "$ac_cv_flibs" | sed "s%-L$ac_djgpp_path%-L/dev/env/DJDIR%g"`
135:
136: # Autoconf generated configure scripts write absolute
137: # paths of certain header files into Makefiles making
138: # them useless for DJGPP installations for which the
139: # package has not been configured for.
140: /^.*echo "\$as_me:\$LINENO: result: \$gl_cv_absolute_.*$/ {
141: h
142: s,^.*\(gl_cv_absolute_\)\([a-z0-9_]*\)\(_h\).*$,\1\2\3=`echo $\1\2\3 | sed "s%[^:]:.*/include/%/dev/env/DJDIR/include/%"`,
143: G
144: }
145: /^.*echo "\$as_me:\$LINENO: result: \$gl_cv_full_.*$/ {
146: h
147: s,^.*\(gl_cv_full_\)\([a-z0-9_]*\)\(_h\).*$,\1\2\3=`echo $\1\2\3 | sed "s%[^:]:.*/include/%/dev/env/DJDIR/include/%"`,
148: G
149: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>