Mercurial > emacs
annotate configure.in @ 8677:d41510c69a3f
*** empty log message ***
author | David J. MacKenzie <djm@gnu.org> |
---|---|
date | Thu, 01 Sep 1994 04:47:05 +0000 |
parents | bcfd4c7eecb0 |
children | 8033d712ae38 |
rev | line source |
---|---|
8636 | 1 dnl This is an autoconf script. |
2 dnl To rebuild the `configure' script from this, execute the command | |
3 dnl autoconf | |
4 dnl in the directory containing this script. | |
5 AC_PREREQ(1.106)dnl | |
6 AC_INIT(src/lisp.h) | |
7 AC_CONFIG_HEADER(src/config.h) | |
8 | |
9 bindir='${exec_prefix}/bin' | |
10 datadir='${prefix}/lib' | |
11 statedir='${prefix}/lib' | |
12 libdir='${exec_prefix}/lib' | |
13 mandir='${prefix}/man/man1' | |
14 infodir='${prefix}/info' | |
15 lispdir='${datadir}/emacs/${version}/lisp' | |
16 locallisppath='${datadir}/emacs/site-lisp' | |
17 lisppath='${locallisppath}:${lispdir}' | |
18 etcdir='${datadir}/emacs/${version}/etc' | |
19 lockdir='${statedir}/emacs/lock' | |
20 archlibdir='${libdir}/emacs/${version}/${configuration}' | |
21 docdir='${datadir}/emacs/${version}/etc' | |
22 | |
23 AC_ARG_WITH(x10, | |
24 [ --with-x10 Support the X Window System version 10]) | |
25 AC_ARG_WITH(x, | |
26 [ --with-x Support the X Window System version 11]) | |
27 AC_ARG_WITH(x-toolkit, | |
28 [ --with-x-toolkit=KIT Use an X toolkit (KIT = lucid or athena)], | |
29 [ case "${withval}" in | |
30 y | ye | yes ) val=athena ;; | |
31 n | no ) val=no ;; | |
32 l | lu | luc | luci | lucid ) val=lucid ;; | |
33 a | at | ath | athe | athena ) val=athena ;; | |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
34 dnl These don't currently work. |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
35 dnl m | mo | mot | moti | motif ) val=motif ;; |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
36 dnl o | op | ope | open | open- | open-l | open-lo \ |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
37 dnl | open-loo | open-look ) val=open-look ;; |
8636 | 38 * ) |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
39 dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
40 dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.]) |
8636 | 41 AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value |
42 which is \`yes', \`no', \`lucid', or \`athena'. | |
43 Currently, \`yes', \`athena' and \`lucid' are synonyms.]) | |
44 ;; | |
45 esac | |
46 with_x_toolkit=$val | |
47 ]) | |
48 AC_ARG_WITH(gcc, | |
49 [ --with-gcc Use GCC to compile Emacs]) | |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
50 dnl AC_ARG_ENABLE(single-tree, |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
51 dnl [ --enable-single-tree Create a directory tree at DIR which looks like: |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
52 dnl .../DIR/bin/CONFIGNAME (emacs, etags, etc.) |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
53 dnl .../DIR/bin/CONFIGNAME/etc (movemail, etc.) |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
54 dnl .../DIR/common/lisp (emacs' lisp files) |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
55 dnl .../DIR/common/site-lisp (local lisp files) |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
56 dnl .../DIR/common/lib (DOC, TUTORIAL, etc.) |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
57 dnl .../DIR/common/lock (lockfiles)]) |
8636 | 58 |
59 #### Make srcdir absolute, if it isn't already. It's important to | |
60 #### avoid running the path through pwd unnecessary, since pwd can | |
61 #### give you automounter prefixes, which can go away. | |
62 case "${srcdir}" in | |
63 /* ) ;; | |
64 . ) | |
65 ## We may be able to use the $PWD environment variable to make this | |
66 ## absolute. But sometimes PWD is inaccurate. | |
67 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
68 then | |
69 srcdir="$PWD" | |
70 else | |
71 srcdir="`(cd ${srcdir}; pwd)`" | |
72 fi | |
73 ;; | |
74 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
75 esac | |
76 | |
77 #### Check if the source directory already has a configured system in it. | |
78 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
79 && test -f "${srcdir}/src/config.h" ; then | |
80 AC_MSG_WARN([The directory tree \`${srcdir}' is being used | |
81 as a build directory right now; it has been configured in its own | |
82 right. To configure in another directory as well, you MUST | |
83 use GNU make. If you do not have GNU make, then you must | |
84 now do \`make distclean' in ${srcdir}, | |
85 and then run $0 again.]) | |
86 | |
87 extrasub='/^VPATH[ ]*=/c\ | |
88 vpath %.c $(srcdir)\ | |
89 vpath %.h $(srcdir)\ | |
90 vpath %.y $(srcdir)\ | |
91 vpath %.l $(srcdir)\ | |
92 vpath %.s $(srcdir)\ | |
93 vpath %.in $(srcdir)' | |
94 fi | |
95 | |
96 #### Given the configuration name, set machfile and opsysfile to the | |
97 #### names of the m/*.h and s/*.h files we should use. | |
98 | |
99 ### Canonicalize the configuration name. | |
100 | |
101 AC_CANONICAL_HOST | |
102 canonical=$host | |
103 | |
104 changequote(, )dnl | |
105 | |
106 ### If you add support for a new configuration, add code to this | |
107 ### switch statement to recognize your configuration name and select | |
108 ### the appropriate operating system and machine description files. | |
109 | |
110 ### You would hope that you could choose an m/*.h file pretty much | |
111 ### based on the machine portion of the configuration name, and an s- | |
112 ### file based on the operating system portion. However, it turns out | |
113 ### that each m/*.h file is pretty manufacturer-specific - for | |
114 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
115 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
116 ### machines. So we basically have to have a special case for each | |
117 ### configuration name. | |
118 ### | |
119 ### As far as handling version numbers on operating systems is | |
120 ### concerned, make sure things will fail in a fixable way. If | |
121 ### /etc/MACHINES doesn't say anything about version numbers, be | |
122 ### prepared to handle anything reasonably. If version numbers | |
123 ### matter, be sure /etc/MACHINES says something about it. | |
124 ### | |
125 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
126 ### "System V Release 4"; he writes, "The old convention encouraged | |
127 ### confusion between `system' and `release' levels'." | |
128 | |
129 machine='' opsys='' unported=no | |
130 case "${canonical}" in | |
131 | |
132 ## NetBSD ports | |
133 *-*-netbsd* ) | |
134 opsys=netbsd | |
135 case "${canonical}" in | |
136 i[345]86-*-netbsd*) machine=intel386 ;; | |
137 m68k-*-netbsd*) | |
138 # This is somewhat bogus. | |
139 machine=hp9000s300 ;; | |
140 mips-*-netbsd*) machine=pmax ;; | |
141 ns32k-*-netbsd*) machine=ns32000 ;; | |
142 sparc-*-netbsd*) machine=sparc ;; | |
143 esac | |
144 ;; | |
145 | |
146 ## Alliant machines | |
147 ## Strictly speaking, we need the version of the alliant operating | |
148 ## system to choose the right machine file, but currently the | |
149 ## configuration name doesn't tell us enough to choose the right | |
150 ## one; we need to give alliants their own operating system name to | |
151 ## do this right. When someone cares, they can help us. | |
152 fx80-alliant-* ) | |
153 machine=alliant4 opsys=bsd4-2 | |
154 ;; | |
155 i860-alliant-* ) | |
156 machine=alliant-2800 opsys=bsd4-3 | |
157 ;; | |
158 | |
159 ## Altos 3068 | |
160 m68*-altos-sysv* ) | |
161 machine=altos opsys=usg5-2 | |
162 ;; | |
163 | |
164 ## Amdahl UTS | |
165 580-amdahl-sysv* ) | |
166 machine=amdahl opsys=usg5-2-2 | |
167 ;; | |
168 | |
169 ## Appallings - I mean, Apollos - running Domain | |
170 m68*-apollo* ) | |
171 machine=apollo opsys=bsd4-2 | |
172 ;; | |
173 | |
174 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
175 we32k-att-sysv* ) | |
176 machine=att3b opsys=usg5-2-2 | |
177 ;; | |
178 | |
179 ## AT&T 3b1 - The Mighty Unix PC! | |
180 m68*-att-sysv* ) | |
181 machine=7300 opsys=usg5-2-2 | |
182 ;; | |
183 | |
184 ## Bull dpx20 | |
185 rs6000-bull-bosx* ) | |
186 machine=ibmrs6000 opsys=aix3-2 | |
187 ;; | |
188 | |
189 ## Bull dpx2 | |
190 m68*-bull-sysv3* ) | |
191 machine=dpx2 opsys=usg5-3 | |
192 ;; | |
193 | |
194 ## Bull sps7 | |
195 m68*-bull-sysv2* ) | |
196 machine=sps7 opsys=usg5-2 | |
197 ;; | |
198 | |
199 ## CCI 5/32, 6/32 -- see "Tahoe". | |
200 | |
201 ## Celerity | |
202 ## I don't know what configuration name to use for this; config.sub | |
203 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
204 ## in touch with us! | |
205 celerity-celerity-bsd* ) | |
206 machine=celerity opsys=bsd4-2 | |
207 ;; | |
208 | |
209 ## Clipper | |
210 ## What operating systems does this chip run that Emacs has been | |
211 ## tested on? | |
212 clipper-* ) | |
213 machine=clipper | |
214 ## We'll use the catch-all code at the bottom to guess the | |
215 ## operating system. | |
216 ;; | |
217 | |
218 ## Convex | |
219 *-convex-bsd* | *-convex-convexos* ) | |
220 machine=convex opsys=bsd4-3 | |
221 ## Prevents suprious white space in makefiles - d.m.cooke@larc.nasa.gov | |
222 NON_GNU_CPP="cc -E -P" | |
223 ;; | |
224 | |
225 ## Cubix QBx/386 | |
226 i[345]86-cubix-sysv* ) | |
227 machine=intel386 opsys=usg5-3 | |
228 ;; | |
229 | |
230 ## Cydra 5 | |
231 cydra*-cydrome-sysv* ) | |
232 machine=cydra5 opsys=usg5-3 | |
233 ;; | |
234 | |
235 ## Data General AViiON Machines | |
236 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
237 machine=aviion opsys=dgux5-4r3 | |
238 ;; | |
239 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
240 machine=aviion opsys=dgux5-4r2 | |
241 ;; | |
242 m88k-dg-dgux* ) | |
243 machine=aviion opsys=dgux | |
244 ;; | |
245 | |
246 ## DECstations | |
247 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
248 machine=pmax opsys=bsd4-2 | |
249 ;; | |
250 mips-dec-ultrix* | mips-dec-bsd* ) | |
251 machine=pmax opsys=bsd4-3 | |
252 ;; | |
253 mips-dec-osf* ) | |
254 machine=pmax opsys=osf1 | |
255 ;; | |
256 | |
257 ## Motorola Delta machines | |
258 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
259 machine=delta opsys=usg5-3 | |
260 if test -z "`type gnucc | grep 'not found'`" | |
261 then CC=gnucc | |
262 else | |
263 if test -z "`type gcc | grep 'not found'`" | |
264 then CC=gcc | |
265 else CC=cc | |
266 fi | |
267 fi | |
268 ;; | |
269 m88k-motorola-sysv4* ) | |
270 machine=delta88k opsys=usg5-4 | |
271 ;; | |
272 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
273 machine=delta88k opsys=usg5-3 | |
274 ;; | |
275 | |
276 ## Dual machines | |
277 m68*-dual-sysv* ) | |
278 machine=dual opsys=usg5-2 | |
279 ;; | |
280 m68*-dual-uniplus* ) | |
281 machine=dual opsys=unipl5-2 | |
282 ;; | |
283 | |
284 ## Elxsi 6400 | |
285 elxsi-elxsi-sysv* ) | |
286 machine=elxsi opsys=usg5-2 | |
287 ;; | |
288 | |
289 ## Encore machines | |
290 ns16k-encore-bsd* ) | |
291 machine=ns16000 opsys=umax | |
292 ;; | |
293 | |
294 ## The GEC 93 - apparently, this port isn't really finished yet. | |
295 | |
296 ## Gould Power Node and NP1 | |
297 pn-gould-bsd4.2* ) | |
298 machine=gould opsys=bsd4-2 | |
299 ;; | |
300 pn-gould-bsd4.3* ) | |
301 machine=gould opsys=bsd4-3 | |
302 ;; | |
303 np1-gould-bsd* ) | |
304 machine=gould-np1 opsys=bsd4-3 | |
305 ;; | |
306 | |
307 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
308 ## as far as Emacs is concerned). | |
309 m88k-harris-cxux* ) | |
310 # Build needs to be different on 7.0 and later releases | |
311 case "`uname -r`" in | |
312 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
313 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
314 esac | |
315 ;; | |
316 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
317 m68k-harris-cxux* ) | |
318 machine=nh3000 opsys=cxux | |
319 ;; | |
320 | |
321 ## Honeywell XPS100 | |
322 xps*-honeywell-sysv* ) | |
323 machine=xps100 opsys=usg5-2 | |
324 ;; | |
325 | |
326 ## HP 9000 series 200 or 300 | |
327 m68*-hp-bsd* ) | |
328 machine=hp9000s300 opsys=bsd4-3 | |
329 ;; | |
330 ## HP/UX 7, 8 and 9 are supported on these machines. | |
331 m68*-hp-hpux* ) | |
332 case "`uname -r`" in | |
333 ## Someone's system reports A.B8.05 for this. | |
334 ## I wonder what other possibilities there are. | |
335 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
336 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
337 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
338 *) machine=hp9000s300 opsys=hpux ;; | |
339 esac | |
340 ;; | |
341 | |
342 ## HP 9000 series 700 and 800, running HP/UX | |
343 hppa*-hp-hpux7* ) | |
344 machine=hp800 opsys=hpux | |
345 ;; | |
346 hppa*-hp-hpux8* ) | |
347 machine=hp800 opsys=hpux8 | |
348 ;; | |
349 hppa*-hp-hpux9shr* ) | |
350 machine=hp800 opsys=hpux9shr | |
351 ;; | |
352 hppa*-hp-hpux9* ) | |
353 machine=hp800 opsys=hpux9 | |
354 ;; | |
355 | |
356 ## HP 9000 series 700 and 800, running HP/UX | |
357 hppa*-hp-hpux* ) | |
358 ## Cross-compilation? Nah! | |
359 case "`uname -r`" in | |
360 ## Someone's system reports A.B8.05 for this. | |
361 ## I wonder what other possibilities there are. | |
362 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
363 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
364 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
365 *) machine=hp800 opsys=hpux ;; | |
366 esac | |
367 ;; | |
368 | |
369 ## Orion machines | |
370 orion-orion-bsd* ) | |
371 machine=orion opsys=bsd4-2 | |
372 ;; | |
373 clipper-orion-bsd* ) | |
374 machine=orion105 opsys=bsd4-2 | |
375 ;; | |
376 | |
377 ## IBM machines | |
378 i[345]86-ibm-aix1.1* ) | |
379 machine=ibmps2-aix opsys=usg5-2-2 | |
380 ;; | |
381 i[345]86-ibm-aix1.[23]* | i[345]86-ibm-aix* ) | |
382 machine=ibmps2-aix opsys=usg5-3 | |
383 ;; | |
384 i370-ibm-aix*) | |
385 machine=ibm370aix opsys=usg5-3 | |
386 ;; | |
387 rs6000-ibm-aix3.1* ) | |
388 machine=ibmrs6000 opsys=aix3-1 | |
389 ;; | |
390 rs6000-ibm-aix3.2.5) | |
391 machine=ibmrs6000 opsys=aix3-2-5 | |
392 ;; | |
393 rs6000-ibm-aix3.2* | rs6000-ibm-aix* ) | |
394 machine=ibmrs6000 opsys=aix3-2 | |
395 ;; | |
396 romp-ibm-bsd4.3* ) | |
397 machine=ibmrt opsys=bsd4-3 | |
398 ;; | |
399 romp-ibm-bsd4.2* ) | |
400 machine=ibmrt opsys=bsd4-2 | |
401 ;; | |
402 romp-ibm-aos4.3* ) | |
403 machine=ibmrt opsys=bsd4-3 | |
404 ;; | |
405 romp-ibm-aos4.2* ) | |
406 machine=ibmrt opsys=bsd4-2 | |
407 ;; | |
408 romp-ibm-aos* ) | |
409 machine=ibmrt opsys=bsd4-3 | |
410 ;; | |
411 romp-ibm-bsd* ) | |
412 machine=ibmrt opsys=bsd4-3 | |
413 ;; | |
414 romp-ibm-aix* ) | |
415 machine=ibmrt-aix opsys=usg5-2-2 | |
416 ;; | |
417 | |
418 ## Integrated Solutions `Optimum V' | |
419 m68*-isi-bsd4.2* ) | |
420 machine=isi-ov opsys=bsd4-2 | |
421 ;; | |
422 m68*-isi-bsd4.3* ) | |
423 machine=isi-ov opsys=bsd4-3 | |
424 ;; | |
425 | |
426 ## Intel 386 machines where we do care about the manufacturer | |
427 i[345]86-intsys-sysv* ) | |
428 machine=is386 opsys=usg5-2-2 | |
429 ;; | |
430 | |
431 ## Prime EXL | |
432 i[345]86-prime-sysv* ) | |
433 machine=i386 opsys=usg5-3 | |
434 ;; | |
435 | |
436 ## Sequent Symmetry | |
437 i[345]86-sequent-bsd* ) | |
438 machine=symmetry opsys=bsd4-3 | |
439 ;; | |
440 | |
441 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
442 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
443 i[345]86-ncr-sysv* ) | |
444 machine=intel386 opsys=usg5-4-2 | |
445 ;; | |
446 | |
447 ## Intel 860 | |
448 i860-*-sysv4* ) | |
449 machine=i860 opsys=usg5-4 | |
450 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
451 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
452 ;; | |
453 | |
454 ## Masscomp machines | |
455 m68*-masscomp-rtu* ) | |
456 machine=masscomp opsys=rtu | |
457 ;; | |
458 | |
459 ## Megatest machines | |
460 m68*-megatest-bsd* ) | |
461 machine=mega68 opsys=bsd4-2 | |
462 ;; | |
463 | |
464 ## Workstations sold by MIPS | |
465 ## This is not necessarily all workstations using the MIPS processor - | |
466 ## Irises are produced by SGI, and DECstations by DEC. | |
467 | |
468 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
469 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
470 ## it gives for choosing between the alternatives seems to be "Use | |
471 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
472 ## the BSD world." I'll assume that these are instructions for | |
473 ## handling two odd situations, and that every other situation | |
474 ## should use mips.h and usg5-2-2, they being listed first. | |
475 mips-mips-usg* ) | |
476 machine=mips4 | |
477 ## Fall through to the general code at the bottom to decide on the OS. | |
478 ;; | |
479 mips-mips-riscos4* ) | |
480 machine=mips4 opsys=bsd4-3 | |
481 NON_GNU_CC="cc -systype bsd43" | |
482 NON_GNU_CPP="cc -systype bsd43 -E" | |
483 ;; | |
484 mips-mips-bsd* ) | |
485 machine=mips opsys=bsd4-3 | |
486 ;; | |
487 mips-mips-* ) | |
488 machine=mips opsys=usg5-2-2 | |
489 ;; | |
490 | |
491 ## NeXT | |
492 m68*-next-* | i[345]86-next-* ) | |
493 machine=next opsys=mach2 | |
494 ;; | |
495 | |
496 ## The complete machine from National Semiconductor | |
497 ns32k-ns-genix* ) | |
498 machine=ns32000 opsys=usg5-2 | |
499 ;; | |
500 | |
501 ## NCR machines | |
502 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
503 machine=tower32 opsys=usg5-2-2 | |
504 ;; | |
505 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
506 machine=tower32v3 opsys=usg5-3 | |
507 ;; | |
508 | |
509 ## Nixdorf Targon 31 | |
510 m68*-nixdorf-sysv* ) | |
511 machine=targon31 opsys=usg5-2-2 | |
512 ;; | |
513 | |
514 ## Nu (TI or LMI) | |
515 m68*-nu-sysv* ) | |
516 machine=nu opsys=usg5-2 | |
517 ;; | |
518 | |
519 ## Plexus | |
520 m68*-plexus-sysv* ) | |
521 machine=plexus opsys=usg5-2 | |
522 ;; | |
523 | |
524 ## Pyramid machines | |
525 ## I don't really have any idea what sort of processor the Pyramid has, | |
526 ## so I'm assuming it is its own architecture. | |
527 pyramid-pyramid-bsd* ) | |
528 machine=pyramid opsys=bsd4-2 | |
529 ;; | |
530 | |
531 ## Sequent Balance | |
532 ns32k-sequent-bsd4.2* ) | |
533 machine=sequent opsys=bsd4-2 | |
534 ;; | |
535 ns32k-sequent-bsd4.3* ) | |
536 machine=sequent opsys=bsd4-3 | |
537 ;; | |
538 | |
539 ## Siemens Nixdorf | |
540 mips-siemens-sysv* ) | |
541 machine=mips-siemens opsys=usg5-4 | |
542 NON_GNU_CC=/usr/ccs/bin/cc | |
543 NON_GNU_CPP=/usr/ccs/lib/cpp | |
544 ;; | |
545 | |
546 ## Silicon Graphics machines | |
547 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
548 m68*-sgi-iris3.5* ) | |
549 machine=irist opsys=iris3-5 | |
550 ;; | |
551 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
552 machine=irist opsys=iris3-6 | |
553 ;; | |
554 ## Iris 4D | |
555 mips-sgi-irix3* ) | |
556 machine=iris4d opsys=irix3-3 | |
557 ;; | |
558 mips-sgi-irix5* ) | |
559 machine=iris4d opsys=irix5-0 | |
560 ;; | |
561 mips-sgi-irix4* | mips-sgi-irix* ) | |
562 machine=iris4d opsys=irix4-0 | |
563 ;; | |
564 | |
565 ## SONY machines | |
566 m68*-sony-bsd4.2* ) | |
567 machine=news opsys=bsd4-2 | |
568 ;; | |
569 m68*-sony-bsd4.3* ) | |
570 machine=news opsys=bsd4-3 | |
571 ;; | |
572 m68*-sony-newsos3*) | |
573 machine=news opsys=bsd4-3 | |
574 ;; | |
575 mips-sony-bsd* | mips-sony-newsos4* ) | |
576 machine=news-risc opsys=bsd4-3 | |
577 ;; | |
578 mips-sony-newsos* ) | |
579 machine=news-risc opsys=newsos5 | |
580 ;; | |
581 | |
582 ## Stride | |
583 m68*-stride-sysv* ) | |
584 machine=stride opsys=usg5-2 | |
585 ;; | |
586 | |
587 ## Suns | |
588 *-sun-sunos* | *-sun-bsd* | *-sun-solaris* | i[345]86-*-solaris2* | i[345]86-*-sunos5* ) | |
589 case "${canonical}" in | |
590 m68*-sunos1* ) machine=sun1 ;; | |
591 m68*-sunos2* ) machine=sun2 ;; | |
592 m68* ) machine=sun3 ;; | |
593 i[345]86-sun-sunos[34]* ) machine=sun386 ;; | |
594 i[345]86-*-* ) machine=intel386 ;; | |
595 sparc* ) machine=sparc ;; | |
596 * ) unported=yes ;; | |
597 esac | |
598 case "${canonical}" in | |
599 ## The Sun386 didn't get past 4.0. | |
600 i[345]86-*-sunos4 ) opsys=sunos4-0 ;; | |
601 *-sunos4.0* ) opsys=sunos4-0 ;; | |
602 *-sunos4.1.3* ) opsys=sunos4-1-3 | |
603 NON_GCC_TEST_OPTIONS=-Bstatic | |
604 GCC_TEST_OPTIONS=-static | |
605 ;; | |
606 *-sunos4shr* ) opsys=sunos4shr ;; | |
607 *-sunos4* | *-sunos ) opsys=sunos4-1 | |
608 NON_GCC_TEST_OPTIONS=-Bstatic | |
609 GCC_TEST_OPTIONS=-static | |
610 ;; | |
611 *-sunos5.3* | *-solaris2.3* ) | |
612 opsys=sol2-3 | |
613 NON_GNU_CPP=/usr/ccs/lib/cpp | |
614 ;; | |
615 *-sunos5.4* | *-solaris2.4* ) | |
616 opsys=sol2-4 | |
617 NON_GNU_CPP=/usr/ccs/lib/cpp | |
618 ;; | |
619 *-sunos5* | *-solaris* ) | |
620 opsys=sol2 | |
621 NON_GNU_CPP=/usr/ccs/lib/cpp | |
622 ;; | |
623 * ) opsys=bsd4-2 ;; | |
624 esac | |
625 ;; | |
626 | |
627 ## Tadpole 68k | |
628 m68*-tadpole-sysv* ) | |
629 machine=tad68k opsys=usg5-3 | |
630 ;; | |
631 | |
632 ## Tahoe machines | |
633 tahoe-tahoe-bsd4.2* ) | |
634 machine=tahoe opsys=bsd4-2 | |
635 ;; | |
636 tahoe-tahoe-bsd4.3* ) | |
637 machine=tahoe opsys=bsd4-3 | |
638 ;; | |
639 | |
640 ## Tandem Integrity S2 | |
641 mips-tandem-sysv* ) | |
642 machine=tandem-s2 opsys=usg5-3 | |
643 ;; | |
644 | |
645 ## Tektronix XD88 | |
646 m88k-tektronix-sysv3* ) | |
647 machine=tekxd88 opsys=usg5-3 | |
648 ;; | |
649 | |
650 ## Tektronix 16000 box (6130?) | |
651 ns16k-tektronix-bsd* ) | |
652 machine=ns16000 opsys=bsd4-2 | |
653 ;; | |
654 ## Tektronix 4300 | |
655 ## src/m/tek4300.h hints that this is a m68k machine. | |
656 m68*-tektronix-bsd* ) | |
657 machine=tek4300 opsys=bsd4-3 | |
658 ;; | |
659 | |
660 ## Titan P2 or P3 | |
661 ## We seem to have lost the machine-description file titan.h! | |
662 titan-titan-sysv* ) | |
663 machine=titan opsys=usg5-3 | |
664 ;; | |
665 | |
666 ## Ustation E30 (SS5E) | |
667 m68*-unisys-uniplus* ) | |
668 machine=ustation opsystem=unipl5-2 | |
669 ;; | |
670 | |
671 ## Vaxen. | |
672 vax-dec-* ) | |
673 machine=vax | |
674 case "${canonical}" in | |
675 *-bsd4.1* ) opsys=bsd4-1 ;; | |
676 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
677 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
678 *-bsd386* | *-bsdi* ) opsys=bsd386 ;; | |
679 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
680 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
681 *-vms* ) opsys=vms ;; | |
682 * ) unported=yes | |
683 esac | |
684 ;; | |
685 | |
686 ## Whitechapel MG1 | |
687 ns16k-whitechapel-* ) | |
688 machine=mg1 | |
689 ## We don't know what sort of OS runs on these; we'll let the | |
690 ## operating system guessing code below try. | |
691 ;; | |
692 | |
693 ## Wicat | |
694 m68*-wicat-sysv* ) | |
695 machine=wicat opsys=usg5-2 | |
696 ;; | |
697 | |
698 ## Intel 386 machines where we don't care about the manufacturer | |
699 i[345]86-*-* ) | |
700 machine=intel386 | |
701 case "${canonical}" in | |
702 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; | |
703 *-isc2.2* ) opsys=isc2-2 ;; | |
704 *-isc4.0* ) opsys=isc4-0 ;; | |
705 *-isc* ) opsys=isc3-0 ;; | |
706 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
707 *-esix* ) opsys=esix ;; | |
708 *-xenix* ) opsys=xenix ;; | |
709 *-linux* ) opsys=linux ;; | |
710 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
711 *-bsd386* | *-bsdi* ) opsys=bsd386 ;; | |
712 *-386bsd* ) opsys=386bsd ;; | |
713 *-freebsd* ) opsys=freebsd ;; | |
714 *-nextstep* ) opsys=mach2 ;; | |
715 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
716 esac | |
717 ;; | |
718 | |
719 * ) | |
720 unported=yes | |
721 ;; | |
722 esac | |
723 | |
724 ### If the code above didn't choose an operating system, just choose | |
725 ### an operating system based on the configuration name. You really | |
726 ### only want to use this when you have no idea what the right | |
727 ### operating system is; if you know what operating systems a machine | |
728 ### runs, it's cleaner to make it explicit in the case statement | |
729 ### above. | |
730 if test x"${opsys}" = x; then | |
731 case "${canonical}" in | |
732 *-gnu* ) opsys=gnu ;; | |
733 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
734 *-bsd4.2 ) opsys=bsd4-2 ;; | |
735 *-bsd4.3 ) opsys=bsd4-3 ;; | |
736 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
737 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
738 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
739 *-sysv3 | *-sysvr3 ) opsys=usg5-3 ;; | |
740 *-sysv4 | *-sysvr4 ) opsys=usg5-4 ;; | |
741 *-sysv4.1 | *-sysvr4.1 ) | |
742 NON_GNU_CPP=/usr/lib/cpp | |
743 opsys=usg5-4 ;; | |
744 *-sysv4.2 | *-sysvr4.2 ) opsys=usg5-4-2 ;; | |
745 * ) | |
746 unported=yes | |
747 ;; | |
748 esac | |
749 fi | |
750 | |
751 changequote([, ])dnl | |
752 | |
753 if test $unported = yes; then | |
754 AC_MSG_ERROR([Emacs hasn't been ported to \`${canonical}' systems. | |
755 Check \`etc/MACHINES' for recognized configuration names.]) | |
756 fi | |
757 | |
758 machfile="m/${machine}.h" | |
759 opsysfile="s/${opsys}.h" | |
760 | |
761 | |
762 #### Choose a compiler. | |
763 test -n "$CC" && cc_specified=yes | |
764 | |
765 case ${with_gcc} in | |
766 "yes" ) CC="gcc" GCC=yes ;; | |
767 "no" ) test -z "$CC" && CC=cc ;; | |
768 * ) AC_PROG_CC | |
769 esac | |
770 | |
771 # On Suns, sometimes $CPP names a directory. | |
772 if test -n "$CPP" && test -d "$CPP"; then | |
773 CPP= | |
774 fi | |
775 | |
776 #### Some systems specify a CPP to use unless we are using GCC. | |
777 #### Now that we know whether we are using GCC, we can decide whether | |
778 #### to use that one. | |
779 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
780 then | |
781 CPP="$NON_GNU_CPP" | |
782 fi | |
783 | |
784 #### Some systems specify a CC to use unless we are using GCC. | |
785 #### Now that we know whether we are using GCC, we can decide whether | |
786 #### to use that one. | |
787 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
788 test x$cc_specified != xyes | |
789 then | |
790 CC="$NON_GNU_CC" | |
791 fi | |
792 | |
793 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
794 then | |
795 CC="$CC $GCC_TEST_OPTIONS" | |
796 fi | |
797 | |
798 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
799 then | |
800 CC="$CC $NON_GCC_TEST_OPTIONS" | |
801 fi | |
802 | |
803 #### Some other nice autoconf tests. If you add a test here which | |
804 #### should make an entry in src/config.h, don't forget to add an | |
805 #### #undef clause to src/config.h.in for autoconf to modify. | |
806 | |
807 dnl checks for programs | |
808 AC_LN_S | |
809 AC_PROG_CPP | |
810 AC_PROG_INSTALL | |
811 AC_PROG_YACC | |
812 | |
813 dnl checks for header files | |
814 AC_HAVE_HEADERS(sys/timeb.h sys/time.h unistd.h) | |
815 AC_STDC_HEADERS | |
816 AC_TIME_WITH_SYS_TIME | |
817 AC_SYS_SIGLIST_DECLARED | |
818 | |
819 dnl checks for typedefs | |
820 AC_RETSIGTYPE | |
821 | |
822 dnl checks for structure members | |
823 AC_STRUCT_TM | |
824 AC_TIMEZONE | |
825 | |
826 dnl checks for compiler characteristics | |
827 AC_CONST | |
828 | |
829 dnl check for Make feature | |
830 AC_SET_MAKE | |
831 | |
832 dnl checks for operating system services | |
833 AC_LONG_FILE_NAMES | |
834 | |
835 dnl other checks for UNIX variants | |
836 | |
837 #### Choose a window system. | |
838 | |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
839 case "${with_x10}" in |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
840 yes ) window_system=x10 ;; |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
841 no ) window_system=none ;; |
8677
d41510c69a3f
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8674
diff
changeset
|
842 *) |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
843 AC_FIND_X |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
844 if test "$no_x" = yes; then |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
845 window_system=none |
8636 | 846 else |
847 window_system=x11 | |
848 fi | |
849 ;; | |
850 esac | |
851 | |
852 test "${x_libraries}" != NONE && LD_SWITCH_X_SITE="-L${x_libraries}" | |
853 test "${x_libraries}" != NONE && LD_SWITCH_X_SITE_AUX="-R${x_libraries}" | |
854 test "${x_includes}" != NONE && C_SWITCH_X_SITE="-I${x_includes}" | |
855 | |
856 case "${window_system}" in | |
857 x11 ) | |
858 HAVE_X_WINDOWS=yes | |
859 HAVE_X11=yes | |
860 case "${with_x_toolkit}" in | |
861 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
862 dnl motif ) USE_X_TOOLKIT=MOTIF ;; |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
863 dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; |
8636 | 864 * ) USE_X_TOOLKIT=none ;; |
865 esac | |
866 ;; | |
867 x10 ) | |
868 HAVE_X_WINDOWS=yes | |
869 HAVE_X11=no | |
870 USE_X_TOOLKIT=none | |
871 ;; | |
872 none ) | |
873 HAVE_X_WINDOWS=no | |
874 HAVE_X11=no | |
875 USE_X_TOOLKIT=none | |
876 ;; | |
877 esac | |
878 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
879 | |
880 ### If we're using X11, we should use the X menu package. | |
881 HAVE_X_MENU=no | |
882 case ${HAVE_X11} in | |
883 yes ) HAVE_X_MENU=yes ;; | |
884 esac | |
885 | |
886 #### Extract some information from the operating system and machine files. | |
887 | |
888 AC_CHECKING([the machine- and system-dependent files to find out | |
889 - which libraries the lib-src programs will want, and | |
890 - whether the GNU malloc routines are usable]) | |
891 | |
892 ### First figure out CFLAGS (which we use for running the compiler here) | |
893 ### and REAL_CFLAGS (which we use for real compilation). | |
894 ### The two are the same except on a few systems, where they are made | |
895 ### different to work around various lossages. For example, | |
896 ### GCC 2.5 on Linux needs them to be different because it treats -g | |
897 ### as implying static linking. | |
898 | |
899 ### If the CFLAGS env var is specified, we use that value | |
900 ### instead of the default. | |
901 | |
902 ### It's not important that this name contain the PID; you can't run | |
903 ### two configures in the same directory and have anything work | |
904 ### anyway. | |
905 tempcname="conftest.c" | |
906 | |
907 echo ' | |
908 #include "'${srcdir}'/src/'${opsysfile}'" | |
909 #include "'${srcdir}'/src/'${machfile}'" | |
910 #ifndef LIBS_MACHINE | |
911 #define LIBS_MACHINE | |
912 #endif | |
913 #ifndef LIBS_SYSTEM | |
914 #define LIBS_SYSTEM | |
915 #endif | |
916 #ifndef C_SWITCH_SYSTEM | |
917 #define C_SWITCH_SYSTEM | |
918 #endif | |
919 #ifndef C_SWITCH_MACHINE | |
920 #define C_SWITCH_MACHINE | |
921 #endif | |
922 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
923 configure___ c_switch_system=C_SWITCH_SYSTEM | |
924 configure___ c_switch_machine=C_SWITCH_MACHINE | |
925 | |
926 #ifndef LIB_X11_LIB | |
927 #define LIB_X11_LIB -lX11 | |
928 #endif | |
929 | |
930 #ifndef LIBX11_MACHINE | |
931 #define LIBX11_MACHINE | |
932 #endif | |
933 | |
934 #ifndef LIBX11_SYSTEM | |
935 #define LIBX11_SYSTEM | |
936 #endif | |
937 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
938 | |
939 #ifdef UNEXEC | |
940 configure___ unexec=UNEXEC | |
941 #else | |
942 configure___ unexec=unexec.o | |
943 #endif | |
944 | |
945 #ifdef SYSTEM_MALLOC | |
946 configure___ system_malloc=yes | |
947 #else | |
948 configure___ system_malloc=no | |
949 #endif | |
950 | |
951 #ifndef C_DEBUG_SWITCH | |
952 #define C_DEBUG_SWITCH -g | |
953 #endif | |
954 | |
955 #ifndef C_OPTIMIZE_SWITCH | |
956 #define C_OPTIMIZE_SWITCH -O | |
957 #endif | |
958 | |
959 #ifdef THIS_IS_CONFIGURE | |
960 | |
961 /* Get the CFLAGS for tests in configure. */ | |
962 #ifdef __GNUC__ | |
963 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}' | |
964 #else | |
965 configure___ CFLAGS=C_DEBUG_SWITCH '${CFLAGS}' | |
966 #endif | |
967 | |
968 #else /* not THIS_IS_CONFIGURE */ | |
969 | |
970 /* Get the CFLAGS for real compilation. */ | |
971 #ifdef __GNUC__ | |
972 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${CFLAGS}' | |
973 #else | |
974 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${CFLAGS}' | |
975 #endif | |
976 | |
977 #endif /* not THIS_IS_CONFIGURE */ | |
978 ' > ${tempcname} | |
979 | |
980 # The value of CPP is a quoted variable reference, so we need to do this | |
981 # to get its actual value... | |
982 CPP=`eval "echo $CPP"` | |
983 changequote(, )dnl | |
984 eval `${CPP} -Isrc ${tempcname} \ | |
985 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
986 if test "x$CFLAGS" = x; then | |
987 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
988 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
989 else | |
990 REAL_CFLAGS="$CFLAGS" | |
991 fi | |
992 changequote([, ])dnl | |
993 rm ${tempcname} | |
994 | |
995 ### Compute the unexec source name from the object name. | |
996 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
997 | |
998 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
999 # Assume not, until told otherwise. | |
1000 GNU_MALLOC=yes | |
1001 if test "${system_malloc}" = "yes"; then | |
1002 GNU_MALLOC=no | |
1003 GNU_MALLOC_reason=" | |
1004 (The GNU allocators don't work with this system configuration.)" | |
1005 fi | |
1006 | |
1007 if test x"${REL_ALLOC}" = x; then | |
1008 REL_ALLOC=${GNU_MALLOC} | |
1009 fi | |
1010 | |
1011 LISP_FLOAT_TYPE=yes | |
1012 | |
1013 | |
1014 #### Add the libraries to LIBS and check for some functions. | |
1015 | |
1016 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
1017 LIBS="$libsrc_libs" | |
1018 | |
1019 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks, | |
1020 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks. | |
1021 AC_CHECK_LIB(dnet, dnet_ntoa) | |
1022 dnl This causes -lresolv to get used in subsequent tests, | |
1023 dnl which causes failures on some systems such as HPUX 9. | |
1024 dnl AC_CHECK_LIB(resolv, gethostbyname) | |
1025 | |
1026 dnl FIXME replace main with a function we actually want from this library. | |
1027 AC_CHECK_LIB(Xbsd, main, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") | |
1028 | |
1029 AC_MSG_CHECKING(for XFree86) | |
1030 if test -d /usr/X386/include; then | |
1031 AC_MSG_RESULT(yes) | |
1032 HAVE_XFREE386=yes | |
1033 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include" | |
1034 else | |
1035 AC_MSG_RESULT(no) | |
1036 fi | |
1037 | |
1038 # We change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
1039 # for the tests that follow. | |
1040 | |
1041 if test "${HAVE_X11}" = "yes"; then | |
1042 DEFS="$C_SWITCH_X_SITE $DEFS" | |
1043 LIBS="$LD_SWITCH_X_SITE $LIBX $LIBS" | |
1044 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
1045 AC_HAVE_FUNCS(XrmSetDatabase XScreenResourceString \ | |
1046 XScreenNumberOfScreen XSetWMProtocols) | |
1047 fi | |
1048 | |
1049 if test "${USE_X_TOOLKIT}" != "none"; then | |
1050 AC_MSG_CHECKING(X11 toolkit version) | |
1051 AC_COMPILE_CHECK(, [#include <X11/Intrinsic.h>], | |
1052 [#if XtSpecificationRelease < 6 | |
1053 fail; | |
1054 #endif | |
1055 ], [AC_MSG_RESULT(6) | |
1056 AC_DEFINE(HAVE_X11XTR6)], | |
1057 [AC_MSG_RESULT(not 6)]) | |
1058 fi | |
1059 | |
1060 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
1061 AC_MSG_CHECKING(whether netdb declarares h_errno) | |
1062 AC_COMPILE_CHECK(, [#include <netdb.h>], | |
1063 [int | |
1064 foo () | |
1065 { | |
1066 return h_errno; | |
1067 } | |
1068 ], [AC_MSG_RESULT(yes) | |
1069 AC_DEFINE(HAVE_H_ERRNO)], | |
1070 [AC_MSG_RESULT(no)]) | |
1071 | |
1072 AC_ALLOCA | |
1073 | |
1074 # logb and frexp are found in -lm on most systems. | |
1075 AC_CHECK_LIB(m, logb) | |
1076 AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir mkdir rmdir \ | |
1077 random rand48 bcopy bcmp logb frexp fmod drem ftime res_init setsid strerror \ | |
1078 fpathconf) | |
1079 | |
1080 ok_so_far=yes | |
1081 AC_FUNC_CHECK(socket, , ok_so_far=no) | |
1082 if test $ok_so_far = yes; then | |
1083 AC_HEADER_CHECK(netinet/in.h, , ok_so_far=no) | |
1084 fi | |
1085 if test $ok_so_far = yes; then | |
1086 AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=no) | |
1087 fi | |
1088 if test $ok_so_far = yes; then | |
1089 AC_DEFINE(HAVE_INET_SOCKETS) | |
1090 fi | |
1091 | |
1092 # Set up the CFLAGS for real compilation, so we can substitute it. | |
1093 CFLAGS="$REAL_CFLAGS" | |
1094 | |
1095 changequote(, )dnl | |
1096 #### Find out which version of Emacs this is. | |
1097 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
1098 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
1099 changequote([, ])dnl | |
1100 if test x"${version}" = x; then | |
1101 AC_MSG_ERROR(can't find current emacs version in \`${srcdir}/lisp/version.el'.) | |
1102 fi | |
1103 | |
1104 if test -f /usr/lpp/X11/bin/smt.exp; then | |
1105 AC_DEFINE(HAVE_AIX_SMT_EXP) | |
1106 fi | |
1107 | |
1108 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
1109 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
1110 AC_SUBST(version) | |
1111 AC_SUBST(configuration) | |
1112 AC_SUBST(srcdir) | |
1113 AC_SUBST(prefix) | |
1114 AC_SUBST(exec_prefix) | |
1115 AC_SUBST(bindir) | |
1116 AC_SUBST(datadir) | |
1117 AC_SUBST(statedir) | |
1118 AC_SUBST(libdir) | |
1119 AC_SUBST(mandir) | |
1120 AC_SUBST(infodir) | |
1121 AC_SUBST(lispdir) | |
1122 AC_SUBST(locallisppath) | |
1123 AC_SUBST(lisppath) | |
1124 AC_SUBST(etcdir) | |
1125 AC_SUBST(lockdir) | |
1126 AC_SUBST(archlibdir) | |
1127 AC_SUBST(docdir) | |
1128 AC_SUBST(c_switch_system) | |
1129 AC_SUBST(c_switch_machine) | |
1130 AC_SUBST(LD_SWITCH_X_SITE) | |
1131 AC_SUBST(LD_SWITCH_X_SITE_AUX) | |
1132 AC_SUBST(C_SWITCH_X_SITE) | |
1133 AC_SUBST(CFLAGS) | |
1134 AC_SUBST(X_TOOLKIT_TYPE) | |
1135 AC_SUBST(machfile) | |
1136 AC_SUBST(opsysfile) | |
1137 | |
1138 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${configuration}") | |
1139 AC_DEFINE_UNQUOTED(config_machfile, "${machfile}") | |
1140 AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}") | |
1141 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}) | |
1142 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX}) | |
1143 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}) | |
1144 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC}) | |
1145 | |
1146 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
1147 AC_DEFINE(HAVE_X_WINDOWS) | |
1148 fi | |
1149 if test "${USE_X_TOOLKIT}" != "none" ; then | |
1150 AC_DEFINE(USE_X_TOOLKIT) | |
1151 fi | |
1152 if test "${HAVE_X11}" = "yes" ; then | |
1153 AC_DEFINE(HAVE_X11) | |
1154 fi | |
1155 if test "${HAVE_XFREE386}" = "yes" ; then | |
1156 AC_DEFINE(HAVE_XFREE386) | |
1157 fi | |
1158 if test "${HAVE_X_MENU}" = "yes" ; then | |
1159 AC_DEFINE(HAVE_X_MENU) | |
1160 fi | |
1161 if test "${GNU_MALLOC}" = "yes" ; then | |
1162 AC_DEFINE(GNU_MALLOC) | |
1163 fi | |
1164 if test "${REL_ALLOC}" = "yes" ; then | |
1165 AC_DEFINE(REL_ALLOC) | |
1166 fi | |
1167 if test "${LISP_FLOAT_TYPE}" = "yes" ; then | |
1168 AC_DEFINE(LISP_FLOAT_TYPE) | |
1169 fi | |
1170 | |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1171 dnl # ====================== Developer's configuration ======================= |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1172 dnl |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1173 dnl # The following assignments make sense if you're running Emacs on a single |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1174 dnl # machine, one version at a time, and you want changes to the lisp and etc |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1175 dnl # directories in the source tree to show up immediately in your working |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1176 dnl # environment. It saves a great deal of disk space by not duplicating the |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1177 dnl # lisp and etc directories. |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1178 dnl |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1179 dnl if test "$enable_single_tree" = "yes"; then |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1180 dnl bindir='${exec_prefix}/bin/${configuration}' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1181 dnl datadir='${prefix}/common' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1182 dnl statedir='${prefix}/common' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1183 dnl libdir='${bindir}' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1184 dnl lispdir='${prefix}/common/lisp' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1185 dnl locallisppath='${prefix}/common/site-lisp' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1186 dnl lockdir='${prefix}/common/lock' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1187 dnl archlibdir='${libdir}/etc' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1188 dnl etcdir='${prefix}/common/data' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1189 dnl docdir='${prefix}/common/data' |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
1190 dnl fi |
8636 | 1191 |
1192 #### Report on what we decided to do. | |
1193 echo " | |
1194 | |
1195 Configured for \`${canonical}'. | |
1196 | |
1197 Where should the build process find the source code? ${srcdir} | |
1198 What operating system and machine description files should Emacs use? | |
1199 \`${opsysfile}' and \`${machfile}' | |
1200 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
1201 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
1202 Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | |
1203 What window system should Emacs use? ${window_system} | |
1204 What toolkit should Emacs use? ${USE_X_TOOLKIT}${x_includes+ | |
1205 Where do we find X Windows header files? }${x_includes}${x_libraries+ | |
1206 Where do we find X Windows libraries? }${x_libraries} | |
1207 | |
1208 " | |
1209 | |
1210 # Remove any trailing slashes in these variables. | |
1211 changequote(, )dnl | |
1212 test "${prefix}" != NONE && | |
1213 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
1214 test "${exec_prefix}" != NONE && | |
1215 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
1216 changequote([, ])dnl | |
1217 | |
8677
d41510c69a3f
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8674
diff
changeset
|
1218 AC_OUTPUT(Makefile lib-src/Makefile.in oldXMenu/Makefile \ |
d41510c69a3f
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8674
diff
changeset
|
1219 lwlib/Makefile src/Makefile.in, [ |
8636 | 1220 ### Make the necessary directories, if they don't exist. |
1221 for dir in ./src ./lib-src ./cpp ./oldXMenu ./lwlib ./etc ; do | |
1222 if test ! -d ${dir}; then | |
1223 mkdir ${dir} | |
1224 fi | |
1225 done | |
1226 | |
1227 # Build src/Makefile from ${srcdir}/src/Makefile.in. This must be done | |
1228 # after src/config.h is built, since we rely on that file. | |
1229 | |
1230 changequote(,)dnl The horror, the horror. | |
1231 # Now get this: Some word that is part of the ${srcdir} directory name | |
1232 # or the ${configuration} value might, just might, happen to be an | |
1233 # identifier like `sun4' or `i386' or something, and be predefined by | |
1234 # the C preprocessor to some helpful value like 1, or maybe the empty | |
1235 # string. Needless to say consequent macro substitutions are less | |
1236 # than conducive to the makefile finding the correct directory. | |
1237 undefs="`echo $top_srcdir $configuration $canonical | | |
1238 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
1239 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
1240 `" | |
1241 changequote([,])dnl | |
1242 | |
1243 echo creating lib-src/Makefile | |
1244 ( cd lib-src | |
1245 rm -f junk.c junk1.c junk2.c | |
1246 sed -e '/start of cpp stuff/q' \ | |
1247 < Makefile.in > junk1.c | |
1248 sed -e '1,/start of cpp stuff/d'\ | |
1249 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
1250 < Makefile.in > junk.c | |
1251 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
1252 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
1253 cat junk1.c junk2.c > Makefile.new | |
1254 rm -f junk.c junk1.c junk2.c | |
1255 chmod 444 Makefile.new | |
1256 mv -f Makefile.new Makefile | |
1257 ) | |
1258 | |
1259 echo creating src/Makefile | |
1260 ( cd src | |
1261 rm -f junk.c junk1.c junk2.c | |
1262 sed -e '/start of cpp stuff/q' \ | |
1263 < Makefile.in > junk1.c | |
1264 sed -e '1,/start of cpp stuff/d'\ | |
1265 -e 's@/\*\*/#\(.*\)$@/* \1 */@' \ | |
1266 < Makefile.in > junk.c | |
1267 $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \ | |
1268 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c | |
1269 cat junk1.c junk2.c > Makefile.new | |
1270 rm -f junk.c junk1.c junk2.c | |
1271 chmod 444 Makefile.new | |
1272 mv -f Makefile.new Makefile | |
1273 ) | |
8677
d41510c69a3f
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8674
diff
changeset
|
1274 ], [CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) |