2 ### The above line is deliberately left blank. If it starts with a #,
3 ### some CSH's will think this is a csh script.
5 #### Configuration script for GNU Emacs
6 #### Copyright (C) 1992 Free Software Foundation, Inc.
8 ### This file is part of GNU Emacs.
10 ### GNU Emacs is free software; you can redistribute it and/or modify
11 ### it under the terms of the GNU General Public License as published by
12 ### the Free Software Foundation; either version 1, or (at your option)
13 ### any later version.
15 ### GNU Emacs is distributed in the hope that it will be useful,
16 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ### GNU General Public License for more details.
20 ### You should have received a copy of the GNU General Public License
21 ### along with GNU Emacs; see the file COPYING. If not, write to
22 ### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 ### Shell script to edit files and make symlinks in preparation for
27 ### Usage: configure config_name
29 ### If configure succeeds, it leaves its status in config.status.
30 ### If configure fails after disturbing the status quo,
31 ### config.status is removed.
34 ### Remove any more than one leading "." element from the path name.
35 ### If we don't remove them, then another "./" will be prepended to
36 ### the file name each time we use config.status, and the program name
37 ### will get larger and larger. This wouldn't be a problem, except
38 ### that since progname gets recorded in all the Makefiles this script
39 ### produces, move-if-change thinks they're different when they're
42 ### It would be nice if we could put the ./ in a \( \) group and then
43 ### apply the * operator to that, so we remove as many leading ./././'s
44 ### as are present, but some seds (like Ultrix's sed) don't allow you to
45 ### apply * to a \( \) group. Bleah.
46 progname="`echo $0 | sed 's:^\./\./:\./:'`"
51 short_usage="Type \`${progname} --usage' for more information about options."
53 long_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
55 Set compilation and installation parameters for GNU Emacs, and report.
56 CONFIGURATION specifies the machine and operating system to build for.
58 ${progname} sparc-sun-sunos4.1
59 configures Emacs to build on a Sun Sparc machine running SunOS 4.1, and
60 ${progname} decstation
61 configures Emacs to run on a DECstation running Ultrix. See \`etc/MACHINES'.
63 The --with-x, --with-x11 and --with-x10 options specify what window
64 system to use; if all are omitted, use X11 if present. If you
65 don't want X, specify \`--with-x=no'.
67 The --x-includes=DIR option tells the build process where to search for
68 the X Windows header files. If this option is omitted, the
69 build process assumes they exist in a directory the compiler
72 The --x-libraries=DIR option tells the build process where to look for
73 the X windows libraries. If this option is omitted, the build
74 process assumes they are in a directory the compiler checks by
77 The --with-gcc option says that the build process should use GCC to
78 compile Emacs. If you have GCC but don't want to use it,
79 specify \`--with-gcc=no'. \`configure' tries to guess whether
80 or not you have GCC by searching your executable path, but if
81 it guesses incorrectly, you may need to use this.
83 The --srcdir=DIR option specifies that the configuration and build
84 processes should look for the Emacs source code in DIR, when
85 DIR is not the current directory. This option doesn't work yet.
87 If successful, ${progname} leaves its status in config.status. If
88 unsuccessful after disturbing the status quo, it removes config.status."
91 #### Option processing.
93 ### These are the names of CPP symbols we want to define or leave undefined
94 ### in src/config.h; their values are given by the shell variables of the same
97 HAVE_X_WINDOWS HAVE_X11 HAVE_X_MENU \
98 SIGTYPE GNU_MALLOC REL_ALLOC LISP_FLOAT_TYPE HAVE_CONST\
99 LD_SWITCH_X_SITE C_SWITCH_X_SITE HAVE_XFREE386"
101 ### Record all the arguments, so we can save them in config.status.
104 while [ $# != 0 ]; do
108 ## Anything starting with a hyphen we assume is an option.
111 ## Separate the switch name from the value it's being given.
114 opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
115 val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
119 ## If FOO is a boolean argument, --FOO is equivalent to
120 ## --FOO=yes. Otherwise, the value comes from the next
121 ## argument - see below.
122 opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
128 ## Change `-' in the option name to `_'.
129 opt="`echo ${opt} | tr - _`"
131 ## Process the option.
134 ## Has the user specified which window systems they want to support?
135 "with_x" | "with_x11" | "with_x10" )
136 ## Make sure the value given was either "yes" or "no".
138 y | ye | yes ) val=yes ;;
141 (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
142 Set it to either \`yes' or \`no'."
143 echo "${short_usage}") >&2
147 eval "${opt}=\"${val}\""
150 ## Has the user specified whether or not they want GCC?
152 ## Make sure the value given was either "yes" or "no".
154 y | ye | yes ) val=yes ;;
157 (echo "${progname}: the \`--${opt}' option is supposed to have a boolean value.
158 Set it to either \`yes' or \`no'."
159 echo "${short_usage}") >&2
163 eval "${opt}=\"${val}\""
166 ## Has the user specified a source directory?
168 ## If the value was omitted, get it from the next argument.
169 if [ "${valomitted}" = "yes" ]; then
170 ## Get the next argument from the argument list, if there is one.
172 (echo "${progname}: You must give a value for the \`--${opt}' option, as in
174 echo "${short_usage}") >&2
181 echo "${progname}: Beware - the \`--srcdir' option doesn't work yet." >&2
184 ## Has the user tried to tell us where the X files are?
185 ## I think these are dopey, but no less than three alpha
186 ## testers, at large sites, have said they have their X files
187 ## installed in odd places.
189 ## If the value was omitted, get it from the next argument.
190 if [ "${valomitted}" = "yes" ]; then
191 ## Get the next argument from the argument list, if there is one.
193 (echo "${progname}: You must give a value for the \`--${opt}' option, as in
195 echo "${short_usage}") >&2
201 C_SWITCH_X_SITE="-I${x_includes}"
204 ## If the value was omitted, get it from the next argument.
205 if [ "${valomitted}" = "yes" ]; then
206 ## Get the next argument from the argument list, if there is one.
208 (echo "${progname}: You must give a value for the \`--${opt}' option, as in
210 echo "${short_usage}") >&2
216 LD_SWITCH_X_SITE="-L${x_libraries}"
219 ## Has the user asked for some help?
221 echo "${long_usage}" | more
225 ## We ignore all other options silently.
229 ## Anything not starting with a hyphen we assume is a
230 ## configuration name.
239 if [ "${configuration}" = "" ]; then
240 (echo "${progname}: You must specify a configuration name as an argument."
241 echo "${short_usage}") >&2
246 #### Decide where the source is.
249 ## If it's not specified, see if `.' or `..' might work.
251 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
254 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
255 srcdir=`(cd .. ; pwd)`
258 ${progname}: Neither the current directory nor its parent seem to
259 contain the Emacs sources. If you do not want to build Emacs in its
260 source tree, you should run \`${progname}' in the directory in which
261 you wish to build Emacs, using its \`--srcdir' option to say where the
262 sources may be found."
263 echo "${short_usage}") >&2
269 ## Otherwise, check if the directory they specified is okay.
271 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
273 ${progname}: The directory specified with the \`--srcdir' option,
274 \`${srcdir}', doesn't seem to contain the Emacs sources. You should
275 either run the \`${progname}' script at the top of the Emacs source
276 tree, or use the \`--srcdir' option to specify where the Emacs sources
278 echo "${short_usage}") >&2
285 ### Make the necessary directories, if they don't exist.
286 if [ ! -d ./src ]; then
289 if [ ! -d ./lib-src ]; then
292 if [ ! -d ./cpp ]; then
295 if [ ! -d ./oldXMenu ]; then
300 #### Given the configuration name, set machfile and opsysfile to the
301 #### names of the m/*.h and s/*.h files we should use.
303 ### Canonicalize the configuration name.
304 echo "Checking the configuration name."
305 if configuration=`${srcdir}/config.sub "${configuration}"` ; then : ; else
309 ### If you add support for a new configuration, add code to this
310 ### switch statement to recognize your configuration name and select
311 ### the appropriate operating system and machine description files.
313 ### You would hope that you could choose an m/*.h file pretty much
314 ### based on the machine portion of the configuration name, and an s-
315 ### file based on the operating system portion. However, it turns out
316 ### that each m/*.h file is pretty manufacturer-specific - for
317 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
318 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
319 ### machines. So we basically have to have a special case for each
320 ### configuration name.
322 ### As far as handling version numbers on operating systems is
323 ### concerned, make sure things will fail in a fixable way. If
324 ### /etc/MACHINES doesn't say anything about version numbers, be
325 ### prepared to handle anything reasonably. If version numbers
326 ### matter, be sure /etc/MACHINES says something about it.
328 ### Eric Raymond says we should accept strings like "sysvr4" to mean
329 ### "System V Release 4"; he writes, "The old convention encouraged
330 ### confusion between `system' and `release' levels'."
332 machine='' opsys='' unported='false'
333 case "${configuration}" in
336 ## Strictly speaking, we need the version of the alliant operating
337 ## system to choose the right machine file, but currently the
338 ## configuration name doesn't tell us enough to choose the right
339 ## one; we need to give alliants their own operating system name to
340 ## do this right. When someone cares, they can help us.
342 machine=alliant4 opsys=bsd4-2
345 machine=alliant-2800 opsys=bsd4-3
350 machine=altos opsys=usg5-2
355 machine=amdahl opsys=usg5-2-2
358 ## Appallings - I mean, Apollos - running Domain
360 machine=apollo opsysfile=bsd4-2.h
363 ## AT&T 3b2, 3b5, 3b15, 3b20
365 machine=att3b opsys=usg5-2-2
368 ## AT&T 3b1 - The Mighty Unix PC!
370 machine=7300 opsys=usg5-2-2
375 machine=sps7 opsys=usg5-2
378 ## CCI 5/32, 6/32 -- see "Tahoe".
381 ## I don't know what configuration name to use for this; config.sub
382 ## doesn't seem to know anything about it. Hey, Celerity users, get
384 celerity-celerity-bsd* )
385 machine=celerity opsys=bsd4-2
389 ## What operating systems does this chip run that Emacs has been
393 ## We'll use the catch-all code at the bottom to guess the
399 machine=convex opsys=bsd4-3
404 machine=intel386 opsys=usg5-3
408 cydra*-cydrome-sysv* )
409 machine=cydra5 opsys=usg5-3
413 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0 | mips-dec-bsd4.2 )
414 machine=pmax opsys=bsd4-2
416 mips-dec-ultrix* | mips-dec-bsd* )
417 machine=pmax opsys=bsd4-3
420 machine=pmax opsys=osf1
423 ## Motorola Delta machines
424 m68*-motorola-sysv* )
425 machine=delta opsys=usg5-3
427 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
428 machine=delta88k opsys=usg5-3
433 machine=dual opsys=usg5-2
436 machine=dual opsys=unipl5-2
441 machine=elxsi opsys=usg5-2
446 machine=ns16000 opsys=umax
449 ## The GEC 93 - apparently, this port isn't really finished yet.
451 ## Gould Power Node and NP1
453 machine=gould opsys=bsd4-2
456 machine=gould opsys=bsd4-3
459 machine=gould-np1 opsys=bsd4-3
463 xps*-honeywell-sysv* )
464 machine=xps100 opsys=usg5-2
467 ## HP 9000 series 200 or 300
469 machine=hp9000s300 opsys=bsd4-3
471 ## HP/UX 8 doesn't run on these machines, so use HP/UX 7.
473 machine=hp9000s300 opsys=hpux
476 ## HP 9000 series 800, running HP/UX
478 machine=hp9000s800 opsys=hpux
483 machine=orion opsys=bsd4-2
486 machine=orion105 opsys=bsd4-2
491 machine=ibmps2-aix opsys=usg5-2-2
494 machine=ibmps2-aix opsys=usg5-3
497 machine=ibmrs6000 opsys=aix3-1
499 rs6000-ibm-aix3.2 | rs6000-ibm-aix* )
500 machine=ibmrs6000 opsys=aix3-2
503 machine=ibmrt opsys=bsd4-2
506 machine=ibmrt-aix opsys=usg5-2-2
509 ## Integrated Solutions `Optimum V'
511 machine=isi-ov opsys=bsd4-2
514 machine=isi-ov opsys=bsd4-3
517 ## Intel 386 machines where we do care about the manufacturer
518 i[34]86-intsys-sysv* )
519 machine=is386 opsys=usg5-2-2
521 ## Intel 386 machines where we don't care about the manufacturer
524 case "${configuration}" in
525 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
526 *-isc2.2 ) opsys=isc2-2 ;;
527 *-isc* ) opsys=isc3-0 ;;
528 *-esix* ) opsys=esix ;;
529 *-xenix* ) opsys=xenix ;;
530 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
534 ## Silicon Graphics machines
535 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
537 machine=irist opsys=iris3-5
539 m68*-sgi-iris3.6 | m68*-sgi-iris*)
540 machine=irist opsys=iris3-6
544 machine=iris4d opsys=irix3-3
546 mips-sgi-irix4.* | mips-sgi-irix* )
547 machine=iris4d opsys=irix4-0
552 machine=masscomp opsys=rtu
557 machine=mega68 opsys=bsd4-2
560 ## Workstations sold by MIPS
561 ## This is not necessarily all workstations using the MIPS processor -
562 ## Irises are produced by SGI, and DECstations by DEC.
564 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
565 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
566 ## it gives for choosing between the alternatives seems to be "Use
567 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
568 ## the BSD world." I'll assume that these are instructions for
569 ## handling two odd situations, and that every other situation
570 ## should use mips.h and usg5-2-2, they being listed first.
572 machine=mips4 opsys=usg5-2-2
575 machine=mips opsys=bsd4-3
578 machine=mips opsys=usg5-2-2
581 ## The complete machine from National Semiconductor
583 machine=ns32000 opsys=usg5-2
587 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
588 machine=tower32 opsys=usg5-2-2
590 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
591 machine=tower32v3 opsys=usg5-3
596 machine=targon31 opsys=usg5-2-2
601 machine=nu opsys=usg5-2
606 machine=plexus opsys=usg5-2
611 machine=i386 opsys=usg5-3
615 ## I don't really have any idea what sort of processor the Pyramid has,
616 ## so I'm assuming it is its own architecture.
617 pyramid-pyramid-bsd* )
618 machine=pyramid opsys=bsd4-2
622 ns32k-sequent-bsd4.2 )
623 machine=sequent opsys=bsd4-2
625 ns32k-sequent-bsd4.3 )
626 machine=sequent opsys=bsd4-3
630 machine=symmetry opsys=bsd4-3
635 machine=news opsys=bsd4-2
638 machine=news opsys=bsd4-3
641 machine=news-risc opsys=bsd4-3
646 machine=stride opsys=usg5-2
650 *-sun-sunos* | *-sun-bsd* )
651 case "${configuration}" in
652 m68*-sunos1* ) machine=sun1 ;;
653 m68*-sunos2* ) machine=sun2 ;;
654 m68* ) machine=sun3 ;;
655 i[34]86* ) machine=sun386 ;;
656 sparc* ) machine=sparc ;;
659 case "${configuration}" in
660 *-sunos4.0* ) opsys=sunos4-0 ;;
661 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
668 machine=tad68k opsys=usg5-3
673 machine=tahoe opsys=bsd4-2
676 machine=tahoe opsys=bsd4-3
679 ## Tandem Integrity S2
681 machine=tandem-s2 opsys=usg5-3
684 ## Tektronix 16000 box (6130?)
685 ns16k-tektronix-bsd* )
686 machine=ns16000 opsys=bsd4-2
689 ## src/m/tek4300.h hints that this is a m68k machine.
690 m68*-tektronix-bsd* )
691 machine=tex4300 opsys=bsd4-3
695 ## We seem to have lost the machine-description file titan.h!
697 machine=titan opsys=usg5-3
700 ## Ustation E30 (SS5E)
701 m68*-unisys-uniplus* )
702 machine=ustation opsystem=unipl5-2
708 case "${configuration}" in
709 *-bsd4.1 ) opsys=bsd4-1 ;;
710 *-bsd4.2 | *-ultrix[0-3].* | *-ultrix4.0 ) opsys=bsd4-2 ;;
711 *-bsd4.3 | *-ultrix* ) opsys=bsd4-3 ;;
712 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
713 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
714 *-vms* ) opsys=vms ;;
720 ns16k-whitechapel-* )
722 ## We don't know what sort of OS runs on these; we'll let the
723 ## operating system guessing code below try.
728 machine=wicat opsys=usg5-2
736 ### If the code above didn't choose an operating system, just choose
737 ### an operating system based on the configuration name. You really
738 ### only want to use this when you have no idea what the right
739 ### operating system is; if you know what operating systems a machine
740 ### runs, it's cleaner to make it explicit in the case statement
742 if [ ! "${opsys}" ]; then
743 case "${configuration}" in
744 *-bsd4.[01] ) opsys=bsd4-1 ;;
745 *-bsd4.2 ) opsys=bsd4-2 ;;
746 *-bsd4.3 ) opsys=bsd4-3 ;;
747 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
748 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
749 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
750 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;;
751 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;;
759 (echo "${progname}: Emacs hasn't been ported to \`${configuration}' systems."
760 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
765 machfile="m/${machine}.h"
766 opsysfile="s/${opsys}.h"
769 #### Choose a window system.
770 echo "Checking window system."
774 window_system=${window_system}x11
777 window_system=${window_system}none
779 case "${with_x11}" in
781 window_system=${window_system}x11
784 case "${with_x10}" in
786 window_system=${window_system}x10
790 case "${window_system}" in
791 "none" | "x11" | "x10" ) ;;
793 echo " No window system specifed. Looking for X Windows."
795 if [ -r /usr/lib/libX11.a \
796 -o -d /usr/include/X11 \
797 -o -d /usr/X386/include]; then
802 echo "Don\'t specify the window system more than once." >&2
807 case "${window_system}" in
821 echo " Using no window system."
825 ### If we're using X11, we should use the X menu package.
833 ### Check for XFree386. It needs special hacks.
834 case ${window_system} in
836 if [ -d /usr/X386/include ]; then
838 if [ "${C_SWITCH_X_SITE}" = "" ]; then
839 C_SWITCH_X_SITE="-I/usr/X386/include
845 #### Choose a compiler.
846 echo "Checking compilers."
847 if [ "${with_gcc}" = "" ]; then
848 echo " Searching load path for GCC."
849 temppath=`echo $PATH | sed 's/^:/.:/
854 for dir in ${temppath}; do
855 if [ -f ${dir}/gcc ]; then echo gcc; exit 0; fi
861 "yes" ) default_cc="gcc" ;;
862 "no" ) default_cc="cc" ;;
866 case "${default_cc}" in
869 default_cflags='-g -O'
872 echo " Using the system's CC."
878 #### Does this compiler support the `const' keyword?
879 #### The code for this test was adapted from autoconf's test.
880 echo "Checking if the compiler supports \`const'."
882 compile='${default_cc} conftest.c -o conftest >/dev/null 2>&1'
884 main() { exit(0); } t() { /* Ultrix mips cc rejects this. */
885 typedef int charset[2]; const charset x;
886 /* SunOS 4.1.1 cc rejects this. */
887 char const *const *p;
889 /* HPUX 7.0 cc rejects these. */
891 p2 = (char const* const*) p;
893 if eval $compile; then
897 echo " It doesn't seem to."
902 #### What is the return type of a signal handler?
904 ### We run /usr/include/signal.h through cpp and grep for the
905 ### declaration of the signal function. Yuck.
906 echo "Looking for return type of signal handler functions."
908 if [ -r /usr/include/signal.h ]; then
909 signal_h_file=/usr/include/signal.h
910 elif [ -r /usr/include/sys/signal.h ]; then
911 signal_h_file=/usr/include/sys/signal.h
914 if [ "${signal_h_file}" ]; then
915 sigpattern='[ ]*([ ]*\*[ ]*signal[ ]*('
917 ## We make a copy whose name ends in .c, so the compiler
918 ## won't complain about having only been given a .h file.
919 tempcname="configure.tmp.$$.c"
920 cp ${signal_h_file} ${tempcname}
921 if ${default_cc} -E ${tempcname} | grep "int${sigpattern}" > /dev/null; then
926 echo " Guessing that signals return \`${SIGTYPE}'."
929 #### Extract some information from the operating system and machine files.
931 echo "Examining the machine- and system-dependent files to find out"
932 echo " - which libraries the lib-src programs will want, and"
933 echo " - whether the GNU malloc routines are usable."
934 tempcname="configure.tmp.$$.c"
936 #include "'${srcdir}'/src/'${opsysfile}'"
937 #include "'${srcdir}'/src/'${machfile}'"
944 @configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
946 @configure@ system_malloc=yes
948 @configure@ system_malloc=no
951 eval `${default_cc} -E ${tempcname} \
952 | grep '@configure@' \
953 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
956 # Do the opsystem or machine files prohibit the use of the GNU malloc?
957 # Assume not, until told otherwise.
959 if [ "${system_malloc}" = "yes" ]; then
962 (The GNU allocators don't work with this system configuration.)"
965 if [ ! "${REL_ALLOC}" ]; then
966 REL_ALLOC=${GNU_MALLOC}
972 #### Find out which version of Emacs this is.
973 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
974 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
975 if [ ! "${version}" ]; then
976 echo "${progname}: can't find current emacs version in
977 \`${srcdir}/lisp/version.el'." >&2
982 #### Make the proper settings in `src/config.h'.
986 echo "Making \`./src/config.h' from \`${srcdir}/src/config.h.in'."
987 sed_flags="-e 's:@machine@:${machfile}:' -e 's:@opsystem@:${opsysfile}:'"
989 for flag in ${config_h_opts}; do
990 val=`eval echo '$'${flag}`
993 f="-e 's:.*#define ${flag}.*:/\\* #define ${flag} \\*/:'"
996 f="-e 's:.*#define ${flag}.*:#define ${flag}:'"
999 f="-e 's:.*#define ${flag}.*:#define ${flag} ${val}:'"
1002 sed_flags="${sed_flags} ${f}"
1005 rm -f ./src/config.h.tmp
1006 (echo "/* This file is generated by \`${progname}' from"
1007 echo " \`${srcdir}/src/config.h.in'."
1008 echo " If you are thinking about editing it, you should seriously consider"
1009 echo " running \`${progname} instead, or editing"
1010 echo " \`${srcdir}/src/config.h.in' itself."
1011 eval '/bin/sed '${sed_flags}' < "${srcdir}/src/config.h.in"'
1012 ) > src/config.h.tmp
1013 ${srcdir}/move-if-change src/config.h.tmp src/config.h
1014 ### Remind people not to edit this.
1015 chmod -w src/config.h
1018 #### Modify the parameters in the top-level Makefile.
1019 echo "Producing \`Makefile' from \`${srcdir}/Makefile.in'."
1022 # This file is generated by \`${progname}' from
1023 # \`${srcdir}/Makefile.in'.
1024 # If you are thinking about editing it, you should seriously consider
1025 # running \`${progname}' instead, or editing
1026 # \`${srcdir}/Makefile.in' itself."
1027 /bin/sed < ${srcdir}/Makefile.in \
1028 -e 's|^configname *=.*$|configname='"${configuration}"'|' \
1029 -e 's|^version *=.*$|version='"${version}"'|' \
1030 -e 's|^srcdir *=.*$|srcdir='"${srcdir}"'|' \
1031 -e 's|^CC *=.*$|CC='"${default_cc}"'|' \
1032 -e 's|^CONFIG_CFLAGS *=.*$|CONFIG_CFLAGS='"${default_cflags}"'|' \
1033 -e 's|^LOADLIBES *=.*$|LOADLIBES='"${libsrc_libs}"'|' \
1034 -e '/^# DIST: /d') > Makefile.tmp
1035 ${srcdir}/move-if-change Makefile.tmp Makefile
1037 ### I'm commenting out this section until I bring the `build-install' script
1038 ### into line with the rest of the configuration stuff.
1040 ### # Modify the parameters in the `build-install' script.
1041 ### echo "Producing \`./build-install' from \`${srcdir}/build-install.in'."
1042 ### rm -f ./build-install.tmp
1044 ### # This file is generated by \`${progname}' from \`${srcdir}/build-install.in'.
1045 ### # If you are thinking about editing it, you should seriously consider
1046 ### # editing \`./build-install.in' itself, or running \`${progname}' instead."
1047 ### /bin/sed < ${srcdir}/build-install.in \
1048 ### -e 's;^\(prefix=\).*$;\1'"${prefix};" \
1049 ### -e 's;^\(bindir=\).*$;\1'"${bindir};" \
1050 ### -e 's;^\(lisppath=\).*$;\1'"${lisppath};" \
1051 ### -e 's;^\(datadir=\).*$;\1'"${datadir};" \
1052 ### -e 's;^\(lockdir=\).*$;\1'"${lockdir};" \
1053 ### -e 's;^\(libdir=\).*$;\1'"${libdir};") > ./build-install.tmp
1054 ### ${srcdir}/move-if-change build-install.tmp build-install
1055 ### # Remind people not to edit this.
1056 ### chmod -w build-install
1057 ### chmod +x build-install
1060 #### Describe the results.
1062 ### Create a verbal description of what we have done.
1064 message="Configured for \`${configuration}'.
1066 What operating system and machine description files should Emacs use?
1067 \`${opsysfile}' and \`${machfile}'
1068 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
1069 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
1070 What window system should Emacs use? ${window_system}
1071 What compiler should emacs be built with? ${default_cc}
1072 Should the compilation use \`-g' and/or \`-O'? ${default_cflags-neither}${x_includes+
1073 Where do we find X Windows header files? }${x_includes}${x_libraries+
1074 Where do we find X Windows libraries? }${x_libraries}"
1076 ### Write config.status, documenting the damage we have done.
1080 ### This file is generated by \`${progname}.'
1081 ### If you are thinking about editing it, you should seriously consider
1082 ### running \`${progname}' instead.
1084 echo "${message}" | sed -e 's/^/# /'
1085 echo "exec '${progname}' ${arguments} "'$@') > config.status
1087 ### Remind people not to edit this.
1088 chmod -w config.status
1089 chmod +x config.status
1091 ### Print the description.