603
|
1 #!/bin/sh
|
|
2 # Configuration script for GNU Emacs
|
|
3 # Copyright (C) 1992 Free Software Foundation, Inc.
|
|
4
|
|
5 #This file is part of GNU Emacs.
|
|
6
|
|
7 #GNU Emacs is free software; you can redistribute it and/or modify
|
|
8 #it under the terms of the GNU General Public License as published by
|
|
9 #the Free Software Foundation; either version 1, or (at your option)
|
|
10 #any later version.
|
|
11
|
|
12 #GNU Emacs is distributed in the hope that it will be useful,
|
|
13 #but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 #GNU General Public License for more details.
|
|
16
|
|
17 #You should have received a copy of the GNU General Public License
|
|
18 #along with GNU Emacs; see the file COPYING. If not, write to
|
|
19 #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
20
|
|
21 # Shell script to edit files and make symlinks in preparation for
|
|
22 # compiling Emacs.
|
617
|
23 #
|
603
|
24 # Usage: configure machine
|
|
25 #
|
|
26 # If configure succeeds, it leaves its status in config.status.
|
617
|
27 # If configure fails after disturbing the status quo,
|
603
|
28 # config.status is removed.
|
|
29 #
|
|
30
|
638
|
31 # Remove any leading "." elements from the path name. When this
|
|
32 # script is invoked from the config.status script, a new ./ gets added
|
|
33 # to the the front of the path, resulting in a "././" prefix. That
|
|
34 # prefix is then recorded in the resulting config.status file, so
|
|
35 # basically each time config.status is used, it prepends another "./"
|
|
36 # to the filename. This wouldn't be a problem, except that since
|
|
37 # progname gets recorded in all the Makefiles this script produces,
|
|
38 # move-if-changed thinks they're different when they're not.
|
|
39 progname="`echo $0 | sed 's:^\(\./\)*::'`"
|
603
|
40
|
|
41 short_usage="Type \`${progname} -usage' for more information about options."
|
|
42
|
|
43 usage_message="Usage: ${progname} MACHINENAME [-OPTION[=VALUE] ...]
|
621
|
44
|
|
45 This message needs to be updated.
|
|
46
|
603
|
47 Set compilation and installation parameters for GNU Emacs, and report.
|
|
48 MACHINENAME is the machine to build for. See \`etc/MACHINES'.
|
|
49 Options are:
|
|
50 -opsystem=SYSTEM - operating system to build for; see \`etc/MACHINES'.
|
621
|
51 -prefix=DIR - where to install Emacs's library files
|
603
|
52 These options have reasonable defaults (in []s), and may not be needed:
|
|
53 -g, -O - Passed to the compiler. If omitted, use -O only.
|
|
54 -cc=COMPILER - Which compiler to use. Defaults to gcc if available.
|
|
55 -libdir=DIR - where to look for arch-dependent library files
|
|
56 -datadir=DIR - where to look for architecture-independent library files
|
605
|
57 -bindir=DIR - where to install the Emacs executable, and some friends
|
603
|
58 -lisppath=PATH - colon-separated list of Elisp directories
|
|
59 -lockdir=DIR - where Emacs should do its file-locking stuff
|
|
60 -window_system=none or [x11, if it is installed] - what window system to use
|
|
61 -have_x_menu=yes or [no] - include menu support under X11
|
|
62 -gnu_malloc=[yes] or no - use the GNU memory allocator
|
|
63 -rel_alloc=[yes] or no - use compacting allocator for buffers
|
|
64 -highpri=N - run at N points higher-than-normal priority
|
605
|
65 -lisp_float_type=[yes] or no - Support native floating point in Elisp
|
603
|
66 If successful, ${progname} leaves its status in config.status. If
|
|
67 unsuccessful after disturbing the status quo, config.status is removed."
|
|
68
|
|
69 if [ ! -r ./src/lisp.h ]; then
|
|
70 echo "${progname}: Can't find Emacs sources in \`./src'.
|
|
71 Run this config script in the top directory of the Emacs source tree." 1>&2
|
|
72 exit 1
|
|
73 fi
|
|
74
|
|
75 options=":\
|
|
76 usage:help:\
|
|
77 machine:opsystem:\
|
|
78 g:O:cc:\
|
621
|
79 prefix:bindir:emacsdir:datadir:lispdir:locallisppath:\
|
|
80 lisppath:buildlisppath:statedir:lockdir:libdir:mandir:infodir:\
|
603
|
81 gnu_malloc:rel_alloc:highpri:lisp_float_type:\
|
|
82 window_system:have_x_menu:\
|
|
83 "
|
|
84
|
|
85 boolean_opts=":\
|
|
86 g:O:\
|
|
87 gnu_malloc:rel_alloc:lisp_float_type:have_x_menu:\
|
|
88 "
|
|
89
|
|
90 config_h_opts=":\
|
|
91 highpri:gnu_malloc:rel_alloc:lisp_float_type:\
|
|
92 have_x_windows:have_x11:have_x_menu:\
|
|
93 c_switch_site:sigtype:\
|
|
94 "
|
|
95
|
621
|
96 prefix=
|
605
|
97 bindir=/usr/local/bin
|
603
|
98 gnu_malloc=yes
|
|
99 lisp_float_type=yes
|
|
100
|
|
101 # The default values for the following options are guessed at after other
|
|
102 # options have been checked and given values, so we set them to null here.
|
|
103 lisppath=""
|
|
104 datadir=""
|
|
105 libdir=""
|
|
106 lockdir=""
|
|
107 window_system=""
|
|
108 have_x_menu=""
|
|
109
|
638
|
110 # Record all the arguments, so we can save them in config.status.
|
|
111 arguments="$*"
|
|
112
|
617
|
113 echo "Examining options."
|
621
|
114 while [ $# != 0 ]; do
|
|
115 arg="$1"
|
603
|
116 case "${arg}" in
|
|
117 -*)
|
|
118 # Separate the switch name from the value it's being given.
|
|
119 case "${arg}" in
|
|
120 -*=* )
|
|
121 opt=`echo ${arg} | sed 's:^-\([^=]*\)=.*$:\1:'`
|
|
122 val=`echo ${arg} | sed 's:^-[^=]*=\(.*\)$:\1:'`
|
|
123 valomitted=no
|
|
124 ;;
|
|
125 -* )
|
621
|
126 # If FOO is a boolean argument, -FOO is equivalent to
|
|
127 # -FOO=yes. Otherwise, the value comes from the next
|
|
128 # argument - see below.
|
603
|
129 opt=`echo ${arg} | sed 's:^-\(.*\)$:\1:'`
|
|
130 val="yes"
|
|
131 valomitted=yes
|
|
132 ;;
|
|
133 esac
|
|
134
|
|
135 # Make sure the argument is valid and unambiguous.
|
|
136 case ${options} in
|
|
137 *:${opt}:* ) # Exact match.
|
|
138 optvar=${opt}
|
|
139 ;;
|
|
140 *:${opt}*:${opt}*:* ) # Ambiguous prefix.
|
|
141 echo "\`-${opt}' is an ambiguous switch; it could be any of the following:"
|
|
142 echo `echo ${options} | tr ':' '\012' | grep '^'${opt}`
|
|
143 echo ${short_usage}
|
|
144 exit 1
|
|
145 ;;
|
|
146 *:${opt}*:* ) # Unambigous prefix.
|
|
147 optvar=`echo ${options} | sed 's/^.*:\('${opt}'[^:]*\):.*$/\1/'`
|
|
148 ;;
|
|
149 * )
|
|
150 (echo "\`-${opt}' is not a valid option."
|
|
151 echo "${short_usage}") | more
|
|
152 exit 1
|
|
153 ;;
|
|
154 esac
|
|
155
|
|
156 case "${optvar}" in
|
|
157 usage | help)
|
|
158 echo "${usage_message}" | more
|
|
159 exit 1
|
|
160 ;;
|
|
161 esac
|
|
162
|
|
163 # If the variable is supposed to be boolean, make sure the value
|
|
164 # given is either "yes" or "no". If not, make sure some value
|
|
165 # was given.
|
|
166 case "${boolean_opts}" in
|
|
167 *:${optvar}:* )
|
|
168 case "${val}" in
|
|
169 y | ye | yes ) val=yes ;;
|
|
170 n | no ) val=no ;;
|
|
171 * )
|
|
172 echo "The \`-${optvar}' option (\`-${opt}') is supposed to have a boolean
|
|
173 value - set it to either \`yes' or \`no'." 1>&2
|
|
174 exit 1
|
|
175 ;;
|
|
176 esac
|
|
177 ;;
|
|
178 *)
|
|
179 if [ "${valomitted}" = "yes" ]; then
|
621
|
180 if [ $# = 1 ]; then
|
|
181 (echo "${progname}: You must give a value for the \`-${opt}' option, as in
|
|
182 \`-${opt}=FOO'."
|
|
183 echo "${short_usage}") | more
|
|
184 exit 1
|
|
185 fi
|
|
186 shift; val="$1"
|
603
|
187 fi
|
|
188 ;;
|
|
189 esac
|
|
190
|
|
191 eval "${optvar}=\"${val}\""
|
|
192 ;;
|
|
193 *)
|
|
194 machine=${arg}
|
|
195 ;;
|
|
196 esac
|
621
|
197 shift
|
603
|
198 done
|
|
199
|
|
200 if [ "${machine}" = "" ]; then
|
|
201 (echo "You must specify a machine name as an argument to ${progname}."
|
|
202 echo "${short_usage}") | more
|
|
203 exit 1
|
|
204 fi
|
|
205
|
617
|
206 echo "Checking the machine."
|
603
|
207 machfile="m/${machine}.h"
|
|
208 if [ ! -r src/${machfile} ]; then
|
|
209 echo "${progname}: Emacs has no configuration info for the machine called
|
|
210 \`${machine}'. Look at etc/MACHINES for the names of machines
|
|
211 that Emacs has been ported to." 1>&2
|
|
212 exit 1
|
|
213 fi
|
|
214
|
617
|
215 echo "Checking the operating system."
|
603
|
216 if [ "${opsystem}" = "" ]; then
|
|
217
|
|
218 echo " No operating system explicitly specified."
|
617
|
219 echo " Guessing, based on machine."
|
603
|
220 # Get the default operating system to go with the specified machine.
|
|
221 opsystem=`grep 'USUAL-OPSYS="' src/${machfile} \
|
|
222 | sed 's/^.*USUAL-OPSYS="\([^"]*\)".*$/\1/'`
|
|
223
|
|
224 if [ "${opsystem}" = "" ]; then
|
|
225 echo "${progname}: Emacs's configuration files don't suggest what operating
|
|
226 system a \`${machine}' machine might run. Try specifying the
|
|
227 operating system explicitly by passing ${progname} an
|
|
228 \`-opsystem=SYSTEM-NAME' flag. Look at etc/MACHINES for the
|
|
229 names of operating systems that Emacs has been ported to." 1>&2
|
|
230 exit 1
|
|
231 fi
|
|
232
|
|
233 if [ "${opsystem}" = "note" ]; then
|
|
234 echo "The \`${machine}' machine can be used with more than one operating
|
|
235 system, and Emacs's configuration info isn't clever enough to figure
|
|
236 out which one you're running. Run ${progname} with -machine and
|
|
237 -opsystem arguments as specified below for the appropriate system.
|
|
238 (This information comes from the file \`etc/MACHINES' - see that
|
|
239 file for more detail.)
|
|
240
|
|
241 " 1>&2
|
|
242 sed < src/${machfile} -e '1,/NOTE-START/d' -e '/NOTE-END/,$d' | more
|
|
243 echo
|
|
244 exit 1
|
|
245 fi
|
|
246
|
|
247 opsysfile="s/${opsystem}.h"
|
|
248 if [ ! -r src/${opsysfile} ]; then
|
|
249 echo "${progname}: Emacs's configuration files say that the default
|
|
250 operating system for the machine \`${machine}' is \`${opsystem}',
|
|
251 but there is no configuration file for \`${opsystem}', so Emacs's
|
|
252 default info is screwed up. Try specifying the operating system
|
|
253 explicitly by passing ${progname} an \`-opsystem=SYSTEM-NAME' flag." 1>&2
|
|
254 exit 1
|
|
255 fi
|
|
256 else
|
|
257 opsysfile="s/${opsystem}.h"
|
|
258 if [ ! -r src/${opsysfile} ]; then
|
|
259 echo "${progname}: Emacs has no configuration info for the operating system
|
|
260 \`${opsystem}'. Look at etc/MACHINES for the names of operating
|
|
261 systems that Emacs has been ported to." 1>&2
|
|
262 exit 1
|
|
263 fi
|
|
264 fi
|
|
265
|
621
|
266 if [ ! "${prefix}" ]; then
|
|
267 prefix="/usr/local"
|
|
268 fi
|
|
269
|
|
270 if [ ! "${emacsdir}" ]; then
|
|
271 emacsdir="${prefix}/emacs-19.0"
|
|
272 fi
|
|
273
|
|
274 if [ ! "${datadir}" ]; then
|
|
275 datadir="${emacsdir}/etc"
|
|
276 fi
|
|
277
|
|
278 if [ ! "${lispdir}" ]; then
|
|
279 lispdir="${emacsdir}/lisp"
|
|
280 fi
|
|
281
|
|
282 if [ ! "${locallisppath}" ]; then
|
|
283 locallisppath="${emacsdir}/local-lisp"
|
|
284 fi
|
|
285
|
|
286 if [ ! "${lisppath}" ]; then
|
|
287 lisppath="${locallisppath}:${lispdir}"
|
|
288 fi
|
|
289
|
|
290 if [ ! "${buildlisppath}" ]; then
|
|
291 buildlisppath=../lisp
|
|
292 fi
|
|
293
|
|
294 if [ ! "${statedir}" ]; then
|
|
295 statedir="${emacsdir}"
|
|
296 fi
|
|
297
|
|
298 if [ ! "${lockdir}" ]; then
|
|
299 lockdir="${statedir}/lock"
|
|
300 fi
|
|
301
|
|
302 if [ "${libdir}" = "" ]; then
|
|
303 libdir="${emacsdir}/arch-lib"
|
|
304 fi
|
|
305
|
|
306 if [ ! "${mandir}" ]; then
|
|
307 mandir="/usr/man/man1"
|
|
308 fi
|
|
309
|
|
310 if [ ! "${infodir}" ]; then
|
|
311 infodir="${prefix}/info"
|
603
|
312 fi
|
|
313
|
617
|
314 echo "Checking window system."
|
603
|
315 window_system="`echo ${window_system} | tr A-Z a-z`"
|
|
316 case "${window_system}" in
|
|
317 "none" | "x11" | "x10" ) ;;
|
|
318 "x" ) window_system=x11 ;;
|
|
319 "" )
|
617
|
320 echo " No window system specifed. Looking for X Windows."
|
603
|
321 window_system=none
|
|
322 if [ -r /usr/lib/libX11.a -a -d /usr/include/X11 ]; then
|
|
323 window_system=x11
|
617
|
324 fi
|
603
|
325 ;;
|
|
326 * )
|
|
327 echo "The \`-window_system' option must be set to \`none' or \`X11'." 1>&2
|
|
328 exit 1
|
|
329 ;;
|
|
330 esac
|
|
331
|
|
332 case "${window_system}" in
|
|
333 x11 )
|
|
334 have_x_windows=yes
|
|
335 have_x11=yes
|
|
336 ;;
|
|
337 x10 )
|
|
338 have_x_windows=yes
|
|
339 have_x11=no
|
|
340 ;;
|
|
341 none )
|
|
342 have_x_windows=no
|
|
343 have_x11=no
|
|
344 ;;
|
|
345 esac
|
|
346
|
|
347 if [ "${have_x_menu}" = "" ]; then
|
|
348 have_x_menu=no
|
|
349 fi
|
|
350
|
617
|
351 echo "Checking for GCC."
|
603
|
352 case "${cc}" in
|
|
353 "" )
|
|
354 temppath=`echo $PATH | sed 's/^:/.:/
|
|
355 s/::/:.:/g
|
|
356 s/:$/:./
|
|
357 s/:/ /g'`
|
|
358 cc=`(
|
|
359 for dir in ${temppath}; do
|
|
360 if [ -f ${dir}/gcc ]; then echo gcc; exit 0; fi
|
|
361 done
|
|
362 echo cc
|
|
363 )`
|
|
364 ;;
|
|
365 esac
|
|
366
|
621
|
367 case "${cc}" in
|
|
368 "gcc" )
|
|
369 # With GCC, both O and g should default to yes, no matter what
|
|
370 # the other is.
|
|
371 case "${O},${g}" in
|
|
372 , ) O=yes; g=yes ;;
|
|
373 ,* ) O=yes; ;;
|
|
374 *, ) g=yes ;;
|
|
375 esac
|
|
376 ;;
|
|
377 "*" )
|
|
378 # With other compilers, treat them as mutually exclusive,
|
|
379 # defaulting to debug.
|
|
380 case "${O},${g}" in
|
|
381 , ) O=no ; g=yes ;;
|
|
382 ,no ) O=yes; ;;
|
|
383 ,yes ) O=no ; ;;
|
|
384 no, ) g=yes ;;
|
|
385 yes, ) g=no ;;
|
|
386 esac
|
|
387 ;;
|
603
|
388 esac
|
|
389
|
621
|
390 # What is the return type of a signal handler? We run
|
|
391 # /usr/include/signal.h through cpp and grep for the declaration of
|
|
392 # the signal function. Yuck.
|
|
393 echo "Looking for return type of signal handler functions."
|
|
394 signal_h_file=''
|
|
395 if [ -r /usr/include/signal.h ]; then
|
|
396 signal_h_file=/usr/include/signal.h
|
|
397 elif [ -r /usr/include/sys/signal.h ]; then
|
|
398 signal_h_file=/usr/include/sys/signal.h
|
|
399 fi
|
|
400 sigtype=void
|
|
401 if [ "${signal_h_file}" ]; then
|
|
402 sigpattern='[ ]*([ ]*\*[ ]*signal[ ]*('
|
|
403
|
|
404 # We make a symbolic link whose name ends in .c, so the compiler
|
|
405 # won't complain about having only been given a .h file.
|
|
406 tempcname="configure.tmp.$$.c"
|
|
407 ln -s ${signal_h_file} ${tempcname}
|
|
408 if ${cc} -E ${tempcname} | grep "int${sigpattern}" > /dev/null; then
|
|
409 sigtype=int
|
|
410 fi
|
|
411 rm ${tempcname}
|
|
412 fi
|
|
413
|
617
|
414 echo "Examining the machine- and system-dependent files to find out"
|
|
415 echo " - which libraries the lib-src programs will want, and"
|
|
416 echo " - whether the GNU malloc routines are usable."
|
|
417 tempcname="configure.tmp.$$.c"
|
603
|
418 echo '#include "src/'${machfile}'"
|
|
419 #include "src/'${opsysfile}'"
|
|
420 #ifndef LIBS_MACHINE
|
|
421 #define LIBS_MACHINE
|
|
422 #endif
|
|
423 #ifndef LIBS_SYSTEM
|
|
424 #define LIBS_SYSTEM
|
|
425 #endif
|
621
|
426 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
|
617
|
427 #ifdef SYSTEM_MALLOC
|
621
|
428 @configure@ system_malloc=yes
|
617
|
429 #else
|
621
|
430 @configure@ system_malloc=no
|
617
|
431 #endif
|
|
432 ' > ${tempcname}
|
621
|
433 eval `${cc} -E ${tempcname} \
|
|
434 | grep '@configure@' \
|
|
435 | sed -e 's/^@configure@//'`
|
617
|
436 rm ${tempcname}
|
|
437
|
|
438 # Do the opsystem or machine files prohibit the use of the GNU malloc?
|
|
439 if [ "${system_malloc}" = "yes" ]; then
|
|
440 gnu_malloc=no
|
|
441 gnu_malloc_reason="
|
|
442 (The GNU allocators don't work with this machine and/or operating system.)"
|
|
443 fi
|
|
444
|
|
445 if [ ! "${rel_alloc}" ]; then
|
|
446 rel_alloc=${gnu_malloc}
|
|
447 fi
|
603
|
448
|
|
449 rm -f config.status
|
|
450 set -e
|
|
451
|
|
452 # Make the proper settings in the config file.
|
617
|
453 echo "Making src/config.h from src/config.h.in"
|
603
|
454 if [ "${highpri}" != "" ]; then
|
|
455 highpri="(-${highpri})"
|
|
456 fi
|
|
457 case "${g}" in
|
|
458 "yes" ) c_switch_site="${c_switch_site} -g" ;;
|
|
459 esac
|
|
460 case "${O}" in
|
|
461 "yes" ) c_switch_site="${c_switch_site} -O" ;;
|
|
462 esac
|
|
463 sed_flags="-e 's:@machine@:${machfile}:'"
|
|
464 sed_flags="${sed_flags} -e 's:@opsystem@:${opsysfile}:'"
|
|
465 for flag in `echo ${config_h_opts} | tr ':' ' '`; do
|
621
|
466 cflagname=`echo ${flag} \
|
|
467 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
|
603
|
468 val=`eval echo '$'${flag}`
|
|
469 case ${val} in
|
|
470 no | "")
|
|
471 f="-e 's:.*#define ${cflagname}.*:/\\* #define ${cflagname} \\*/:'"
|
|
472 ;;
|
|
473 yes)
|
|
474 f="-e 's:.*#define ${cflagname}.*:#define ${cflagname}:'"
|
|
475 ;;
|
|
476 *)
|
|
477 f="-e 's:.*#define ${cflagname}.*:#define ${cflagname} ${val}:'"
|
|
478 ;;
|
|
479 esac
|
|
480 sed_flags="${sed_flags} ${f}"
|
|
481 done
|
704
|
482 rm -f src/config.h.tmp
|
638
|
483 eval '/bin/sed '${sed_flags}' < src/config.h.in > src/config.h.tmp'
|
|
484 ./move-if-change src/config.h.tmp src/config.h
|
617
|
485 # Remind people not to edit this.
|
|
486 chmod -w src/config.h
|
603
|
487
|
|
488 # Modify the parameters in the top makefile.
|
617
|
489 echo "Producing ./Makefile from ./Makefile.in."
|
704
|
490 rm -f Makefile.tmp
|
617
|
491 (echo "# This file is generated by \`${progname}' from \`./Makefile.in'.
|
|
492 # If you are thinking about editing it, you should seriously consider
|
|
493 # editing \`./Makefile.in' itself, or running \`${progname}' instead."
|
|
494 /bin/sed < Makefile.in \
|
|
495 -e '/^# DIST: /d' \
|
621
|
496 -e 's;^\(prefix=\).*$;\1'"${prefix};" \
|
617
|
497 -e 's;^\(bindir=\).*$;\1'"${bindir};" \
|
621
|
498 -e 's;^\(emacsdir=\).*$;\1'"${emacsdir};" \
|
|
499 -e 's;^\(datadir=\).*$;\1'"${datadir};" \
|
|
500 -e 's;^\(lispdir=\).*$;\1'"${lispdir};" \
|
|
501 -e 's;^\(locallisppath=\).*$;\1'"${locallisppath};" \
|
617
|
502 -e 's;^\(lisppath=\).*$;\1'"${lisppath};" \
|
621
|
503 -e 's;^\(buildlisppath=\).*$;\1'"${buildlisppath};" \
|
|
504 -e 's;^\(statedir=\).*$;\1'"${statedir};" \
|
617
|
505 -e 's;^\(lockdir=\).*$;\1'"${lockdir};" \
|
621
|
506 -e 's;^\(libdir=\).*$;\1'"${libdir};" \
|
|
507 -e 's;^\(mandir=\).*$;\1'"${mandir};" \
|
|
508 -e 's;^\(infodir=\).*$;\1'"${infodir};" \
|
638
|
509 ) > ./Makefile.tmp
|
|
510 ./move-if-change Makefile.tmp Makefile
|
617
|
511 # Remind people not to edit this.
|
|
512 chmod -w ./Makefile
|
603
|
513
|
|
514 # Modify the parameters in the `build-install' script.
|
617
|
515 echo "Producing ./build-install from ./build-install.in."
|
704
|
516 rm -f ./build-install.tmp
|
617
|
517 (echo "# This file is generated by \`${progname}' from \`./build-install.in'.
|
|
518 # If you are thinking about editing it, you should seriously consider
|
|
519 # editing \`./build-install.in' itself, or running \`${progname}' instead."
|
|
520 /bin/sed < build-install.in \
|
621
|
521 -e 's;^\(prefix=\).*$;\1'"${prefix};" \
|
|
522 -e 's;^\(bindir=\).*$;\1'"${bindir};" \
|
|
523 -e 's;^\(lisppath=\).*$;\1'"${lisppath};" \
|
|
524 -e 's;^\(datadir=\).*$;\1'"${datadir};" \
|
|
525 -e 's;^\(lockdir=\).*$;\1'"${lockdir};" \
|
638
|
526 -e 's;^\(libdir=\).*$;\1'"${libdir};") > ./build-install.tmp
|
|
527 ./move-if-change build-install.tmp build-install
|
617
|
528 # Remind people not to edit this.
|
|
529 chmod -w build-install
|
|
530 chmod +x build-install
|
603
|
531
|
|
532 # Modify the parameters in the src makefile.
|
617
|
533 echo "Producing src/Makefile from src/Makefile.in."
|
704
|
534 rm -f src/Makefile.tmp
|
617
|
535 (echo "# This file is generated by \`${progname}' from \`Makefile.in'.
|
|
536 # If you are thinking about editing it, you should seriously consider
|
|
537 # editing \`Makefile.in' itself, or running \`${progname}' instead."
|
|
538 /bin/sed < src/Makefile.in \
|
638
|
539 -e 's;^\(CC[ ]*=\).*$;\1'"${cc};") > src/Makefile.tmp
|
|
540 ./move-if-change src/Makefile.tmp src/Makefile
|
617
|
541 # Remind people not to edit this.
|
|
542 chmod -w src/Makefile
|
603
|
543
|
|
544 # Modify the parameters in the lib-src makefile.
|
617
|
545 echo "Producing lib-src/Makefile from lib-src/Makefile.in."
|
704
|
546 rm -f lib-src/Makefile.tmp
|
617
|
547 (echo "# This file is generated by \`${progname}' from \`Makefile.in'.
|
|
548 # If you are thinking about editing it, you should seriously consider
|
|
549 # editing \`Makefile.in' itself, or running \`${progname}' instead."
|
|
550 /bin/sed < lib-src/Makefile.in \
|
|
551 -e 's;^\(CFLAGS=\).*$;\1'"${c_switch_site};" \
|
|
552 -e 's;^\(LOADLIBES=\).*$;\1'"${libsrc_libs};" \
|
638
|
553 -e 's;^\(CC=\).*$;\1'"${cc};") > lib-src/Makefile.tmp
|
|
554 ./move-if-change lib-src/Makefile.tmp lib-src/Makefile
|
617
|
555 # Remind people not to edit this.
|
|
556 chmod -w lib-src/Makefile
|
|
557
|
603
|
558
|
605
|
559 # Create a verbal description of what we have done.
|
621
|
560 if [ "${highpri}" ]; then
|
|
561 desc_highpri="${highpri}"
|
|
562 else
|
|
563 desc_highpri="none"
|
|
564 fi
|
605
|
565 message="# Configured for machine \`${machine}' running \`${opsystem}'.
|
|
566 # The following values have been set in ./Makefile and ./build-install:
|
|
567 # Executables will be placed in
|
|
568 # ${bindir}.
|
|
569 # Emacs's lisp search path will be
|
|
570 # \`${lisppath}'.
|
|
571 # Emacs will look for its architecture-independent data in
|
|
572 # ${datadir}.
|
|
573 # Emacs will look for its utility programs and other architecture-
|
|
574 # dependent data in
|
|
575 # ${libdir}.
|
|
576 # Emacs will keep track of file-locking in
|
|
577 # ${lockdir}.
|
|
578 # The following values have been set in src/config.h:
|
621
|
579 # At how much higher than normal priority should Emacs run? ${desc_highpri}
|
605
|
580 # Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason}
|
|
581 # Should Emacs use the relocating allocator for buffers? ${rel_alloc}
|
|
582 # Should Emacs support a floating point Elisp type? ${lisp_float_type}
|
|
583 # What window system should Emacs use? ${window_system}
|
|
584 # Should Emacs support mouse menus, which require X11? ${have_x_menu}
|
|
585 # What compiler should emacs be built with? ${cc}
|
|
586 # Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}"
|
|
587
|
|
588 # Document the damage we have done by writing config.status.
|
|
589
|
|
590 echo '#!/bin/sh' > config.status
|
|
591
|
|
592 echo "# This file is generated by \`${progname}.'
|
|
593 # If you are thinking about editing it, you should seriously consider
|
|
594 # running \`${progname}' instead.
|
|
595 " >> config.status
|
|
596 echo "${message}" >> config.status
|
638
|
597 echo "'./${progname}' ${arguments} "'$@' >> config.status
|
617
|
598 # Remind people not to edit this.
|
|
599 chmod -w config.status
|
605
|
600 chmod +x config.status
|
|
601
|
|
602 # Print the description.
|
603
|
603 echo
|
605
|
604 echo "${message}" | sed -e 's/^# //'
|
603
|
605
|
|
606 exit 0
|