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