201 |
|
|
202 |
# Split the substitutions into bite-sized pieces for seds with |
# Split the substitutions into bite-sized pieces for seds with |
203 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
# small command number limits, like on Digital OSF/1 and HP-UX. |
204 |
CONFIG_FILES=${CONFIG_FILES-"./Makefile doc/Makefile doc/en/Makefile kmd/Makefile po/Makefile "} |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
205 |
#echo Doing the fast build of Makefiles -- autoconf 213 |
ac_file=1 # Number of current file. |
206 |
if test "x$ac_cs_root" = "x" ; then |
ac_beg=1 # First line for current file. |
207 |
ac_cs_root=conftest |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
208 |
fi |
ac_more_lines=: |
209 |
rm -f $ac_cs_root.sacfiles |
ac_sed_cmds="" |
210 |
for ac_file in .. $CONFIG_FILES ; do |
while $ac_more_lines; do |
211 |
if test "x$ac_file" != x..; then |
if test $ac_beg -gt 1; then |
212 |
echo $ac_file >> $ac_cs_root.sacfiles |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
213 |
|
else |
214 |
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
215 |
|
fi |
216 |
|
if test ! -s conftest.s$ac_file; then |
217 |
|
ac_more_lines=false |
218 |
|
rm -f conftest.s$ac_file |
219 |
|
else |
220 |
|
if test -z "$ac_sed_cmds"; then |
221 |
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
222 |
|
else |
223 |
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
224 |
fi |
fi |
225 |
|
ac_file=`expr $ac_file + 1` |
226 |
|
ac_beg=$ac_end |
227 |
|
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
228 |
|
fi |
229 |
done |
done |
230 |
if test -f $ac_cs_root.sacfiles ; then |
if test -z "$ac_sed_cmds"; then |
231 |
perl admin/config.pl "$ac_cs_root.subs" "$ac_cs_root.sacfiles" "$ac_given_srcdir" "$ac_given_INSTALL" |
ac_sed_cmds=cat |
232 |
fi |
fi |
|
rm -f $ac_cs_root.s* |
|
233 |
|
|
234 |
|
CONFIG_FILES=${CONFIG_FILES-"./Makefile doc/Makefile doc/en/Makefile kmd/Makefile po/Makefile "} |
235 |
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
236 |
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
237 |
|
case "$ac_file" in |
238 |
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
239 |
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
240 |
|
*) ac_file_in="${ac_file}.in" ;; |
241 |
|
esac |
242 |
|
|
243 |
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
244 |
|
|
245 |
|
# Remove last slash and all that follows it. Not all systems have dirname. |
246 |
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
247 |
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
248 |
|
# The file is in a subdirectory. |
249 |
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
250 |
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
251 |
|
# A "../" for each directory in $ac_dir_suffix. |
252 |
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
253 |
|
else |
254 |
|
ac_dir_suffix= ac_dots= |
255 |
|
fi |
256 |
|
|
257 |
|
case "$ac_given_srcdir" in |
258 |
|
.) srcdir=. |
259 |
|
if test -z "$ac_dots"; then top_srcdir=. |
260 |
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
261 |
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
262 |
|
*) # Relative path. |
263 |
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
264 |
|
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
265 |
|
esac |
266 |
|
|
267 |
|
case "$ac_given_INSTALL" in |
268 |
|
[/$]*) INSTALL="$ac_given_INSTALL" ;; |
269 |
|
*) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
270 |
|
esac |
271 |
|
|
272 |
|
echo creating "$ac_file" |
273 |
|
rm -f "$ac_file" |
274 |
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
275 |
|
case "$ac_file" in |
276 |
|
*Makefile*) ac_comsub="1i\\ |
277 |
|
# $configure_input" ;; |
278 |
|
*) ac_comsub= ;; |
279 |
|
esac |
280 |
|
|
281 |
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
282 |
|
sed -e "$ac_comsub |
283 |
|
s%@configure_input@%$configure_input%g |
284 |
|
s%@srcdir@%$srcdir%g |
285 |
|
s%@top_srcdir@%$top_srcdir%g |
286 |
|
s%@INSTALL@%$INSTALL%g |
287 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
288 |
|
fi; done |
289 |
|
rm -f conftest.s* |
290 |
|
|
291 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
292 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |