root/branches/2.1/configure.in

Revision 3212, 66.4 kB (checked in by miyoshi, 5 years ago)

Sync up with Emacs-21.3.

Line 
1 dnl  Autoconf script for GNU Emacs
2 dnl To rebuild the `configure' script from this, execute the command
3 dnl     autoconf
4 dnl in the directory containing this script.
5 dnl
6 dnl  Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002
7 dnl  Free Software Foundation, Inc.
8 dnl
9 dnl  This file is part of GNU Emacs.
10 dnl
11 dnl  GNU Emacs is free software; you can redistribute it and/or modify
12 dnl  it under the terms of the GNU General Public License as published by
13 dnl  the Free Software Foundation; either version 2, or (at your option)
14 dnl  any later version.
15 dnl
16 dnl  GNU Emacs is distributed in the hope that it will be useful,
17 dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 dnl  GNU General Public License for more details.
20 dnl
21 dnl  You should have received a copy of the GNU General Public License
22 dnl  along with GNU Emacs; see the file COPYING.  If not, write to the
23 dnl  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24 dnl  Boston, MA 02111-1307, USA.
25
26 AC_PREREQ(2.8)dnl
27 AC_INIT(src/lisp.h)
28 AC_CONFIG_HEADER(src/config.h:src/config.in)
29
30 lispdir='${datadir}/emacs/${version}/lisp'
31 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
32 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
33 lisppath='${locallisppath}:${lispdir}'
34 etcdir='${datadir}/emacs/${version}/etc'
35 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
36 docdir='${datadir}/emacs/${version}/etc'
37
38 AC_ARG_WITH(gcc,
39 [  --without-gcc           don't use GCC to compile Emacs if GCC is found])
40 AC_ARG_WITH(pop,
41 [  --without-pop           don't support POP mail retrieval with movemail],
42 [if test "$withval" = yes; then
43    AC_DEFINE(MAIL_USE_POP)
44 else :
45 fi],
46 AC_DEFINE(MAIL_USE_POP))
47 AC_ARG_WITH(kerberos,
48 [  --with-kerberos         support Kerberos-authenticated POP],
49 [AC_DEFINE(KERBEROS)])
50 AC_ARG_WITH(kerberos5,
51 [  --with-kerberos5        support Kerberos version 5 authenticated POP],
52 [if test "${with_kerberos5+set}" = set; then
53   if test "${with_kerberos+set}" != set; then
54     with_kerberos=yes
55     AC_DEFINE(KERBEROS)
56   fi
57 fi
58 AC_DEFINE(KERBEROS5)])
59 AC_ARG_WITH(hesiod,
60 [  --with-hesiod           support Hesiod to get the POP server host],
61 [AC_DEFINE(HESIOD)])
62 dnl This should be the last --with option, because --with-x is
63 dnl added later on when we find the path of X, and it's best to
64 dnl keep them together visually.
65 AC_ARG_WITH(x-toolkit,
66 [  --with-x-toolkit=KIT    use an X toolkit (KIT = yes/lucid/athena/motif/no)],
67 [         case "${withval}" in
68             y | ye | yes )      val=athena ;;
69             n | no )            val=no  ;;
70             l | lu | luc | luci | lucid )       val=lucid ;;
71             a | at | ath | athe | athen | athena )      val=athena ;;
72             m | mo | mot | moti | motif )       val=motif ;;
73 dnl These don't currently work.
74 dnl         o | op | ope | open | open- | open-l | open-lo \
75 dnl             | open-loo | open-look )        val=open-look ;;
76             * )
77 dnl AC_MSG_ERROR([the \`--with-x-toolkit' option is supposed to have a value
78 dnl which is \`yes', \`no', \`lucid', \`athena', \`motif' or \`open-look'.])
79 AC_MSG_ERROR([\`--with-x-toolkit=$withval' is invalid\;
80 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
81 Currently, \`yes', \`athena' and \`lucid' are synonyms.])
82             ;;
83           esac
84           with_x_toolkit=$val
85 ])
86 AC_ARG_WITH(xpm,
87 [  --with-xpm              use -lXpm for displaying XPM images])
88 AC_ARG_WITH(jpeg,
89 [  --with-jpeg             use -ljpeg for displaying JPEG images])
90 AC_ARG_WITH(tiff,
91 [  --with-tiff             use -ltiff for displaying TIFF images])
92 AC_ARG_WITH(gif,
93 [  --with-gif              use -lungif for displaying GIF images])
94 AC_ARG_WITH(png,
95 [  --with-png              use -lpng for displaying PNG images])
96 AC_ARG_WITH(toolkit-scroll-bars,
97 [  --without-toolkit-scroll-bars
98                           don't use Motif or Xaw3d scroll bars])
99 AC_ARG_WITH(xim,
100 [  --without-xim           don't use X11 XIM])
101
102 PDUMP=no
103 AC_ARG_WITH(pdump,
104 [  --with-pdump            use portable dumper],
105 [        case "${withval}" in
106            n | no )                             ;;
107            debug )      AC_DEFINE(PDUMP_DEBUG)
108                         AC_DEFINE(PDUMP)
109                         PDUMP='yes (debug)'     ;;
110            *)           AC_DEFINE(PDUMP)
111                         PDUMP=yes               ;;
112          esac
113 ])
114 #### Make srcdir absolute, if it isn't already.  It's important to
115 #### avoid running the path through pwd unnecessarily, since pwd can
116 #### give you automounter prefixes, which can go away.  We do all this
117 #### so Emacs can find its files when run uninstalled.
118 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
119 unset CDPATH
120 case "${srcdir}" in
121   /* ) ;;
122   . )
123     ## We may be able to use the $PWD environment variable to make this
124     ## absolute.  But sometimes PWD is inaccurate.
125     if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}"  ;
126     then
127       srcdir="$PWD"
128     else
129       srcdir="`(cd ${srcdir}; pwd)`"
130     fi
131   ;;
132   *  ) srcdir="`(cd ${srcdir}; pwd)`" ;;
133 esac
134
135 #### Check if the source directory already has a configured system in it.
136 if test `pwd` != `(cd ${srcdir} && pwd)` \
137    && test -f "${srcdir}/src/config.h" ; then
138   AC_MSG_WARN([The directory tree \`${srcdir}' is being used
139    as a build directory right now; it has been configured in its own
140    right.  To configure in another directory as well, you MUST
141    use GNU make.  If you do not have GNU make, then you must
142    now do \`make distclean' in ${srcdir},
143    and then run $0 again.])
144
145 changequote(, )dnl
146   extrasub='/^VPATH[     ]*=/c\
147 changequote([, ])dnl
148 vpath %.c $(srcdir)\
149 vpath %.h $(srcdir)\
150 vpath %.y $(srcdir)\
151 vpath %.l $(srcdir)\
152 vpath %.s $(srcdir)\
153 vpath %.in $(srcdir)\
154 vpath %.texi $(srcdir)'
155 fi
156
157 #### Given the configuration name, set machfile and opsysfile to the
158 #### names of the m/*.h and s/*.h files we should use.
159
160 ### Canonicalize the configuration name.
161
162 AC_CANONICAL_HOST
163 canonical=$host
164 configuration=$host_alias
165
166 changequote(, )dnl
167
168 ### If you add support for a new configuration, add code to this
169 ### switch statement to recognize your configuration name and select
170 ### the appropriate operating system and machine description files.
171
172 ### You would hope that you could choose an m/*.h file pretty much
173 ### based on the machine portion of the configuration name, and an s-
174 ### file based on the operating system portion.  However, it turns out
175 ### that each m/*.h file is pretty manufacturer-specific - for
176 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
177 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
178 ### machines.  So we basically have to have a special case for each
179 ### configuration name.
180 ###
181 ### As far as handling version numbers on operating systems is
182 ### concerned, make sure things will fail in a fixable way.  If
183 ### /etc/MACHINES doesn't say anything about version numbers, be
184 ### prepared to handle anything reasonably.  If version numbers
185 ### matter, be sure /etc/MACHINES says something about it.
186 ###
187 ### Eric Raymond says we should accept strings like "sysvr4" to mean
188 ### "System V Release 4"; he writes, "The old convention encouraged
189 ### confusion between `system' and `release' levels'."
190
191 machine='' opsys='' unported=no
192 case "${canonical}" in
193
194   ## NetBSD ports
195   *-*-netbsd* )
196     opsys=netbsd
197     case "${canonical}" in
198       alpha*-*-netbsd*) machine=alpha ;;
199       i[3456]86-*-netbsd*) machine=intel386 ;;
200       m68k-*-netbsd*)
201                         # This is somewhat bogus.
202                         machine=hp9000s300 ;;
203       powerpc-apple-netbsd*) machine=macppc ;;
204       mips-*-netbsd*)   machine=pmax ;;
205       mipsel-*-netbsd*) machine=pmax ;;
206       ns32k-*-netbsd*)  machine=ns32000 ;;
207       powerpc-*-netbsd*) machine=macppc ;;
208       sparc*-*-netbsd*) machine=sparc ;;
209       vax-*-netbsd*)    machine=vax ;;
210       arm-*-netbsd*)    machine=arm ;;
211     esac
212   ;;
213
214   ## OpenBSD ports
215   *-*-openbsd* )
216     opsys=openbsd
217     case "${canonical}" in
218       alpha*-*-openbsd*)        machine=alpha ;;
219       i386-*-openbsd*)  machine=intel386 ;;
220       m68k-*-openbsd*)  machine=hp9000s300 ;;
221       mipsel-*-openbsd*) machine=pmax ;;
222       ns32k-*-openbsd*) machine=ns32000 ;;
223       sparc-*-openbsd*) machine=sparc ;;
224       vax-*-openbsd*)   machine=vax ;;
225     esac
226   ;;
227
228   ## Acorn RISCiX:
229   arm-acorn-riscix1.1* )
230     machine=acorn opsys=riscix1-1
231   ;;
232   arm-acorn-riscix1.2* | arm-acorn-riscix )
233     ## This name is riscix12 instead of riscix1.2
234     ## to avoid a file name conflict on MSDOS.
235     machine=acorn opsys=riscix12
236   ;;
237
238   ## BSDI ports
239   *-*-bsdi* )
240     opsys=bsdi
241     case "${canonical}" in
242       i[345]86-*-bsdi*) machine=intel386 ;;
243       sparc-*-bsdi*)  machine=sparc ;;
244       powerpc-*-bsdi*)  machine=macppc ;;
245     esac
246     case "${canonical}" in
247       *-*-bsd386* | *-*-bsdi1* )        opsys=bsd386 ;;
248       *-*-bsdi2.0* )            opsys=bsdos2 ;;
249       *-*-bsdi2* )              opsys=bsdos2-1 ;;
250       *-*-bsdi3* )              opsys=bsdos3 ;;
251       *-*-bsdi[45]* )           opsys=bsdos4 ;;
252     esac
253   ;;
254
255   ## Alliant machines
256   ## Strictly speaking, we need the version of the alliant operating
257   ## system to choose the right machine file, but currently the
258   ## configuration name doesn't tell us enough to choose the right
259   ## one; we need to give alliants their own operating system name to
260   ## do this right.  When someone cares, they can help us.
261   fx80-alliant-* )
262     machine=alliant4 opsys=bsd4-2
263   ;;
264   i860-alliant-* )
265     machine=alliant-2800 opsys=bsd4-3
266   ;;
267
268   ## Alpha (DEC) machines.
269   alpha*-dec-osf* )
270     machine=alpha opsys=osf1
271     # This is needed to find X11R6.1 libraries for certain tests.
272     NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
273     GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
274     # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
275     # due to non-traditional preprocessing with the current compiler
276     # defaults.  OSF 4 can also have that compiler version, and there
277     # seems always to have been a usable /usr/bin/cpp.
278     NON_GNU_CPP=/usr/bin/cpp
279     case "${canonical}" in
280     alpha*-dec-osf[5-9]*)
281       opsys=osf5-0 ;;
282     esac
283   ;;
284
285   alpha*-*-linux-gnu* )
286     machine=alpha opsys=gnu-linux
287   ;;
288
289   arm*-*-linux-gnu* )
290     machine=arm opsys=gnu-linux
291   ;;
292
293   ppc-*-linux | \
294   powerpc-*-linux* )
295     machine=macppc opsys=gnu-linux
296   ;;
297
298   ## Altos 3068
299   m68*-altos-sysv* )
300     machine=altos opsys=usg5-2
301   ;;
302
303   ## Amdahl UTS
304   580-amdahl-sysv* )
305     machine=amdahl opsys=usg5-2-2
306   ;;
307
308   ## Apollo, Domain/OS
309   m68*-apollo-* )
310     machine=apollo opsys=bsd4-3
311   ;;
312
313   ## AT&T 3b2, 3b5, 3b15, 3b20
314   we32k-att-sysv* )
315     machine=att3b opsys=usg5-2-2
316   ;;
317
318   ## AT&T 3b1 - The Mighty Unix PC!
319   m68*-att-sysv* )
320     machine=7300 opsys=usg5-2-2
321   ;;
322
323   ## Bull dpx20
324   rs6000-bull-bosx* )
325     machine=ibmrs6000 opsys=aix3-2
326   ;;
327
328   ## Bull dpx2
329   m68*-bull-sysv3* )
330     machine=dpx2 opsys=usg5-3
331   ;;
332
333   ## Bull sps7
334   m68*-bull-sysv2* )
335     machine=sps7 opsys=usg5-2
336   ;;
337
338   ## CCI 5/32, 6/32 -- see "Tahoe".
339
340   ## Celerity
341   ## I don't know what configuration name to use for this; config.sub
342   ## doesn't seem to know anything about it.  Hey, Celerity users, get
343   ## in touch with us!
344   celerity-celerity-bsd* )
345     machine=celerity opsys=bsd4-2
346   ;;
347
348   ## Clipper
349   ## What operating systems does this chip run that Emacs has been
350   ## tested on?
351   clipper-* )
352     machine=clipper
353     ## We'll use the catch-all code at the bottom to guess the
354     ## operating system.
355   ;;
356
357   ## Convex
358   *-convex-bsd* | *-convex-convexos* )
359     machine=convex opsys=bsd4-3
360     ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
361     NON_GNU_CPP="cc -E -P"
362   ;;
363
364   ## Cubix QBx/386
365   i[3456]86-cubix-sysv* )
366     machine=intel386 opsys=usg5-3
367   ;;
368
369   ## Cydra 5
370   cydra*-cydrome-sysv* )
371     machine=cydra5 opsys=usg5-3
372   ;;
373
374   ## Data General AViiON Machines
375   ## DG changed naming conventions with the release of 5.4.4.10, they
376   ## dropped the initial 5.4 but left the intervening R.  Because of the
377   ## R this shouldn't conflict with older versions of the OS (which I
378   ## think were named like dgux4.*). In addition, DG new AViiONs series
379   ## uses either Motorola M88k or Intel Pentium CPUs.
380   m88k-dg-dguxR4.* | m88k-dg-dgux4* )
381     machine=aviion opsys=dgux4
382   ;;
383   m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
384     ## This name is dgux5-4-3 instead of dgux5-4r3
385     ## to avoid a file name conflict on MSDOS.
386     machine=aviion opsys=dgux5-4-3
387   ;;
388   m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
389     machine=aviion opsys=dgux5-4r2
390   ;;
391   m88k-dg-dgux* )
392     machine=aviion opsys=dgux
393   ;;
394
395   ## Data General AViiON Intel (x86) Machines
396   ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
397   ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
398   i[345]86-dg-dguxR4* )
399     machine=aviion-intel opsys=dgux4
400   ;;
401
402   ## DECstations
403   mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
404     machine=pmax opsys=bsd4-2
405   ;;
406   mips-dec-ultrix4.[12]* | mips-dec-bsd* )
407     machine=pmax opsys=bsd4-3
408   ;;
409   mips-dec-ultrix* )
410     machine=pmax opsys=ultrix4-3
411   ;;
412   mips-dec-osf* )
413     machine=pmax opsys=osf1
414   ;;
415   mips-dec-mach_bsd4.3* )
416     machine=pmax opsys=mach-bsd4-3
417   ;;
418
419   ## Motorola Delta machines
420   m68k-motorola-sysv* | m68000-motorola-sysv* )
421     machine=delta opsys=usg5-3
422     if test -z "`type gnucc | grep 'not found'`"
423     then
424       if test -s /etc/167config
425       then CC="gnucc -m68040"
426       else CC="gnucc -m68881"
427       fi
428     else
429       if test -z "`type gcc | grep 'not found'`"
430       then CC=gcc
431       else CC=cc
432       fi
433     fi
434   ;;
435   m88k-motorola-sysv4* )
436     # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
437     # needs POSIX_SIGNALS and therefore needs usg5-4-2.
438     # I hope there are not other 4.0 versions for this machine
439     # which really need usg5-4 instead.
440     machine=delta88k opsys=usg5-4-2
441   ;;
442   m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
443     machine=delta88k opsys=usg5-3
444   ;;
445
446   ## Dual machines
447   m68*-dual-sysv* )
448     machine=dual opsys=usg5-2
449   ;;
450   m68*-dual-uniplus* )
451     machine=dual opsys=unipl5-2
452   ;;
453
454   ## Elxsi 6400
455   elxsi-elxsi-sysv* )
456     machine=elxsi opsys=usg5-2
457   ;;
458
459   ## Encore machines
460   ns16k-encore-bsd* )
461     machine=ns16000 opsys=umax
462   ;;
463
464   ## The GEC 63 - apparently, this port isn't really finished yet.
465   #  I'm sure we finished off the last of the machines, though.  -- fx
466
467   ## Gould Power Node and NP1
468   pn-gould-bsd4.2* )
469     machine=gould opsys=bsd4-2
470   ;;
471   pn-gould-bsd4.3* )
472     machine=gould opsys=bsd4-3
473   ;;
474   np1-gould-bsd* )
475     machine=gould-np1 opsys=bsd4-3
476   ;;
477
478   ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
479   ## as far as Emacs is concerned).
480   m88k-harris-cxux* )
481     # Build needs to be different on 7.0 and later releases
482     case "`uname -r`" in
483        [56].[0-9] ) machine=nh4000 opsys=cxux ;;
484        [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
485     esac
486     NON_GNU_CPP="/lib/cpp"
487   ;;
488   ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
489   m68k-harris-cxux* )
490     machine=nh3000 opsys=cxux
491   ;;
492   ## Harris power pc NightHawk running Power UNIX (Series 6000)
493   powerpc-harris-powerunix )
494     machine=nh6000 opsys=powerunix
495     NON_GNU_CPP="cc -Xo -E -P"
496   ;;
497   ## SR2001/SR2201 running HI-UX/MPP
498   hppa1.1-hitachi-hiuxmpp* )
499     machine=sr2k opsys=hiuxmpp
500   ;;
501   hppa1.1-hitachi-hiuxwe2* )
502     machine=sr2k opsys=hiuxwe2
503   ;;
504   ## Honeywell XPS100
505   xps*-honeywell-sysv* )
506     machine=xps100 opsys=usg5-2
507   ;;
508
509   ## HP 9000 series 200 or 300
510   m68*-hp-bsd* )
511     machine=hp9000s300 opsys=bsd4-3
512   ;;
513   ## HP/UX 7, 8, 9, and 10 are supported on these machines.
514   m68*-hp-hpux* )
515     case "`uname -r`" in
516       ## Someone's system reports A.B8.05 for this.
517       ## I wonder what other possibilities there are.
518       *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
519       *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
520       *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
521       *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
522       *) machine=hp9000s300 opsys=hpux ;;
523     esac
524   ;;
525
526   ## HP 9000 series 700 and 800, running HP/UX
527   hppa*-hp-hpux7* )
528     machine=hp800 opsys=hpux
529   ;;
530   hppa*-hp-hpux8* )
531     machine=hp800 opsys=hpux8
532   ;;
533   hppa*-hp-hpux9shr* )
534     machine=hp800 opsys=hpux9shr
535   ;;
536   hppa*-hp-hpux9* )
537     machine=hp800 opsys=hpux9
538   ;;
539
540   hppa*-hp-hpux10.2* )
541     machine=hp800 opsys=hpux10-20
542   ;;
543
544   hppa*-hp-hpux10* )
545     machine=hp800 opsys=hpux10
546   ;;
547
548   hppa*-hp-hpux1[1-9]* )
549     machine=hp800 opsys=hpux11
550   ;;
551
552   ## HP 9000 series 700 and 800, running HP/UX
553   hppa*-hp-hpux* )
554     ## Cross-compilation?  Nah!
555     case "`uname -r`" in
556       ## Someone's system reports A.B8.05 for this.
557       ## I wonder what other possibilities there are.
558       *.B8.* ) machine=hp800 opsys=hpux8 ;;
559       *.08.* ) machine=hp800 opsys=hpux8 ;;
560       *.09.* ) machine=hp800 opsys=hpux9 ;;
561       *) machine=hp800 opsys=hpux10 ;;
562     esac
563   ;;
564   hppa*-*-nextstep* )
565     machine=hp800 opsys=nextstep
566   ;;
567
568   ## Orion machines
569   orion-orion-bsd* )
570     machine=orion opsys=bsd4-2
571   ;;
572   clipper-orion-bsd* )
573     machine=orion105 opsys=bsd4-2
574   ;;
575
576   ## IBM machines
577   i[3456]86-ibm-aix1.1* )
578     machine=ibmps2-aix opsys=usg5-2-2
579   ;;
580   i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
581     machine=ibmps2-aix opsys=usg5-3
582   ;;
583   i370-ibm-aix*)
584     machine=ibm370aix opsys=usg5-3
585   ;;
586   s390-*-linux-gnu)
587     machine=ibms390 opsys=gnu-linux
588   ;;
589   rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1*  )
590     machine=ibmrs6000 opsys=aix3-1
591   ;;
592   rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
593     machine=ibmrs6000 opsys=aix3-2-5
594   ;;
595   rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1*  )
596     machine=ibmrs6000 opsys=aix4-1
597   ;;
598   rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2*  )
599     machine=ibmrs6000 opsys=aix4-2
600   ;;
601   rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1*  )
602     machine=ibmrs6000 opsys=aix4-2
603   ;;
604   rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0*  )
605     machine=ibmrs6000 opsys=aix4
606   ;;
607   rs6000-ibm-aix4* | powerpc-ibm-aix4*  )
608     machine=ibmrs6000 opsys=aix4-1
609   ;;
610   rs6000-ibm-aix* | powerpc-ibm-aix* )
611     machine=ibmrs6000 opsys=aix3-2
612   ;;
613   romp-ibm-bsd4.3* )
614     machine=ibmrt opsys=bsd4-3
615   ;;
616   romp-ibm-bsd4.2* )
617     machine=ibmrt opsys=bsd4-2
618   ;;
619   romp-ibm-aos4.3* )
620     machine=ibmrt opsys=bsd4-3
621   ;;
622   romp-ibm-aos4.2* )
623     machine=ibmrt opsys=bsd4-2
624   ;;
625   romp-ibm-aos* )
626     machine=ibmrt opsys=bsd4-3
627   ;;
628   romp-ibm-bsd* )
629     machine=ibmrt opsys=bsd4-3
630   ;;
631   romp-ibm-aix* )
632     machine=ibmrt-aix opsys=usg5-2-2
633   ;;
634
635   ## Integrated Solutions `Optimum V'
636   m68*-isi-bsd4.2* )
637     machine=isi-ov opsys=bsd4-2
638   ;;
639   m68*-isi-bsd4.3* )
640     machine=isi-ov opsys=bsd4-3
641   ;;
642
643   ## Intel 386 machines where we do care about the manufacturer
644   i[3456]86-intsys-sysv* )
645     machine=is386 opsys=usg5-2-2
646   ;;
647
648   ## Prime EXL
649   i[3456]86-prime-sysv* )
650     machine=i386 opsys=usg5-3
651   ;;
652
653   ## Sequent Symmetry running Dynix
654   i[3456]86-sequent-bsd* )
655     machine=symmetry opsys=bsd4-3
656   ;;
657
658   ## Sequent Symmetry running ptx 4, which is a modified SVR4.
659   i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
660     machine=sequent-ptx opsys=ptx4
661     NON_GNU_CPP=/lib/cpp
662   ;;
663
664   ## Sequent Symmetry running DYNIX/ptx
665   ## Use the old cpp rather than the newer ANSI one.
666   i[3456]86-sequent-ptx* )
667     machine=sequent-ptx opsys=ptx
668     NON_GNU_CPP="/lib/cpp"
669   ;;
670
671   ## ncr machine running svr4.3.
672   i[3456]86-ncr-sysv4.3 )
673     machine=ncr386 opsys=usg5-4-3
674   ;;
675
676   ## Unspecified sysv on an ncr machine defaults to svr4.2.
677   ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
678   i[3456]86-ncr-sysv* )
679     machine=ncr386 opsys=usg5-4-2
680   ;;
681
682   ## Intel Paragon OSF/1
683   i860-intel-osf1* )
684     machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
685   ;;
686
687   ## Intel 860
688   i860-*-sysv4* )
689     machine=i860 opsys=usg5-4
690     NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
691     NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
692   ;;
693
694   ## Macintosh PowerPC
695   powerpc*-*-linux-gnu* )
696     machine=macppc opsys=gnu-linux
697   ;;
698
699   ## Masscomp machines
700   m68*-masscomp-rtu* )
701     machine=masscomp opsys=rtu
702   ;;
703
704   ## Megatest machines
705   m68*-megatest-bsd* )
706     machine=mega68 opsys=bsd4-2
707   ;;
708
709   ## Workstations sold by MIPS
710   ## This is not necessarily all workstations using the MIPS processor -
711   ## Irises are produced by SGI, and DECstations by DEC.
712
713   ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
714   ## and usg5-2-2 and bsd4-3 as possible OS files.  The only guidance
715   ## it gives for choosing between the alternatives seems to be "Use
716   ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
717   ## the BSD world."  I'll assume that these are instructions for
718   ## handling two odd situations, and that every other situation
719   ## should use mips.h and usg5-2-2, they being listed first.
720   mips-mips-usg* )
721     machine=mips4
722     ## Fall through to the general code at the bottom to decide on the OS.
723   ;;
724   mips-mips-riscos4* )
725     machine=mips4 opsys=bsd4-3
726     NON_GNU_CC="cc -systype bsd43"
727     NON_GNU_CPP="cc -systype bsd43 -E"
728   ;;
729   mips-mips-riscos5* )
730     machine=mips4 opsys=riscos5
731     NON_GNU_CC="cc -systype bsd43"
732     NON_GNU_CPP="cc -systype bsd43 -E"
733   ;;
734   mips-mips-bsd* )
735     machine=mips opsys=bsd4-3
736   ;;
737   mips-mips-* )
738     machine=mips opsys=usg5-2-2
739   ;;
740
741   ## NeXT
742   m68*-next-* | m68k-*-nextstep* )
743     machine=m68k opsys=nextstep
744   ;;
745
746   ## The complete machine from National Semiconductor
747   ns32k-ns-genix* )
748     machine=ns32000 opsys=usg5-2
749   ;;
750
751   ## NCR machines
752   m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
753     machine=tower32 opsys=usg5-2-2
754   ;;
755   m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
756     machine=tower32v3 opsys=usg5-3
757   ;;
758
759   ## NEC EWS4800
760   mips-nec-sysv4*)
761   machine=ews4800 opsys=ux4800
762   ;;
763
764   ## Nixdorf Targon 31
765   m68*-nixdorf-sysv* )
766     machine=targon31 opsys=usg5-2-2
767   ;;
768
769   ## Nu (TI or LMI)
770   m68*-nu-sysv* )
771     machine=nu opsys=usg5-2
772   ;;
773
774   ## Plexus
775   m68*-plexus-sysv* )
776     machine=plexus opsys=usg5-2
777   ;;
778
779   ## PowerPC reference platform
780   powerpcle-*-solaris2* )
781     machine=prep
782     opsys=sol2-5
783   ;;
784
785   ## Pyramid machines
786   ## I don't really have any idea what sort of processor the Pyramid has,
787   ## so I'm assuming it is its own architecture.
788   pyramid-pyramid-bsd* )
789     machine=pyramid opsys=bsd4-2
790   ;;
791
792   ## Sequent Balance
793   ns32k-sequent-bsd4.2* )
794     machine=sequent opsys=bsd4-2
795   ;;
796   ns32k-sequent-bsd4.3* )
797     machine=sequent opsys=bsd4-3
798   ;;
799
800   ## Siemens Nixdorf
801   mips-siemens-sysv* | mips-sni-sysv*)
802     machine=mips-siemens opsys=usg5-4
803     NON_GNU_CC=/usr/ccs/bin/cc
804     NON_GNU_CPP=/usr/ccs/lib/cpp
805   ;;
806
807   ## Silicon Graphics machines
808   ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
809   m68*-sgi-iris3.5* )
810     machine=irist opsys=iris3-5
811   ;;
812   m68*-sgi-iris3.6* | m68*-sgi-iris*)
813     machine=irist opsys=iris3-6
814   ;;
815   ## Iris 4D
816   mips-sgi-irix3* )
817     machine=iris4d opsys=irix3-3
818   ;;
819   mips-sgi-irix4* )
820     machine=iris4d opsys=irix4-0
821   ;;
822   mips-sgi-irix6.5 )
823     machine=iris4d opsys=irix6-5
824     # Without defining _LANGUAGE_C, things get masked out in the headers
825     # so that, for instance, grepping for `free' in stdlib.h fails and
826     # AC_HEADER_STD_C fails.   (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
827     NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
828     NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
829   ;;
830   mips-sgi-irix6* )
831     machine=iris4d opsys=irix6-0
832     # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
833     # but presumably it does no harm.
834     NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
835     # -32 probably isn't necessary in later v.6s -- anyone know which?
836     NON_GCC_TEST_OPTIONS=-32
837   ;;
838   mips-sgi-irix5.[01]* )
839     machine=iris4d opsys=irix5-0
840   ;;
841   mips-sgi-irix5* | mips-sgi-irix* )
842     machine=iris4d opsys=irix5-2
843   ;;
844
845   ## SONY machines
846   m68*-sony-bsd4.2* )
847     machine=news opsys=bsd4-2
848   ;;
849   m68*-sony-bsd4.3* )
850     machine=news opsys=bsd4-3
851   ;;
852   m68*-sony-newsos3* | m68*-sony-news3*)
853     machine=news opsys=bsd4-3
854   ;;
855   mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
856     machine=news-risc opsys=bsd4-3
857   ;;
858   mips-sony-newsos6* )
859     machine=news-r6 opsys=newsos6
860   ;;
861   mips-sony-news* )
862     machine=news-risc opsys=newsos5
863   ;;
864
865   ## Stride
866   m68*-stride-sysv* )
867     machine=stride opsys=usg5-2
868   ;;
869
870   ## Suns
871   sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
872     machine=sparc opsys=gnu-linux
873   ;;
874
875   *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
876     | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
877     | rs6000-*-solaris2*)
878     case "${canonical}" in
879       m68*-sunos1* )    machine=sun1 ;;
880       m68*-sunos2* )    machine=sun2 ;;
881       m68* )            machine=sun3 ;;
882       i[3456]86-sun-sunos[34]* )        machine=sun386 ;;
883       i[3456]86-*-* )     machine=intel386 ;;
884       powerpcle* )      machine=powerpcle ;;
885       powerpc* | rs6000* )  machine=ibmrs6000 ;;
886       sparc* )          machine=sparc ;;
887       * )               unported=yes ;;
888     esac
889     case "${canonical}" in
890       ## The Sun386 didn't get past 4.0.
891       i[3456]86-*-sunos4          ) opsys=sunos4-0 ;;
892       *-sunos4.0*         ) opsys=sunos4-0 ;;
893       *-sunos4.1.[3-9]*noshare )
894                 ## This name is sunos413 instead of sunos4-1-3
895                 ## to avoid a file name conflict on MSDOS.
896                 opsys=sunos413
897                 NON_GNU_CPP=/usr/lib/cpp
898                 NON_GCC_TEST_OPTIONS=-Bstatic
899                 GCC_TEST_OPTIONS=-static
900                 ;;
901       *-sunos4.1.[3-9]* | *-sunos4shr*)
902                 opsys=sunos4shr
903                 NON_GNU_CPP=/usr/lib/cpp
904                 ;;
905       *-sunos4* | *-sunos )
906                 opsys=sunos4-1
907                 NON_GCC_TEST_OPTIONS=-Bstatic
908                 GCC_TEST_OPTIONS=-static
909                 ;;
910       *-sunos5.3* | *-solaris2.3* )
911                 opsys=sol2-3
912                 NON_GNU_CPP=/usr/ccs/lib/cpp
913                 ;;
914       *-sunos5.4* | *-solaris2.4* )
915                 opsys=sol2-4
916                 NON_GNU_CPP=/usr/ccs/lib/cpp
917                 RANLIB="ar -ts"
918                 ;;
919       *-sunos5.5* | *-solaris2.5* )
920                 opsys=sol2-5
921                 NON_GNU_CPP=/usr/ccs/lib/cpp
922                 RANLIB="ar -ts"
923                 ;;
924       *-sunos5* | *-solaris* )
925                 opsys=sol2-5
926                 NON_GNU_CPP=/usr/ccs/lib/cpp
927                 ;;
928       *                   ) opsys=bsd4-2   ;;
929     esac
930     ## Watch out for a compiler that we know will not work.
931     case "${canonical}" in
932      *-solaris* | *-sunos5* )
933                 if [ "x$CC" = x/usr/ucb/cc ]; then
934                   ## /usr/ucb/cc doesn't work;
935                   ## we should find some other compiler that does work.
936                   unset CC
937                 fi
938                 ;;
939       *) ;;
940     esac
941   ;;
942   sparc-*-nextstep* )
943     machine=sparc opsys=nextstep
944   ;;
945
946   ## Tadpole 68k
947   m68*-tadpole-sysv* )
948     machine=tad68k opsys=usg5-3
949   ;;
950
951   ## Tahoe machines
952   tahoe-tahoe-bsd4.2* )
953     machine=tahoe opsys=bsd4-2
954   ;;
955   tahoe-tahoe-bsd4.3* )
956     machine=tahoe opsys=bsd4-3
957   ;;
958
959   ## Tandem Integrity S2
960   mips-tandem-sysv* )
961     machine=tandem-s2 opsys=usg5-3
962   ;;
963
964   ## Tektronix XD88
965   m88k-tektronix-sysv3* )
966   machine=tekxd88 opsys=usg5-3
967   ;;
968
969   ## Tektronix 16000 box (6130?)
970   ns16k-tektronix-bsd* )
971     machine=ns16000 opsys=bsd4-2
972   ;;
973   ## Tektronix 4300
974   ## src/m/tek4300.h hints that this is a m68k machine.
975   m68*-tektronix-bsd* )
976     machine=tek4300 opsys=bsd4-3
977   ;;
978
979   ## Titan P2 or P3
980   ## We seem to have lost the machine-description file titan.h!
981   titan-titan-sysv* )
982     machine=titan opsys=usg5-3
983   ;;
984
985   ## Ustation E30 (SS5E)
986   m68*-unisys-uniplus* )
987     machine=ustation opsystem=unipl5-2
988   ;;
989
990   ## Vaxen.
991   vax-dec-* )
992     machine=vax
993     case "${canonical}" in
994       *-bsd4.1* )                                       opsys=bsd4-1 ;;
995       *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* )      opsys=bsd4-2 ;;
996       *-bsd4.3* | *-ultrix* )                           opsys=bsd4-3 ;;
997       *-sysv[01]* | *-sysvr[01]* )                      opsys=usg5-0 ;;
998       *-sysv2* | *-sysvr2* )                            opsys=usg5-2 ;;
999       *-vms* )                                          opsys=vms ;;
1000       * )                                               unported=yes
1001     esac
1002   ;;
1003
1004   ## Whitechapel MG1
1005   ns16k-whitechapel-* )
1006     machine=mg1
1007     ## We don't know what sort of OS runs on these; we'll let the
1008     ## operating system guessing code below try.
1009   ;;
1010
1011   ## Wicat
1012   m68*-wicat-sysv* )
1013     machine=wicat opsys=usg5-2
1014   ;;
1015
1016   ## IA-64
1017   ia64*-*-linux* )
1018     machine=ia64 opsys=gnu-linux
1019   ;;
1020
1021   ## Intel 386 machines where we don't care about the manufacturer
1022   i[3456]86-*-* )
1023     machine=intel386
1024     case "${canonical}" in
1025       *-lynxos* )               opsys=lynxos ;;
1026       *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
1027       *-isc2.2* )               opsys=isc2-2 ;;
1028       *-isc4.0* )               opsys=isc4-0 ;;
1029       *-isc4.* )                opsys=isc4-1
1030                                 GCC_TEST_OPTIONS=-posix
1031                                 NON_GCC_TEST_OPTIONS=-Xp
1032                                 ;;
1033       *-isc* )                  opsys=isc3-0 ;;
1034       *-esix5* )                opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
1035       *-esix* )                 opsys=esix ;;
1036       *-xenix* )                opsys=xenix ;;
1037       *-linux-gnu* )            opsys=gnu-linux ;;
1038       *-sco3.2v4* )             opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
1039       *-sco3.2v5* )             opsys=sco5
1040                                 NON_GNU_CPP=/lib/cpp
1041                                 # Prevent -belf from being passed to $CPP.
1042                                 # /lib/cpp does not accept it.
1043                                 OVERRIDE_CPPFLAGS=" "
1044                                 ;;
1045       *-sysv4.2uw* )            opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
1046       *-386bsd* )               opsys=386bsd ;;
1047       *-freebsd* )              opsys=freebsd ;;
1048       *-nextstep* )             opsys=nextstep ;;
1049       ## Otherwise, we'll fall through to the generic opsys code at the bottom.
1050     esac
1051   ;;
1052
1053   ## m68k Linux-based GNU system
1054   m68k-*-linux-gnu* )
1055     machine=m68k opsys=gnu-linux
1056   ;;
1057
1058   ## Mips Linux-based GNU system
1059   mips-*-linux-gnu* | mipsel-*-linux-gnu* )
1060     machine=mips opsys=gnu-linux
1061   ;;
1062
1063   ## UXP/DS
1064   sparc-fujitsu-sysv4* )
1065     machine=sparc opsys=uxpds
1066     NON_GNU_CPP=/usr/ccs/lib/cpp
1067     RANLIB="ar -ts"
1068   ;;
1069
1070   ## UXP/V
1071   f301-fujitsu-uxpv4.1)
1072     machine=f301 opsys=uxpv
1073   ;;
1074
1075   * )
1076     unported=yes
1077   ;;
1078 esac
1079
1080 ### If the code above didn't choose an operating system, just choose
1081 ### an operating system based on the configuration name.  You really
1082 ### only want to use this when you have no idea what the right
1083 ### operating system is; if you know what operating systems a machine
1084 ### runs, it's cleaner to make it explicit in the case statement
1085 ### above.
1086 if test x"${opsys}" = x; then
1087   case "${canonical}" in
1088     *-gnu* )                            opsys=gnu ;;
1089     *-bsd4.[01] )                       opsys=bsd4-1 ;;
1090     *-bsd4.2 )                          opsys=bsd4-2 ;;
1091     *-bsd4.3 )                          opsys=bsd4-3 ;;
1092     *-sysv0 | *-sysvr0 )                opsys=usg5-0 ;;
1093     *-sysv2 | *-sysvr2 )                opsys=usg5-2 ;;
1094     *-sysv2.2 | *-sysvr2.2 )            opsys=usg5-2-2 ;;
1095     *-sysv3* | *-sysvr3* )              opsys=usg5-3 ;;
1096     *-sysv4.2uw* )                      opsys=unixware ;;
1097     *-sysv4.1* | *-sysvr4.1* )
1098         NON_GNU_CPP=/usr/lib/cpp
1099         opsys=usg5-4 ;;
1100     *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
1101         if [ x$NON_GNU_CPP = x ]; then
1102           if [ -f /usr/ccs/lib/cpp ]; then
1103             NON_GNU_CPP=/usr/ccs/lib/cpp
1104           else
1105             NON_GNU_CPP=/lib/cpp
1106           fi
1107         fi
1108         opsys=usg5-4-2 ;;
1109     *-sysv4* | *-sysvr4* )              opsys=usg5-4 ;;
1110     * )
1111       unported=yes
1112     ;;
1113   esac
1114 fi
1115
1116 changequote([, ])dnl
1117
1118 if test $unported = yes; then
1119   AC_MSG_ERROR([Emacs hasn't been ported to \`${canonical}' systems.
1120 Check \`etc/MACHINES' for recognized configuration names.])
1121 fi
1122
1123 machfile="m/${machine}.h"
1124 opsysfile="s/${opsys}.h"
1125
1126
1127 #### Choose a compiler.
1128 test -n "$CC" && cc_specified=yes
1129
1130 # Save the value of CFLAGS that the user specified.
1131 SPECIFIED_CFLAGS="$CFLAGS"
1132
1133 case ${with_gcc} in
1134   "yes" ) CC="gcc" GCC=yes ;;
1135   "no"  ) : ${CC=cc} ;;
1136   * ) AC_PROG_CC
1137 esac
1138
1139
1140 # On Suns, sometimes $CPP names a directory.
1141 if test -n "$CPP" && test -d "$CPP"; then
1142   CPP=
1143 fi
1144
1145 #### Some systems specify a CPP to use unless we are using GCC.
1146 #### Now that we know whether we are using GCC, we can decide whether
1147 #### to use that one.
1148 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
1149 then
1150   CPP="$NON_GNU_CPP"
1151 fi
1152
1153 #### Some systems specify a CC to use unless we are using GCC.
1154 #### Now that we know whether we are using GCC, we can decide whether
1155 #### to use that one.
1156 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
1157   test x$cc_specified != xyes
1158 then
1159   CC="$NON_GNU_CC"
1160 fi
1161
1162 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
1163 then
1164   CC="$CC $GCC_TEST_OPTIONS"
1165 fi
1166
1167 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
1168 then
1169   CC="$CC $NON_GCC_TEST_OPTIONS"
1170 fi
1171
1172 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
1173 then
1174   ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
1175 fi
1176
1177 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
1178 then
1179   ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
1180 fi
1181
1182 #### Some other nice autoconf tests.  If you add a test here which
1183 #### should make an entry in src/config.h, don't forget to add an
1184 #### #undef clause to src/config.h.in for autoconf to modify.
1185
1186 dnl checks for programs
1187 AC_PROG_LN_S
1188 AC_PROG_CPP
1189 AC_PROG_INSTALL
1190 AC_PROG_YACC
1191 if test "x$RANLIB" = x; then
1192   AC_PROG_RANLIB
1193 fi
1194
1195 dnl checks for Unix variants
1196 AC_AIX
1197
1198 #### Extract some information from the operating system and machine files.
1199
1200 AC_CHECKING([the machine- and system-dependent files to find out
1201  - which libraries the lib-src programs will want, and
1202  - whether the GNU malloc routines are usable])
1203
1204 ### First figure out CFLAGS (which we use for running the compiler here)
1205 ### and REAL_CFLAGS (which we use for real compilation).
1206 ### The two are the same except on a few systems, where they are made
1207 ### different to work around various lossages.  For example,
1208 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
1209 ### as implying static linking.
1210
1211 ### If the CFLAGS env var is specified, we use that value
1212 ### instead of the default.
1213
1214 ### It's not important that this name contain the PID; you can't run
1215 ### two configures in the same directory and have anything work
1216 ### anyway.
1217 tempcname="conftest.c"
1218
1219 echo '
1220 #include "'${srcdir}'/src/'${opsysfile}'"
1221 #include "'${srcdir}'/src/'${machfile}'"
1222 #ifndef LIBS_MACHINE
1223 #define LIBS_MACHINE
1224 #endif
1225 #ifndef LIBS_SYSTEM
1226 #define LIBS_SYSTEM
1227 #endif
1228 #ifndef C_SWITCH_SYSTEM
1229 #define C_SWITCH_SYSTEM
1230 #endif
1231 #ifndef C_SWITCH_MACHINE
1232 #define C_SWITCH_MACHINE
1233 #endif
1234 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
1235 configure___ c_switch_system=C_SWITCH_SYSTEM
1236 configure___ c_switch_machine=C_SWITCH_MACHINE
1237
1238 #ifndef LIB_X11_LIB
1239 #define LIB_X11_LIB -lX11