entered into RCS
[bpt/emacs.git] / configure1.in
CommitLineData
fa97f756 1dnl This is an autoconf script.
8fc40e80
JB
2dnl To rebuild the `configure' script from this, execute the command
3dnl autoconf
4dnl in the directory containing this script. You must have autoconf
5dnl version 1.4 or later.
6dnl
7dnl The following text appears in the resulting `configure' script,
8dnl explaining how to rebuild it.
de5d70c1 9[#!/bin/sh
0c22fbca
JB
10#### Configuration script for GNU Emacs
11#### Copyright (C) 1992 Free Software Foundation, Inc.
12
8fc40e80
JB
13### Don't edit this script!
14### This script was automatically generated by the `autoconf' program
15### from the file `./configure.in'.
16### To rebuild it, execute the command
17### autoconf
18### in the this directory. You must have autoconf version 1.4 or later.
19
0c22fbca
JB
20### This file is part of GNU Emacs.
21
22### GNU Emacs is free software; you can redistribute it and/or modify
23### it under the terms of the GNU General Public License as published by
24### the Free Software Foundation; either version 1, or (at your option)
25### any later version.
26
27### GNU Emacs is distributed in the hope that it will be useful,
28### but WITHOUT ANY WARRANTY; without even the implied warranty of
29### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30### GNU General Public License for more details.
31
32### You should have received a copy of the GNU General Public License
33### along with GNU Emacs; see the file COPYING. If not, write to
34### the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
35
7d99494c
JB
36
37### Since Emacs has configuration requirements that autoconf can't
38### meet, this file is an unholy marriage of custom-baked
44ee550f 39### configuration code and autoconf macros.
7d99494c
JB
40###
41### We use the m4 quoting characters [ ] (as established by the
42### autoconf system) to include large sections of raw sewage - Oops, I
43### mean, shell code - in the final configuration script.
0c22fbca
JB
44###
45### Usage: configure config_name
46###
47### If configure succeeds, it leaves its status in config.status.
48### If configure fails after disturbing the status quo,
49### config.status is removed.
0c22fbca
JB
50
51
3647c171
JB
52### Remove any more than one leading "." element from the path name.
53### If we don't remove them, then another "./" will be prepended to
54### the file name each time we use config.status, and the program name
55### will get larger and larger. This wouldn't be a problem, except
56### that since progname gets recorded in all the Makefiles this script
57### produces, move-if-change thinks they're different when they're
58### not.
0c22fbca
JB
59###
60### It would be nice if we could put the ./ in a \( \) group and then
61### apply the * operator to that, so we remove as many leading ./././'s
62### as are present, but some seds (like Ultrix's sed) don't allow you to
63### apply * to a \( \) group. Bleah.
3647c171 64progname="`echo $0 | sed 's:^\./\./:\./:'`"
ca1d1d23 65
ca1d1d23 66
0c22fbca
JB
67#### Usage messages.
68
ae6756a2 69short_usage="Usage: ${progname} CONFIGURATION [-OPTION[=VALUE] ...]
8509d50c 70
ca1d1d23 71Set compilation and installation parameters for GNU Emacs, and report.
8509d50c 72CONFIGURATION specifies the machine and operating system to build for.
ae6756a2 73--with-x Support the X Window System.
b735d4b3
RS
74--with-x=no Don't support X.
75--x-includes=DIR Search for X header files in DIR.
76--x-libraries=DIR Search for X libraries in DIR.
ae6756a2
JB
77--with-gcc Use GCC to compile Emacs.
78--with-gcc=no Don't use GCC to compile Emacs.
79--run-in-place Use libraries and data files directly out of the
80 source tree.
81--srcdir=DIR Look for source in DIR.
82--prefix=DIR Install files below dir.
0c22fbca 83
ca1d1d23 84If successful, ${progname} leaves its status in config.status. If
0c22fbca
JB
85unsuccessful after disturbing the status quo, it removes config.status."
86
87
88#### Option processing.
ca1d1d23 89
0c22fbca 90### Record all the arguments, so we can save them in config.status.
20d9a863 91arguments="$@"
e065a56e 92
c5f67786
JB
93### These values are used to comment and uncomment different values
94### for the path variables in the Makefile, to choose the installed
95### configuration or the run-in-place configuration.
96rip_paths='#disabled# '
97inst_paths=''
98
ae6756a2
JB
99### Establish some default values.
100prefix='/usr/local'
86ddcc58 101exec_prefix='${prefix}'
ae6756a2 102
3517b2e9
JB
103### Don't use shift -- that destroys the argument list, which autoconf needs
104### to produce config.status. It turns out that "set - ${arguments}" doesn't
105### work portably.
106index=0
107while [ $index -lt $# ]; do
108 index=`expr $index + 1`
109 arg=`eval echo '$'$index`
ca1d1d23 110 case "${arg}" in
0c22fbca
JB
111
112 ## Anything starting with a hyphen we assume is an option.
113 -* )
114
115 ## Separate the switch name from the value it's being given.
ca1d1d23 116 case "${arg}" in
2c44309a 117 -*=*)
20d9a863 118 opt=`echo ${arg} | sed 's:^-*\([^=]*\)=.*$:\1:'`
2c44309a 119 val=`echo ${arg} | sed 's:^-*[^=]*=\(.*\)$:\1:'`
ca1d1d23
JB
120 valomitted=no
121 ;;
2c44309a 122 -*)
0c22fbca
JB
123 ## If FOO is a boolean argument, --FOO is equivalent to
124 ## --FOO=yes. Otherwise, the value comes from the next
125 ## argument - see below.
20d9a863 126 opt=`echo ${arg} | sed 's:^-*\(.*\)$:\1:'`
ca1d1d23
JB
127 val="yes"
128 valomitted=yes
129 ;;
130 esac
131
0c22fbca 132 ## Change `-' in the option name to `_'.
b0209e18 133 optname="${opt}"
20d9a863
JB
134 opt="`echo ${opt} | tr - _`"
135
0c22fbca
JB
136 ## Process the option.
137 case "${opt}" in
ca1d1d23 138
0c22fbca
JB
139 ## Has the user specified which window systems they want to support?
140 "with_x" | "with_x11" | "with_x10" )
141 ## Make sure the value given was either "yes" or "no".
ca1d1d23
JB
142 case "${val}" in
143 y | ye | yes ) val=yes ;;
144 n | no ) val=no ;;
145 * )
b0209e18 146 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
0c22fbca
JB
147Set it to either \`yes' or \`no'."
148 echo "${short_usage}") >&2
ca1d1d23
JB
149 exit 1
150 ;;
151 esac
0c22fbca 152 eval "${opt}=\"${val}\""
ca1d1d23 153 ;;
0c22fbca 154
1bba56f6 155 ## Has the user specified whether or not they want GCC?
b735d4b3 156 "with_gcc" | "with_gnu_cc" )
1bba56f6
JB
157 ## Make sure the value given was either "yes" or "no".
158 case "${val}" in
159 y | ye | yes ) val=yes ;;
160 n | no ) val=no ;;
161 * )
b0209e18 162 (echo "${progname}: the \`--${optname}' option is supposed to have a boolean value.
1bba56f6
JB
163Set it to either \`yes' or \`no'."
164 echo "${short_usage}") >&2
165 exit 1
166 ;;
167 esac
168 eval "${opt}=\"${val}\""
169 ;;
170
0c22fbca
JB
171 ## Has the user specified a source directory?
172 "srcdir" )
173 ## If the value was omitted, get it from the next argument.
ca1d1d23 174 if [ "${valomitted}" = "yes" ]; then
0c22fbca 175 ## Get the next argument from the argument list, if there is one.
3517b2e9 176 if [ $index = $# ]; then
b0209e18
JB
177 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
178 \`--${optname}=FOO'."
0c22fbca 179 echo "${short_usage}") >&2
4746118a
JB
180 exit 1
181 fi
3517b2e9
JB
182 index=`expr $index + 1`
183 val=`eval echo '$'$index`
ca1d1d23 184 fi
0c22fbca
JB
185 srcdir="${val}"
186 ;;
187
9c7a7556
JB
188 ## Has the user tried to tell us where the X files are?
189 ## I think these are dopey, but no less than three alpha
190 ## testers, at large sites, have said they have their X files
191 ## installed in odd places.
b0209e18 192 "x_includes" )
9c7a7556
JB
193 ## If the value was omitted, get it from the next argument.
194 if [ "${valomitted}" = "yes" ]; then
195 ## Get the next argument from the argument list, if there is one.
3517b2e9 196 if [ $index = $# ]; then
b0209e18
JB
197 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
198 \`--${optname}=FOO'."
9c7a7556
JB
199 echo "${short_usage}") >&2
200 exit 1
201 fi
3517b2e9
JB
202 index=`expr $index + 1`
203 val=`eval echo '$'$index`
9c7a7556
JB
204 fi
205 x_includes="${val}"
d69d8d1e 206 C_SWITCH_X_SITE="-I\"${x_includes}\""
9c7a7556 207 ;;
b0209e18 208 "x_libraries" )
9c7a7556
JB
209 ## If the value was omitted, get it from the next argument.
210 if [ "${valomitted}" = "yes" ]; then
211 ## Get the next argument from the argument list, if there is one.
3517b2e9 212 if [ $index = $# ]; then
b0209e18
JB
213 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
214 \`--${optname}=FOO'."
9c7a7556
JB
215 echo "${short_usage}") >&2
216 exit 1
217 fi
3517b2e9
JB
218 index=`expr $index + 1`
219 val=`eval echo '$'$index`
9c7a7556
JB
220 fi
221 x_libraries="${val}"
d69d8d1e 222 LD_SWITCH_X_SITE="-L\"${x_libraries}\""
9c7a7556
JB
223 ;;
224
c5f67786
JB
225 ## Should this use the "development configuration"?
226 "run_in_place" )
227 rip_paths=''
228 inst_paths='#disabled# '
229 ;;
230
eb8c3be9 231 ## Has the user specified an installation prefix?
ae6756a2
JB
232 "prefix" )
233 ## If the value was omitted, get it from the next argument.
234 if [ "${valomitted}" = "yes" ]; then
235 ## Get the next argument from the argument list, if there is one.
3517b2e9 236 if [ $index = $# ]; then
ae6756a2
JB
237 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
238 \`--${optname}=FOO'."
239 echo "${short_usage}") >&2
240 exit 1
241 fi
3517b2e9
JB
242 index=`expr $index + 1`
243 val=`eval echo '$'$index`
ae6756a2
JB
244 fi
245 prefix="${val}"
246 ;;
247
eb8c3be9 248 ## Has the user specified an installation prefix?
86ddcc58
JB
249 "exec_prefix" )
250 ## If the value was omitted, get it from the next argument.
251 if [ "${valomitted}" = "yes" ]; then
252 ## Get the next argument from the argument list, if there is one.
3517b2e9 253 if [ $index = $# ]; then
86ddcc58
JB
254 (echo "${progname}: You must give a value for the \`--${optname}' option, as in
255 \`--${optname}=FOO'."
256 echo "${short_usage}") >&2
257 exit 1
258 fi
3517b2e9
JB
259 index=`expr $index + 1`
260 val=`eval echo '$'$index`
86ddcc58
JB
261 fi
262 exec_prefix="${val}"
263 ;;
264
d02e05d1
JB
265 ## Verbose flag, tested by autoconf macros.
266 "verbose" )
267 verbose=yes
268 ;;
269
0c22fbca
JB
270 ## Has the user asked for some help?
271 "usage" | "help" )
ae6756a2 272 echo "${short_usage}" | more
0c22fbca
JB
273 exit
274 ;;
ca1d1d23 275
0c22fbca
JB
276 ## We ignore all other options silently.
277 esac
ca1d1d23 278 ;;
0c22fbca
JB
279
280 ## Anything not starting with a hyphen we assume is a
281 ## configuration name.
ca1d1d23 282 *)
8509d50c 283 configuration=${arg}
ca1d1d23 284 ;;
0c22fbca 285
ca1d1d23
JB
286 esac
287done
288
8509d50c 289if [ "${configuration}" = "" ]; then
334e7c23
JB
290 echo '- You did not tell me what kind of host system you want to configure.
291- I will attempt to guess the kind of system this is.' 1>&2
292 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
293 if configuration=`${guesssys}` ; then
294 echo "- Looks like this is a ${configuration}" 1>&2
295 else
296 echo '- Failed to guess the system type. You need to tell me.' 1>&2
8428ef44 297 echo "${short_usage}" >&2
334e7c23
JB
298 exit 1
299 fi
0c22fbca
JB
300fi
301
0c22fbca
JB
302#### Decide where the source is.
303case "${srcdir}" in
304
e94740ce 305 ## If it's not specified, see if `.' or `..' might work.
0c22fbca 306 "" )
2e694846
JB
307 confdir=`echo $0 | sed 's|//|/|' | sed 's|/[^/]*$||'`
308 if [ -f $confdir/src/lisp.h -a -f $confdir/lisp/version.el ]; then
0871bc22 309 srcdir="${confdir}"
e94740ce 310 else
2e694846 311 if [ -f "./src/lisp.h" -a -f "./lisp/version.el" ]; then
426460bf 312 srcdir='.'
e94740ce 313 else
2e694846 314 if [ -f "../src/lisp.h" -a -f "../lisp/version.el" ]; then
426460bf 315 srcdir='..'
2e694846
JB
316 else
317 (echo "\
e94740ce
JB
318${progname}: Neither the current directory nor its parent seem to
319contain the Emacs sources. If you do not want to build Emacs in its
320source tree, you should run \`${progname}' in the directory in which
321you wish to build Emacs, using its \`--srcdir' option to say where the
322sources may be found."
2e694846
JB
323 echo "${short_usage}") >&2
324 exit 1
325 fi
e94740ce
JB
326 fi
327 fi
0c22fbca
JB
328 ;;
329
e94740ce 330 ## Otherwise, check if the directory they specified is okay.
0c22fbca 331 * )
e94740ce
JB
332 if [ ! -d "${srcdir}" -o ! -f "${srcdir}/src/lisp.h" -o ! -f "${srcdir}/lisp/version.el" ]; then
333 (echo "\
334${progname}: The directory specified with the \`--srcdir' option,
335\`${srcdir}', doesn't seem to contain the Emacs sources. You should
336either run the \`${progname}' script at the top of the Emacs source
337tree, or use the \`--srcdir' option to specify where the Emacs sources
338are."
0c22fbca
JB
339 echo "${short_usage}") >&2
340 exit 1
341 fi
342 ;;
0871bc22 343esac
0c22fbca 344
0871bc22
JB
345#### Make srcdir absolute, if it isn't already. It's important to
346#### avoid running the path through pwd unnecessary, since pwd can
347#### give you automounter prefixes, which can go away.
348case "${srcdir}" in
349 /* ) ;;
c9ed10f6
JB
350 . )
351 ## We may be able to use the $PWD environment variable to make this
352 ## absolute. But sometimes PWD is inaccurate.
353 if [ "${PWD}" != "" ] && [ "`(cd ${PWD} ; pwd)`" = "`pwd`" ] ; then
354 srcdir="$PWD"
355 else
356 srcdir="`(cd ${srcdir}; pwd)`"
1d488950 357 fi
c9ed10f6 358 ;;
0871bc22 359 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
0c22fbca
JB
360esac
361
1b4357f4
JB
362#### Make sure that the source directory doesn't already have a
363#### configured system in it.
cc40a99e
JB
364if [ `pwd` != `(cd ${srcdir} && pwd)` ] \
365 && [ -f "${srcdir}/src/config.h" ] ; then
366 (echo "${progname}: the directory tree \`${srcdir}' is being used"
367 echo " as a build directory right now; it has been configured in its own"
368 echo " right. You can't use srcdir in this situation.") >&2
1b4357f4
JB
369 exit 1
370fi
0871bc22 371
0c22fbca 372### Make the necessary directories, if they don't exist.
30945baf
JB
373for dir in ./src ./lib-src ./cpp ./oldXMenu ./etc ; do
374 if [ ! -d ${dir} ]; then
375 mkdir ${dir}
376 fi
377done
0c22fbca
JB
378
379#### Given the configuration name, set machfile and opsysfile to the
380#### names of the m/*.h and s/*.h files we should use.
381
382### Canonicalize the configuration name.
8509d50c 383echo "Checking the configuration name."
279271ba 384if canonical=`${srcdir}/config.sub "${configuration}"` ; then : ; else
8509d50c
JB
385 exit $?
386fi
20d9a863 387
3647c171
JB
388### If you add support for a new configuration, add code to this
389### switch statement to recognize your configuration name and select
390### the appropriate operating system and machine description files.
391
8509d50c
JB
392### You would hope that you could choose an m/*.h file pretty much
393### based on the machine portion of the configuration name, and an s-
394### file based on the operating system portion. However, it turns out
395### that each m/*.h file is pretty manufacturer-specific - for
396### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
397### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
398### machines. So we basically have to have a special case for each
399### configuration name.
3647c171 400###
8509d50c
JB
401### As far as handling version numbers on operating systems is
402### concerned, make sure things will fail in a fixable way. If
403### /etc/MACHINES doesn't say anything about version numbers, be
404### prepared to handle anything reasonably. If version numbers
405### matter, be sure /etc/MACHINES says something about it.
3647c171
JB
406###
407### Eric Raymond says we should accept strings like "sysvr4" to mean
408### "System V Release 4"; he writes, "The old convention encouraged
409### confusion between `system' and `release' levels'."
410
8509d50c 411machine='' opsys='' unported='false'
279271ba 412case "${canonical}" in
8509d50c
JB
413
414 ## Alliant machines
20d9a863
JB
415 ## Strictly speaking, we need the version of the alliant operating
416 ## system to choose the right machine file, but currently the
417 ## configuration name doesn't tell us enough to choose the right
418 ## one; we need to give alliants their own operating system name to
419 ## do this right. When someone cares, they can help us.
420 fx80-alliant-* )
8509d50c 421 machine=alliant4 opsys=bsd4-2
20d9a863
JB
422 ;;
423 i860-alliant-* )
8509d50c 424 machine=alliant-2800 opsys=bsd4-3
20d9a863 425 ;;
ca1d1d23 426
8509d50c
JB
427 ## Altos 3068
428 m68*-altos-sysv* )
429 machine=altos opsys=usg5-2
20d9a863 430 ;;
8509d50c
JB
431
432 ## Amdahl UTS
433 580-amdahl-sysv* )
434 machine=amdahl opsys=usg5-2-2
20d9a863 435 ;;
ca1d1d23 436
8509d50c
JB
437 ## Appallings - I mean, Apollos - running Domain
438 m68*-apollo* )
e4474817 439 machine=apollo opsys=bsd4-2
20d9a863 440 ;;
8509d50c
JB
441
442 ## AT&T 3b2, 3b5, 3b15, 3b20
443 we32k-att-sysv* )
444 machine=att3b opsys=usg5-2-2
445 ;;
446
447 ## AT&T 3b1 - The Mighty Unix PC!
448 m68*-att-sysv* )
449 machine=7300 opsys=usg5-2-2
450 ;;
451
6ec1f458
JB
452 ## Bull dpx2
453 m68*-bull-sysv3* )
454 machine=dpx2 opsys=usg5-3
455 ;;
456
8509d50c 457 ## Bull sps7
6ec1f458 458 m68*-bull-sysv2* )
8509d50c 459 machine=sps7 opsys=usg5-2
20d9a863 460 ;;
8509d50c
JB
461
462 ## CCI 5/32, 6/32 -- see "Tahoe".
463
464 ## Celerity
465 ## I don't know what configuration name to use for this; config.sub
466 ## doesn't seem to know anything about it. Hey, Celerity users, get
467 ## in touch with us!
468 celerity-celerity-bsd* )
469 machine=celerity opsys=bsd4-2
470 ;;
471
472 ## Clipper
473 ## What operating systems does this chip run that Emacs has been
474 ## tested on?
475 clipper-* )
476 machine=clipper
477 ## We'll use the catch-all code at the bottom to guess the
478 ## operating system.
479 ;;
480
481 ## Convex
482 *-convex-bsd* )
483 machine=convex opsys=bsd4-3
484 ;;
485
486 ## Cubix QBx/386
487 i386-cubix-sysv* )
488 machine=intel386 opsys=usg5-3
489 ;;
490
491 ## Cydra 5
492 cydra*-cydrome-sysv* )
493 machine=cydra5 opsys=usg5-3
494 ;;
495
b86d694e
JB
496 ## Data General AViiON Machines
497 m88k-dg-dgux* )
498 machine=aviion opsys=dgux
499 ;;
500
8509d50c
JB
501 ## DECstations
502 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0 | mips-dec-bsd4.2 )
503 machine=pmax opsys=bsd4-2
504 ;;
505 mips-dec-ultrix* | mips-dec-bsd* )
506 machine=pmax opsys=bsd4-3
507 ;;
508 mips-dec-osf* )
509 machine=pmax opsys=osf1
510 ;;
511
512 ## Motorola Delta machines
513 m68*-motorola-sysv* )
514 machine=delta opsys=usg5-3
515 ;;
ac0e6f3b
JB
516 m88k-motorola-sysv4* )
517 machine=delta88k opsys=usg5-4
518 ;;
8509d50c
JB
519 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
520 machine=delta88k opsys=usg5-3
521 ;;
522
523 ## Dual machines
524 m68*-dual-sysv* )
525 machine=dual opsys=usg5-2
526 ;;
527 m68*-dual-uniplus* )
528 machine=dual opsys=unipl5-2
529 ;;
530
531 ## Elxsi 6400
532 elxsi-elxsi-sysv* )
533 machine=elxsi opsys=usg5-2
534 ;;
535
536 ## Encore machines
537 ns16k-encore-bsd* )
538 machine=ns16000 opsys=umax
539 ;;
540
541 ## The GEC 93 - apparently, this port isn't really finished yet.
542
543 ## Gould Power Node and NP1
544 pn-gould-bsd4.2 )
545 machine=gould opsys=bsd4-2
546 ;;
547 pn-gould-bsd4.3 )
548 machine=gould opsys=bsd4-3
549 ;;
550 np1-gould-bsd* )
551 machine=gould-np1 opsys=bsd4-3
552 ;;
553
554 ## Honeywell XPS100
555 xps*-honeywell-sysv* )
556 machine=xps100 opsys=usg5-2
557 ;;
558
559 ## HP 9000 series 200 or 300
560 m68*-hp-bsd* )
561 machine=hp9000s300 opsys=bsd4-3
562 ;;
d69d8d1e 563 ## HP/UX 7, 8 and 9 are supported on these machines.
20d9a863 564 m68*-hp-hpux* )
d69d8d1e
JB
565 case "`uname -r`" in
566 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
567 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
568 *) machine=hp9000s300 opsys=hpux ;;
569 esac
20d9a863 570 ;;
ca1d1d23 571
c55f453b 572 ## HP 9000 series 700 and 800, running HP/UX
ea2c2e02 573 hppa*-hp-hpux7* )
602dc898 574 machine=hp9000s800 opsys=hpux
c55f453b 575 ;;
ea2c2e02 576 hppa*-hp-hpux8* )
602dc898 577 machine=hp9000s800 opsys=hpux8
c55f453b 578 ;;
ea2c2e02 579 hppa*-hp-hpux9* )
602dc898 580 machine=hp9000s800 opsys=hpux9
ea2c2e02
JB
581 ;;
582
583 ## HP 9000 series 700 and 800, running HP/UX
c55f453b
JB
584 hppa*-hp-hpux* )
585 ## Cross-compilation? Nah!
252c8b3b 586 case "`uname -r`" in
ea2c2e02
JB
587 *.08.* ) machine=hp9000s800 opsys=hpux8 ;;
588 *.09.* ) machine=hp9000s800 opsys=hpux9 ;;
252c8b3b 589 *) machine=hp9000s800 opsys=hpux ;;
c55f453b 590 esac
8509d50c
JB
591 ;;
592
593 ## Orion machines
594 orion-orion-bsd* )
595 machine=orion opsys=bsd4-2
596 ;;
597 clipper-orion-bsd* )
598 machine=orion105 opsys=bsd4-2
599 ;;
600
601 ## IBM machines
602 i386-ibm-aix1.1 )
603 machine=ibmps2-aix opsys=usg5-2-2
604 ;;
f2d5c40e 605 i386-ibm-aix1.[23] | i386-ibm-aix* )
8509d50c
JB
606 machine=ibmps2-aix opsys=usg5-3
607 ;;
17a624d1 608 rs6000-ibm-aix3.1 )
8509d50c
JB
609 machine=ibmrs6000 opsys=aix3-1
610 ;;
17a624d1
JB
611 rs6000-ibm-aix3.2 | rs6000-ibm-aix* )
612 machine=ibmrs6000 opsys=aix3-2
613 ;;
d20c62bf
RS
614 romp-ibm-bsd4-3 )
615 machine=ibmrt opsys=bsd4-3
616 ;;
617 romp-ibm-bsd4-2 )
618 machine=ibmrt opsys=bsd4-2
619 ;;
620 romp-ibm-aos4-3 )
621 machine=ibmrt opsys=bsd4-3
622 ;;
623 romp-ibm-aos4-2 )
8509d50c
JB
624 machine=ibmrt opsys=bsd4-2
625 ;;
d20c62bf
RS
626 romp-ibm-aos* )
627 machine=ibmrt opsys=bsd4-3
628 ;;
629 romp-ibm-bsd* )
630 machine=ibmrt opsys=bsd4-3
631 ;;
8509d50c
JB
632 romp-ibm-aix* )
633 machine=ibmrt-aix opsys=usg5-2-2
634 ;;
635
636 ## Integrated Solutions `Optimum V'
637 m68*-isi-bsd4.2 )
638 machine=isi-ov opsys=bsd4-2
639 ;;
640 m68*-isi-bsd4.3 )
641 machine=isi-ov opsys=bsd4-3
642 ;;
643
644 ## Intel 386 machines where we do care about the manufacturer
645 i[34]86-intsys-sysv* )
646 machine=is386 opsys=usg5-2-2
647 ;;
6992e6b7
RS
648
649 ## Prime EXL
650 i386-prime-sysv* )
651 machine=i386 opsys=usg5-3
652 ;;
653
654 ## Sequent Symmetry
655 i386-sequent-bsd* )
656 machine=symmetry opsys=bsd4-3
657 ;;
658
df4da582
JB
659 ## Intel 860
660 i860-*-sysvr4 )
661 machine=i860 opsys=usg5-4
662 ;;
663
8509d50c
JB
664 ## Silicon Graphics machines
665 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
666 m68*-sgi-iris3.5 )
667 machine=irist opsys=iris3-5
668 ;;
669 m68*-sgi-iris3.6 | m68*-sgi-iris*)
670 machine=irist opsys=iris3-6
671 ;;
672 ## Iris 4D
673 mips-sgi-irix3.* )
674 machine=iris4d opsys=irix3-3
675 ;;
676 mips-sgi-irix4.* | mips-sgi-irix* )
677 machine=iris4d opsys=irix4-0
20d9a863
JB
678 ;;
679
8509d50c
JB
680 ## Masscomp machines
681 m68*-masscomp-rtu )
682 machine=masscomp opsys=rtu
683 ;;
684
685 ## Megatest machines
686 m68*-megatest-bsd* )
687 machine=mega68 opsys=bsd4-2
688 ;;
689
690 ## Workstations sold by MIPS
691 ## This is not necessarily all workstations using the MIPS processor -
692 ## Irises are produced by SGI, and DECstations by DEC.
693
694 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
695 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
696 ## it gives for choosing between the alternatives seems to be "Use
697 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
698 ## the BSD world." I'll assume that these are instructions for
699 ## handling two odd situations, and that every other situation
700 ## should use mips.h and usg5-2-2, they being listed first.
60e1b37f
JB
701 mips-mips-usg* )
702 machine=mips4
703 ## Fall through to the general code at the bottom to decide on the OS.
704 ;;
8509d50c 705 mips-mips-riscos4* )
cc40a99e 706 machine=mips4 opsys=bsd4-3
8509d50c
JB
707 ;;
708 mips-mips-bsd* )
709 machine=mips opsys=bsd4-3
710 ;;
711 mips-mips-* )
712 machine=mips opsys=usg5-2-2
713 ;;
714
c5f67786
JB
715 ## NeXT
716 m68*-next-mach* | m68*-next-bsd* )
717 machine=next opsys=mach2
718 ;;
719
8509d50c
JB
720 ## The complete machine from National Semiconductor
721 ns32k-ns-genix* )
722 machine=ns32000 opsys=usg5-2
723 ;;
724
725 ## NCR machines
3647c171 726 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
8509d50c
JB
727 machine=tower32 opsys=usg5-2-2
728 ;;
3647c171 729 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
8509d50c
JB
730 machine=tower32v3 opsys=usg5-3
731 ;;
732
733 ## Nixdorf Targon 31
734 m68*-nixdorf-sysv* )
735 machine=targon31 opsys=usg5-2-2
736 ;;
737
738 ## Nu (TI or LMI)
739 m68*-nu-sysv* )
740 machine=nu opsys=usg5-2
741 ;;
742
743 ## Plexus
744 m68*-plexus-sysv* )
745 machine=plexus opsys=usg5-2
746 ;;
747
8509d50c
JB
748 ## Pyramid machines
749 ## I don't really have any idea what sort of processor the Pyramid has,
750 ## so I'm assuming it is its own architecture.
751 pyramid-pyramid-bsd* )
752 machine=pyramid opsys=bsd4-2
753 ;;
754
755 ## Sequent Balance
756 ns32k-sequent-bsd4.2 )
757 machine=sequent opsys=bsd4-2
758 ;;
759 ns32k-sequent-bsd4.3 )
760 machine=sequent opsys=bsd4-3
8509d50c
JB
761 ;;
762
763 ## SONY machines
764 m68*-sony-bsd4.2 )
765 machine=news opsys=bsd4-2
766 ;;
767 m68*-sony-bsd4.3 )
768 machine=news opsys=bsd4-3
769 ;;
770 mips-sony-bsd* )
771 machine=news-risc opsys=bsd4-3
772 ;;
773
774 ## Stride
775 m68*-stride-sysv* )
776 machine=stride opsys=usg5-2
777 ;;
778
779 ## Suns
ddb73021 780 *-sun-sunos* | *-sun-bsd* | *-sun-solaris* )
279271ba 781 case "${canonical}" in
8509d50c
JB
782 m68*-sunos1* ) machine=sun1 ;;
783 m68*-sunos2* ) machine=sun2 ;;
784 m68* ) machine=sun3 ;;
785 i[34]86* ) machine=sun386 ;;
786 sparc* ) machine=sparc ;;
787 * ) unported=true ;;
788 esac
279271ba 789 case "${canonical}" in
8509d50c 790 *-sunos4.0* ) opsys=sunos4-0 ;;
7498a871 791 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
8509d50c 792 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
ddb73021 793 *-sunos5* | *-solaris* ) opsys=sol2 ;;
8509d50c 794 * ) opsys=bsd4-2 ;;
20d9a863 795 esac
8509d50c
JB
796 ;;
797
798 ## Tadpole 68k
799 m68*-tadpole-sysv* )
800 machine=tad68k opsys=usg5-3
801 ;;
802
803 ## Tahoe machines
804 tahoe-tahoe-bsd4.2 )
805 machine=tahoe opsys=bsd4-2
806 ;;
807 tahoe-tahoe-bsd4.3 )
808 machine=tahoe opsys=bsd4-3
809 ;;
810
811 ## Tandem Integrity S2
812 mips-tandem-sysv* )
813 machine=tandem-s2 opsys=usg5-3
814 ;;
815
26f186c2
JB
816 ## Tektronix XD88
817 m88k-tektronix-sysv3 )
818 machine=tekXD88 opsys=usg5-3
819 ;;
820
8509d50c
JB
821 ## Tektronix 16000 box (6130?)
822 ns16k-tektronix-bsd* )
823 machine=ns16000 opsys=bsd4-2
824 ;;
825 ## Tektronix 4300
826 ## src/m/tek4300.h hints that this is a m68k machine.
827 m68*-tektronix-bsd* )
828 machine=tex4300 opsys=bsd4-3
829 ;;
830
831 ## Titan P2 or P3
832 ## We seem to have lost the machine-description file titan.h!
833 titan-titan-sysv* )
834 machine=titan opsys=usg5-3
835 ;;
836
837 ## Ustation E30 (SS5E)
838 m68*-unisys-uniplus* )
839 machine=ustation opsystem=unipl5-2
840 ;;
841
842 ## Vaxen.
843 vax-dec-* )
844 machine=vax
279271ba 845 case "${canonical}" in
3647c171
JB
846 *-bsd4.1 ) opsys=bsd4-1 ;;
847 *-bsd4.2 | *-ultrix[0-3].* | *-ultrix4.0 ) opsys=bsd4-2 ;;
848 *-bsd4.3 | *-ultrix* ) opsys=bsd4-3 ;;
87a6b538 849 *-bsd386 ) opsys=bsd386 ;;
3647c171
JB
850 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
851 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
852 *-vms* ) opsys=vms ;;
853 * ) unported=true
20d9a863
JB
854 esac
855 ;;
856
8509d50c
JB
857 ## Whitechapel MG1
858 ns16k-whitechapel-* )
859 machine=mg1
860 ## We don't know what sort of OS runs on these; we'll let the
861 ## operating system guessing code below try.
862 ;;
863
864 ## Wicat
865 m68*-wicat-sysv* )
866 machine=wicat opsys=usg5-2
867 ;;
868
b3fb7fc3
JB
869 ## Intel 386 machines where we don't care about the manufacturer
870 i[34]86-*-* )
871 machine=intel386
279271ba 872 case "${canonical}" in
b3fb7fc3
JB
873 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
874 *-isc2.2 ) opsys=isc2-2 ;;
875 *-isc* ) opsys=isc3-0 ;;
876 *-esix5* ) opsys=esix5r4 ;;
877 *-esix* ) opsys=esix ;;
878 *-xenix* ) opsys=xenix ;;
879 *-linux* ) opsys=linux ;;
880 *-sco3.2v4* ) opsys=sco4 ;;
881 *-bsd386* ) opsys=bsd386 ;;
882 *-386bsd ) opsys=386bsd ;;
883 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
884 esac
885 ;;
886
20d9a863 887 * )
8509d50c 888 unported=true
20d9a863 889 ;;
20d9a863 890esac
ca1d1d23 891
8509d50c
JB
892### If the code above didn't choose an operating system, just choose
893### an operating system based on the configuration name. You really
894### only want to use this when you have no idea what the right
895### operating system is; if you know what operating systems a machine
896### runs, it's cleaner to make it explicit in the case statement
897### above.
87a6b538 898if [ x"${opsys}" = x ]; then
279271ba 899 case "${canonical}" in
8509d50c
JB
900 *-bsd4.[01] ) opsys=bsd4-1 ;;
901 *-bsd4.2 ) opsys=bsd4-2 ;;
902 *-bsd4.3 ) opsys=bsd4-3 ;;
3647c171
JB
903 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
904 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
905 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
906 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;;
907 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;;
7846ef2c 908 *-sysv4.2 | *-sysvr4.2 ) opsys=usg5-4-2 ;;
8509d50c
JB
909 * )
910 unported=true
911 ;;
912 esac
913fi
914
915if $unported ; then
279271ba 916 (echo "${progname}: Emacs hasn't been ported to \`${canonical}' systems."
8509d50c
JB
917 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
918 ) >&2
919 exit 1
920fi
921
922machfile="m/${machine}.h"
923opsysfile="s/${opsys}.h"
924
c5f67786
JB
925]
926AC_PREPARE(lisp)
e4474817 927AC_CONFIG_HEADER(src/config.h)
c5f67786 928[
7d99494c
JB
929
930#### Choose a compiler.
7d99494c 931case ${with_gcc} in
8ba83d88
JB
932 "yes" ) CC="gcc" GCC=1 ;;
933 "no" ) CC="cc" ;;
7d99494c 934 * )
e4474817 935 ] AC_PROG_CC [
7d99494c
JB
936esac
937
00c564b5
JB
938#### Some other nice autoconf tests. If you add a test here which
939#### should make an entry in src/config.h, don't forget to add an
940#### #undef clause to src/config.h.in for autoconf to modify.
7d99494c 941]
00c564b5 942dnl checks for programs
e4474817 943AC_LN_S
c5f67786 944AC_PROG_CPP
86ddcc58 945AC_PROG_INSTALL
4b5a51c1 946AC_PROG_YACC
00c564b5
JB
947
948dnl checks for UNIX variants that set `DEFS'
949
950dnl checks for header files
a6eb6797 951AC_HAVE_HEADERS(sys/timeb.h sys/time.h)
d855a603 952AC_STDC_HEADERS
9397d456 953AC_TIME_WITH_SYS_TIME
00c564b5 954
4ed216b3
JB
955dnl checks for library files
956AC_HAVE_LIBRARY(-ldnet)
957
00c564b5 958dnl checks for typedefs
7d99494c 959AC_RETSIGTYPE
00c564b5
JB
960
961dnl checks for functions
c5f67786 962AC_ALLOCA
22288fe1 963AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir)
9b973fd7
RS
964ok_so_far=true
965AC_FUNC_CHECK(socket,, ok_so_far=)
966if test -n "$ok_so_far"; then
967 AC_HEADER_CHECK(netinet/in.h,, ok_so_far=)
968fi
969if test -n "$ok_so_far"; then
970 AC_HEADER_CHECK(arpa/inet.h,, ok_so_far=)
971fi
972if test -n "$ok_so_far"; then
973 AC_DEFINE(HAVE_INET_SOCKETS)
974fi
00c564b5
JB
975
976dnl checks for structure members
a6eb6797 977AC_STRUCT_TM
d52c5f58 978AC_TIMEZONE
00c564b5
JB
979
980dnl checks for compiler characteristics
c5f67786 981AC_CONST
00c564b5
JB
982
983dnl checks for operating system services
fe5de478 984AC_LONG_FILE_NAMES
00c564b5
JB
985
986dnl other checks for UNIX variants
7d99494c
JB
987[
988
ca1d1d23 989
0c22fbca 990#### Choose a window system.
46947372 991echo "Checking window system."
c5f67786 992
8509d50c 993window_system=''
20d9a863 994case "${with_x}" in
2c44309a
RS
995 yes )
996 window_system=${window_system}x11
20d9a863
JB
997 ;;
998 no )
999 window_system=${window_system}none
2c44309a 1000esac
20d9a863 1001case "${with_x11}" in
2c44309a
RS
1002 yes )
1003 window_system=${window_system}x11
20d9a863 1004 ;;
2c44309a
RS
1005esac
1006case "${with_x10}" in
1007 yes )
1008 window_system=${window_system}x10
20d9a863 1009 ;;
2c44309a
RS
1010esac
1011
e740c737
JB
1012### If the user hasn't specified where we should find X, try
1013### letting autoconf figure that out.
7e39a592 1014if [ "0${x_includes}" = 0 ] && [ "0${x_libraries}" = 0 ]; then
e740c737
JB
1015 ]
1016 AC_FIND_X
1017 [
7c7b8f9d 1018 if [ "0${x_includes}" != 0 ]; then
f6f32e5a 1019 C_SWITCH_X_SITE="-I\"${x_includes}\""
7c7b8f9d
RS
1020 fi
1021 if [ "0${x_libraries}" != 0 ]; then
f6f32e5a
RS
1022 LD_SWITCH_X_SITE="-L\"${x_libraries}\""
1023 fi
e740c737
JB
1024fi
1025
ca1d1d23
JB
1026case "${window_system}" in
1027 "none" | "x11" | "x10" ) ;;
ca1d1d23 1028 "" )
55c1a819 1029 echo " No window system specified. Looking for X11."
ca1d1d23 1030 window_system=none
5d9aefc7
JB
1031 if [ -r /usr/lib/libX11.a \
1032 -o -d /usr/include/X11 \
7d99494c
JB
1033 -o -d /usr/X386/include \
1034 -o -d ${x_includes}/X11 ]; then
ca1d1d23 1035 window_system=x11
46947372 1036 fi
ca1d1d23
JB
1037 ;;
1038 * )
97a983f4 1039 echo "Don't specify the window system more than once." >&2
ca1d1d23
JB
1040 exit 1
1041 ;;
1042esac
1043
1044case "${window_system}" in
1045 x11 )
0c22fbca
JB
1046 HAVE_X_WINDOWS=yes
1047 HAVE_X11=yes
8509d50c 1048 echo " Using X11."
ca1d1d23
JB
1049 ;;
1050 x10 )
0c22fbca
JB
1051 HAVE_X_WINDOWS=yes
1052 HAVE_X11=no
8509d50c 1053 echo " Using X10."
ca1d1d23
JB
1054 ;;
1055 none )
0c22fbca
JB
1056 HAVE_X_WINDOWS=no
1057 HAVE_X11=no
8509d50c 1058 echo " Using no window system."
ca1d1d23
JB
1059 ;;
1060esac
1061
0c22fbca
JB
1062### If we're using X11, we should use the X menu package.
1063HAVE_X_MENU=no
1064case ${HAVE_X11} in
20d9a863 1065 yes )
0c22fbca 1066 HAVE_X_MENU=yes
ca1d1d23
JB
1067 ;;
1068esac
1069
0c22fbca 1070#### Extract some information from the operating system and machine files.
4746118a 1071
46947372
JB
1072echo "Examining the machine- and system-dependent files to find out"
1073echo " - which libraries the lib-src programs will want, and"
1074echo " - whether the GNU malloc routines are usable."
c5f67786
JB
1075
1076### It's not important that this name contain the PID; you can't run
1077### two configures in the same directory and have anything work
1078### anyway.
1079tempcname="conftest.c"
1080
e94740ce
JB
1081echo '
1082#include "'${srcdir}'/src/'${opsysfile}'"
1083#include "'${srcdir}'/src/'${machfile}'"
ca1d1d23
JB
1084#ifndef LIBS_MACHINE
1085#define LIBS_MACHINE
1086#endif
1087#ifndef LIBS_SYSTEM
1088#define LIBS_SYSTEM
1089#endif
80afd15e
JB
1090#ifndef C_SWITCH_SYSTEM
1091#define C_SWITCH_SYSTEM
f071c05a 1092#endif
4746118a 1093@configure@ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
80afd15e 1094@configure@ c_switch_system=C_SWITCH_SYSTEM
ac384e4f
JB
1095
1096#ifdef UNEXEC
1097@configure@ unexec=UNEXEC
1098#else
1099@configure@ unexec=unexec.o
1100#endif
1101
46947372 1102#ifdef SYSTEM_MALLOC
4746118a 1103@configure@ system_malloc=yes
46947372 1104#else
4746118a 1105@configure@ system_malloc=no
46947372 1106#endif
4ed216b3
JB
1107
1108#ifndef C_DEBUG_SWITCH
1109#define C_DEBUG_SWITCH -g
1110#endif
1111
1112#ifndef C_OPTIMIZE_SWITCH
1113#define C_OPTIMIZE_SWITCH -O
1114#endif
1115
1116#ifdef __GNUC__
1117@configure@ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH
1118#else
1119@configure@ CFLAGS=C_DEBUG_SWITCH
1120#endif
46947372 1121' > ${tempcname}
a6eb6797
JB
1122# The value of CPP is a quoted variable reference, so we need to do this
1123# to get its actual value...
b73fe839
JB
1124CPP=`eval "echo $CPP"`
1125eval `${CPP} -Isrc ${tempcname} \
5d9aefc7
JB
1126 | grep '@configure@' \
1127 | sed -e 's/^@configure@ \([^=]*=\)\(.*\)$/\1"\2"/'`
46947372
JB
1128rm ${tempcname}
1129
ac384e4f
JB
1130### Compute the unexec source name from the object name.
1131UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
7d99494c 1132
46947372 1133# Do the opsystem or machine files prohibit the use of the GNU malloc?
e94740ce
JB
1134# Assume not, until told otherwise.
1135GNU_MALLOC=yes
46947372 1136if [ "${system_malloc}" = "yes" ]; then
0c22fbca
JB
1137 GNU_MALLOC=no
1138 GNU_MALLOC_reason="
8509d50c 1139 (The GNU allocators don't work with this system configuration.)"
46947372
JB
1140fi
1141
87a6b538 1142if [ x"${REL_ALLOC}" = x ]; then
0c22fbca 1143 REL_ALLOC=${GNU_MALLOC}
46947372 1144fi
ca1d1d23 1145
0c22fbca
JB
1146LISP_FLOAT_TYPE=yes
1147
e94740ce 1148
30945baf
JB
1149#### Add the X libraries to the list, and check for some functions found there.
1150CFLAGS_save="$CFLAGS"
1151CFLAGS="${CFLAGS} ${LD_SWITCH_X_SITE}"
1152]
1153AC_HAVE_LIBRARY(-lXbsd)
1154[
1155LIBS_save="$LIBS"
1156if [ "${HAVE_X11}" = "yes" ] ; then
1157 LIBS="-lX11 ${LIBS}"
1158fi
1159]
1160AC_HAVE_FUNCS(XrmSetDatabase random)
1161[
1162CFLAGS="$CFLAGS_save"
1163LIBS="$LIBS_save"
1164
564d75ed
JB
1165case "${window_system}:${LIBS}" in
1166 x11:*-lXbsd* )
1167 if [ -d /usr/X386/include ]; then
1168 HAVE_XFREE386=yes
1169 if [ "${C_SWITCH_X_SITE}" = "" ]; then
1170 C_SWITCH_X_SITE="-I/usr/X386/include"
1171 fi
1172 fi
1173 ;;
1174esac
30945baf 1175
e94740ce
JB
1176#### Find out which version of Emacs this is.
1177version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
1178 | sed -e 's/^.*"\([0-9][0-9]*\.[0-9][0-9]*\)\..*$/\1/'`
87a6b538 1179if [ x"${version}" = x ]; then
e94740ce
JB
1180 echo "${progname}: can't find current emacs version in
1181 \`${srcdir}/lisp/version.el'." >&2
1182 exit 1
1183fi
1184
1185
e4474817 1186#### Specify what sort of things we'll be editing into Makefile and config.h.
279271ba 1187### Use configuration here uncanonicalized to avoid exceeding size limits.
7d99494c
JB
1188]
1189AC_SUBST(configuration)
1190AC_SUBST(version)
1191AC_SUBST(srcdir)
1192AC_SUBST(c_switch_system)
1193AC_SUBST(libsrc_libs)
c5f67786
JB
1194AC_SUBST(rip_paths)
1195AC_SUBST(inst_paths)
7d99494c
JB
1196AC_SUBST(LD_SWITCH_X_SITE)
1197AC_SUBST(C_SWITCH_X_SITE)
e4474817 1198AC_SUBST(CFLAGS)
ae6756a2 1199AC_SUBST(prefix)
86ddcc58 1200AC_SUBST(exec_prefix)
e4474817 1201
9361e005
JB
1202AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
1203AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
1204AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
1205AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
ac384e4f 1206AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
9361e005 1207
7d99494c
JB
1208[
1209if [ "${HAVE_X_WINDOWS}" = "yes" ] ; then
1210 ] AC_DEFINE(HAVE_X_WINDOWS) [
1211fi
1212if [ "${HAVE_X11}" = "yes" ] ; then
1213 ] AC_DEFINE(HAVE_X11) [
1214fi
1215if [ "${HAVE_XFREE386}" = "yes" ] ; then
1216 ] AC_DEFINE(HAVE_XFREE386) [
1217fi
1218if [ "${HAVE_X_MENU}" = "yes" ] ; then
1219 ] AC_DEFINE(HAVE_X_MENU) [
1220fi
1221if [ "${GNU_MALLOC}" = "yes" ] ; then
1222 ] AC_DEFINE(GNU_MALLOC) [
1223fi
1224if [ "${REL_ALLOC}" = "yes" ] ; then
1225 ] AC_DEFINE(REL_ALLOC) [
1226fi
1227if [ "${LISP_FLOAT_TYPE}" = "yes" ] ; then
1228 ] AC_DEFINE(LISP_FLOAT_TYPE) [
1229fi
ca1d1d23 1230
f6766fff 1231
7d99494c
JB
1232#### Report on what we decided to do.
1233echo "
f6766fff 1234
279271ba 1235Configured for \`${canonical}'.
8509d50c 1236
c9ed10f6 1237 Where should the build process find the source code? ${srcdir}
8509d50c
JB
1238 What operating system and machine description files should Emacs use?
1239 \`${opsysfile}' and \`${machfile}'
e4474817 1240 What compiler should emacs be built with? ${CC} ${CFLAGS}
0c22fbca
JB
1241 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
1242 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC}
7d99494c 1243 What window system should Emacs use? ${window_system}${x_includes+
9c7a7556 1244 Where do we find X Windows header files? }${x_includes}${x_libraries+
7d99494c 1245 Where do we find X Windows libraries? }${x_libraries}
8c0e7b73 1246
e94740ce 1247"
7d99494c 1248]
e4474817 1249AC_OUTPUT(Makefile)