Mercurial > emacs
annotate configure.in @ 49512:6a0305153436
(decompose-composite-char): Fix docstring.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Wed, 29 Jan 2003 08:54:20 +0000 |
parents | d01eec831eb6 |
children | 99be3a1e2589 |
rev | line source |
---|---|
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
1 dnl Autoconf script for GNU Emacs |
8636 | 2 dnl To rebuild the `configure' script from this, execute the command |
3 dnl autoconf | |
4 dnl in the directory containing this script. | |
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
5 dnl |
49083 | 6 dnl Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2003 |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
7 dnl Free Software Foundation, Inc. |
14795
a668c56171b2
(AC_PREREQ): Require version 2.8 of Autoconf.
Roland McGrath <roland@gnu.org>
parents:
14774
diff
changeset
|
8 dnl |
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
9 dnl This file is part of GNU Emacs. |
14795
a668c56171b2
(AC_PREREQ): Require version 2.8 of Autoconf.
Roland McGrath <roland@gnu.org>
parents:
14774
diff
changeset
|
10 dnl |
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
11 dnl GNU Emacs is free software; you can redistribute it and/or modify |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
12 dnl it under the terms of the GNU General Public License as published by |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
13 dnl the Free Software Foundation; either version 2, or (at your option) |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
14 dnl any later version. |
14795
a668c56171b2
(AC_PREREQ): Require version 2.8 of Autoconf.
Roland McGrath <roland@gnu.org>
parents:
14774
diff
changeset
|
15 dnl |
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
16 dnl GNU Emacs is distributed in the hope that it will be useful, |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
17 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
18 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
19 dnl GNU General Public License for more details. |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
20 dnl |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
21 dnl You should have received a copy of the GNU General Public License |
15742 | 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. | |
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
25 |
48220
0230b8ae41f0
Use AC_CONFIG_LIBOBJ_DIR and require autoconf
Dave Love <fx@gnu.org>
parents:
48080
diff
changeset
|
26 AC_PREREQ(2.54)dnl |
8636 | 27 AC_INIT(src/lisp.h) |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
28 AC_CONFIG_HEADER(src/config.h:src/config.in) |
8636 | 29 |
41098
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
40892
diff
changeset
|
30 dnl Support for --program-prefix, --program-suffix and |
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
40892
diff
changeset
|
31 dnl --program-transform-name options |
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
40892
diff
changeset
|
32 AC_ARG_PROGRAM |
091ed3787464
Add support for --program-prefix, --program-suffix
Pavel Janík <Pavel@Janik.cz>
parents:
40892
diff
changeset
|
33 |
8636 | 34 lispdir='${datadir}/emacs/${version}/lisp' |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
35 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
16531
fc59b39a6d64
(locallisppath): Add leim directory.
Richard M. Stallman <rms@gnu.org>
parents:
16480
diff
changeset
|
36 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' |
8636 | 37 lisppath='${locallisppath}:${lispdir}' |
38 etcdir='${datadir}/emacs/${version}/etc' | |
12477
8b884d5e7b6a
Put back archlibdir. Require autoconf 2.4.1 or later.
David J. MacKenzie <djm@gnu.org>
parents:
12464
diff
changeset
|
39 archlibdir='${libexecdir}/emacs/${version}/${configuration}' |
8636 | 40 docdir='${datadir}/emacs/${version}/etc' |
46594
5698ad4e8a2b
(gamedir): Handle it like lispdir.
Richard M. Stallman <rms@gnu.org>
parents:
45960
diff
changeset
|
41 gamedir='${localstatedir}/games/emacs' |
44479
5eb5e6c99de4
Add --game-dir, --game-user. Test to see if we can use them.
Colin Walters <walters@gnu.org>
parents:
44433
diff
changeset
|
42 |
5eb5e6c99de4
Add --game-dir, --game-user. Test to see if we can use them.
Colin Walters <walters@gnu.org>
parents:
44433
diff
changeset
|
43 gameuser=games |
8636 | 44 |
8714
a52d8873fbdf
rearrange AC_ARG_WITH calls
David J. MacKenzie <djm@gnu.org>
parents:
8708
diff
changeset
|
45 AC_ARG_WITH(gcc, |
25993 | 46 [ --without-gcc don't use GCC to compile Emacs if GCC is found]) |
10037
07c7351976b4
rearrange --with options
David J. MacKenzie <djm@gnu.org>
parents:
10036
diff
changeset
|
47 AC_ARG_WITH(pop, |
25993 | 48 [ --without-pop don't support POP mail retrieval with movemail], |
49 [if test "$withval" = yes; then | |
50 AC_DEFINE(MAIL_USE_POP) | |
51 else : | |
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26214
diff
changeset
|
52 fi], |
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26214
diff
changeset
|
53 AC_DEFINE(MAIL_USE_POP)) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
54 AH_TEMPLATE(MAIL_USE_POP, [Define to support POP mail retrieval.])dnl |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
55 AC_ARG_WITH(kerberos, |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
56 [ --with-kerberos support Kerberos-authenticated POP], |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
57 [AC_DEFINE(KERBEROS)]) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
58 AH_TEMPLATE(KERBEROS, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
59 [Define to support Kerberos-authenticated POP mail retrieval.])dnl |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
60 AC_ARG_WITH(kerberos5, |
28418
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28053
diff
changeset
|
61 [ --with-kerberos5 support Kerberos version 5 authenticated POP], |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
62 [if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
63 if test "${with_kerberos+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
64 with_kerberos=yes |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
65 AC_DEFINE(KERBEROS) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
66 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
67 fi |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
68 AC_DEFINE(KERBEROS5, 1, [Define to use Kerberos 5 instead of Kerberos 4.])]) |
10037
07c7351976b4
rearrange --with options
David J. MacKenzie <djm@gnu.org>
parents:
10036
diff
changeset
|
69 AC_ARG_WITH(hesiod, |
07c7351976b4
rearrange --with options
David J. MacKenzie <djm@gnu.org>
parents:
10036
diff
changeset
|
70 [ --with-hesiod support Hesiod to get the POP server host], |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
71 [AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])]) |
44433 | 72 |
73 AC_ARG_WITH(sound, | |
74 [ --without-sound don't compile with sound support]) | |
75 | |
10037
07c7351976b4
rearrange --with options
David J. MacKenzie <djm@gnu.org>
parents:
10036
diff
changeset
|
76 dnl This should be the last --with option, because --with-x is |
07c7351976b4
rearrange --with options
David J. MacKenzie <djm@gnu.org>
parents:
10036
diff
changeset
|
77 dnl added later on when we find the path of X, and it's best to |
07c7351976b4
rearrange --with options
David J. MacKenzie <djm@gnu.org>
parents:
10036
diff
changeset
|
78 dnl keep them together visually. |
8636 | 79 AC_ARG_WITH(x-toolkit, |
49322 | 80 [ --with-x-toolkit=KIT use an X toolkit |
81 (KIT = yes/lucid/athena/motif/gtk/no)], | |
8636 | 82 [ case "${withval}" in |
83 y | ye | yes ) val=athena ;; | |
84 n | no ) val=no ;; | |
85 l | lu | luc | luci | lucid ) val=lucid ;; | |
13121
4efe8fac6854
Add `athen' as synonym for `athena'.
Richard M. Stallman <rms@gnu.org>
parents:
13096
diff
changeset
|
86 a | at | ath | athe | athen | athena ) val=athena ;; |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
87 m | mo | mot | moti | motif ) val=motif ;; |
49322 | 88 g | gt | gtk ) val=gtk ;; |
8674
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
89 dnl These don't currently work. |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
90 dnl o | op | ope | open | open- | open-l | open-lo \ |
bcfd4c7eecb0
*** empty log message ***
David J. MacKenzie <djm@gnu.org>
parents:
8636
diff
changeset
|
91 dnl | open-loo | open-look ) val=open-look ;; |
8636 | 92 * ) |
48431 | 93 dnl AC_MSG_ERROR([the `--with-x-toolkit' option is supposed to have a value |
94 dnl which is `yes', `no', `lucid', `athena', `motif' or `open-look'.]) | |
95 AC_MSG_ERROR([`--with-x-toolkit=$withval' is invalid\; | |
49322 | 96 this option's value should be `yes', `no', `lucid', `athena', `motif' or `gtk'. |
48431 | 97 Currently, `yes', `athena' and `lucid' are synonyms.]) |
8636 | 98 ;; |
99 esac | |
100 with_x_toolkit=$val | |
101 ]) | |
25038
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
102 AC_ARG_WITH(xpm, |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
103 [ --with-xpm use -lXpm for displaying XPM images]) |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
104 AC_ARG_WITH(jpeg, |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
105 [ --with-jpeg use -ljpeg for displaying JPEG images]) |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
106 AC_ARG_WITH(tiff, |
25203
5462387b221c
Change libtiff34 to libtiff.
Gerd Moellmann <gerd@gnu.org>
parents:
25135
diff
changeset
|
107 [ --with-tiff use -ltiff for displaying TIFF images]) |
25038
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
108 AC_ARG_WITH(gif, |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
109 [ --with-gif use -lungif for displaying GIF images]) |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
110 AC_ARG_WITH(png, |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
111 [ --with-png use -lpng for displaying PNG images]) |
49322 | 112 AC_ARG_WITH(gtk, |
113 [ --with-gtk use GTK (same as --with-x-toolkit=gtk)]) | |
114 AC_ARG_WITH(pkg-config-prog, | |
115 [ --with-pkg-config-prog Path to pkg-config to use for finding GTK]) | |
25267
3bb9959ad6cd
Add --with-toolkit-scroll-bars. If "no",
Gerd Moellmann <gerd@gnu.org>
parents:
25247
diff
changeset
|
116 AC_ARG_WITH(toolkit-scroll-bars, |
28418
5b7b3b5d54df
* configure.in: Line up "--help" output a little better.
Ken Raeburn <raeburn@raeburn.org>
parents:
28053
diff
changeset
|
117 [ --without-toolkit-scroll-bars |
40594 | 118 don't use Motif or Xaw3d scroll bars]) |
29945 | 119 AC_ARG_WITH(xim, |
40594 | 120 [ --without-xim don't use X11 XIM]) |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
121 AC_ARG_WITH(carbon, |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
122 [ --without-carbon don't use Carbon GUI on Mac OS X]) |
49090
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
123 AC_ARG_ENABLE(carbon-app, |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
124 [[ --enable-carbon-app[=DIR] [DIR=/Application] |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
125 specify install directory for Emacs.app on Mac OS X]], |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
126 [ carbon_appdir_x=${enableval}]) |
8636 | 127 |
128 #### Make srcdir absolute, if it isn't already. It's important to | |
31149
c4890f38091b
<making srcdir absolute>: Unset CDPATH in case $PWD
Gerd Moellmann <gerd@gnu.org>
parents:
30570
diff
changeset
|
129 #### avoid running the path through pwd unnecessarily, since pwd can |
8729 | 130 #### give you automounter prefixes, which can go away. We do all this |
131 #### so Emacs can find its files when run uninstalled. | |
31149
c4890f38091b
<making srcdir absolute>: Unset CDPATH in case $PWD
Gerd Moellmann <gerd@gnu.org>
parents:
30570
diff
changeset
|
132 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
c4890f38091b
<making srcdir absolute>: Unset CDPATH in case $PWD
Gerd Moellmann <gerd@gnu.org>
parents:
30570
diff
changeset
|
133 unset CDPATH |
8636 | 134 case "${srcdir}" in |
135 /* ) ;; | |
136 . ) | |
137 ## We may be able to use the $PWD environment variable to make this | |
138 ## absolute. But sometimes PWD is inaccurate. | |
43577
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
139 ## Note: we used to use ${PWD} at the end instead of `pwd`, |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
140 ## but that tested only for a well-formed and valid PWD, |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
141 ## it did not object when PWD was well-formed and valid but just wrong. |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
142 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; |
8636 | 143 then |
144 srcdir="$PWD" | |
145 else | |
146 srcdir="`(cd ${srcdir}; pwd)`" | |
147 fi | |
148 ;; | |
149 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
150 esac | |
151 | |
152 #### Check if the source directory already has a configured system in it. | |
153 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
154 && test -f "${srcdir}/src/config.h" ; then | |
48431 | 155 AC_MSG_WARN([[The directory tree `${srcdir}' is being used |
8636 | 156 as a build directory right now; it has been configured in its own |
157 right. To configure in another directory as well, you MUST | |
158 use GNU make. If you do not have GNU make, then you must | |
48431 | 159 now do `make distclean' in ${srcdir}, |
160 and then run $0 again.]]) | |
8636 | 161 |
48431 | 162 [extrasub='/^VPATH[ ]*=/c\ |
8636 | 163 vpath %.c $(srcdir)\ |
164 vpath %.h $(srcdir)\ | |
165 vpath %.y $(srcdir)\ | |
166 vpath %.l $(srcdir)\ | |
167 vpath %.s $(srcdir)\ | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
168 vpath %.in $(srcdir)\ |
48431 | 169 vpath %.texi $(srcdir)'] |
8636 | 170 fi |
171 | |
172 #### Given the configuration name, set machfile and opsysfile to the | |
173 #### names of the m/*.h and s/*.h files we should use. | |
174 | |
175 ### Canonicalize the configuration name. | |
176 | |
177 AC_CANONICAL_HOST | |
178 canonical=$host | |
40059
52a687c4840a
(configuration): Set from `host' if `host_alias' isn't defined.
Miles Bader <miles@gnu.org>
parents:
40054
diff
changeset
|
179 configuration=${host_alias-$host} |
8636 | 180 |
48431 | 181 dnl This used to use changequote, but, apart from `changequote is evil' |
182 dnl per the autoconf manual, we can speed up autoconf somewhat by quoting | |
183 dnl the great gob of text. Thus it's not processed for possible expansion. | |
184 dnl Just make sure the brackets remain balanced. | |
185 [ | |
8636 | 186 |
187 ### If you add support for a new configuration, add code to this | |
188 ### switch statement to recognize your configuration name and select | |
189 ### the appropriate operating system and machine description files. | |
190 | |
191 ### You would hope that you could choose an m/*.h file pretty much | |
192 ### based on the machine portion of the configuration name, and an s- | |
193 ### file based on the operating system portion. However, it turns out | |
194 ### that each m/*.h file is pretty manufacturer-specific - for | |
195 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
196 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
197 ### machines. So we basically have to have a special case for each | |
198 ### configuration name. | |
199 ### | |
200 ### As far as handling version numbers on operating systems is | |
201 ### concerned, make sure things will fail in a fixable way. If | |
202 ### /etc/MACHINES doesn't say anything about version numbers, be | |
203 ### prepared to handle anything reasonably. If version numbers | |
204 ### matter, be sure /etc/MACHINES says something about it. | |
205 ### | |
206 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
207 ### "System V Release 4"; he writes, "The old convention encouraged | |
208 ### confusion between `system' and `release' levels'." | |
209 | |
210 machine='' opsys='' unported=no | |
211 case "${canonical}" in | |
212 | |
41673
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
213 ## FreeBSD ports |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
214 *-*-freebsd* ) |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
215 opsys=freebsd |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
216 case "${canonical}" in |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
217 alpha*-*-freebsd*) machine=alpha ;; |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
218 i[3456]86-*-freebsd*) machine=intel386 ;; |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
219 esac |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
220 ;; |
6a354e487a71
Add support for FreeBSD/Alpha.
Gerd Moellmann <gerd@gnu.org>
parents:
41430
diff
changeset
|
221 |
8636 | 222 ## NetBSD ports |
223 *-*-netbsd* ) | |
224 opsys=netbsd | |
225 case "${canonical}" in | |
19921
f3a1613a2842
Recognize alpha* instead of just alpha.
Richard M. Stallman <rms@gnu.org>
parents:
19796
diff
changeset
|
226 alpha*-*-netbsd*) machine=alpha ;; |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
227 i[3456]86-*-netbsd*) machine=intel386 ;; |
8636 | 228 m68k-*-netbsd*) |
229 # This is somewhat bogus. | |
230 machine=hp9000s300 ;; | |
24291
7185ff41e811
(powerpc-apple-netbsd*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
24121
diff
changeset
|
231 powerpc-apple-netbsd*) machine=macppc ;; |
8636 | 232 mips-*-netbsd*) machine=pmax ;; |
27926
ed606bdaf5b4
(machine): Add `mipsel-*-netbsd*' and
Gerd Moellmann <gerd@gnu.org>
parents:
27907
diff
changeset
|
233 mipsel-*-netbsd*) machine=pmax ;; |
45960
512f33c6eec6
Add support for mipseb-*-netbsd* machines.
Pavel Janík <Pavel@Janik.cz>
parents:
45667
diff
changeset
|
234 mipseb-*-netbsd*) machine=pmax ;; |
8636 | 235 ns32k-*-netbsd*) machine=ns32000 ;; |
28649
25a6de787175
Add support for `powerpc-*-netbsd*'.
Gerd Moellmann <gerd@gnu.org>
parents:
28642
diff
changeset
|
236 powerpc-*-netbsd*) machine=macppc ;; |
32033
2f02ea6f7303
Support `sparc*-*-netbsd*'.
Gerd Moellmann <gerd@gnu.org>
parents:
31993
diff
changeset
|
237 sparc*-*-netbsd*) machine=sparc ;; |
16626
abde29194979
Recognize vax-*-netbsd*.
Richard M. Stallman <rms@gnu.org>
parents:
16531
diff
changeset
|
238 vax-*-netbsd*) machine=vax ;; |
27926
ed606bdaf5b4
(machine): Add `mipsel-*-netbsd*' and
Gerd Moellmann <gerd@gnu.org>
parents:
27907
diff
changeset
|
239 arm-*-netbsd*) machine=arm ;; |
8636 | 240 esac |
241 ;; | |
242 | |
19777
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
243 ## OpenBSD ports |
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
244 *-*-openbsd* ) |
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
245 opsys=openbsd |
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
246 case "${canonical}" in |
19921
f3a1613a2842
Recognize alpha* instead of just alpha.
Richard M. Stallman <rms@gnu.org>
parents:
19796
diff
changeset
|
247 alpha*-*-openbsd*) machine=alpha ;; |
19777
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
248 i386-*-openbsd*) machine=intel386 ;; |
19796
ea31f3e716e8
Continue previous change, add mipsel-*-openbsd*.
Richard M. Stallman <rms@gnu.org>
parents:
19777
diff
changeset
|
249 m68k-*-openbsd*) machine=hp9000s300 ;; |
ea31f3e716e8
Continue previous change, add mipsel-*-openbsd*.
Richard M. Stallman <rms@gnu.org>
parents:
19777
diff
changeset
|
250 mipsel-*-openbsd*) machine=pmax ;; |
19777
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
251 ns32k-*-openbsd*) machine=ns32000 ;; |
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
252 sparc-*-openbsd*) machine=sparc ;; |
24291
7185ff41e811
(powerpc-apple-netbsd*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
24121
diff
changeset
|
253 vax-*-openbsd*) machine=vax ;; |
19777
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
254 esac |
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
255 ;; |
aa8c979991fb
Add OpenBSD clause to set $machine.
Richard M. Stallman <rms@gnu.org>
parents:
19506
diff
changeset
|
256 |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
257 ## Acorn RISCiX: |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
258 arm-acorn-riscix1.1* ) |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
259 machine=acorn opsys=riscix1-1 |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
260 ;; |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
261 arm-acorn-riscix1.2* | arm-acorn-riscix ) |
15918
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
262 ## This name is riscix12 instead of riscix1.2 |
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
263 ## to avoid a file name conflict on MSDOS. |
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
264 machine=acorn opsys=riscix12 |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
265 ;; |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
266 |
18441
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
267 ## BSDI ports |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
268 *-*-bsdi* ) |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
269 opsys=bsdi |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
270 case "${canonical}" in |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
271 i[345]86-*-bsdi*) machine=intel386 ;; |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
272 sparc-*-bsdi*) machine=sparc ;; |
33739
f335897d9014
Use m/macppc.h instead of the non-existent
Gerd Moellmann <gerd@gnu.org>
parents:
33674
diff
changeset
|
273 powerpc-*-bsdi*) machine=macppc ;; |
18441
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
274 esac |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
275 case "${canonical}" in |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
276 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
277 *-*-bsdi2.0* ) opsys=bsdos2 ;; |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
278 *-*-bsdi2* ) opsys=bsdos2-1 ;; |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
279 *-*-bsdi3* ) opsys=bsdos3 ;; |
42988 | 280 *-*-bsdi[45]* ) opsys=bsdos4 ;; |
18441
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
281 esac |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
282 ;; |
c154adda572d
(*-*-bsdi*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18396
diff
changeset
|
283 |
8636 | 284 ## Alliant machines |
285 ## Strictly speaking, we need the version of the alliant operating | |
286 ## system to choose the right machine file, but currently the | |
287 ## configuration name doesn't tell us enough to choose the right | |
288 ## one; we need to give alliants their own operating system name to | |
289 ## do this right. When someone cares, they can help us. | |
290 fx80-alliant-* ) | |
291 machine=alliant4 opsys=bsd4-2 | |
292 ;; | |
293 i860-alliant-* ) | |
294 machine=alliant-2800 opsys=bsd4-3 | |
295 ;; | |
296 | |
12878
e80cd1210452
(RANLIB): Substitute this into makefiles.
Richard M. Stallman <rms@gnu.org>
parents:
12843
diff
changeset
|
297 ## Alpha (DEC) machines. |
19921
f3a1613a2842
Recognize alpha* instead of just alpha.
Richard M. Stallman <rms@gnu.org>
parents:
19796
diff
changeset
|
298 alpha*-dec-osf* ) |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
299 machine=alpha opsys=osf1 |
15843
b2baf393982f
(alpha-dec-osf*): Specify GCC_TEST_OPTIONS and NON_GCC_TEST_OPTIONS.
Richard M. Stallman <rms@gnu.org>
parents:
15830
diff
changeset
|
300 # This is needed to find X11R6.1 libraries for certain tests. |
15883
9eb4a4ea23c6
(NON_GCC_LINK_TEST_OPTIONS, GCC_LINK_TEST_OPTIONS):
Richard M. Stallman <rms@gnu.org>
parents:
15855
diff
changeset
|
301 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
9eb4a4ea23c6
(NON_GCC_LINK_TEST_OPTIONS, GCC_LINK_TEST_OPTIONS):
Richard M. Stallman <rms@gnu.org>
parents:
15855
diff
changeset
|
302 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
34445 | 303 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
304 # due to non-traditional preprocessing with the current compiler | |
305 # defaults. OSF 4 can also have that compiler version, and there | |
306 # seems always to have been a usable /usr/bin/cpp. | |
307 NON_GNU_CPP=/usr/bin/cpp | |
31174
109bb1f91963
<alpha*-dec-osf*>: Move "NON_GNU_CPP='cpp'" before
Kenichi Handa <handa@m17n.org>
parents:
31173
diff
changeset
|
308 case "${canonical}" in |
31993
46576e0d9de9
Fix alpha*-dec-osf4 using the osf5 config.
Dave Love <fx@gnu.org>
parents:
31608
diff
changeset
|
309 alpha*-dec-osf[5-9]*) |
31173
9afdf5b51742
<osf>: Use NON_GNU_CPP='cpp' always.
Dave Love <fx@gnu.org>
parents:
31149
diff
changeset
|
310 opsys=osf5-0 ;; |
27764
6599247a653e
Define NON_GNU_CPP on alpha-dec-osf5+.
Dave Love <fx@gnu.org>
parents:
27752
diff
changeset
|
311 esac |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
312 ;; |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
313 |
19921
f3a1613a2842
Recognize alpha* instead of just alpha.
Richard M. Stallman <rms@gnu.org>
parents:
19796
diff
changeset
|
314 alpha*-*-linux-gnu* ) |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
315 machine=alpha opsys=gnu-linux |
12842
f5e4db7e8197
(CFLAGS): When computing CFLAGS and REAL_CFLAGS
Richard M. Stallman <rms@gnu.org>
parents:
12787
diff
changeset
|
316 ;; |
f5e4db7e8197
(CFLAGS): When computing CFLAGS and REAL_CFLAGS
Richard M. Stallman <rms@gnu.org>
parents:
12787
diff
changeset
|
317 |
26713
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
318 arm*-*-linux-gnu* ) |
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
319 machine=arm opsys=gnu-linux |
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
320 ;; |
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
321 |
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
322 ppc-*-linux | \ |
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
323 powerpc-*-linux* ) |
33739
f335897d9014
Use m/macppc.h instead of the non-existent
Gerd Moellmann <gerd@gnu.org>
parents:
33674
diff
changeset
|
324 machine=macppc opsys=gnu-linux |
26713
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
325 ;; |
5d6ad3911da4
(machine): Add arm*-*-linux-gnu, ppc-*-linux, and
Gerd Moellmann <gerd@gnu.org>
parents:
26707
diff
changeset
|
326 |
8636 | 327 ## Altos 3068 |
328 m68*-altos-sysv* ) | |
329 machine=altos opsys=usg5-2 | |
330 ;; | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
331 |
8636 | 332 ## Amdahl UTS |
333 580-amdahl-sysv* ) | |
334 machine=amdahl opsys=usg5-2-2 | |
335 ;; | |
336 | |
11669
ddf3123098b4
(m68*-apollo-*): Renamed from m68*-apollo*.
Richard M. Stallman <rms@gnu.org>
parents:
11616
diff
changeset
|
337 ## Apollo, Domain/OS |
ddf3123098b4
(m68*-apollo-*): Renamed from m68*-apollo*.
Richard M. Stallman <rms@gnu.org>
parents:
11616
diff
changeset
|
338 m68*-apollo-* ) |
ddf3123098b4
(m68*-apollo-*): Renamed from m68*-apollo*.
Richard M. Stallman <rms@gnu.org>
parents:
11616
diff
changeset
|
339 machine=apollo opsys=bsd4-3 |
8636 | 340 ;; |
341 | |
342 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
343 we32k-att-sysv* ) | |
344 machine=att3b opsys=usg5-2-2 | |
345 ;; | |
346 | |
347 ## AT&T 3b1 - The Mighty Unix PC! | |
348 m68*-att-sysv* ) | |
349 machine=7300 opsys=usg5-2-2 | |
350 ;; | |
351 | |
352 ## Bull dpx20 | |
353 rs6000-bull-bosx* ) | |
354 machine=ibmrs6000 opsys=aix3-2 | |
355 ;; | |
356 | |
357 ## Bull dpx2 | |
358 m68*-bull-sysv3* ) | |
359 machine=dpx2 opsys=usg5-3 | |
360 ;; | |
361 | |
362 ## Bull sps7 | |
363 m68*-bull-sysv2* ) | |
364 machine=sps7 opsys=usg5-2 | |
365 ;; | |
366 | |
367 ## CCI 5/32, 6/32 -- see "Tahoe". | |
368 | |
369 ## Celerity | |
370 ## I don't know what configuration name to use for this; config.sub | |
371 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
372 ## in touch with us! | |
373 celerity-celerity-bsd* ) | |
374 machine=celerity opsys=bsd4-2 | |
375 ;; | |
376 | |
377 ## Clipper | |
378 ## What operating systems does this chip run that Emacs has been | |
379 ## tested on? | |
380 clipper-* ) | |
381 machine=clipper | |
382 ## We'll use the catch-all code at the bottom to guess the | |
383 ## operating system. | |
384 ;; | |
385 | |
43577
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
386 ## Compaq Nonstop |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
387 mips-compaq-nonstopux* ) |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
388 machine=nonstopux opsys=nonstopux |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
389 ;; |
849bcdc2a256
<making srcdir absolute>: Verify that PWD is correct,
Richard M. Stallman <rms@gnu.org>
parents:
42988
diff
changeset
|
390 |
8636 | 391 ## Convex |
392 *-convex-bsd* | *-convex-convexos* ) | |
393 machine=convex opsys=bsd4-3 | |
14018 | 394 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov |
8636 | 395 NON_GNU_CPP="cc -E -P" |
396 ;; | |
397 | |
398 ## Cubix QBx/386 | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
399 i[3456]86-cubix-sysv* ) |
8636 | 400 machine=intel386 opsys=usg5-3 |
401 ;; | |
402 | |
403 ## Cydra 5 | |
404 cydra*-cydrome-sysv* ) | |
405 machine=cydra5 opsys=usg5-3 | |
406 ;; | |
407 | |
408 ## Data General AViiON Machines | |
18099
dcbb878e8cbf
(m88k-dg-dgux4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
17391
diff
changeset
|
409 ## DG changed naming conventions with the release of 5.4.4.10, they |
dcbb878e8cbf
(m88k-dg-dgux4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
17391
diff
changeset
|
410 ## dropped the initial 5.4 but left the intervening R. Because of the |
dcbb878e8cbf
(m88k-dg-dgux4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
17391
diff
changeset
|
411 ## R this shouldn't conflict with older versions of the OS (which I |
20287
39573921dadc
(i586-dg-dguxR4.*): New name in case branch.
Karl Heuer <kwzh@gnu.org>
parents:
20220
diff
changeset
|
412 ## think were named like dgux4.*). In addition, DG new AViiONs series |
39573921dadc
(i586-dg-dguxR4.*): New name in case branch.
Karl Heuer <kwzh@gnu.org>
parents:
20220
diff
changeset
|
413 ## uses either Motorola M88k or Intel Pentium CPUs. |
23709 | 414 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) |
18099
dcbb878e8cbf
(m88k-dg-dgux4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
17391
diff
changeset
|
415 machine=aviion opsys=dgux4 |
dcbb878e8cbf
(m88k-dg-dgux4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
17391
diff
changeset
|
416 ;; |
8636 | 417 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) |
15918
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
418 ## This name is dgux5-4-3 instead of dgux5-4r3 |
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
419 ## to avoid a file name conflict on MSDOS. |
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
420 machine=aviion opsys=dgux5-4-3 |
8636 | 421 ;; |
422 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
423 machine=aviion opsys=dgux5-4r2 | |
424 ;; | |
425 m88k-dg-dgux* ) | |
426 machine=aviion opsys=dgux | |
427 ;; | |
428 | |
23698 | 429 ## Data General AViiON Intel (x86) Machines |
430 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
431 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
23709 | 432 i[345]86-dg-dguxR4* ) |
23698 | 433 machine=aviion-intel opsys=dgux4 |
434 ;; | |
435 | |
8636 | 436 ## DECstations |
437 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
438 machine=pmax opsys=bsd4-2 | |
439 ;; | |
12525
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
440 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) |
8636 | 441 machine=pmax opsys=bsd4-3 |
442 ;; | |
12525
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
443 mips-dec-ultrix* ) |
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
444 machine=pmax opsys=ultrix4-3 |
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
445 ;; |
8636 | 446 mips-dec-osf* ) |
447 machine=pmax opsys=osf1 | |
448 ;; | |
12464
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
449 mips-dec-mach_bsd4.3* ) |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
450 machine=pmax opsys=mach-bsd4-3 |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
451 ;; |
8636 | 452 |
453 ## Motorola Delta machines | |
454 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
455 machine=delta opsys=usg5-3 | |
456 if test -z "`type gnucc | grep 'not found'`" | |
11475
64aa0d436a80
(m68k-motorola-sysv*): Determine which -m option to use with `gnucc'.
Richard M. Stallman <rms@gnu.org>
parents:
11257
diff
changeset
|
457 then |
64aa0d436a80
(m68k-motorola-sysv*): Determine which -m option to use with `gnucc'.
Richard M. Stallman <rms@gnu.org>
parents:
11257
diff
changeset
|
458 if test -s /etc/167config |
64aa0d436a80
(m68k-motorola-sysv*): Determine which -m option to use with `gnucc'.
Richard M. Stallman <rms@gnu.org>
parents:
11257
diff
changeset
|
459 then CC="gnucc -m68040" |
64aa0d436a80
(m68k-motorola-sysv*): Determine which -m option to use with `gnucc'.
Richard M. Stallman <rms@gnu.org>
parents:
11257
diff
changeset
|
460 else CC="gnucc -m68881" |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
461 fi |
8636 | 462 else |
463 if test -z "`type gcc | grep 'not found'`" | |
464 then CC=gcc | |
465 else CC=cc | |
466 fi | |
467 fi | |
468 ;; | |
469 m88k-motorola-sysv4* ) | |
10837
0e8db919d6bd
(m88k-motorola-sysv4*): Use usg5-4-2.
Richard M. Stallman <rms@gnu.org>
parents:
10816
diff
changeset
|
470 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 |
0e8db919d6bd
(m88k-motorola-sysv4*): Use usg5-4-2.
Richard M. Stallman <rms@gnu.org>
parents:
10816
diff
changeset
|
471 # needs POSIX_SIGNALS and therefore needs usg5-4-2. |
0e8db919d6bd
(m88k-motorola-sysv4*): Use usg5-4-2.
Richard M. Stallman <rms@gnu.org>
parents:
10816
diff
changeset
|
472 # I hope there are not other 4.0 versions for this machine |
0e8db919d6bd
(m88k-motorola-sysv4*): Use usg5-4-2.
Richard M. Stallman <rms@gnu.org>
parents:
10816
diff
changeset
|
473 # which really need usg5-4 instead. |
0e8db919d6bd
(m88k-motorola-sysv4*): Use usg5-4-2.
Richard M. Stallman <rms@gnu.org>
parents:
10816
diff
changeset
|
474 machine=delta88k opsys=usg5-4-2 |
8636 | 475 ;; |
476 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
477 machine=delta88k opsys=usg5-3 | |
478 ;; | |
479 | |
480 ## Dual machines | |
481 m68*-dual-sysv* ) | |
482 machine=dual opsys=usg5-2 | |
483 ;; | |
484 m68*-dual-uniplus* ) | |
485 machine=dual opsys=unipl5-2 | |
486 ;; | |
487 | |
488 ## Elxsi 6400 | |
489 elxsi-elxsi-sysv* ) | |
490 machine=elxsi opsys=usg5-2 | |
491 ;; | |
492 | |
493 ## Encore machines | |
494 ns16k-encore-bsd* ) | |
495 machine=ns16000 opsys=umax | |
496 ;; | |
497 | |
30064 | 498 ## The GEC 63 - apparently, this port isn't really finished yet. |
499 # I'm sure we finished off the last of the machines, though. -- fx | |
8636 | 500 |
501 ## Gould Power Node and NP1 | |
502 pn-gould-bsd4.2* ) | |
503 machine=gould opsys=bsd4-2 | |
504 ;; | |
505 pn-gould-bsd4.3* ) | |
506 machine=gould opsys=bsd4-3 | |
507 ;; | |
508 np1-gould-bsd* ) | |
509 machine=gould-np1 opsys=bsd4-3 | |
510 ;; | |
511 | |
512 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
513 ## as far as Emacs is concerned). | |
514 m88k-harris-cxux* ) | |
515 # Build needs to be different on 7.0 and later releases | |
516 case "`uname -r`" in | |
517 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
518 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
519 esac | |
13756
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
520 NON_GNU_CPP="/lib/cpp" |
8636 | 521 ;; |
522 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
523 m68k-harris-cxux* ) | |
524 machine=nh3000 opsys=cxux | |
525 ;; | |
13756
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
526 ## Harris power pc NightHawk running Power UNIX (Series 6000) |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
527 powerpc-harris-powerunix ) |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
528 machine=nh6000 opsys=powerunix |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
529 NON_GNU_CPP="cc -Xo -E -P" |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
530 ;; |
16783
b87f9489bcd3
(hppa1.1-hitachi-hiuxmpp): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
16720
diff
changeset
|
531 ## SR2001/SR2201 running HI-UX/MPP |
b87f9489bcd3
(hppa1.1-hitachi-hiuxmpp): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
16720
diff
changeset
|
532 hppa1.1-hitachi-hiuxmpp* ) |
b87f9489bcd3
(hppa1.1-hitachi-hiuxmpp): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
16720
diff
changeset
|
533 machine=sr2k opsys=hiuxmpp |
b87f9489bcd3
(hppa1.1-hitachi-hiuxmpp): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
16720
diff
changeset
|
534 ;; |
38809
57f54fb91332
(machine): Add an entry for hppa1.1-hitachi-hiuxwe2*.
Eli Zaretskii <eliz@gnu.org>
parents:
36901
diff
changeset
|
535 hppa1.1-hitachi-hiuxwe2* ) |
57f54fb91332
(machine): Add an entry for hppa1.1-hitachi-hiuxwe2*.
Eli Zaretskii <eliz@gnu.org>
parents:
36901
diff
changeset
|
536 machine=sr2k opsys=hiuxwe2 |
57f54fb91332
(machine): Add an entry for hppa1.1-hitachi-hiuxwe2*.
Eli Zaretskii <eliz@gnu.org>
parents:
36901
diff
changeset
|
537 ;; |
8636 | 538 ## Honeywell XPS100 |
539 xps*-honeywell-sysv* ) | |
540 machine=xps100 opsys=usg5-2 | |
541 ;; | |
542 | |
543 ## HP 9000 series 200 or 300 | |
544 m68*-hp-bsd* ) | |
545 machine=hp9000s300 opsys=bsd4-3 | |
546 ;; | |
11999
f074fb9f8e83
(hppa*-hp-hpux10*, m68k-hp-hpux10*): New configurations.
Karl Heuer <kwzh@gnu.org>
parents:
11998
diff
changeset
|
547 ## HP/UX 7, 8, 9, and 10 are supported on these machines. |
8636 | 548 m68*-hp-hpux* ) |
549 case "`uname -r`" in | |
550 ## Someone's system reports A.B8.05 for this. | |
551 ## I wonder what other possibilities there are. | |
552 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
553 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
554 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
21128
b808afa167c4
(hppa-hp-hpux1[0-9]*): Handle versions 1X like 10.
Richard M. Stallman <rms@gnu.org>
parents:
20976
diff
changeset
|
555 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; |
8636 | 556 *) machine=hp9000s300 opsys=hpux ;; |
557 esac | |
558 ;; | |
559 | |
560 ## HP 9000 series 700 and 800, running HP/UX | |
561 hppa*-hp-hpux7* ) | |
562 machine=hp800 opsys=hpux | |
563 ;; | |
564 hppa*-hp-hpux8* ) | |
565 machine=hp800 opsys=hpux8 | |
566 ;; | |
567 hppa*-hp-hpux9shr* ) | |
568 machine=hp800 opsys=hpux9shr | |
569 ;; | |
570 hppa*-hp-hpux9* ) | |
571 machine=hp800 opsys=hpux9 | |
572 ;; | |
40576 | 573 hppa*-hp-hpux10* ) |
13559
85cc1439aee7
(hppa*-hp-hpux10*): Use s/hpux10.h.
Richard M. Stallman <rms@gnu.org>
parents:
13486
diff
changeset
|
574 machine=hp800 opsys=hpux10 |
11999
f074fb9f8e83
(hppa*-hp-hpux10*, m68k-hp-hpux10*): New configurations.
Karl Heuer <kwzh@gnu.org>
parents:
11998
diff
changeset
|
575 ;; |
40576 | 576 hppa*-hp-hpux1[1-9]* ) |
577 machine=hp800 opsys=hpux11 | |
578 ;; | |
8636 | 579 |
41931
c7e803b60fc6
(hppa*-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
41853
diff
changeset
|
580 hppa*-*-linux-gnu* ) |
c7e803b60fc6
(hppa*-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
41853
diff
changeset
|
581 machine=hp800 opsys=gnu-linux |
c7e803b60fc6
(hppa*-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
41853
diff
changeset
|
582 ;; |
c7e803b60fc6
(hppa*-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
41853
diff
changeset
|
583 |
8636 | 584 ## HP 9000 series 700 and 800, running HP/UX |
585 hppa*-hp-hpux* ) | |
586 ## Cross-compilation? Nah! | |
587 case "`uname -r`" in | |
588 ## Someone's system reports A.B8.05 for this. | |
589 ## I wonder what other possibilities there are. | |
590 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
591 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
592 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
20976
5cf1e81b6381
(hppa*-hp-hpux*): Use hpux10 by default.
Karl Heuer <kwzh@gnu.org>
parents:
20477
diff
changeset
|
593 *) machine=hp800 opsys=hpux10 ;; |
8636 | 594 esac |
595 ;; | |
16480
956b9264bbc7
(hppa*-next-nextstep*): * added after hppa to accept hppa1.0 and hppa1.1.
Richard M. Stallman <rms@gnu.org>
parents:
16393
diff
changeset
|
596 hppa*-*-nextstep* ) |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
597 machine=hp800 opsys=nextstep |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
598 ;; |
8636 | 599 |
600 ## Orion machines | |
601 orion-orion-bsd* ) | |
602 machine=orion opsys=bsd4-2 | |
603 ;; | |
604 clipper-orion-bsd* ) | |
605 machine=orion105 opsys=bsd4-2 | |
606 ;; | |
607 | |
608 ## IBM machines | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
609 i[3456]86-ibm-aix1.1* ) |
8636 | 610 machine=ibmps2-aix opsys=usg5-2-2 |
611 ;; | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
612 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) |
8636 | 613 machine=ibmps2-aix opsys=usg5-3 |
614 ;; | |
615 i370-ibm-aix*) | |
616 machine=ibm370aix opsys=usg5-3 | |
617 ;; | |
40420
fffc7f4c2cc7
(s390-*-linux-gnu): New system. From Adam Thornton <athornton@sinenomine.net>.
Eli Zaretskii <eliz@gnu.org>
parents:
40276
diff
changeset
|
618 s390-*-linux-gnu) |
fffc7f4c2cc7
(s390-*-linux-gnu): New system. From Adam Thornton <athornton@sinenomine.net>.
Eli Zaretskii <eliz@gnu.org>
parents:
40276
diff
changeset
|
619 machine=ibms390 opsys=gnu-linux |
fffc7f4c2cc7
(s390-*-linux-gnu): New system. From Adam Thornton <athornton@sinenomine.net>.
Eli Zaretskii <eliz@gnu.org>
parents:
40276
diff
changeset
|
620 ;; |
8708
6fef8c63f200
keep up to date with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8707
diff
changeset
|
621 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
8636 | 622 machine=ibmrs6000 opsys=aix3-1 |
623 ;; | |
8708
6fef8c63f200
keep up to date with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8707
diff
changeset
|
624 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) |
8636 | 625 machine=ibmrs6000 opsys=aix3-2-5 |
626 ;; | |
10152
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
627 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) |
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
628 machine=ibmrs6000 opsys=aix4-1 |
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
629 ;; |
16647
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
630 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) |
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
631 machine=ibmrs6000 opsys=aix4-2 |
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
632 ;; |
43922 | 633 rs6000-ibm-aix5.1* | powerpc-ibm-aix5.1* ) |
634 machine=ibmrs6000 opsys=aix4-2 | |
635 ;; | |
16647
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
636 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
637 machine=ibmrs6000 opsys=aix4 |
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
638 ;; |
10152
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
639 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) |
16647
fa79e7cb58d4
(rs6000-ibm-aix4.2): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
16626
diff
changeset
|
640 machine=ibmrs6000 opsys=aix4-1 |
10152
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
641 ;; |
8708
6fef8c63f200
keep up to date with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8707
diff
changeset
|
642 rs6000-ibm-aix* | powerpc-ibm-aix* ) |
8636 | 643 machine=ibmrs6000 opsys=aix3-2 |
644 ;; | |
645 romp-ibm-bsd4.3* ) | |
646 machine=ibmrt opsys=bsd4-3 | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
647 ;; |
8636 | 648 romp-ibm-bsd4.2* ) |
649 machine=ibmrt opsys=bsd4-2 | |
650 ;; | |
651 romp-ibm-aos4.3* ) | |
652 machine=ibmrt opsys=bsd4-3 | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
653 ;; |
8636 | 654 romp-ibm-aos4.2* ) |
655 machine=ibmrt opsys=bsd4-2 | |
656 ;; | |
657 romp-ibm-aos* ) | |
658 machine=ibmrt opsys=bsd4-3 | |
659 ;; | |
660 romp-ibm-bsd* ) | |
661 machine=ibmrt opsys=bsd4-3 | |
662 ;; | |
663 romp-ibm-aix* ) | |
664 machine=ibmrt-aix opsys=usg5-2-2 | |
665 ;; | |
666 | |
667 ## Integrated Solutions `Optimum V' | |
668 m68*-isi-bsd4.2* ) | |
669 machine=isi-ov opsys=bsd4-2 | |
670 ;; | |
671 m68*-isi-bsd4.3* ) | |
672 machine=isi-ov opsys=bsd4-3 | |
673 ;; | |
674 | |
675 ## Intel 386 machines where we do care about the manufacturer | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
676 i[3456]86-intsys-sysv* ) |
8636 | 677 machine=is386 opsys=usg5-2-2 |
678 ;; | |
679 | |
680 ## Prime EXL | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
681 i[3456]86-prime-sysv* ) |
8636 | 682 machine=i386 opsys=usg5-3 |
683 ;; | |
684 | |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
685 ## Sequent Symmetry running Dynix |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
686 i[3456]86-sequent-bsd* ) |
8636 | 687 machine=symmetry opsys=bsd4-3 |
688 ;; | |
689 | |
15846
2b7f0fe44258
(i[3456]86-sequent-ptx4*, i[3456]86-sequent-sysv4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
15843
diff
changeset
|
690 ## Sequent Symmetry running ptx 4, which is a modified SVR4. |
2b7f0fe44258
(i[3456]86-sequent-ptx4*, i[3456]86-sequent-sysv4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
15843
diff
changeset
|
691 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) |
2b7f0fe44258
(i[3456]86-sequent-ptx4*, i[3456]86-sequent-sysv4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
15843
diff
changeset
|
692 machine=sequent-ptx opsys=ptx4 |
15855
57a1eaaa31e6
(i[3456]86-sequent-ptx4*, i[3456]86-sequent-sysv4*): Fix previous change.
Richard M. Stallman <rms@gnu.org>
parents:
15846
diff
changeset
|
693 NON_GNU_CPP=/lib/cpp |
15846
2b7f0fe44258
(i[3456]86-sequent-ptx4*, i[3456]86-sequent-sysv4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
15843
diff
changeset
|
694 ;; |
2b7f0fe44258
(i[3456]86-sequent-ptx4*, i[3456]86-sequent-sysv4*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
15843
diff
changeset
|
695 |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
696 ## Sequent Symmetry running DYNIX/ptx |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
697 ## Use the old cpp rather than the newer ANSI one. |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
698 i[3456]86-sequent-ptx* ) |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
699 machine=sequent-ptx opsys=ptx |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
700 NON_GNU_CPP="/lib/cpp" |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
701 ;; |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
702 |
15641
d966f03cdcab
Use s/ucg5-4-3.h for ncr-i[3456]86-sysv4.3
Karl Heuer <kwzh@gnu.org>
parents:
15622
diff
changeset
|
703 ## ncr machine running svr4.3. |
d966f03cdcab
Use s/ucg5-4-3.h for ncr-i[3456]86-sysv4.3
Karl Heuer <kwzh@gnu.org>
parents:
15622
diff
changeset
|
704 i[3456]86-ncr-sysv4.3 ) |
d966f03cdcab
Use s/ucg5-4-3.h for ncr-i[3456]86-sysv4.3
Karl Heuer <kwzh@gnu.org>
parents:
15622
diff
changeset
|
705 machine=ncr386 opsys=usg5-4-3 |
d966f03cdcab
Use s/ucg5-4-3.h for ncr-i[3456]86-sysv4.3
Karl Heuer <kwzh@gnu.org>
parents:
15622
diff
changeset
|
706 ;; |
d966f03cdcab
Use s/ucg5-4-3.h for ncr-i[3456]86-sysv4.3
Karl Heuer <kwzh@gnu.org>
parents:
15622
diff
changeset
|
707 |
8636 | 708 ## Unspecified sysv on an ncr machine defaults to svr4.2. |
709 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
710 i[3456]86-ncr-sysv* ) |
11257 | 711 machine=ncr386 opsys=usg5-4-2 |
8636 | 712 ;; |
713 | |
9897
74814eb19d67
(i860-intel-osf1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
9875
diff
changeset
|
714 ## Intel Paragon OSF/1 |
74814eb19d67
(i860-intel-osf1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
9875
diff
changeset
|
715 i860-intel-osf1* ) |
74814eb19d67
(i860-intel-osf1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
9875
diff
changeset
|
716 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp |
74814eb19d67
(i860-intel-osf1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
9875
diff
changeset
|
717 ;; |
74814eb19d67
(i860-intel-osf1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
9875
diff
changeset
|
718 |
8636 | 719 ## Intel 860 |
720 i860-*-sysv4* ) | |
721 machine=i860 opsys=usg5-4 | |
722 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
723 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
724 ;; | |
725 | |
28742
4b2207602eef
Add support for `powerpc*-*-linux-gnu*'.
Gerd Moellmann <gerd@gnu.org>
parents:
28649
diff
changeset
|
726 ## Macintosh PowerPC |
4b2207602eef
Add support for `powerpc*-*-linux-gnu*'.
Gerd Moellmann <gerd@gnu.org>
parents:
28649
diff
changeset
|
727 powerpc*-*-linux-gnu* ) |
4b2207602eef
Add support for `powerpc*-*-linux-gnu*'.
Gerd Moellmann <gerd@gnu.org>
parents:
28649
diff
changeset
|
728 machine=macppc opsys=gnu-linux |
4b2207602eef
Add support for `powerpc*-*-linux-gnu*'.
Gerd Moellmann <gerd@gnu.org>
parents:
28649
diff
changeset
|
729 ;; |
4b2207602eef
Add support for `powerpc*-*-linux-gnu*'.
Gerd Moellmann <gerd@gnu.org>
parents:
28649
diff
changeset
|
730 |
8636 | 731 ## Masscomp machines |
732 m68*-masscomp-rtu* ) | |
733 machine=masscomp opsys=rtu | |
734 ;; | |
735 | |
736 ## Megatest machines | |
737 m68*-megatest-bsd* ) | |
738 machine=mega68 opsys=bsd4-2 | |
739 ;; | |
740 | |
741 ## Workstations sold by MIPS | |
742 ## This is not necessarily all workstations using the MIPS processor - | |
743 ## Irises are produced by SGI, and DECstations by DEC. | |
744 | |
745 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
746 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
747 ## it gives for choosing between the alternatives seems to be "Use | |
748 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
749 ## the BSD world." I'll assume that these are instructions for | |
750 ## handling two odd situations, and that every other situation | |
751 ## should use mips.h and usg5-2-2, they being listed first. | |
752 mips-mips-usg* ) | |
753 machine=mips4 | |
754 ## Fall through to the general code at the bottom to decide on the OS. | |
755 ;; | |
756 mips-mips-riscos4* ) | |
757 machine=mips4 opsys=bsd4-3 | |
758 NON_GNU_CC="cc -systype bsd43" | |
759 NON_GNU_CPP="cc -systype bsd43 -E" | |
760 ;; | |
12464
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
761 mips-mips-riscos5* ) |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
762 machine=mips4 opsys=riscos5 |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
763 NON_GNU_CC="cc -systype bsd43" |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
764 NON_GNU_CPP="cc -systype bsd43 -E" |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
765 ;; |
8636 | 766 mips-mips-bsd* ) |
767 machine=mips opsys=bsd4-3 | |
768 ;; | |
769 mips-mips-* ) | |
770 machine=mips opsys=usg5-2-2 | |
771 ;; | |
772 | |
773 ## NeXT | |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
774 m68*-next-* | m68k-*-nextstep* ) |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
775 machine=m68k opsys=nextstep |
8636 | 776 ;; |
777 | |
778 ## The complete machine from National Semiconductor | |
779 ns32k-ns-genix* ) | |
780 machine=ns32000 opsys=usg5-2 | |
781 ;; | |
782 | |
783 ## NCR machines | |
784 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
785 machine=tower32 opsys=usg5-2-2 | |
786 ;; | |
787 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
788 machine=tower32v3 opsys=usg5-3 | |
789 ;; | |
790 | |
23630
1b9560809c6e
(mips-nec-sysv4*): New target.
Kenichi Handa <handa@m17n.org>
parents:
23590
diff
changeset
|
791 ## NEC EWS4800 |
1b9560809c6e
(mips-nec-sysv4*): New target.
Kenichi Handa <handa@m17n.org>
parents:
23590
diff
changeset
|
792 mips-nec-sysv4*) |
1b9560809c6e
(mips-nec-sysv4*): New target.
Kenichi Handa <handa@m17n.org>
parents:
23590
diff
changeset
|
793 machine=ews4800 opsys=ux4800 |
1b9560809c6e
(mips-nec-sysv4*): New target.
Kenichi Handa <handa@m17n.org>
parents:
23590
diff
changeset
|
794 ;; |
1b9560809c6e
(mips-nec-sysv4*): New target.
Kenichi Handa <handa@m17n.org>
parents:
23590
diff
changeset
|
795 |
8636 | 796 ## Nixdorf Targon 31 |
797 m68*-nixdorf-sysv* ) | |
798 machine=targon31 opsys=usg5-2-2 | |
799 ;; | |
800 | |
801 ## Nu (TI or LMI) | |
802 m68*-nu-sysv* ) | |
803 machine=nu opsys=usg5-2 | |
804 ;; | |
805 | |
806 ## Plexus | |
807 m68*-plexus-sysv* ) | |
808 machine=plexus opsys=usg5-2 | |
809 ;; | |
810 | |
811 ## Pyramid machines | |
812 ## I don't really have any idea what sort of processor the Pyramid has, | |
813 ## so I'm assuming it is its own architecture. | |
814 pyramid-pyramid-bsd* ) | |
815 machine=pyramid opsys=bsd4-2 | |
816 ;; | |
817 | |
818 ## Sequent Balance | |
819 ns32k-sequent-bsd4.2* ) | |
820 machine=sequent opsys=bsd4-2 | |
821 ;; | |
822 ns32k-sequent-bsd4.3* ) | |
823 machine=sequent opsys=bsd4-3 | |
824 ;; | |
825 | |
826 ## Siemens Nixdorf | |
13661
d19b9d70b465
(mips-sni-sysv*): New alias for mips-siemens-sysv*.
Richard M. Stallman <rms@gnu.org>
parents:
13559
diff
changeset
|
827 mips-siemens-sysv* | mips-sni-sysv*) |
8636 | 828 machine=mips-siemens opsys=usg5-4 |
829 NON_GNU_CC=/usr/ccs/bin/cc | |
830 NON_GNU_CPP=/usr/ccs/lib/cpp | |
831 ;; | |
832 | |
833 ## Silicon Graphics machines | |
834 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
835 m68*-sgi-iris3.5* ) | |
836 machine=irist opsys=iris3-5 | |
837 ;; | |
838 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
839 machine=irist opsys=iris3-6 | |
840 ;; | |
841 ## Iris 4D | |
842 mips-sgi-irix3* ) | |
843 machine=iris4d opsys=irix3-3 | |
844 ;; | |
9898
cd6ad88c82fd
(mips-sgi-irix5.[01]*): Distinguish from irix5*.
Richard M. Stallman <rms@gnu.org>
parents:
9897
diff
changeset
|
845 mips-sgi-irix4* ) |
cd6ad88c82fd
(mips-sgi-irix5.[01]*): Distinguish from irix5*.
Richard M. Stallman <rms@gnu.org>
parents:
9897
diff
changeset
|
846 machine=iris4d opsys=irix4-0 |
cd6ad88c82fd
(mips-sgi-irix5.[01]*): Distinguish from irix5*.
Richard M. Stallman <rms@gnu.org>
parents:
9897
diff
changeset
|
847 ;; |
23910
2a947c3ed586
(mips-sgi-irix6.5): New target.
Karl Heuer <kwzh@gnu.org>
parents:
23909
diff
changeset
|
848 mips-sgi-irix6.5 ) |
2a947c3ed586
(mips-sgi-irix6.5): New target.
Karl Heuer <kwzh@gnu.org>
parents:
23909
diff
changeset
|
849 machine=iris4d opsys=irix6-5 |
26498
794e4734de4b
Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
Dave Love <fx@gnu.org>
parents:
26412
diff
changeset
|
850 # Without defining _LANGUAGE_C, things get masked out in the headers |
794e4734de4b
Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
Dave Love <fx@gnu.org>
parents:
26412
diff
changeset
|
851 # so that, for instance, grepping for `free' in stdlib.h fails and |
794e4734de4b
Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
Dave Love <fx@gnu.org>
parents:
26412
diff
changeset
|
852 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). |
794e4734de4b
Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
Dave Love <fx@gnu.org>
parents:
26412
diff
changeset
|
853 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" |
29385
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
854 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
23910
2a947c3ed586
(mips-sgi-irix6.5): New target.
Karl Heuer <kwzh@gnu.org>
parents:
23909
diff
changeset
|
855 ;; |
10736
619269498881
(mips-sgi-irix6): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
10632
diff
changeset
|
856 mips-sgi-irix6* ) |
15567
65ec32b3b89f
(euidaccess): Check for that, not for eaccess.
Richard M. Stallman <rms@gnu.org>
parents:
15522
diff
changeset
|
857 machine=iris4d opsys=irix6-0 |
26754
603ff5e39b74
Remove duplicate entry for arm*-*linux-gnu; my change missing a
Dave Love <fx@gnu.org>
parents:
26713
diff
changeset
|
858 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
26498
794e4734de4b
Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
Dave Love <fx@gnu.org>
parents:
26412
diff
changeset
|
859 # but presumably it does no harm. |
794e4734de4b
Fix NON_GNU_CPP for Irix 6 to avoid failing tests.
Dave Love <fx@gnu.org>
parents:
26412
diff
changeset
|
860 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" |
29385
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
861 # -32 probably isn't necessary in later v.6s -- anyone know which? |
15567
65ec32b3b89f
(euidaccess): Check for that, not for eaccess.
Richard M. Stallman <rms@gnu.org>
parents:
15522
diff
changeset
|
862 NON_GCC_TEST_OPTIONS=-32 |
10736
619269498881
(mips-sgi-irix6): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
10632
diff
changeset
|
863 ;; |
9898
cd6ad88c82fd
(mips-sgi-irix5.[01]*): Distinguish from irix5*.
Richard M. Stallman <rms@gnu.org>
parents:
9897
diff
changeset
|
864 mips-sgi-irix5.[01]* ) |
8636 | 865 machine=iris4d opsys=irix5-0 |
866 ;; | |
9898
cd6ad88c82fd
(mips-sgi-irix5.[01]*): Distinguish from irix5*.
Richard M. Stallman <rms@gnu.org>
parents:
9897
diff
changeset
|
867 mips-sgi-irix5* | mips-sgi-irix* ) |
cd6ad88c82fd
(mips-sgi-irix5.[01]*): Distinguish from irix5*.
Richard M. Stallman <rms@gnu.org>
parents:
9897
diff
changeset
|
868 machine=iris4d opsys=irix5-2 |
8636 | 869 ;; |
870 | |
871 ## SONY machines | |
872 m68*-sony-bsd4.2* ) | |
873 machine=news opsys=bsd4-2 | |
874 ;; | |
875 m68*-sony-bsd4.3* ) | |
876 machine=news opsys=bsd4-3 | |
877 ;; | |
9832
f0c8517d9d8a
Accept `news' as a synonym for `newsos'.
Karl Heuer <kwzh@gnu.org>
parents:
9744
diff
changeset
|
878 m68*-sony-newsos3* | m68*-sony-news3*) |
8636 | 879 machine=news opsys=bsd4-3 |
880 ;; | |
9832
f0c8517d9d8a
Accept `news' as a synonym for `newsos'.
Karl Heuer <kwzh@gnu.org>
parents:
9744
diff
changeset
|
881 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) |
8636 | 882 machine=news-risc opsys=bsd4-3 |
883 ;; | |
18385
b9c83d259391
(mips-sony-newsos6*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18327
diff
changeset
|
884 mips-sony-newsos6* ) |
18728
d03fae97ec4f
(mips-sony-newsos6*): File news-risc.h renamed to news-r6.h.
Richard M. Stallman <rms@gnu.org>
parents:
18655
diff
changeset
|
885 machine=news-r6 opsys=newsos6 |
18385
b9c83d259391
(mips-sony-newsos6*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18327
diff
changeset
|
886 ;; |
9832
f0c8517d9d8a
Accept `news' as a synonym for `newsos'.
Karl Heuer <kwzh@gnu.org>
parents:
9744
diff
changeset
|
887 mips-sony-news* ) |
8636 | 888 machine=news-risc opsys=newsos5 |
889 ;; | |
890 | |
891 ## Stride | |
892 m68*-stride-sysv* ) | |
893 machine=stride opsys=usg5-2 | |
894 ;; | |
895 | |
896 ## Suns | |
25135 | 897 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
898 machine=sparc opsys=gnu-linux |
15287 | 899 ;; |
900 | |
27947
5ae8f797cc06
(machine): Add support for `*-auspex-sunos*'.
Gerd Moellmann <gerd@gnu.org>
parents:
27926
diff
changeset
|
901 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
902 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
13096
6d9a2522f812
(powerpc-*-solaris2): New alternative.x
Richard M. Stallman <rms@gnu.org>
parents:
13022
diff
changeset
|
903 | rs6000-*-solaris2*) |
8636 | 904 case "${canonical}" in |
905 m68*-sunos1* ) machine=sun1 ;; | |
906 m68*-sunos2* ) machine=sun2 ;; | |
907 m68* ) machine=sun3 ;; | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
908 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; |
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
909 i[3456]86-*-* ) machine=intel386 ;; |
18128
42b9cdc157b1
(powerpcle-*-solaris2*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18100
diff
changeset
|
910 powerpcle* ) machine=powerpcle ;; |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
911 powerpc* | rs6000* ) machine=ibmrs6000 ;; |
8636 | 912 sparc* ) machine=sparc ;; |
913 * ) unported=yes ;; | |
914 esac | |
915 case "${canonical}" in | |
916 ## The Sun386 didn't get past 4.0. | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
917 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; |
8636 | 918 *-sunos4.0* ) opsys=sunos4-0 ;; |
15522
a6af1f88eec8
(sunos4.1.[3-9]*noshare): Eliminate dash from before `noshare'.
Richard M. Stallman <rms@gnu.org>
parents:
15483
diff
changeset
|
919 *-sunos4.1.[3-9]*noshare ) |
15918
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
920 ## This name is sunos413 instead of sunos4-1-3 |
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
921 ## to avoid a file name conflict on MSDOS. |
b0399aedfcfe
(*-sunos4.1.[3-9]*noshare): Use sunos413, not sunos4-1-3.
Richard M. Stallman <rms@gnu.org>
parents:
15899
diff
changeset
|
922 opsys=sunos413 |
13756
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
923 NON_GNU_CPP=/usr/lib/cpp |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
924 NON_GCC_TEST_OPTIONS=-Bstatic |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
925 GCC_TEST_OPTIONS=-static |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
926 ;; |
15822
fd9789979c58
(*-sunos4.1.[3-9]*noshare): Move this before
Richard M. Stallman <rms@gnu.org>
parents:
15809
diff
changeset
|
927 *-sunos4.1.[3-9]* | *-sunos4shr*) |
fd9789979c58
(*-sunos4.1.[3-9]*noshare): Move this before
Richard M. Stallman <rms@gnu.org>
parents:
15809
diff
changeset
|
928 opsys=sunos4shr |
fd9789979c58
(*-sunos4.1.[3-9]*noshare): Move this before
Richard M. Stallman <rms@gnu.org>
parents:
15809
diff
changeset
|
929 NON_GNU_CPP=/usr/lib/cpp |
fd9789979c58
(*-sunos4.1.[3-9]*noshare): Move this before
Richard M. Stallman <rms@gnu.org>
parents:
15809
diff
changeset
|
930 ;; |
13756
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
931 *-sunos4* | *-sunos ) |
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
932 opsys=sunos4-1 |
8636 | 933 NON_GCC_TEST_OPTIONS=-Bstatic |
934 GCC_TEST_OPTIONS=-static | |
935 ;; | |
936 *-sunos5.3* | *-solaris2.3* ) | |
937 opsys=sol2-3 | |
938 NON_GNU_CPP=/usr/ccs/lib/cpp | |
939 ;; | |
940 *-sunos5.4* | *-solaris2.4* ) | |
941 opsys=sol2-4 | |
942 NON_GNU_CPP=/usr/ccs/lib/cpp | |
12878
e80cd1210452
(RANLIB): Substitute this into makefiles.
Richard M. Stallman <rms@gnu.org>
parents:
12843
diff
changeset
|
943 RANLIB="ar -ts" |
8636 | 944 ;; |
12056
021b6000bd04
(*-solaris2.5): New configuration.
Karl Heuer <kwzh@gnu.org>
parents:
12037
diff
changeset
|
945 *-sunos5.5* | *-solaris2.5* ) |
021b6000bd04
(*-solaris2.5): New configuration.
Karl Heuer <kwzh@gnu.org>
parents:
12037
diff
changeset
|
946 opsys=sol2-5 |
021b6000bd04
(*-solaris2.5): New configuration.
Karl Heuer <kwzh@gnu.org>
parents:
12037
diff
changeset
|
947 NON_GNU_CPP=/usr/ccs/lib/cpp |
12878
e80cd1210452
(RANLIB): Substitute this into makefiles.
Richard M. Stallman <rms@gnu.org>
parents:
12843
diff
changeset
|
948 RANLIB="ar -ts" |
12056
021b6000bd04
(*-solaris2.5): New configuration.
Karl Heuer <kwzh@gnu.org>
parents:
12037
diff
changeset
|
949 ;; |
47325
dd0eb98ebb2e
(powerpcle-*-solaris2.5*): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
47289
diff
changeset
|
950 *-sunos5.6* | *-solaris2.6* ) |
dd0eb98ebb2e
(powerpcle-*-solaris2.5*): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
47289
diff
changeset
|
951 opsys=sol2-6 |
dd0eb98ebb2e
(powerpcle-*-solaris2.5*): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
47289
diff
changeset
|
952 NON_GNU_CPP=/usr/ccs/lib/cpp |
dd0eb98ebb2e
(powerpcle-*-solaris2.5*): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
47289
diff
changeset
|
953 RANLIB="ar -ts" |
dd0eb98ebb2e
(powerpcle-*-solaris2.5*): New configuration.
Richard M. Stallman <rms@gnu.org>
parents:
47289
diff
changeset
|
954 ;; |
8636 | 955 *-sunos5* | *-solaris* ) |
48771
68ba1a03c8d7
(*-sunos5*, *-solaris*): Revert previous change -
Markus Rost <rost@math.uni-bielefeld.de>
parents:
48768
diff
changeset
|
956 opsys=sol2-6 |
8636 | 957 NON_GNU_CPP=/usr/ccs/lib/cpp |
958 ;; | |
959 * ) opsys=bsd4-2 ;; | |
960 esac | |
14194
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
961 ## Watch out for a compiler that we know will not work. |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
962 case "${canonical}" in |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
963 *-solaris* | *-sunos5* ) |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
964 if [ "x$CC" = x/usr/ucb/cc ]; then |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
965 ## /usr/ucb/cc doesn't work; |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
966 ## we should find some other compiler that does work. |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
967 unset CC |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
968 fi |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
969 ;; |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
970 *) ;; |
f028a0095be0
(HAVE_XMU): Fix typo in previous change.
Richard M. Stallman <rms@gnu.org>
parents:
14177
diff
changeset
|
971 esac |
8636 | 972 ;; |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
973 sparc-*-nextstep* ) |
13350
95c7fff0e93c
(sparc-*-nextstep*): Remove incorrect .h's.
Richard M. Stallman <rms@gnu.org>
parents:
13292
diff
changeset
|
974 machine=sparc opsys=nextstep |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
975 ;; |
8636 | 976 |
977 ## Tadpole 68k | |
978 m68*-tadpole-sysv* ) | |
979 machine=tad68k opsys=usg5-3 | |
980 ;; | |
981 | |
982 ## Tahoe machines | |
983 tahoe-tahoe-bsd4.2* ) | |
984 machine=tahoe opsys=bsd4-2 | |
985 ;; | |
986 tahoe-tahoe-bsd4.3* ) | |
987 machine=tahoe opsys=bsd4-3 | |
988 ;; | |
989 | |
990 ## Tandem Integrity S2 | |
991 mips-tandem-sysv* ) | |
992 machine=tandem-s2 opsys=usg5-3 | |
993 ;; | |
994 | |
995 ## Tektronix XD88 | |
996 m88k-tektronix-sysv3* ) | |
997 machine=tekxd88 opsys=usg5-3 | |
998 ;; | |
999 | |
1000 ## Tektronix 16000 box (6130?) | |
1001 ns16k-tektronix-bsd* ) | |
1002 machine=ns16000 opsys=bsd4-2 | |
1003 ;; | |
1004 ## Tektronix 4300 | |
1005 ## src/m/tek4300.h hints that this is a m68k machine. | |
1006 m68*-tektronix-bsd* ) | |
1007 machine=tek4300 opsys=bsd4-3 | |
1008 ;; | |
1009 | |
1010 ## Titan P2 or P3 | |
1011 ## We seem to have lost the machine-description file titan.h! | |
1012 titan-titan-sysv* ) | |
1013 machine=titan opsys=usg5-3 | |
1014 ;; | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
1015 |
8636 | 1016 ## Ustation E30 (SS5E) |
1017 m68*-unisys-uniplus* ) | |
1018 machine=ustation opsystem=unipl5-2 | |
1019 ;; | |
1020 | |
1021 ## Vaxen. | |
1022 vax-dec-* ) | |
1023 machine=vax | |
1024 case "${canonical}" in | |
1025 *-bsd4.1* ) opsys=bsd4-1 ;; | |
1026 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
1027 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
1028 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
1029 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
1030 *-vms* ) opsys=vms ;; | |
1031 * ) unported=yes | |
1032 esac | |
1033 ;; | |
1034 | |
1035 ## Whitechapel MG1 | |
1036 ns16k-whitechapel-* ) | |
1037 machine=mg1 | |
1038 ## We don't know what sort of OS runs on these; we'll let the | |
1039 ## operating system guessing code below try. | |
1040 ;; | |
1041 | |
1042 ## Wicat | |
1043 m68*-wicat-sysv* ) | |
1044 machine=wicat opsys=usg5-2 | |
1045 ;; | |
1046 | |
30570
2dba7ac68499
Add support for ia64*-*-linux*.
Gerd Moellmann <gerd@gnu.org>
parents:
30464
diff
changeset
|
1047 ## IA-64 |
2dba7ac68499
Add support for ia64*-*-linux*.
Gerd Moellmann <gerd@gnu.org>
parents:
30464
diff
changeset
|
1048 ia64*-*-linux* ) |
2dba7ac68499
Add support for ia64*-*-linux*.
Gerd Moellmann <gerd@gnu.org>
parents:
30464
diff
changeset
|
1049 machine=ia64 opsys=gnu-linux |
2dba7ac68499
Add support for ia64*-*-linux*.
Gerd Moellmann <gerd@gnu.org>
parents:
30464
diff
changeset
|
1050 ;; |
2dba7ac68499
Add support for ia64*-*-linux*.
Gerd Moellmann <gerd@gnu.org>
parents:
30464
diff
changeset
|
1051 |
8636 | 1052 ## Intel 386 machines where we don't care about the manufacturer |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1053 i[3456]86-*-* ) |
8636 | 1054 machine=intel386 |
1055 case "${canonical}" in | |
29652
35fabb4b6bab
Add support for `*-lynxos*'.
Gerd Moellmann <gerd@gnu.org>
parents:
29385
diff
changeset
|
1056 *-lynxos* ) opsys=lynxos ;; |
8636 | 1057 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
1058 *-isc2.2* ) opsys=isc2-2 ;; | |
1059 *-isc4.0* ) opsys=isc4-0 ;; | |
12843
4948ca294167
(i*386-*-isc4.*): Set GCC_TEST_OPTIONS and NON_GCC_TEST_OPTIONS.
Richard M. Stallman <rms@gnu.org>
parents:
12842
diff
changeset
|
1060 *-isc4.* ) opsys=isc4-1 |
4948ca294167
(i*386-*-isc4.*): Set GCC_TEST_OPTIONS and NON_GCC_TEST_OPTIONS.
Richard M. Stallman <rms@gnu.org>
parents:
12842
diff
changeset
|
1061 GCC_TEST_OPTIONS=-posix |
4948ca294167
(i*386-*-isc4.*): Set GCC_TEST_OPTIONS and NON_GCC_TEST_OPTIONS.
Richard M. Stallman <rms@gnu.org>
parents:
12842
diff
changeset
|
1062 NON_GCC_TEST_OPTIONS=-Xp |
4948ca294167
(i*386-*-isc4.*): Set GCC_TEST_OPTIONS and NON_GCC_TEST_OPTIONS.
Richard M. Stallman <rms@gnu.org>
parents:
12842
diff
changeset
|
1063 ;; |
8636 | 1064 *-isc* ) opsys=isc3-0 ;; |
1065 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
1066 *-esix* ) opsys=esix ;; | |
1067 *-xenix* ) opsys=xenix ;; | |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1068 *-linux-gnu* ) opsys=gnu-linux ;; |
8636 | 1069 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1070 *-sco3.2v5* ) opsys=sco5 |
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1071 NON_GNU_CPP=/lib/cpp |
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1072 # Prevent -belf from being passed to $CPP. |
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1073 # /lib/cpp does not accept it. |
15809 | 1074 OVERRIDE_CPPFLAGS=" " |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1075 ;; |
19105
fe86a22972fa
(i*86-*-sysv4.2uw*): Set NON_GNU_CPP.
Richard M. Stallman <rms@gnu.org>
parents:
18985
diff
changeset
|
1076 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
8636 | 1077 *-386bsd* ) opsys=386bsd ;; |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1078 *-nextstep* ) opsys=nextstep ;; |
8636 | 1079 ## Otherwise, we'll fall through to the generic opsys code at the bottom. |
1080 esac | |
1081 ;; | |
1082 | |
18396
881264eb1346
(mips-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18386
diff
changeset
|
1083 ## m68k Linux-based GNU system |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1084 m68k-*-linux-gnu* ) |
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1085 machine=m68k opsys=gnu-linux |
13368
d2d72cc7ee52
(m68k-*-linux*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
13350
diff
changeset
|
1086 ;; |
d2d72cc7ee52
(m68k-*-linux*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
13350
diff
changeset
|
1087 |
18396
881264eb1346
(mips-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18386
diff
changeset
|
1088 ## Mips Linux-based GNU system |
48555
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1089 mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
18396
881264eb1346
(mips-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18386
diff
changeset
|
1090 machine=mips opsys=gnu-linux |
881264eb1346
(mips-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18386
diff
changeset
|
1091 ;; |
881264eb1346
(mips-*-linux-gnu*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
18386
diff
changeset
|
1092 |
20477
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1093 ## UXP/DS |
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1094 sparc-fujitsu-sysv4* ) |
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1095 machine=sparc opsys=uxpds |
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1096 NON_GNU_CPP=/usr/ccs/lib/cpp |
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1097 RANLIB="ar -ts" |
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1098 ;; |
6423efca2ea9
(sparc-fujitsu-sysv4*): New target.
Richard M. Stallman <rms@gnu.org>
parents:
20464
diff
changeset
|
1099 |
24383
9feaa3768697
(f301-fujitsu-uxpv4.1): New target.
Karl Heuer <kwzh@gnu.org>
parents:
24291
diff
changeset
|
1100 ## UXP/V |
9feaa3768697
(f301-fujitsu-uxpv4.1): New target.
Karl Heuer <kwzh@gnu.org>
parents:
24291
diff
changeset
|
1101 f301-fujitsu-uxpv4.1) |
9feaa3768697
(f301-fujitsu-uxpv4.1): New target.
Karl Heuer <kwzh@gnu.org>
parents:
24291
diff
changeset
|
1102 machine=f301 opsys=uxpv |
9feaa3768697
(f301-fujitsu-uxpv4.1): New target.
Karl Heuer <kwzh@gnu.org>
parents:
24291
diff
changeset
|
1103 ;; |
9feaa3768697
(f301-fujitsu-uxpv4.1): New target.
Karl Heuer <kwzh@gnu.org>
parents:
24291
diff
changeset
|
1104 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1105 ## Darwin / Mac OS X |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1106 powerpc-apple-darwin* ) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1107 machine=powermac opsys=darwin |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1108 # Define CPP as follows to make autoconf work correctly. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1109 CPP="cc -E -traditional-cpp" |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1110 ;; |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
1111 |
45667 | 1112 ## AMD x86-64 Linux-based GNU system |
1113 x86_64-*-linux-gnu* ) | |
1114 machine=amdx86-64 opsys=gnu-linux | |
1115 ;; | |
1116 | |
8636 | 1117 * ) |
1118 unported=yes | |
1119 ;; | |
1120 esac | |
1121 | |
1122 ### If the code above didn't choose an operating system, just choose | |
1123 ### an operating system based on the configuration name. You really | |
1124 ### only want to use this when you have no idea what the right | |
1125 ### operating system is; if you know what operating systems a machine | |
1126 ### runs, it's cleaner to make it explicit in the case statement | |
1127 ### above. | |
1128 if test x"${opsys}" = x; then | |
1129 case "${canonical}" in | |
1130 *-gnu* ) opsys=gnu ;; | |
1131 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
1132 *-bsd4.2 ) opsys=bsd4-2 ;; | |
1133 *-bsd4.3 ) opsys=bsd4-3 ;; | |
1134 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
1135 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
1136 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1137 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; |
18655
7ddb2d92ef16
(leim/Makefile): Generate this.
Richard M. Stallman <rms@gnu.org>
parents:
18499
diff
changeset
|
1138 *-sysv4.2uw* ) opsys=unixware ;; |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1139 *-sysv4.1* | *-sysvr4.1* ) |
8636 | 1140 NON_GNU_CPP=/usr/lib/cpp |
1141 opsys=usg5-4 ;; | |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1142 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) |
10152
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
1143 if [ x$NON_GNU_CPP = x ]; then |
15274
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
1144 if [ -f /usr/ccs/lib/cpp ]; then |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
1145 NON_GNU_CPP=/usr/ccs/lib/cpp |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
1146 else |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
1147 NON_GNU_CPP=/lib/cpp |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
1148 fi |
10152
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
1149 fi |
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
1150 opsys=usg5-4-2 ;; |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1151 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; |
8636 | 1152 * ) |
1153 unported=yes | |
1154 ;; | |
1155 esac | |
1156 fi | |
1157 | |
48431 | 1158 ] |
8636 | 1159 |
1160 if test $unported = yes; then | |
48431 | 1161 AC_MSG_ERROR([Emacs hasn't been ported to `${canonical}' systems. |
1162 Check `etc/MACHINES' for recognized configuration names.]) | |
8636 | 1163 fi |
1164 | |
1165 machfile="m/${machine}.h" | |
1166 opsysfile="s/${opsys}.h" | |
1167 | |
1168 | |
1169 #### Choose a compiler. | |
1170 test -n "$CC" && cc_specified=yes | |
1171 | |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1172 # Save the value of CFLAGS that the user specified. |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1173 SPECIFIED_CFLAGS="$CFLAGS" |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
1174 |
8636 | 1175 case ${with_gcc} in |
1176 "yes" ) CC="gcc" GCC=yes ;; | |
8730 | 1177 "no" ) : ${CC=cc} ;; |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1178 * ) |
8636 | 1179 esac |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1180 AC_PROG_CC |
8636 | 1181 |
1182 # On Suns, sometimes $CPP names a directory. | |
1183 if test -n "$CPP" && test -d "$CPP"; then | |
1184 CPP= | |
1185 fi | |
1186 | |
1187 #### Some systems specify a CPP to use unless we are using GCC. | |
1188 #### Now that we know whether we are using GCC, we can decide whether | |
1189 #### to use that one. | |
1190 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
1191 then | |
1192 CPP="$NON_GNU_CPP" | |
1193 fi | |
1194 | |
1195 #### Some systems specify a CC to use unless we are using GCC. | |
1196 #### Now that we know whether we are using GCC, we can decide whether | |
1197 #### to use that one. | |
1198 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
1199 test x$cc_specified != xyes | |
1200 then | |
1201 CC="$NON_GNU_CC" | |
1202 fi | |
1203 | |
1204 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
1205 then | |
1206 CC="$CC $GCC_TEST_OPTIONS" | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
1207 fi |
8636 | 1208 |
1209 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
1210 then | |
1211 CC="$CC $NON_GCC_TEST_OPTIONS" | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
1212 fi |
8636 | 1213 |
49083 | 1214 #### Some other nice autoconf tests. |
8636 | 1215 |
1216 dnl checks for programs | |
8730 | 1217 AC_PROG_LN_S |
8636 | 1218 AC_PROG_CPP |
1219 AC_PROG_INSTALL | |
28053
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1220 if test "x$RANLIB" = x; then |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1221 AC_PROG_RANLIB |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1222 fi |
49074 | 1223 AC_PATH_PROG(INSTALL_INFO, install-info) |
1224 AC_PATH_PROG(INSTALL_INFO, install-info,, /usr/sbin) | |
1225 AC_PATH_PROG(INSTALL_INFO, install-info,:, /sbin) | |
8636 | 1226 |
47249
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1227 dnl Add our options to ac_link now, after it is set up. |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1228 |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1229 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1230 then |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1231 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1232 fi |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1233 |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1234 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1235 then |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1236 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1237 fi |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1238 |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1239 dnl checks for Unix variants |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1240 AC_AIX |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1241 |
30310
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1242 #### Extract some information from the operating system and machine files. |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1243 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1244 AC_CHECKING([the machine- and system-dependent files to find out |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1245 - which libraries the lib-src programs will want, and |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1246 - whether the GNU malloc routines are usable]) |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1247 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1248 ### First figure out CFLAGS (which we use for running the compiler here) |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1249 ### and REAL_CFLAGS (which we use for real compilation). |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1250 ### The two are the same except on a few systems, where they are made |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1251 ### different to work around various lossages. For example, |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1252 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1253 ### as implying static linking. |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1254 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1255 ### If the CFLAGS env var is specified, we use that value |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1256 ### instead of the default. |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1257 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1258 ### It's not important that this name contain the PID; you can't run |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1259 ### two configures in the same directory and have anything work |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1260 ### anyway. |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1261 tempcname="conftest.c" |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1262 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1263 echo ' |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1264 #include "'${srcdir}'/src/'${opsysfile}'" |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1265 #include "'${srcdir}'/src/'${machfile}'" |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1266 #ifndef LIBS_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1267 #define LIBS_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1268 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1269 #ifndef LIBS_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1270 #define LIBS_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1271 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1272 #ifndef C_SWITCH_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1273 #define C_SWITCH_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1274 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1275 #ifndef C_SWITCH_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1276 #define C_SWITCH_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1277 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1278 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1279 configure___ c_switch_system=C_SWITCH_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1280 configure___ c_switch_machine=C_SWITCH_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1281 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1282 #ifndef LIB_X11_LIB |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1283 #define LIB_X11_LIB -lX11 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1284 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1285 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1286 #ifndef LIBX11_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1287 #define LIBX11_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1288 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1289 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1290 #ifndef LIBX11_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1291 #define LIBX11_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1292 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1293 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1294 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1295 #ifdef UNEXEC |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1296 configure___ unexec=UNEXEC |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1297 #else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1298 configure___ unexec=unexec.o |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1299 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1300 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1301 #ifdef SYSTEM_MALLOC |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1302 configure___ system_malloc=yes |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1303 #else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1304 configure___ system_malloc=no |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1305 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1306 |
31599
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
1307 #ifdef USE_MMAP_FOR_BUFFERS |
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
1308 configure___ use_mmap_for_buffers=yes |
31410
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1309 #else |
31599
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
1310 configure___ use_mmap_for_buffers=no |
31410
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1311 #endif |
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1312 |
30310
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1313 #ifndef C_DEBUG_SWITCH |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1314 #define C_DEBUG_SWITCH -g |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1315 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1316 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1317 #ifndef C_OPTIMIZE_SWITCH |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1318 #ifdef __GNUC__ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1319 #define C_OPTIMIZE_SWITCH -O2 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1320 #else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1321 #define C_OPTIMIZE_SWITCH -O |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1322 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1323 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1324 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1325 #ifndef LD_SWITCH_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1326 #define LD_SWITCH_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1327 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1328 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1329 #ifndef LD_SWITCH_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1330 #define LD_SWITCH_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1331 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1332 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1333 #ifndef LD_SWITCH_X_SITE_AUX |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1334 #define LD_SWITCH_X_SITE_AUX |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1335 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1336 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1337 configure___ ld_switch_system=LD_SWITCH_SYSTEM |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1338 configure___ ld_switch_machine=LD_SWITCH_MACHINE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1339 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1340 #ifdef THIS_IS_CONFIGURE |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1341 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1342 /* Get the CFLAGS for tests in configure. */ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1343 #ifdef __GNUC__ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1344 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1345 #else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1346 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1347 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1348 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1349 #else /* not THIS_IS_CONFIGURE */ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1350 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1351 /* Get the CFLAGS for real compilation. */ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1352 #ifdef __GNUC__ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1353 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1354 #else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1355 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1356 #endif |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1357 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1358 #endif /* not THIS_IS_CONFIGURE */ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1359 ' > ${tempcname} |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1360 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1361 # The value of CPP is a quoted variable reference, so we need to do this |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1362 # to get its actual value... |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1363 CPP=`eval "echo $CPP"` |
48431 | 1364 [eval `${CPP} -Isrc ${tempcname} \ |
30310
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1365 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1366 if test "x$SPECIFIED_CFLAGS" = x; then |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1367 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1368 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1369 else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1370 REAL_CFLAGS="$CFLAGS" |
48431 | 1371 fi] |
30310
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1372 rm ${tempcname} |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1373 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1374 ac_link="$ac_link $ld_switch_machine $ld_switch_system" |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1375 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1376 ### Make sure subsequent tests use flags consistent with the build flags. |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1377 |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1378 if test x"${OVERRIDE_CPPFLAGS}" != x; then |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1379 CPPFLAGS="${OVERRIDE_CPPFLAGS}" |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1380 else |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1381 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1382 fi |
a3f30480694a
Reorder so that most tests are done after CPPFLAGS
Dave Love <fx@gnu.org>
parents:
30139
diff
changeset
|
1383 |
48220
0230b8ae41f0
Use AC_CONFIG_LIBOBJ_DIR and require autoconf
Dave Love <fx@gnu.org>
parents:
48080
diff
changeset
|
1384 dnl For AC_FUNC_GETLOADAVG, at least: |
0230b8ae41f0
Use AC_CONFIG_LIBOBJ_DIR and require autoconf
Dave Love <fx@gnu.org>
parents:
48080
diff
changeset
|
1385 AC_CONFIG_LIBOBJ_DIR(src) |
0230b8ae41f0
Use AC_CONFIG_LIBOBJ_DIR and require autoconf
Dave Love <fx@gnu.org>
parents:
48080
diff
changeset
|
1386 |
48441 | 1387 AC_GNU_SOURCE |
1388 | |
30464
132287a7c6d3
(AC_SYS_LARGEFILE): Moved earlier.
Dave Love <fx@gnu.org>
parents:
30393
diff
changeset
|
1389 dnl Do this early because it can frob feature test macros for Unix-98 &c. |
132287a7c6d3
(AC_SYS_LARGEFILE): Moved earlier.
Dave Love <fx@gnu.org>
parents:
30393
diff
changeset
|
1390 AC_SYS_LARGEFILE |
132287a7c6d3
(AC_SYS_LARGEFILE): Moved earlier.
Dave Love <fx@gnu.org>
parents:
30393
diff
changeset
|
1391 |
44433 | 1392 if test "${with_sound}" != "no"; then |
1393 # Sound support for GNU/Linux and the free BSDs. | |
1394 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h) | |
1395 # Emulation library used on NetBSD. | |
1396 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) | |
1397 AC_SUBST(LIBSOUND) | |
1398 fi | |
25038
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
1399 |
8636 | 1400 dnl checks for header files |
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25993
diff
changeset
|
1401 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25993
diff
changeset
|
1402 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
1403 termcap.h stdio_ext.h fcntl.h term.h strings.h coff.h pty.h sys/mman.h \ |
48431 | 1404 sys/param.h sys/vlimit.h sys/resource.h) |
1405 dnl On Solaris 8 there's a compilation warning for term.h because | |
1406 dnl it doesn't define `bool'. | |
1407 AC_CHECK_HEADERS(term.h, , , -) | |
8730 | 1408 AC_HEADER_STDC |
1409 AC_HEADER_TIME | |
48555
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1410 AC_CHECK_DECLS([sys_siglist]) |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1411 if test $ac_cv_have_decl_sys_siglist != yes; then |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1412 # For Tru64, at least: |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1413 AC_CHECK_DECLS([__sys_siglist]) |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1414 if test $ac_cv_have_decl___sys_siglist = yes; then |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1415 AC_DEFINE(sys_siglist, __sys_siglist, |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1416 [Define to any substitute for sys_siglist.]) |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1417 fi |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1418 fi |
30064 | 1419 AC_HEADER_SYS_WAIT |
8636 | 1420 |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1421 dnl Some systems have utime.h but don't declare the struct anyplace. |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1422 AC_CACHE_CHECK(for struct utimbuf, emacs_cv_struct_utimbuf, |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1423 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1424 #include <sys/time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1425 #include <time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1426 #else |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1427 #ifdef HAVE_SYS_TIME_H |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1428 #include <sys/time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1429 #else |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1430 #include <time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1431 #endif |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1432 #endif |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1433 #ifdef HAVE_UTIME_H |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1434 #include <utime.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1435 #endif], [static struct utimbuf x; x.actime = x.modtime;], |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1436 emacs_cv_struct_utimbuf=yes, emacs_cv_struct_utimbuf=no)) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1437 if test $emacs_cv_struct_utimbuf = yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1438 AC_DEFINE(HAVE_STRUCT_UTIMBUF, 1, [Define to 1 if `struct utimbuf' is declared by <utime.h>.]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1439 fi |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1440 |
8636 | 1441 dnl checks for typedefs |
8730 | 1442 AC_TYPE_SIGNAL |
8636 | 1443 |
29253
809933264ea6
Add check for speed_t typedef.
Gerd Moellmann <gerd@gnu.org>
parents:
29031
diff
changeset
|
1444 dnl Check for speed_t typedef. |
809933264ea6
Add check for speed_t typedef.
Gerd Moellmann <gerd@gnu.org>
parents:
29031
diff
changeset
|
1445 AC_CACHE_CHECK(for speed_t, emacs_cv_speed_t, |
45205
c061b7b5de47
(emacs_cv_speed_t): Add square brackets for clarity.
Richard M. Stallman <rms@gnu.org>
parents:
45053
diff
changeset
|
1446 [AC_TRY_COMPILE([#include <termios.h>], [speed_t x = 1;], |
c061b7b5de47
(emacs_cv_speed_t): Add square brackets for clarity.
Richard M. Stallman <rms@gnu.org>
parents:
45053
diff
changeset
|
1447 emacs_cv_speed_t=yes, emacs_cv_speed_t=no)]) |
29253
809933264ea6
Add check for speed_t typedef.
Gerd Moellmann <gerd@gnu.org>
parents:
29031
diff
changeset
|
1448 if test $emacs_cv_speed_t = yes; then |
45205
c061b7b5de47
(emacs_cv_speed_t): Add square brackets for clarity.
Richard M. Stallman <rms@gnu.org>
parents:
45053
diff
changeset
|
1449 AC_DEFINE(HAVE_SPEED_T, 1, |
c061b7b5de47
(emacs_cv_speed_t): Add square brackets for clarity.
Richard M. Stallman <rms@gnu.org>
parents:
45053
diff
changeset
|
1450 [Define to 1 if `speed_t' is declared by <termios.h>.]) |
29253
809933264ea6
Add check for speed_t typedef.
Gerd Moellmann <gerd@gnu.org>
parents:
29031
diff
changeset
|
1451 fi |
809933264ea6
Add check for speed_t typedef.
Gerd Moellmann <gerd@gnu.org>
parents:
29031
diff
changeset
|
1452 |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1453 AC_CACHE_CHECK(for struct timeval, emacs_cv_struct_timeval, |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1454 AC_TRY_COMPILE([#ifdef TIME_WITH_SYS_TIME |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1455 #include <sys/time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1456 #include <time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1457 #else |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1458 #ifdef HAVE_SYS_TIME_H |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1459 #include <sys/time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1460 #else |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1461 #include <time.h> |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1462 #endif |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1463 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1464 emacs_cv_struct_timeval=yes, emacs_cv_struct_timeval=no)) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1465 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1466 if test $emacs_cv_struct_timeval = yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1467 AC_DEFINE(HAVE_TIMEVAL, 1, [Define to 1 if `struct timeval' is declared by <sys/time.h>.]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1468 fi |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1469 |
29385
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1470 AC_CACHE_CHECK(for struct exception, emacs_cv_struct_exception, |
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1471 AC_TRY_COMPILE([#include <math.h>], |
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1472 [static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;], |
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1473 emacs_cv_struct_exception=yes, emacs_cv_struct_exception=no)) |
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1474 HAVE_EXCEPTION=$emacs_cv_struct_exception |
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1475 if test $emacs_cv_struct_exception != yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1476 AC_DEFINE(NO_MATHERR, 1, [Define to 1 if you don't have struct exception in math.h.]) |
29385
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1477 fi |
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
1478 |
8636 | 1479 dnl checks for structure members |
1480 AC_STRUCT_TM | |
8730 | 1481 AC_STRUCT_TIMEZONE |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1482 AC_CHECK_MEMBER(struct tm.tm_gmtoff, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1483 [AC_DEFINE(HAVE_TM_GMTOFF, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1484 [Define to 1 if `tm_gmtoff' is member of `struct tm'.])],, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1485 [#include <time.h>]) |
8636 | 1486 |
1487 dnl checks for compiler characteristics | |
28053
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1488 |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1489 dnl Testing __STDC__ to determine prototype support isn't good enough. |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1490 dnl DEC C, for instance, doesn't define it with default options, and |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1491 dnl is used on 64-bit systems (OSF Alphas). Similarly for volatile |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1492 dnl and void *. |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1493 AC_C_PROTOTYPES |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1494 AC_C_VOLATILE |
8730 | 1495 AC_C_CONST |
28053
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1496 dnl This isn't useful because we can't turn on use of `inline' unless |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1497 dnl the compiler groks `extern inline'. |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1498 dnl AC_C_INLINE |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1499 AC_CACHE_CHECK([for void * support], emacs_cv_void_star, |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1500 [AC_TRY_COMPILE(, [void * foo;], |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1501 emacs_cv_void_star=yes, emacs_cv_void_star=no)]) |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1502 if test $emacs_cv_void_star = yes; then |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1503 AC_DEFINE(POINTER_TYPE, void) |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1504 else |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1505 AC_DEFINE(POINTER_TYPE, char) |
14c92796f826
Use AC_PROG_RANLIB, AC_C_PROTOTYPES, AC_C_VOLATILE. Define
Dave Love <fx@gnu.org>
parents:
27947
diff
changeset
|
1506 fi |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1507 AH_TEMPLATE(POINTER_TYPE, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1508 [Define as `void' if your compiler accepts `void *'; otherwise |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1509 define as `char'.])dnl |
8636 | 1510 |
48555
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1511 dnl This could be used for targets which can have both byte sexes. |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1512 dnl We could presumably replace the hardwired WORDS_BIG_ENDIAN generally. |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1513 dnl AC_C_BIGENDIAN |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
1514 |
8636 | 1515 dnl check for Make feature |
8730 | 1516 AC_PROG_MAKE_SET |
8636 | 1517 |
1518 dnl checks for operating system services | |
8730 | 1519 AC_SYS_LONG_FILE_NAMES |
8636 | 1520 |
1521 #### Choose a window system. | |
1522 | |
8730 | 1523 AC_PATH_X |
8707 | 1524 if test "$no_x" = yes; then |
1525 window_system=none | |
1526 else | |
1527 window_system=x11 | |
1528 fi | |
8636 | 1529 |
9910
27b7a34664e3
Don't add -I, -L, -R options for cc if their
David J. MacKenzie <djm@gnu.org>
parents:
9898
diff
changeset
|
1530 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
11998
3c3f3bbe311f
Allow x_libraries and x_includes to be paths.
Karl Heuer <kwzh@gnu.org>
parents:
11916
diff
changeset
|
1531 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
3c3f3bbe311f
Allow x_libraries and x_includes to be paths.
Karl Heuer <kwzh@gnu.org>
parents:
11916
diff
changeset
|
1532 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` |
19499
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1533 x_default_search_path="" |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1534 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do |
35290
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1535 x_search_path="\ |
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1536 ${x_library}/X11/%L/%T/%N%C%S:\ |
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1537 ${x_library}/X11/%l/%T/%N%C%S:\ |
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1538 ${x_library}/X11/%T/%N%C%S:\ |
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1539 ${x_library}/X11/%L/%T/%N%S:\ |
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1540 ${x_library}/X11/%l/%T/%N%S:\ |
f67ec8c72036
Fix typo in the code setting x_search_path.
Kenichi Handa <handa@m17n.org>
parents:
35204
diff
changeset
|
1541 ${x_library}/X11/%T/%N%S" |
19499
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1542 if test x"${x_default_search_path}" = x; then |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1543 x_default_search_path=${x_search_path} |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1544 else |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1545 x_default_search_path="${x_search_path}:${x_default_search_path}" |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1546 fi |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1547 done |
9910
27b7a34664e3
Don't add -I, -L, -R options for cc if their
David J. MacKenzie <djm@gnu.org>
parents:
9898
diff
changeset
|
1548 fi |
27b7a34664e3
Don't add -I, -L, -R options for cc if their
David J. MacKenzie <djm@gnu.org>
parents:
9898
diff
changeset
|
1549 if test "${x_includes}" != NONE && test -n "${x_includes}"; then |
12037
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1550 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` |
9910
27b7a34664e3
Don't add -I, -L, -R options for cc if their
David J. MacKenzie <djm@gnu.org>
parents:
9898
diff
changeset
|
1551 fi |
8636 | 1552 |
9744 | 1553 if test x"${x_includes}" = x; then |
1554 bitmapdir=/usr/include/X11/bitmaps | |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1555 else |
14018 | 1556 # accumulate include directories that have X11 bitmap subdirectories |
12037
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1557 bmd_acc="dummyval" |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1558 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1559 if test -d "${bmd}/X11/bitmaps"; then |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1560 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" |
26412
09ba127d578d
(bitmapdir): Allow for both "bitmaps" directories.
Gerd Moellmann <gerd@gnu.org>
parents:
26382
diff
changeset
|
1561 fi |
09ba127d578d
(bitmapdir): Allow for both "bitmaps" directories.
Gerd Moellmann <gerd@gnu.org>
parents:
26382
diff
changeset
|
1562 if test -d "${bmd}/bitmaps"; then |
12037
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1563 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1564 fi |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1565 done |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1566 if test ${bmd_acc} != "dummyval"; then |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1567 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` |
a9ada5749a17
Use x_includes, not x_libraries, for -I.
Karl Heuer <kwzh@gnu.org>
parents:
11999
diff
changeset
|
1568 fi |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1569 fi |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
1570 |
8636 | 1571 case "${window_system}" in |
1572 x11 ) | |
1573 HAVE_X_WINDOWS=yes | |
1574 HAVE_X11=yes | |
1575 case "${with_x_toolkit}" in | |
14041
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
1576 athena | lucid ) USE_X_TOOLKIT=LUCID ;; |
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
1577 motif ) USE_X_TOOLKIT=MOTIF ;; |
9e2b7610eddd
(locallisppath): Fix typo in last change: " -> '.
Roland McGrath <roland@gnu.org>
parents:
14023
diff
changeset
|
1578 dnl open-look ) USE_X_TOOLKIT=OPEN_LOOK ;; |
49322 | 1579 gtk ) with_gtk=yes |
1580 dnl Dont set this for GTK. A lot of tests below assumes Xt when | |
1581 dnl USE_X_TOOLKIT is set. | |
1582 USE_X_TOOLKIT=none ;; | |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1583 no ) USE_X_TOOLKIT=none ;; |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1584 dnl If user did not say whether to use a toolkit, |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1585 dnl make this decision later: use the toolkit if we have X11R5 or newer. |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1586 * ) USE_X_TOOLKIT=maybe ;; |
8636 | 1587 esac |
1588 ;; | |
1589 none ) | |
1590 HAVE_X_WINDOWS=no | |
1591 HAVE_X11=no | |
1592 USE_X_TOOLKIT=none | |
1593 ;; | |
1594 esac | |
1595 | |
1596 ### If we're using X11, we should use the X menu package. | |
13845 | 1597 HAVE_MENUS=no |
8636 | 1598 case ${HAVE_X11} in |
13845 | 1599 yes ) HAVE_MENUS=yes ;; |
8636 | 1600 esac |
25038
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
1601 |
12464
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1602 if test "${opsys}" = "hpux9"; then |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1603 case "${x_libraries}" in |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1604 *X11R4* ) |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1605 opsysfile="s/hpux9-x11r4.h" |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1606 ;; |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1607 esac |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1608 fi |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1609 |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1610 if test "${opsys}" = "hpux9shr"; then |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1611 case "${x_libraries}" in |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1612 *X11R4* ) |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1613 opsysfile="s/hpux9shxr4.h" |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1614 ;; |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1615 esac |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1616 fi |
96d3d0dcc315
Use sunos4shr normally for Sunos 4.1.[3-9].
Richard M. Stallman <rms@gnu.org>
parents:
12360
diff
changeset
|
1617 |
8636 | 1618 ### Compute the unexec source name from the object name. |
1619 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
1620 | |
1621 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
1622 # Assume not, until told otherwise. | |
1623 GNU_MALLOC=yes | |
17344
0178aa2a41e9
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
Richard M. Stallman <rms@gnu.org>
parents:
16939
diff
changeset
|
1624 doug_lea_malloc=yes |
0178aa2a41e9
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
Richard M. Stallman <rms@gnu.org>
parents:
16939
diff
changeset
|
1625 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) |
0178aa2a41e9
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
Richard M. Stallman <rms@gnu.org>
parents:
16939
diff
changeset
|
1626 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1627 AC_CACHE_CHECK(whether __after_morecore_hook exists, |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1628 emacs_cv_var___after_morecore_hook, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1629 [AC_TRY_LINK([extern void (* __after_morecore_hook)();],[__after_morecore_hook = 0], |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1630 emacs_cv_var___after_morecore_hook=yes, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1631 emacs_cv_var___after_morecore_hook=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1632 if test $emacs_cv_var___after_morecore_hook = no; then |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1633 doug_lea_malloc=no |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1634 fi |
17391
bbd0f7cb2452
(doug_lea_malloc): First check for SYSTEM_MALLOC,
Richard M. Stallman <rms@gnu.org>
parents:
17344
diff
changeset
|
1635 if test "${system_malloc}" = "yes"; then |
8636 | 1636 GNU_MALLOC=no |
1637 GNU_MALLOC_reason=" | |
17344
0178aa2a41e9
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
Richard M. Stallman <rms@gnu.org>
parents:
16939
diff
changeset
|
1638 (The GNU allocators don't work with this system configuration.)" |
8636 | 1639 fi |
17391
bbd0f7cb2452
(doug_lea_malloc): First check for SYSTEM_MALLOC,
Richard M. Stallman <rms@gnu.org>
parents:
17344
diff
changeset
|
1640 if test "$doug_lea_malloc" = "yes" ; then |
bbd0f7cb2452
(doug_lea_malloc): First check for SYSTEM_MALLOC,
Richard M. Stallman <rms@gnu.org>
parents:
17344
diff
changeset
|
1641 if test "$GNU_MALLOC" = yes ; then |
bbd0f7cb2452
(doug_lea_malloc): First check for SYSTEM_MALLOC,
Richard M. Stallman <rms@gnu.org>
parents:
17344
diff
changeset
|
1642 GNU_MALLOC_reason=" |
18499
65274adec5a2
(GNU_MALLOC_reason): Fix message text.
Richard M. Stallman <rms@gnu.org>
parents:
18441
diff
changeset
|
1643 (Using Doug Lea's new malloc from the GNU C Library.)" |
17391
bbd0f7cb2452
(doug_lea_malloc): First check for SYSTEM_MALLOC,
Richard M. Stallman <rms@gnu.org>
parents:
17344
diff
changeset
|
1644 fi |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1645 AC_DEFINE(DOUG_LEA_MALLOC, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1646 [Define to 1 if you are using the GNU C Library.]) |
17391
bbd0f7cb2452
(doug_lea_malloc): First check for SYSTEM_MALLOC,
Richard M. Stallman <rms@gnu.org>
parents:
17344
diff
changeset
|
1647 fi |
8636 | 1648 |
1649 if test x"${REL_ALLOC}" = x; then | |
1650 REL_ALLOC=${GNU_MALLOC} | |
1651 fi | |
1652 | |
31599
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
1653 dnl For now, need to use an explicit `#define USE_MMAP_FOR_BUFFERS 1' |
31608 | 1654 dnl the system configuration file (s/*.h) to turn the use of mmap |
31510 | 1655 dnl in the relocating allocator on. |
31410
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1656 |
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1657 AC_FUNC_MMAP |
31599
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
1658 if test $use_mmap_for_buffers = yes; then |
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
1659 REL_ALLOC=no |
31410
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1660 fi |
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
1661 |
13486
e48a87d64e58
(LIBS): Add libsrc_libs and keep the old LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
13368
diff
changeset
|
1662 LIBS="$libsrc_libs $LIBS" |
8636 | 1663 |
1664 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks, | |
1665 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks. | |
1666 AC_CHECK_LIB(dnet, dnet_ntoa) | |
1667 dnl This causes -lresolv to get used in subsequent tests, | |
1668 dnl which causes failures on some systems such as HPUX 9. | |
1669 dnl AC_CHECK_LIB(resolv, gethostbyname) | |
1670 | |
1671 dnl FIXME replace main with a function we actually want from this library. | |
1672 AC_CHECK_LIB(Xbsd, main, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd") | |
1673 | |
12206
3645602e817f
check for -lpthreads, not -lpthread.
Karl Heuer <kwzh@gnu.org>
parents:
12165
diff
changeset
|
1674 AC_CHECK_LIB(pthreads, cma_open) |
12165 | 1675 |
24121
2d746bee2e6a
Change message about HAVE_XFREE386.
Richard M. Stallman <rms@gnu.org>
parents:
23910
diff
changeset
|
1676 AC_MSG_CHECKING(for XFree86 in /usr/X386) |
8636 | 1677 if test -d /usr/X386/include; then |
1678 HAVE_XFREE386=yes | |
8730 | 1679 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
8636 | 1680 else |
8730 | 1681 HAVE_XFREE386=no |
8636 | 1682 fi |
8730 | 1683 AC_MSG_RESULT($HAVE_XFREE386) |
8636 | 1684 |
47553
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1685 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1686 # used for the tests that follow. We set them back to REAL_CFLAGS and |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1687 # REAL_CPPFLAGS later on. |
8636 | 1688 |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29945
diff
changeset
|
1689 REAL_CPPFLAGS="$CPPFLAGS" |
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29945
diff
changeset
|
1690 |
8636 | 1691 if test "${HAVE_X11}" = "yes"; then |
1692 DEFS="$C_SWITCH_X_SITE $DEFS" | |
14207
a91493288096
(HAVE_X11): Merge $LD_SWITCH_X_SITE into LDFLAGS instead of into LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
14194
diff
changeset
|
1693 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" |
a91493288096
(HAVE_X11): Merge $LD_SWITCH_X_SITE into LDFLAGS instead of into LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
14194
diff
changeset
|
1694 LIBS="$LIBX $LIBS" |
8636 | 1695 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29945
diff
changeset
|
1696 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
12319
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1697 |
14488
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1698 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1699 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1700 # but it's more convenient here to set LD_RUN_PATH |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1701 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1702 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1703 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1704 export LD_RUN_PATH |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1705 fi |
4deac8b4941c
(LD_RUN_PATH): Prepend x_libraries to this envvar.
Richard M. Stallman <rms@gnu.org>
parents:
14444
diff
changeset
|
1706 |
15483
fb582ab686db
Rename lignux to linux-gnu in configuration names.
Richard M. Stallman <rms@gnu.org>
parents:
15371
diff
changeset
|
1707 if test "${opsys}" = "gnu-linux"; then |
12525
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1708 AC_MSG_CHECKING(whether X on GNU/Linux needs -b to link) |
12319
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1709 AC_TRY_LINK([], |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1710 [XOpenDisplay ("foo");], |
12525
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1711 [xlinux_first_failure=no], |
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1712 [xlinux_first_failure=yes]) |
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1713 if test "${xlinux_first_failure}" = "yes"; then |
12319
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1714 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1715 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1716 OLD_CPPFLAGS="$CPPFLAGS" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1717 OLD_LIBS="$LIBS" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1718 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1719 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1720 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1721 LIBS="$LIBS -b i486-linuxaout" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1722 AC_TRY_LINK([], |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1723 [XOpenDisplay ("foo");], |
12525
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1724 [xlinux_second_failure=no], |
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1725 [xlinux_second_failure=yes]) |
81040c51494b
(mips-dec-ultrix*): Assume version 4.3.
Karl Heuer <kwzh@gnu.org>
parents:
12477
diff
changeset
|
1726 if test "${xlinux_second_failure}" = "yes"; then |
12319
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1727 # If we get the same failure with -b, there is no use adding -b. |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1728 # So take it out. This plays safe. |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1729 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1730 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1731 CPPFLAGS="$OLD_CPPFLAGS" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1732 LIBS="$OLD_LIBS" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1733 AC_MSG_RESULT(no) |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1734 else |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1735 AC_MSG_RESULT(yes) |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1736 fi |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1737 else |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1738 AC_MSG_RESULT(no) |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1739 fi |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1740 fi |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
1741 |
34710
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1742 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1743 # header files included from there. |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1744 AC_MSG_CHECKING(for Xkb) |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1745 AC_TRY_LINK([#include <X11/Xlib.h> |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1746 #include <X11/XKBlib.h>], |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1747 [XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);], |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1748 emacs_xkb=yes, emacs_xkb=no) |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1749 AC_MSG_RESULT($emacs_xkb) |
34710
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1750 if test $emacs_xkb = yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1751 AC_DEFINE(HAVE_XKBGETKEYBOARD, 1, [Define to 1 if you have the XkbGetKeyboard function.]) |
34710
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1752 fi |
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1753 |
8730 | 1754 AC_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \ |
34710
d5251a5c10ef
Test for XkbGetKeyboard with an AC_TRY_LINK whose
Gerd Moellmann <gerd@gnu.org>
parents:
34550
diff
changeset
|
1755 XScreenNumberOfScreen XSetWMProtocols) |
8636 | 1756 fi |
1757 | |
13845 | 1758 if test "${window_system}" = "x11"; then |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1759 AC_MSG_CHECKING(X11 version 6) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1760 AC_CACHE_VAL(emacs_cv_x11_version_6, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1761 [AC_TRY_LINK([#include <X11/Xlib.h>], |
13845 | 1762 [#if XlibSpecificationRelease < 6 |
1763 fail; | |
1764 #endif | |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1765 ], emacs_cv_x11_version_6=yes, emacs_cv_x11_version_6=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1766 if test $emacs_cv_x11_version_6 = yes; then |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1767 AC_MSG_RESULT(6 or newer) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1768 AC_DEFINE(HAVE_X11R6, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1769 [Define to 1 if you have the X11R6 or newer version of Xlib.]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1770 else |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1771 AC_MSG_RESULT(before 6) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1772 fi |
13845 | 1773 fi |
1774 | |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1775 if test "${window_system}" = "x11"; then |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1776 AC_MSG_CHECKING(X11 version 5) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1777 AC_CACHE_VAL(emacs_cv_x11_version_5, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1778 [AC_TRY_LINK([#include <X11/Xlib.h>], |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1779 [#if XlibSpecificationRelease < 5 |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1780 fail; |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1781 #endif |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1782 ], emacs_cv_x11_version_5=yes, emacs_cv_x11_version_5=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1783 if test $emacs_cv_x11_version_5 = yes; then |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1784 AC_MSG_RESULT(5 or newer) |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1785 HAVE_X11R5=yes |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1786 AC_DEFINE(HAVE_X11R5, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1787 [Define to 1 if you have the X11R5 or newer version of Xlib.]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1788 else |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1789 HAVE_X11R5=no |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1790 AC_MSG_RESULT(before 5) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1791 fi |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1792 fi |
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1793 |
49322 | 1794 dnl This function defintion taken from Gnome 2.0 |
1795 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) | |
1796 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page | |
1797 dnl also defines GSTUFF_PKG_ERRORS on error | |
1798 AC_DEFUN(PKG_CHECK_MODULES, [ | |
1799 succeeded=no | |
1800 | |
1801 if test -z "$PKG_CONFIG"; then | |
1802 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | |
1803 fi | |
1804 | |
1805 if test "$PKG_CONFIG" = "no" ; then | |
1806 echo "*** The pkg-config script could not be found. Make sure it is" | |
1807 echo "*** in your path, or give the full path to pkg-config with" | |
1808 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
1809 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
1810 else | |
1811 PKG_CONFIG_MIN_VERSION=0.9.0 | |
1812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
1813 AC_MSG_CHECKING(for $2) | |
1814 | |
1815 if $PKG_CONFIG --exists "$2" ; then | |
1816 AC_MSG_RESULT(yes) | |
1817 succeeded=yes | |
1818 | |
1819 AC_MSG_CHECKING($1_CFLAGS) | |
1820 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` | |
1821 AC_MSG_RESULT($$1_CFLAGS) | |
1822 | |
1823 AC_MSG_CHECKING($1_LIBS) | |
1824 $1_LIBS=`$PKG_CONFIG --libs "$2"` | |
1825 AC_MSG_RESULT($$1_LIBS) | |
1826 else | |
1827 $1_CFLAGS="" | |
1828 $1_LIBS="" | |
1829 ## If we have a custom action on failure, don't print errors, but | |
1830 ## do set a variable so people can do so. | |
1831 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | |
1832 ifelse([$4], ,echo $$1_PKG_ERRORS,) | |
1833 fi | |
1834 | |
1835 AC_SUBST($1_CFLAGS) | |
1836 AC_SUBST($1_LIBS) | |
1837 else | |
1838 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
1839 echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
1840 fi | |
1841 fi | |
1842 | |
1843 if test $succeeded = yes; then | |
1844 ifelse([$3], , :, [$3]) | |
1845 else | |
1846 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4]) | |
1847 fi | |
1848 ]) | |
1849 | |
1850 HAVE_GTK=no | |
1851 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | |
49327 | 1852 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
49322 | 1853 AC_MSG_ERROR([Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}]); |
1854 fi | |
1855 GLIB_REQUIRED=2.0.1 | |
1856 GTK_REQUIRED=2.0.1 | |
1857 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" | |
1858 | |
1859 dnl Check if --with-pkg-config-prog has been given. | |
1860 if test "X${with_pkg_config_prog}" != X; then | |
1861 PKG_CONFIG="${with_pkg_config_prog}" | |
1862 fi | |
1863 dnl Checks for libraries. | |
1864 PKG_CHECK_MODULES(GTK, $GTK_MODULES) | |
1865 AC_SUBST(GTK_CFLAGS) | |
1866 AC_SUBST(GTK_LIBS) | |
1867 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
1868 HAVE_GTK=yes | |
1869 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) | |
1870 USE_X_TOOLKIT=none | |
1871 | |
1872 dnl GTK scrollbars resembles toolkit scrollbars alot, so to avoid | |
1873 dnl a lot if #ifdef:s, say we have toolkit scrollbars. | |
1874 with_toolkit_scroll_bars=yes | |
1875 fi | |
1876 | |
15574
dbfff58d8a2b
(check for using Lucid widgets by default):
Richard M. Stallman <rms@gnu.org>
parents:
15567
diff
changeset
|
1877 dnl Do not put whitespace before the #include statements below. |
dbfff58d8a2b
(check for using Lucid widgets by default):
Richard M. Stallman <rms@gnu.org>
parents:
15567
diff
changeset
|
1878 dnl Older compilers (eg sunos4 cc) choke on it. |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1879 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1880 if test x"${HAVE_X11R5}" = xyes; then |
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1881 AC_MSG_CHECKING(X11 version 5 with Xaw) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1882 AC_CACHE_VAL(emacs_cv_x11_version_5_with_xaw, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1883 [AC_TRY_LINK([ |
15574
dbfff58d8a2b
(check for using Lucid widgets by default):
Richard M. Stallman <rms@gnu.org>
parents:
15567
diff
changeset
|
1884 #include <X11/Intrinsic.h> |
dbfff58d8a2b
(check for using Lucid widgets by default):
Richard M. Stallman <rms@gnu.org>
parents:
15567
diff
changeset
|
1885 #include <X11/Xaw/Simple.h>], |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1886 [], |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1887 emacs_cv_x11_version_5_with_xaw=yes, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1888 emacs_cv_x11_version_5_with_xaw=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1889 if test $emacs_cv_x11_version_5_with_xaw = yes; then |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1890 AC_MSG_RESULT([5 or newer, with Xaw; use toolkit by default]) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1891 USE_X_TOOLKIT=LUCID |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1892 else |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1893 AC_MSG_RESULT(before 5 or no Xaw; do not use toolkit by default) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1894 USE_X_TOOLKIT=none |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1895 fi |
15371
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1896 else |
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1897 USE_X_TOOLKIT=none |
3ae004565765
Always check for HAVE_X11R5.
Richard M. Stallman <rms@gnu.org>
parents:
15287
diff
changeset
|
1898 fi |
14101
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1899 fi |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1900 |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1901 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
ef1445ba2512
(locallisppath): Put version-specific dir first.
Karl Heuer <kwzh@gnu.org>
parents:
14041
diff
changeset
|
1902 |
8636 | 1903 if test "${USE_X_TOOLKIT}" != "none"; then |
1904 AC_MSG_CHECKING(X11 toolkit version) | |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1905 AC_CACHE_VAL(emacs_cv_x11_toolkit_version_6, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1906 [AC_TRY_LINK([#include <X11/Intrinsic.h>], |
8636 | 1907 [#if XtSpecificationRelease < 6 |
1908 fail; | |
1909 #endif | |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1910 ], emacs_cv_x11_toolkit_version_6=yes, emacs_cv_x11_toolkit_version_6=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1911 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1912 if test $emacs_cv_x11_toolkit_version_6 = yes; then |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1913 AC_MSG_RESULT(6 or newer) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1914 AC_DEFINE(HAVE_X11XTR6, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1915 [Define to 1 if you have the X11R6 or newer version of Xt.]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1916 else |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1917 AC_MSG_RESULT(before 6) |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1918 fi |
14177
a4462b0f31f2
(HAVE_XMU): Check for libXmu.a only if using toolkit
Richard M. Stallman <rms@gnu.org>
parents:
14145
diff
changeset
|
1919 |
a4462b0f31f2
(HAVE_XMU): Check for libXmu.a only if using toolkit
Richard M. Stallman <rms@gnu.org>
parents:
14145
diff
changeset
|
1920 dnl If using toolkit, check whether libXmu.a exists. |
a4462b0f31f2
(HAVE_XMU): Check for libXmu.a only if using toolkit
Richard M. Stallman <rms@gnu.org>
parents:
14145
diff
changeset
|
1921 dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link. |
a4462b0f31f2
(HAVE_XMU): Check for libXmu.a only if using toolkit
Richard M. Stallman <rms@gnu.org>
parents:
14145
diff
changeset
|
1922 OLDLIBS="$LIBS" |
14689
bd83ed983a96
Improve messages about X versions.
Richard M. Stallman <rms@gnu.org>
parents:
14488
diff
changeset
|
1923 if test x$HAVE_X11XTR6 = xyes; then |
bd83ed983a96
Improve messages about X versions.
Richard M. Stallman <rms@gnu.org>
parents:
14488
diff
changeset
|
1924 LIBS="-lXt -lSM -lICE $LIBS" |
bd83ed983a96
Improve messages about X versions.
Richard M. Stallman <rms@gnu.org>
parents:
14488
diff
changeset
|
1925 else |
bd83ed983a96
Improve messages about X versions.
Richard M. Stallman <rms@gnu.org>
parents:
14488
diff
changeset
|
1926 LIBS="-lXt $LIBS" |
bd83ed983a96
Improve messages about X versions.
Richard M. Stallman <rms@gnu.org>
parents:
14488
diff
changeset
|
1927 fi |
14177
a4462b0f31f2
(HAVE_XMU): Check for libXmu.a only if using toolkit
Richard M. Stallman <rms@gnu.org>
parents:
14145
diff
changeset
|
1928 AC_CHECK_LIB(Xmu, XmuConvertStandardSelection) |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1929 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1930 fi |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1931 |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1932 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1933 if test "${HAVE_X11}" = "yes"; then |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1934 if test "${USE_X_TOOLKIT}" != "none"; then |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1935 AC_CHECK_LIB(Xext, XShapeQueryExtension) |
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1936 fi |
8636 | 1937 fi |
1938 | |
19499
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1939 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
47373
c863060047d6
Fix previous LessTif change.
Richard M. Stallman <rms@gnu.org>
parents:
47325
diff
changeset
|
1940 AC_CACHE_CHECK(for LessTif where some systems put it, emacs_cv_lesstif, |
47553
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1941 # We put this in CFLAGS temporarily to precede other -I options |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1942 # that might be in CFLAGS temporarily. |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1943 # We put this in CPPFLAGS where it precedes the other -I options. |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1944 OLD_CPPFLAGS=$CPPFLAGS |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1945 OLD_CFLAGS=$CFLAGS |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1946 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1947 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" |
47249
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1948 [AC_TRY_COMPILE([#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>], |
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1949 [int x = 5;], |
47289 | 1950 emacs_cv_lesstif=yes, emacs_cv_lesstif=no)]) |
47249
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1951 if test $emacs_cv_lesstif = yes; then |
47553
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1952 # Make sure this -I option remains in CPPFLAGS after it is set |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1953 # back to REAL_CPPFLAGS. |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1954 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1955 # have those other -I options anyway. Ultimately, having this |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1956 # directory ultimately in CPPFLAGS will be enough. |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1957 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" |
47249
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1958 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
47553
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1959 else |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1960 CFLAGS=$OLD_CFLAGS |
23ae5fa03fc5
Fix the LessTif-directory-finder for real.
Richard M. Stallman <rms@gnu.org>
parents:
47373
diff
changeset
|
1961 CPPFLAGS=$OLD_CPPFLAGS |
47249
7c7faeac1188
Look for LessTif in /usr/X11R6/LessTif/ before Motif.
Richard M. Stallman <rms@gnu.org>
parents:
46662
diff
changeset
|
1962 fi |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1963 AC_CACHE_CHECK(for Motif version 2.1, emacs_cv_motif_version_2_1, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1964 [AC_TRY_COMPILE([#include <Xm/Xm.h>], |
19499
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1965 [#if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1966 int x = 5; |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1967 #else |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1968 Motif version prior to 2.1. |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1969 #endif], |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
1970 emacs_cv_motif_version_2_1=yes, emacs_cv_motif_version_2_1=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1971 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1972 if test $emacs_cv_motif_version_2_1 = yes; then |
33802
29b0e4122cae
Initialize HAVE_LIBXP to no.
Gerd Moellmann <gerd@gnu.org>
parents:
33739
diff
changeset
|
1973 HAVE_LIBXP=no |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1974 AC_DEFINE(HAVE_MOTIF_2_1, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1975 [Define to 1 if you have Motif 2.1 or newer.]) |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
1976 AC_CHECK_LIB(Xp, XpCreateContext, HAVE_LIBXP=yes) |
29864
507584616639
(HAVE_LIBXP): Change test for libXp.
Gerd Moellmann <gerd@gnu.org>
parents:
29831
diff
changeset
|
1977 if test ${HAVE_LIBXP} = yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1978 AC_DEFINE(HAVE_LIBXP, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1979 [Define to 1 if you have the Xp library (-lXp).]) |
29864
507584616639
(HAVE_LIBXP): Change test for libXp.
Gerd Moellmann <gerd@gnu.org>
parents:
29831
diff
changeset
|
1980 fi |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
1981 fi |
19499
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1982 fi |
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
1983 |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1984 ### Is -lXaw3d available? |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1985 HAVE_XAW3D=no |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1986 if test "${HAVE_X11}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1987 if test "${USE_X_TOOLKIT}" != "none"; then |
48431 | 1988 dnl Fixme: determine what Scrollbar.h needs to avoid compilation |
1989 dnl errors from the test without the `-'. | |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1990 AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h, |
48431 | 1991 [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)], , -) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1992 if test "${HAVE_XAW3D}" = "yes"; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1993 AC_DEFINE(HAVE_XAW3D, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
1994 [Define to 1 if you have the Xaw3d library (-lXaw3d).]) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1995 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1996 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1997 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
1998 |
49322 | 1999 dnl Use toolkit scroll bars if configured for GTK or X toolkit and either |
25456
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2000 dnl using Motif or Xaw3d is available, and unless |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2001 dnl --with-toolkit-scroll-bars=no was specified. |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2002 |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2003 AH_TEMPLATE(USE_TOOLKIT_SCROLL_BARS, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2004 [Define to 1 if we should use toolkit scroll bars.])dnl |
25456
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2005 USE_TOOLKIT_SCROLL_BARS=no |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2006 if test "${with_toolkit_scroll_bars}" != "no"; then |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2007 if test "${USE_X_TOOLKIT}" != "none"; then |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2008 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2009 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2010 HAVE_XAW3D=no |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2011 USE_TOOLKIT_SCROLL_BARS=yes |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2012 elif test "${HAVE_XAW3D}" = "yes"; then |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2013 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2014 USE_TOOLKIT_SCROLL_BARS=yes |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2015 fi |
49322 | 2016 elif test "${HAVE_GTK}" = "yes"; then |
2017 AC_DEFINE(USE_TOOLKIT_SCROLL_BARS) | |
2018 USE_TOOLKIT_SCROLL_BARS=yes | |
25456
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2019 fi |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2020 fi |
f61069dbc746
(USE_TOOLKIT_SCROLL_BARS): Move the test down after
Gerd Moellmann <gerd@gnu.org>
parents:
25407
diff
changeset
|
2021 |
29945 | 2022 dnl Don't use X11 input methods if user specifies he doesn't want it |
2023 dnl with `--with-xim=no'. | |
2024 | |
2025 if test "${with_xim}" != "no"; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2026 AC_DEFINE(USE_XIM, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2027 [Define to 1 if we should use XIM, if it is available.]) |
29945 | 2028 fi |
2029 | |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2030 ### Use -lXpm if available, unless `--with-xpm=no'. |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2031 HAVE_XPM=no |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2032 if test "${HAVE_X11}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2033 if test "${with_xpm}" != "no"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2034 AC_CHECK_HEADER(X11/xpm.h, |
30139
1311deba5ed3
(HAVE_XPM): Undo previous change. Check for
Gerd Moellmann <gerd@gnu.org>
parents:
30097
diff
changeset
|
2035 AC_CHECK_LIB(Xpm, XpmReadFileToPixmap, HAVE_XPM=yes, , -lX11)) |
1311deba5ed3
(HAVE_XPM): Undo previous change. Check for
Gerd Moellmann <gerd@gnu.org>
parents:
30097
diff
changeset
|
2036 if test "${HAVE_XPM}" = "yes"; then |
36901
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2037 AC_MSG_CHECKING(for XpmReturnAllocPixels preprocessor define) |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2038 AC_EGREP_CPP(no_return_alloc_pixels, |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2039 [#include "X11/xpm.h" |
30139
1311deba5ed3
(HAVE_XPM): Undo previous change. Check for
Gerd Moellmann <gerd@gnu.org>
parents:
30097
diff
changeset
|
2040 #ifndef XpmReturnAllocPixels |
1311deba5ed3
(HAVE_XPM): Undo previous change. Check for
Gerd Moellmann <gerd@gnu.org>
parents:
30097
diff
changeset
|
2041 no_return_alloc_pixels |
1311deba5ed3
(HAVE_XPM): Undo previous change. Check for
Gerd Moellmann <gerd@gnu.org>
parents:
30097
diff
changeset
|
2042 #endif |
36901
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2043 ], HAVE_XPM=no, HAVE_XPM=yes) |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2044 |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2045 if test "${HAVE_XPM}" = "yes"; then |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2046 AC_MSG_RESULT(yes) |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2047 else |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2048 AC_MSG_RESULT(no) |
0c5978b5eb3a
(HAVE_XPM): Don't print the result of the check for
Gerd Moellmann <gerd@gnu.org>
parents:
36353
diff
changeset
|
2049 fi |
31319
438bba3b3761
Add ``checking'' messages for
Gerd Moellmann <gerd@gnu.org>
parents:
31223
diff
changeset
|
2050 fi |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2051 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2052 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2053 if test "${HAVE_XPM}" = "yes"; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2054 AC_DEFINE(HAVE_XPM, 1, [Define to 1 if you have the Xpm libary (-lXpm).]) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2055 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2056 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2057 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2058 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2059 HAVE_JPEG=no |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2060 if test "${HAVE_X11}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2061 if test "${with_jpeg}" != "no"; then |
48555
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
2062 dnl Checking for jpeglib.h can lose because of a redefinition of |
27201
01ecec96b82d
Check for jerror.h as well as libjpeg.
Dave Love <fx@gnu.org>
parents:
26754
diff
changeset
|
2063 dnl HAVE_STDLIB_H. |
01ecec96b82d
Check for jerror.h as well as libjpeg.
Dave Love <fx@gnu.org>
parents:
26754
diff
changeset
|
2064 AC_CHECK_HEADER(jerror.h, |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
2065 AC_CHECK_LIB(jpeg, jpeg_destroy_compress, HAVE_JPEG=yes)) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2066 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2067 |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2068 AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2069 if test "${HAVE_JPEG}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2070 AC_DEFINE(HAVE_JPEG) |
48431 | 2071 AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], |
43614
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2072 [#include <jpeglib.h> |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2073 version=JPEG_LIB_VERSION |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2074 ], |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2075 AC_DEFINE(HAVE_JPEG), |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2076 [AC_MSG_WARN([libjpeg found, but not version 6b or later]) |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2077 HAVE_JPEG=no]) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2078 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2079 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2080 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2081 ### Use -lpng if available, unless `--with-png=no'. |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2082 HAVE_PNG=no |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2083 if test "${HAVE_X11}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2084 if test "${with_png}" != "no"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2085 AC_CHECK_HEADER(png.h, |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
2086 AC_CHECK_LIB(png, png_get_channels, HAVE_PNG=yes, , -lz -lm)) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2087 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2088 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2089 if test "${HAVE_PNG}" = "yes"; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2090 AC_DEFINE(HAVE_PNG, 1, [Define to 1 if you have the png library (-lpng).]) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2091 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2092 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2093 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2094 ### Use -ltiff if available, unless `--with-tiff=no'. |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2095 HAVE_TIFF=no |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2096 if test "${HAVE_X11}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2097 if test "${with_tiff}" != "no"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2098 AC_CHECK_HEADER(tiffio.h, |
35204
5ff35be3bb08
Don't reset LIBS at end of -lXmu test. Test for
Gerd Moellmann <gerd@gnu.org>
parents:
34710
diff
changeset
|
2099 tifflibs="-lz -lm" |
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27728
diff
changeset
|
2100 # At least one tiff package requires the jpeg library. |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27728
diff
changeset
|
2101 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27728
diff
changeset
|
2102 AC_CHECK_LIB(tiff, TIFFGetVersion, HAVE_TIFF=yes, , $tifflibs)) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2103 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2104 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2105 if test "${HAVE_TIFF}" = "yes"; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2106 AC_DEFINE(HAVE_TIFF, 1, [Define to 1 if you have the tiff library (-ltiff).]) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2107 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2108 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2109 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2110 ### Use -lgif if available, unless `--with-gif=no'. |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2111 HAVE_GIF=no |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2112 if test "${HAVE_X11}" = "yes"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2113 if test "${with_gif}" != "no"; then |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2114 AC_CHECK_HEADER(gif_lib.h, |
43614
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2115 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2116 # Earlier versions can crash Emacs. |
023476a7048a
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
Richard M. Stallman <rms@gnu.org>
parents:
43577
diff
changeset
|
2117 AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes)) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2118 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2119 |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2120 if test "${HAVE_GIF}" = "yes"; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2121 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have the ungif library (-lungif).]) |
25407
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2122 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2123 fi |
479691c42edf
(USE_TOOLKIT_SCROLL_BARS): Move tests for
Richard M. Stallman <rms@gnu.org>
parents:
25337
diff
changeset
|
2124 |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2125 ### Use Mac OS X Carbon API to implement GUI. |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2126 HAVE_CARBON=no |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2127 if test "${with_carbon}" != "no"; then |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2128 AC_CHECK_HEADER(Carbon/Carbon.h, HAVE_CARBON=yes) |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2129 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2130 |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2131 if test "${HAVE_CARBON}" = "yes"; then |
45053
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2132 AC_DEFINE(HAVE_CARBON, 1, [Define to 1 if you are using the Carbon API on Mac OS X.]) |
49090
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2133 window_system=mac |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2134 ## Specify the install directory |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2135 carbon_appdir= |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2136 if test "${carbon_appdir_x}" != ""; then |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2137 case ${carbon_appdir_x} in |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2138 y | ye | yes) carbon_appdir=/Applications ;; |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2139 * ) carbon_appdir=${carbon_appdir_x} ;; |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2140 esac |
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2141 fi |
49387
d01eec831eb6
Set HAVE_MENUS=yes when HAVE_CARBON=yes instead of
Andreas Schwab <schwab@suse.de>
parents:
49327
diff
changeset
|
2142 # We also have mouse menus. |
d01eec831eb6
Set HAVE_MENUS=yes when HAVE_CARBON=yes instead of
Andreas Schwab <schwab@suse.de>
parents:
49327
diff
changeset
|
2143 HAVE_MENUS=yes |
44890
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2144 fi |
01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
Andrew Choi <akochoi@shaw.ca>
parents:
44809
diff
changeset
|
2145 |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2146 ### Use session management (-lSM -lICE) if available |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2147 HAVE_X_SM=no |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2148 if test "${HAVE_X11}" = "yes"; then |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2149 AC_CHECK_HEADER(X11/SM/SMlib.h, |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2150 AC_CHECK_LIB(SM, SmcOpenConnection, HAVE_X_SM=yes, -lICE)) |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2151 |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2152 if test "${HAVE_X_SM}" = "yes"; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2153 AC_DEFINE(HAVE_X_SM, 1, [Define to 1 if you have the SM library (-lSM).]) |
43824
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2154 case "$LIBS" in |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2155 *-lSM*) ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2156 *) LIBS="-lSM -lICE $LIBS" ;; |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2157 esac |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2158 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2159 fi |
0f0939983d10
Added test for X Session Management (HAVE_X_SM).
Jan Djärv <jan.h.d@swipnet.se>
parents:
43640
diff
changeset
|
2160 |
8636 | 2161 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
2162 AC_CACHE_CHECK(whether netdb declares h_errno, |
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
2163 emacs_cv_netdb_declares_h_errno, |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
2164 [AC_TRY_LINK([#include <netdb.h>], |
9875
463fd155c78d
Make h_errno check not use nested functions.
David J. MacKenzie <djm@gnu.org>
parents:
9834
diff
changeset
|
2165 [return h_errno;], |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
2166 emacs_cv_netdb_declares_h_errno=yes, emacs_cv_netdb_declares_h_errno=no)]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
2167 if test $emacs_cv_netdb_declares_h_errno = yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2168 AC_DEFINE(HAVE_H_ERRNO, 1, [Define to 1 if netdb.h declares h_errno.]) |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
2169 fi |
8636 | 2170 |
8730 | 2171 AC_FUNC_ALLOCA |
8636 | 2172 |
11723
a812bce4aef0
Make sure CDPATH doesn't mess up PWD check.
David J. MacKenzie <djm@gnu.org>
parents:
11669
diff
changeset
|
2173 # fmod, logb, and frexp are found in -lm on most systems. |
11785
12053498f19b
Use sqrt (more portable) instead of fmod in -lm check.
David J. MacKenzie <djm@gnu.org>
parents:
11725
diff
changeset
|
2174 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
14797
a790ae4a71ba
(-lm check): If $GCC, append -fno-builtin to $CC for just this test.
Roland McGrath <roland@gnu.org>
parents:
14795
diff
changeset
|
2175 AC_CHECK_LIB(m, sqrt) |
a790ae4a71ba
(-lm check): If $GCC, append -fno-builtin to $CC for just this test.
Roland McGrath <roland@gnu.org>
parents:
14795
diff
changeset
|
2176 |
16720
e0000e05133f
Check for libmail, maillock.h and touchlock (for movemail).
Richard M. Stallman <rms@gnu.org>
parents:
16692
diff
changeset
|
2177 # Check for mail-locking functions in a "mail" library |
25336 | 2178 AC_CHECK_LIB(mail, maillock) |
2179 dnl Debian, at least: | |
2180 dnl AC_CHECK_LIB(lockfile, maillock, [AC_DEFINE(HAVE_LIBMAIL)]) | |
2181 AC_CHECK_LIB(lockfile, maillock) | |
2182 # If we have the shared liblockfile, assume we must use it for mail | |
2183 # locking (e.g. Debian). If we couldn't link against liblockfile | |
2184 # (no liblockfile.a installed), ensure that we don't need to. | |
2185 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
2186 dnl This works for files generally, not just executables. | |
2187 dnl Should we look elsewhere for it? Maybe examine /etc/ld.so.conf? | |
2188 AC_CHECK_PROG(liblockfile, liblockfile.so, yes, no, | |
2189 /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH) | |
2190 if test $ac_cv_prog_liblockfile = yes; then | |
2191 AC_MSG_ERROR([Shared liblockfile found but can't link against it. | |
2192 This probably means that movemail could lose mail. | |
48431 | 2193 There may be a `development' package to install containing liblockfile.]) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2194 else AC_DEFINE(LIBMAIL, -llockfile, [Define to -llockfile if it is usable.]) |
25336 | 2195 fi |
2196 else : | |
2197 fi | |
2198 AC_CHECK_FUNCS(touchlock) | |
2199 AC_CHECK_HEADERS(maillock.h) | |
16720
e0000e05133f
Check for libmail, maillock.h and touchlock (for movemail).
Richard M. Stallman <rms@gnu.org>
parents:
16692
diff
changeset
|
2200 |
43997
d1a70dae12aa
Test for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43922
diff
changeset
|
2201 AC_CHECK_FUNCS(gethostname getdomainname dup2 \ |
16005
4ce6238c5458
(sys/systeminfo.h, getdomainname, sysinfo): Check for them.
Paul Eggert <eggert@twinsun.com>
parents:
15957
diff
changeset
|
2202 rename closedir mkdir rmdir sysinfo \ |
16939 | 2203 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
16014 | 2204 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
29732
f1f8ca8dd938
(GETTIMEOFDAY_ONE_ARGUMENT): Fix in case _XOPEN_SOURCE is defined.
Dave Love <fx@gnu.org>
parents:
29655
diff
changeset
|
2205 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
42386 | 2206 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
43997
d1a70dae12aa
Test for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43922
diff
changeset
|
2207 sendto recvfrom getsockopt setsockopt getsockname getpeername \ |
48555
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
2208 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero memset) |
28582
c5731a195ae1
Use AC_FUNC_GETLOADAVG, AC_FUNC_MKTIME.
Dave Love <fx@gnu.org>
parents:
28418
diff
changeset
|
2209 |
43997
d1a70dae12aa
Test for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43922
diff
changeset
|
2210 AC_CHECK_HEADERS(sys/un.h) |
d1a70dae12aa
Test for sendto, recvfrom, getsockopt, setsockopt,
Kim F. Storm <storm@cua.dk>
parents:
43922
diff
changeset
|
2211 |
28582
c5731a195ae1
Use AC_FUNC_GETLOADAVG, AC_FUNC_MKTIME.
Dave Love <fx@gnu.org>
parents:
28418
diff
changeset
|
2212 AC_FUNC_MKTIME |
c5731a195ae1
Use AC_FUNC_GETLOADAVG, AC_FUNC_MKTIME.
Dave Love <fx@gnu.org>
parents:
28418
diff
changeset
|
2213 if test "$ac_cv_func_working_mktime" = no; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2214 AC_DEFINE(BROKEN_MKTIME, 1, [Define to 1 if the mktime function is broken.]) |
28582
c5731a195ae1
Use AC_FUNC_GETLOADAVG, AC_FUNC_MKTIME.
Dave Love <fx@gnu.org>
parents:
28418
diff
changeset
|
2215 fi |
c5731a195ae1
Use AC_FUNC_GETLOADAVG, AC_FUNC_MKTIME.
Dave Love <fx@gnu.org>
parents:
28418
diff
changeset
|
2216 |
29831
1f33a1633537
Check for fcntl.h. Use AC_FUNC_GETLOADAVG, not simple test for
Dave Love <fx@gnu.org>
parents:
29732
diff
changeset
|
2217 AC_FUNC_GETLOADAVG |
1f33a1633537
Check for fcntl.h. Use AC_FUNC_GETLOADAVG, not simple test for
Dave Love <fx@gnu.org>
parents:
29732
diff
changeset
|
2218 |
34425
70795abe8c40
Use it instead of invoking AC_CHECK_FUNCS on
Gerd Moellmann <gerd@gnu.org>
parents:
33802
diff
changeset
|
2219 AC_FUNC_FSEEKO |
29385
74d1eeb89c85
Don't specify -n32 flag for mips-sgi-irix6.5.
Dave Love <fx@gnu.org>
parents:
29253
diff
changeset
|
2220 |
48555
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
2221 AC_FUNC_GETPGRP |
7cd03ef74b25
Use AC_CHECK_DECLS, not AC_DECL_SYS_SIGLIST.
Dave Love <fx@gnu.org>
parents:
48441
diff
changeset
|
2222 |
34425
70795abe8c40
Use it instead of invoking AC_CHECK_FUNCS on
Gerd Moellmann <gerd@gnu.org>
parents:
33802
diff
changeset
|
2223 # UNIX98 PTYs. |
29031
18ae8656c122
Check for grandpt and getpt.
Gerd Moellmann <gerd@gnu.org>
parents:
28742
diff
changeset
|
2224 AC_CHECK_FUNCS(grantpt) |
18ae8656c122
Check for grandpt and getpt.
Gerd Moellmann <gerd@gnu.org>
parents:
28742
diff
changeset
|
2225 |
18ae8656c122
Check for grandpt and getpt.
Gerd Moellmann <gerd@gnu.org>
parents:
28742
diff
changeset
|
2226 # PTY-related GNU extensions. |
18ae8656c122
Check for grandpt and getpt.
Gerd Moellmann <gerd@gnu.org>
parents:
28742
diff
changeset
|
2227 AC_CHECK_FUNCS(getpt) |
18ae8656c122
Check for grandpt and getpt.
Gerd Moellmann <gerd@gnu.org>
parents:
28742
diff
changeset
|
2228 |
15274
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
2229 # Check this now, so that we will NOT find the above functions in ncurses. |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
2230 # That is because we have not set up to link ncurses in lib-src. |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
2231 # It's better to believe a function is not available |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
2232 # than to expect to find it in ncurses. |
f7c5a03c6393
(ncurses): Check this after checking fns like strerror.
Richard M. Stallman <rms@gnu.org>
parents:
14894
diff
changeset
|
2233 AC_CHECK_LIB(ncurses, tparm) |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2234 |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2235 # Do we need the Hesiod library to provide the support routines? |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2236 if test "$with_hesiod" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2237 # Don't set $LIBS here -- see comments above. |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2238 resolv=no |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2239 AC_CHECK_FUNC(res_send, , [AC_CHECK_FUNC(__res_send, , |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2240 [AC_CHECK_LIB(resolv, res_send, resolv=yes, |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2241 [AC_CHECK_LIB(resolv, __res_send, resolv=yes)])])]) |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2242 if test "$resolv" = yes ; then |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2243 RESOLVLIB=-lresolv |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2244 AC_DEFINE(HAVE_LIBRESOLV, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2245 [Define to 1 if you have the resolv library (-lresolv).]) |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2246 else |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2247 RESOLVLIB= |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2248 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2249 AC_CHECK_FUNC(hes_getmailhost, , [AC_CHECK_LIB(hesiod, hes_getmailhost, |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2250 AC_DEFINE(HAVE_LIBHESIOD, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2251 [Define to 1 if you have the hesiod library (-lhesiod).]), |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2252 :, $RESOLVLIB)]) |
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2253 fi |
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40253
diff
changeset
|
2254 |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2255 # These tell us which Kerberos-related libraries to use. |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2256 if test "${with_kerberos+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2257 AC_CHECK_LIB(com_err, com_err) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2258 AC_CHECK_LIB(k5crypto, mit_des_cbc_encrypt) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2259 AC_CHECK_LIB(crypto, mit_des_cbc_encrypt) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2260 AC_CHECK_LIB(krb5, krb5_init_context) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2261 if test "${with_kerberos5+set}" != set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2262 AC_CHECK_LIB(des425, des_cbc_encrypt,, |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2263 AC_CHECK_LIB(des, des_cbc_encrypt)) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2264 AC_CHECK_LIB(krb4, krb_get_cred,, |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2265 AC_CHECK_LIB(krb, krb_get_cred)) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2266 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2267 |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2268 if test "${with_kerberos5+set}" = set; then |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2269 AC_CHECK_HEADERS(krb5.h) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2270 else |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2271 AC_CHECK_HEADERS(des.h,, |
41853
2d94a7f54504
(AC_PREREQ): Bump from 2.50 to 2.51; needed for vfork.
Paul Eggert <eggert@twinsun.com>
parents:
41673
diff
changeset
|
2272 [AC_CHECK_HEADERS(kerberosIV/des.h,, |
2d94a7f54504
(AC_PREREQ): Bump from 2.50 to 2.51; needed for vfork.
Paul Eggert <eggert@twinsun.com>
parents:
41673
diff
changeset
|
2273 [AC_CHECK_HEADERS(kerberos/des.h)])]) |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2274 AC_CHECK_HEADERS(krb.h,, |
41853
2d94a7f54504
(AC_PREREQ): Bump from 2.50 to 2.51; needed for vfork.
Paul Eggert <eggert@twinsun.com>
parents:
41673
diff
changeset
|
2275 [AC_CHECK_HEADERS(kerberosIV/krb.h,, |
2d94a7f54504
(AC_PREREQ): Bump from 2.50 to 2.51; needed for vfork.
Paul Eggert <eggert@twinsun.com>
parents:
41673
diff
changeset
|
2276 [AC_CHECK_HEADERS(kerberos/krb.h)])]) |
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2277 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2278 AC_CHECK_HEADERS(com_err.h) |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2279 fi |
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26498
diff
changeset
|
2280 |
20220
ca8c508976da
(AC_CHECK_LIB): Add -lintl.
Paul Eggert <eggert@twinsun.com>
parents:
20027
diff
changeset
|
2281 # Solaris requires -lintl if you want strerror (which calls dgettext) |
ca8c508976da
(AC_CHECK_LIB): Add -lintl.
Paul Eggert <eggert@twinsun.com>
parents:
20027
diff
changeset
|
2282 # to return localized messages. |
ca8c508976da
(AC_CHECK_LIB): Add -lintl.
Paul Eggert <eggert@twinsun.com>
parents:
20027
diff
changeset
|
2283 AC_CHECK_LIB(intl, dgettext) |
ca8c508976da
(AC_CHECK_LIB): Add -lintl.
Paul Eggert <eggert@twinsun.com>
parents:
20027
diff
changeset
|
2284 |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2285 AC_MSG_CHECKING(whether localtime caches TZ) |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2286 AC_CACHE_VAL(emacs_cv_localtime_cache, |
14689
bd83ed983a96
Improve messages about X versions.
Richard M. Stallman <rms@gnu.org>
parents:
14488
diff
changeset
|
2287 [if test x$ac_cv_func_tzset = xyes; then |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2288 AC_TRY_RUN([#include <time.h> |
14715
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2289 extern char **environ; |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2290 unset_TZ () |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2291 { |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2292 char **from, **to; |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2293 for (to = from = environ; (*to = *from); from++) |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2294 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2295 to++; |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2296 } |
15830
248bde0ddbc6
(LOCALTIME_CACHE): Don't put a string literal "TZ=..." in environ.
Richard M. Stallman <rms@gnu.org>
parents:
15822
diff
changeset
|
2297 char TZ_GMT0[] = "TZ=GMT0"; |
248bde0ddbc6
(LOCALTIME_CACHE): Don't put a string literal "TZ=..." in environ.
Richard M. Stallman <rms@gnu.org>
parents:
15822
diff
changeset
|
2298 char TZ_PST8[] = "TZ=PST8"; |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2299 main() |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2300 { |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2301 time_t now = time ((time_t *) 0); |
14715
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2302 int hour_GMT0, hour_unset; |
15830
248bde0ddbc6
(LOCALTIME_CACHE): Don't put a string literal "TZ=..." in environ.
Richard M. Stallman <rms@gnu.org>
parents:
15822
diff
changeset
|
2303 if (putenv (TZ_GMT0) != 0) |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2304 exit (1); |
14715
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2305 hour_GMT0 = localtime (&now)->tm_hour; |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2306 unset_TZ (); |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2307 hour_unset = localtime (&now)->tm_hour; |
15830
248bde0ddbc6
(LOCALTIME_CACHE): Don't put a string literal "TZ=..." in environ.
Richard M. Stallman <rms@gnu.org>
parents:
15822
diff
changeset
|
2308 if (putenv (TZ_PST8) != 0) |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2309 exit (1); |
14715
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2310 if (localtime (&now)->tm_hour == hour_GMT0) |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2311 exit (1); |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2312 unset_TZ (); |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2313 if (localtime (&now)->tm_hour != hour_unset) |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2314 exit (1); |
0bb2443dcc6d
(LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ.
Richard M. Stallman <rms@gnu.org>
parents:
14689
diff
changeset
|
2315 exit (0); |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2316 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes, |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2317 [# If we have tzset, assume the worst when cross-compiling. |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2318 emacs_cv_localtime_cache=yes]) |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2319 else |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2320 # If we lack tzset, report that localtime does not cache TZ, |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2321 # since we can't invalidate the cache if we don't have tzset. |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2322 emacs_cv_localtime_cache=no |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2323 fi])dnl |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2324 AC_MSG_RESULT($emacs_cv_localtime_cache) |
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2325 if test $emacs_cv_localtime_cache = yes; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2326 AC_DEFINE(LOCALTIME_CACHE, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2327 [Define to 1 if localtime caches TZ.]) |
13015
0c0845233fa6
(LOCALTIME_CACHE): Define if tzset exists and
Richard M. Stallman <rms@gnu.org>
parents:
12878
diff
changeset
|
2328 fi |
8636 | 2329 |
13756
7d48799c80b5
Just "solaris" now defaults to version 2.4.
Karl Heuer <kwzh@gnu.org>
parents:
13680
diff
changeset
|
2330 if test "x$HAVE_TIMEVAL" = xyes; then |
29899
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2331 AC_CHECK_FUNCS(gettimeofday) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2332 if test $ac_cv_func_gettimeofday = yes; then |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2333 AC_CACHE_CHECK(whether gettimeofday can accept two arguments, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2334 emacs_cv_gettimeofday_two_arguments, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2335 [AC_TRY_COMPILE([ |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2336 #ifdef TIME_WITH_SYS_TIME |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2337 #include <sys/time.h> |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2338 #include <time.h> |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2339 #else |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2340 #ifdef HAVE_SYS_TIME_H |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2341 #include <sys/time.h> |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2342 #else |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2343 #include <time.h> |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2344 #endif |
29732
f1f8ca8dd938
(GETTIMEOFDAY_ONE_ARGUMENT): Fix in case _XOPEN_SOURCE is defined.
Dave Love <fx@gnu.org>
parents:
29655
diff
changeset
|
2345 #endif], |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2346 [struct timeval time; |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2347 gettimeofday (&time, 0);], |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2348 emacs_cv_gettimeofday_two_arguments=yes, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2349 emacs_cv_gettimeofday_two_arguments=no)]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2350 if test $emacs_cv_gettimeofday_two_arguments = no; then |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2351 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2352 [Define to 1 if gettimeofday accepts only one argument.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2353 fi |
20464
9c811b2d0836
Cache more tests. Add missing quotes around
Andreas Schwab <schwab@suse.de>
parents:
20341
diff
changeset
|
2354 fi |
12787
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2355 fi |
5569b3a43323
(m68*-next-*): Use m68k.h and nextstep.h.
Richard M. Stallman <rms@gnu.org>
parents:
12580
diff
changeset
|
2356 |
29899
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2357 dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect. |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2358 if test "$ac_cv_func_gettimeofday" = yes; then |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2359 AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone, |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2360 [AC_TRY_COMPILE([#include <sys/time.h>], |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2361 [struct timezone tz;], |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2362 dnl It may be that we can't call gettimeofday with a non-null pointer, |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2363 dnl even though we have struct timezone (e.g. HPUX). In that case |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2364 dnl we'll lie about struct timezone. |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2365 [AC_TRY_RUN([ |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2366 #ifdef TIME_WITH_SYS_TIME |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2367 #include <sys/time.h> |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2368 #include <time.h> |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2369 #else |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2370 #ifdef HAVE_SYS_TIME_H |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2371 #include <sys/time.h> |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2372 #else |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2373 #include <time.h> |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2374 #endif |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2375 #endif |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2376 main () { |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2377 struct timeval time; |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2378 struct timezone dummy; |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2379 exit (gettimeofday (&time, &dummy)); |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2380 }], |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2381 emacs_cv_struct_timezone=yes, |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2382 emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)], |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2383 emacs_cv_struct_timezone=no)]) |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2384 fi |
19caebb8eb1f
[HAVE_TIMEVAL]: Move gettimeofday test here, test for struct timezone
Dave Love <fx@gnu.org>
parents:
29864
diff
changeset
|
2385 |
8636 | 2386 ok_so_far=yes |
8730 | 2387 AC_CHECK_FUNC(socket, , ok_so_far=no) |
8636 | 2388 if test $ok_so_far = yes; then |
8730 | 2389 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no) |
8636 | 2390 fi |
2391 if test $ok_so_far = yes; then | |
8730 | 2392 AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no) |
8636 | 2393 fi |
2394 if test $ok_so_far = yes; then | |
48431 | 2395 dnl Fixme: Not used. Should this be HAVE_SOCKETS? |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2396 AC_DEFINE(HAVE_INET_SOCKETS, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2397 [Define to 1 if you have inet sockets.]) |
8636 | 2398 fi |
2399 | |
8680 | 2400 if test -f /usr/lpp/X11/bin/smt.exp; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2401 AC_DEFINE(HAVE_AIX_SMT_EXP, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2402 [Define to 1 if the file /usr/lpp/X11/bin/smt.exp exists.]) |
8680 | 2403 fi |
2404 | |
26214
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2405 AC_MSG_CHECKING(whether system supports dynamic ptys) |
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2406 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2407 AC_MSG_RESULT(yes) |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2408 AC_DEFINE(HAVE_DEV_PTMX, 1, [Define to 1 if dynamic ptys are supported.]) |
26214
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2409 else |
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2410 AC_MSG_RESULT(no) |
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2411 fi |
d11ad723a659
* configure.in: Check for dynamic ptys (/dev/ptmx, /dev/pts/).
Gerd Moellmann <gerd@gnu.org>
parents:
26081
diff
changeset
|
2412 |
41853
2d94a7f54504
(AC_PREREQ): Bump from 2.50 to 2.51; needed for vfork.
Paul Eggert <eggert@twinsun.com>
parents:
41673
diff
changeset
|
2413 AC_FUNC_FORK |
27673 | 2414 |
49083 | 2415 dnl Adapted from Haible's version. |
2416 AC_CACHE_CHECK([for nl_langinfo and CODESET], emacs_cv_langinfo_codeset, | |
2417 [AC_TRY_LINK([#include <langinfo.h>], | |
2418 [char* cs = nl_langinfo(CODESET);], | |
2419 emacs_cv_langinfo_codeset=yes, | |
2420 emacs_cv_langinfo_codeset=no) | |
2421 ]) | |
2422 if test $emacs_cv_langinfo_codeset = yes; then | |
2423 AC_DEFINE(HAVE_LANGINFO_CODESET, 1, | |
2424 [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | |
2425 fi | |
2426 | |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2427 AC_CHECK_TYPES(size_t) |
30393 | 2428 |
48431 | 2429 dnl Restrict could probably be used effectively other than in regex.c. |
2430 AC_CACHE_CHECK([for C restrict keyword], emacs_cv_c_restrict, | |
2431 [AC_TRY_COMPILE([void fred (int *restrict x);], [], | |
2432 emacs_cv_c_restrict=yes, | |
2433 [AC_TRY_COMPILE([void fred (int *__restrict x);], [], | |
2434 emacs_cv_c_restrict=__restrict, | |
2435 emacs_cv_c_restrict=no)])]) | |
2436 case "$emacs_cv_c_restrict" in | |
2437 yes) emacs_restrict=restrict;; | |
2438 no) emacs_restrict="";; | |
2439 *) emacs_restrict="$emacs_cv_c_restrict";; | |
2440 esac | |
2441 if test "$emacs_restrict" != __restrict; then | |
2442 AC_DEFINE_UNQUOTED(__restrict, $emacs_restrict, | |
2443 [Define to compiler's equivalent of C99 restrict keyword. | |
2444 Don't define if equivalent is `__restrict'.]) | |
2445 fi | |
2446 | |
2447 AC_CACHE_CHECK([for C restricted array declarations], emacs_cv_c_restrict_arr, | |
2448 [AC_TRY_COMPILE([void fred (int x[__restrict]);], [], | |
2449 emacs_cv_c_restrict_arr=yes, emacs_cv_c_restrict_arr=no)]) | |
2450 if test "$emacs_cv_c_restrict_arr" = yes; then | |
2451 AC_DEFINE(__restrict_arr, __restrict, | |
2452 [Define to compiler's equivalent of C99 restrict keyword in array | |
2453 declarations. Define as empty for no equivalent.]) | |
2454 fi | |
2455 | |
48441 | 2456 AC_CHECK_HEADERS(nlist.h, [AC_DEFINE(NLIST_STRUCT, 1, |
2457 [Define to 1 if you have <nlist.h>.])]) | |
2458 | |
48431 | 2459 dnl Fixme: AC_SYS_POSIX_TERMIOS should probably be used, but it's not clear |
2460 dnl how the tty code is related to POSIX and/or other versions of termios. | |
2461 | |
2462 dnl Fixme: Use AC_FUNC_MEMCMP since memcmp is used. (Needs libobj replacement.) | |
2463 | |
8636 | 2464 # Set up the CFLAGS for real compilation, so we can substitute it. |
2465 CFLAGS="$REAL_CFLAGS" | |
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29945
diff
changeset
|
2466 CPPFLAGS="$REAL_CPPFLAGS" |
8636 | 2467 |
2468 #### Find out which version of Emacs this is. | |
48431 | 2469 [version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ |
2470 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`] | |
8636 | 2471 if test x"${version}" = x; then |
48431 | 2472 AC_MSG_ERROR([can't find current emacs version in `${srcdir}/lisp/version.el'.]) |
8636 | 2473 fi |
2474 | |
2475 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
2476 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
2477 AC_SUBST(version) | |
2478 AC_SUBST(configuration) | |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
2479 AC_SUBST(canonical) |
8636 | 2480 AC_SUBST(srcdir) |
2481 AC_SUBST(prefix) | |
2482 AC_SUBST(exec_prefix) | |
2483 AC_SUBST(bindir) | |
2484 AC_SUBST(datadir) | |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
2485 AC_SUBST(sharedstatedir) |
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
2486 AC_SUBST(libexecdir) |
8636 | 2487 AC_SUBST(mandir) |
2488 AC_SUBST(infodir) | |
2489 AC_SUBST(lispdir) | |
2490 AC_SUBST(locallisppath) | |
2491 AC_SUBST(lisppath) | |
19499
1b0ccfac70e8
(HAVE_MOTIF_2_1): Test for Motif 2.1,
Richard M. Stallman <rms@gnu.org>
parents:
19213
diff
changeset
|
2492 AC_SUBST(x_default_search_path) |
8636 | 2493 AC_SUBST(etcdir) |
2494 AC_SUBST(archlibdir) | |
2495 AC_SUBST(docdir) | |
9727
12b4d106cc47
keep up with configure.in
David J. MacKenzie <djm@gnu.org>
parents:
8730
diff
changeset
|
2496 AC_SUBST(bitmapdir) |
44479
5eb5e6c99de4
Add --game-dir, --game-user. Test to see if we can use them.
Colin Walters <walters@gnu.org>
parents:
44433
diff
changeset
|
2497 AC_SUBST(gamedir) |
5eb5e6c99de4
Add --game-dir, --game-user. Test to see if we can use them.
Colin Walters <walters@gnu.org>
parents:
44433
diff
changeset
|
2498 AC_SUBST(gameuser) |
8636 | 2499 AC_SUBST(c_switch_system) |
2500 AC_SUBST(c_switch_machine) | |
2501 AC_SUBST(LD_SWITCH_X_SITE) | |
2502 AC_SUBST(LD_SWITCH_X_SITE_AUX) | |
2503 AC_SUBST(C_SWITCH_X_SITE) | |
2504 AC_SUBST(CFLAGS) | |
2505 AC_SUBST(X_TOOLKIT_TYPE) | |
2506 AC_SUBST(machfile) | |
2507 AC_SUBST(opsysfile) | |
29831
1f33a1633537
Check for fcntl.h. Use AC_FUNC_GETLOADAVG, not simple test for
Dave Love <fx@gnu.org>
parents:
29732
diff
changeset
|
2508 AC_SUBST(GETLOADAVG_LIBS) |
49090
fc1853b3e3dd
* configure.in: New option, --enable-carbon-app, to specify
Steven Tamm <steventamm@mac.com>
parents:
49087
diff
changeset
|
2509 AC_SUBST(carbon_appdir) |
8636 | 2510 |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2511 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "${canonical}", |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2512 [Define to the canonical Emacs configuration name.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2513 AC_DEFINE_UNQUOTED(EMACS_CONFIG_OPTIONS, "${ac_configure_args}", |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2514 [Define to the options passed to configure.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2515 AC_DEFINE_UNQUOTED(config_machfile, "${machfile}", |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2516 [Define to the used machine dependent file.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2517 AC_DEFINE_UNQUOTED(config_opsysfile, "${opsysfile}", |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2518 [Define to the used os dependent file.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2519 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE}, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2520 [Define LD_SWITCH_X_SITE to contain any special flags your loader |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2521 may need to deal with X Windows. For instance, if you've defined |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2522 HAVE_X_WINDOWS above and your X libraries aren't in a place that |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2523 your loader can find on its own, you might want to add "-L/..." or |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2524 something similar.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2525 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX}, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2526 [Define LD_SWITCH_X_SITE_AUX with an -R option |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2527 in case it's needed (for Solaris, for example).]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2528 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE}, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2529 [Define C_SWITCH_X_SITE to contain any special flags your compiler |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2530 may need to deal with X Windows. For instance, if you've defined |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2531 HAVE_X_WINDOWS above and your X include files aren't in a place |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2532 that your compiler can find on its own, you might want to add |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2533 "-I/..." or something similar.]) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2534 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC}, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2535 [Define to the unexec source file name.]) |
8636 | 2536 |
2537 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2538 AC_DEFINE(HAVE_X_WINDOWS, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2539 [Define to 1 if you want to use the X window system.]) |
8636 | 2540 fi |
2541 if test "${USE_X_TOOLKIT}" != "none" ; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2542 AC_DEFINE(USE_X_TOOLKIT, 1, [Define to 1 if using an X toolkit.]) |
8636 | 2543 fi |
2544 if test "${HAVE_X11}" = "yes" ; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2545 AC_DEFINE(HAVE_X11, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2546 [Define to 1 if you want to use version 11 of X windows. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2547 Otherwise, Emacs expects to use version 10.]) |
8636 | 2548 fi |
2549 if test "${HAVE_XFREE386}" = "yes" ; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2550 AC_DEFINE(HAVE_XFREE386, 1, [Define to 1 if you're using XFree386.]) |
8636 | 2551 fi |
13845 | 2552 if test "${HAVE_MENUS}" = "yes" ; then |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2553 AC_DEFINE(HAVE_MENUS, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2554 [Define to 1 if you have mouse menus. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2555 (This is automatic if you use X, but the option to specify it remains.) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2556 It is also defined with other window systems that support xmenu.c.]) |
8636 | 2557 fi |
2558 if test "${GNU_MALLOC}" = "yes" ; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2559 AC_DEFINE(GNU_MALLOC, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2560 [Define to 1 if you want to use the GNU memory allocator.]) |
8636 | 2561 fi |
2562 if test "${REL_ALLOC}" = "yes" ; then | |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2563 AC_DEFINE(REL_ALLOC, 1, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2564 [Define REL_ALLOC if you want to use the relocating allocator for |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2565 buffer space.]) |
8636 | 2566 fi |
2567 | |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2568 AH_TOP([/* GNU Emacs site configuration template file. |
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2569 Copyright (C) 1988, 93, 94, 99, 2000, 2002 Free Software Foundation, Inc. |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2570 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2571 This file is part of GNU Emacs. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2572 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2573 GNU Emacs is free software; you can redistribute it and/or modify |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2574 it under the terms of the GNU General Public License as published by |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2575 the Free Software Foundation; either version 2, or (at your option) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2576 any later version. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2577 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2578 GNU Emacs is distributed in the hope that it will be useful, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2579 but WITHOUT ANY WARRANTY; without even the implied warranty of |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2580 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2581 GNU General Public License for more details. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2582 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2583 You should have received a copy of the GNU General Public License |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2584 along with GNU Emacs; see the file COPYING. If not, write to the |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2585 Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2586 Boston, MA 02111-1307, USA. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2587 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2588 |
48431 | 2589 /* No code in Emacs #includes config.h twice, but some bits of code |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2590 intended to work with other packages as well (like gmalloc.c) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2591 think they can include it as many times as they like. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2592 #ifndef EMACS_CONFIG_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2593 #define EMACS_CONFIG_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2594 ])dnl |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2595 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2596 AH_BOTTOM([ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2597 /* If we're using any sort of window system, define some consequences. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2598 #ifdef HAVE_X_WINDOWS |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2599 #define HAVE_WINDOW_SYSTEM |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2600 #define MULTI_KBOARD |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2601 #define HAVE_MOUSE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2602 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2603 |
45053
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2604 /* If we're using the Carbon API on Mac OS X, define a few more |
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2605 variables as well. */ |
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2606 #ifdef HAVE_CARBON |
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2607 #define HAVE_WINDOW_SYSTEM |
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2608 #define HAVE_MOUSE |
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2609 #endif |
6ff64f2aa959
2002-04-30 Andrew Choi <akochoi@shaw.ca>
Andrew Choi <akochoi@shaw.ca>
parents:
44985
diff
changeset
|
2610 |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2611 /* Define USER_FULL_NAME to return a string |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2612 that is the user's full name. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2613 It can assume that the variable `pw' |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2614 points to the password file entry for this user. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2615 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2616 At some sites, the pw_gecos field contains |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2617 the user's full name. If neither this nor any other |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2618 field contains the right thing, use pw_name, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2619 giving the user's login name, since that is better than nothing. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2620 #define USER_FULL_NAME pw->pw_gecos |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2621 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2622 /* Define AMPERSAND_FULL_NAME if you use the convention |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2623 that & in the full name stands for the login id. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2624 /* Turned on June 1996 supposing nobody will mind it. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2625 #define AMPERSAND_FULL_NAME |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2626 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2627 /* Define HAVE_SOUND if we have sound support. We know it works |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2628 and compiles only on the specified platforms. For others, |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2629 it probably doesn't make sense to try. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2630 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2631 #if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2632 #ifdef HAVE_MACHINE_SOUNDCARD_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2633 #define HAVE_SOUND 1 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2634 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2635 #ifdef HAVE_SYS_SOUNDCARD_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2636 #define HAVE_SOUND 1 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2637 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2638 #ifdef HAVE_SOUNDCARD_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2639 #define HAVE_SOUND 1 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2640 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2641 #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2642 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2643 /* If using GNU, then support inline function declarations. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2644 /* Don't try to switch on inline handling as detected by AC_C_INLINE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2645 generally, because even if non-gcc compilers accept `inline', they |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2646 may reject `extern inline'. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2647 #ifdef __GNUC__ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2648 #define INLINE __inline__ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2649 #else |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2650 #define INLINE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2651 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2652 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2653 /* Include the os and machine dependent files. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2654 #include config_opsysfile |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2655 #include config_machfile |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2656 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2657 /* Load in the conversion definitions if this system |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2658 needs them and the source file being compiled has not |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2659 said to inhibit this. There should be no need for you |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2660 to alter these lines. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2661 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2662 #ifdef SHORTNAMES |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2663 #ifndef NO_SHORTNAMES |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2664 #include "../shortnames/remap.h" |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2665 #endif /* not NO_SHORTNAMES */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2666 #endif /* SHORTNAMES */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2667 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2668 /* If no remapping takes place, static variables cannot be dumped as |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2669 pure, so don't worry about the `static' keyword. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2670 #ifdef NO_REMAP |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2671 #undef static |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2672 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2673 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2674 /* Define `subprocesses' should be defined if you want to |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2675 have code for asynchronous subprocesses |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2676 (as used in M-x compile and M-x shell). |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2677 These do not work for some USG systems yet; |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2678 for the ones where they work, the s/SYSTEM.h file defines this flag. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2679 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2680 #ifndef VMS |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2681 #ifndef USG |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2682 /* #define subprocesses */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2683 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2684 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2685 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2686 /* SIGTYPE is the macro we actually use. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2687 #ifndef SIGTYPE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2688 #define SIGTYPE RETSIGTYPE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2689 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2690 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2691 #ifdef emacs /* Don't do this for lib-src. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2692 /* Tell regex.c to use a type compatible with Emacs. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2693 #define RE_TRANSLATE_TYPE Lisp_Object |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2694 #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2695 #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2696 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2697 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2698 /* Avoid link-time collision with system mktime if we will use our own. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2699 #if ! HAVE_MKTIME || BROKEN_MKTIME |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2700 #define mktime emacs_mktime |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2701 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2702 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2703 /* The rest of the code currently tests the CPP symbol BSTRING. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2704 Override any claims made by the system-description files. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2705 Note that on some SCO version it is possible to have bcopy and not bcmp. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2706 #undef BSTRING |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2707 #if defined (HAVE_BCOPY) && defined (HAVE_BCMP) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2708 #define BSTRING |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2709 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2710 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2711 /* Some of the files of Emacs which are intended for use with other |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2712 programs assume that if you have a config.h file, you must declare |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2713 the type of getenv. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2714 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2715 This declaration shouldn't appear when alloca.s or Makefile.in |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2716 includes config.h. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2717 #ifndef NOT_C_CODE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2718 extern char *getenv (); |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2719 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2720 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2721 /* These default definitions are good for almost all machines. |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2722 The exceptions override them in m/MACHINE.h. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2723 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2724 #ifndef BITS_PER_CHAR |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2725 #define BITS_PER_CHAR 8 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2726 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2727 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2728 #ifndef BITS_PER_SHORT |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2729 #define BITS_PER_SHORT 16 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2730 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2731 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2732 /* Note that lisp.h uses this in a preprocessor conditional, so it |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2733 would not work to use sizeof. That being so, we do all of them |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2734 without sizeof, for uniformity's sake. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2735 #ifndef BITS_PER_INT |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2736 #define BITS_PER_INT 32 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2737 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2738 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2739 #ifndef BITS_PER_LONG |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2740 #ifdef _LP64 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2741 #define BITS_PER_LONG 64 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2742 #else |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2743 #define BITS_PER_LONG 32 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2744 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2745 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2746 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2747 /* Define if the compiler supports function prototypes. It may do so |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2748 but not define __STDC__ (e.g. DEC C by default) or may define it as |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2749 zero. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2750 #undef PROTOTYPES |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2751 /* For mktime.c: */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2752 #ifndef __P |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2753 # if defined PROTOTYPES |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2754 # define __P(args) args |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2755 # else |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2756 # define __P(args) () |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2757 # endif /* GCC. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2758 #endif /* __P */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2759 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2760 /* Don't include "string.h" or <stdlib.h> in non-C code. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2761 #ifndef NOT_C_CODE |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2762 #ifdef HAVE_STRING_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2763 #include "string.h" |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2764 #endif |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2765 #ifdef HAVE_STRINGS_H |
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2766 #include "strings.h" /* May be needed for bcopy & al. */ |
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2767 #endif |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2768 #ifdef HAVE_STDLIB_H |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2769 #include <stdlib.h> |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2770 #endif |
48431 | 2771 #ifndef __GNUC__ |
2772 # ifdef HAVE_ALLOCA_H | |
2773 # include <alloca.h> | |
2774 # else /* AIX files deal with #pragma. */ | |
2775 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2776 char *alloca (); | |
2777 # endif | |
2778 # endif /* HAVE_ALLOCA_H */ | |
2779 #endif /* __GNUC__ */ | |
48220
0230b8ae41f0
Use AC_CONFIG_LIBOBJ_DIR and require autoconf
Dave Love <fx@gnu.org>
parents:
48080
diff
changeset
|
2780 #ifndef HAVE_SIZE_T |
49087 | 2781 typedef unsigned size_t; |
48220
0230b8ae41f0
Use AC_CONFIG_LIBOBJ_DIR and require autoconf
Dave Love <fx@gnu.org>
parents:
48080
diff
changeset
|
2782 #endif |
48431 | 2783 #endif /* NOT_C_CODE */ |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2784 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2785 /* Define HAVE_X_I18N if we have usable i18n support. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2786 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2787 #ifdef HAVE_X11R6 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2788 #define HAVE_X_I18N |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2789 #elif defined HAVE_X11R5 && !defined X11R5_INHIBIT_I18N |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2790 #define HAVE_X_I18N |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2791 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2792 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2793 /* Define HAVE_X11R6_XIM if we have usable X11R6-style XIM support. */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2794 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2795 #if defined HAVE_X11R6 && !defined INHIBIT_X11R6_XIM |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2796 #define HAVE_X11R6_XIM |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2797 #endif |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2798 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2799 /* Should we enable expensive run-time checking of data types? */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2800 #undef ENABLE_CHECKING |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2801 |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2802 #if defined __GNUC__ && (__GNUC__ > 2 \ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2803 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 5)) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2804 #define NO_RETURN __attribute__ ((__noreturn__)) |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2805 #else |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2806 #define NO_RETURN /* nothing */ |
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2807 #endif |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2808 |
48431 | 2809 /* These won't be used automatically yet. We also need to know, at least, |
2810 that the stack is continuous. */ | |
2811 #ifdef __GNUC__ | |
2812 # ifndef GC_SETJMP_WORKS | |
2813 /* GC_SETJMP_WORKS is nearly always appropriate for GCC -- | |
2814 see NON_SAVING_SETJMP in the target descriptions. */ | |
2815 /* Exceptions (see NON_SAVING_SETJMP in target description) are ns32k, | |
2816 SCO5 non-ELF (but Emacs specifies ELF) and SVR3 on x86. | |
2817 Fixme: Deal with ns32k, SVR3. */ | |
2818 # define GC_SETJMP_WORKS 1 | |
2819 # endif | |
2820 # ifndef GC_LISP_OBJECT_ALIGNMENT | |
2821 # define GC_LISP_OBJECT_ALIGNMENT (__alignof__ (Lisp_Object)) | |
2822 # endif | |
2823 #endif | |
2824 | |
2825 #ifndef HAVE_BCOPY | |
2826 #define bcopy(a,b,s) memcpy (b,a,s) | |
2827 #endif | |
2828 #ifndef HAVE_BZERO | |
2829 #define bzero(a,s) memset (a,0,s) | |
2830 #endif | |
2831 #ifndef HAVE_BCMP | |
2832 #define BCMP memcmp | |
2833 #endif | |
2834 | |
2835 #endif /* EMACS_CONFIG_H */ | |
2836 | |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2837 /* |
48431 | 2838 Local Variables: |
48080
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2839 mode: c |
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2840 End: |
8ebe39e6efe1
Require autoconf 2.53. Test for pty.h,
Dave Love <fx@gnu.org>
parents:
47553
diff
changeset
|
2841 */ |
44568
1b75a98a4de4
Add config header templates to all AC_DEFINE and
Andreas Schwab <schwab@suse.de>
parents:
44479
diff
changeset
|
2842 ])dnl |
40777 | 2843 |
8636 | 2844 #### Report on what we decided to do. |
49322 | 2845 #### Report GTK as a toolkit, even if it doesn't use Xt. |
2846 #### It makes printing result more understandable as using GTK sets | |
2847 #### toolkit_scroll_bars to yes by default. | |
2848 if test "${HAVE_GTK}" = "yes"; then | |
2849 USE_X_TOOLKIT=GTK | |
2850 fi | |
2851 | |
8636 | 2852 echo " |
2853 Configured for \`${canonical}'. | |
2854 | |
2855 Where should the build process find the source code? ${srcdir} | |
2856 What operating system and machine description files should Emacs use? | |
2857 \`${opsysfile}' and \`${machfile}' | |
2858 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
2859 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
31410
8bdf4d335cf9
(REL_ALLOC_MMAP): Recognize in system configuration
Gerd Moellmann <gerd@gnu.org>
parents:
31407
diff
changeset
|
2860 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
31599
3988743369b6
(USE_MMAP_FOR_BUFFERS): Recognize in system
Gerd Moellmann <gerd@gnu.org>
parents:
31510
diff
changeset
|
2861 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
8636 | 2862 What window system should Emacs use? ${window_system} |
46662 | 2863 What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
8636 | 2864 |
12319
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2865 if test -n "${x_includes}"; then |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2866 echo " Where do we find X Windows header files? ${x_includes}" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2867 else |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2868 echo " Where do we find X Windows header files? Standard dirs" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2869 fi |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2870 if test -n "${x_libraries}"; then |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2871 echo " Where do we find X Windows libraries? ${x_libraries}" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2872 else |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2873 echo " Where do we find X Windows libraries? Standard dirs" |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2874 fi |
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2875 |
25038
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
2876 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
2877 echo " Does Emacs use -lXpm? ${HAVE_XPM}" |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
2878 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" |
25203
5462387b221c
Change libtiff34 to libtiff.
Gerd Moellmann <gerd@gnu.org>
parents:
25135
diff
changeset
|
2879 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
25038
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
2880 echo " Does Emacs use -lungif? ${HAVE_GIF}" |
740d12d42387
(--with-png, HAVE_PNG): New.
Gerd Moellmann <gerd@gnu.org>
parents:
24958
diff
changeset
|
2881 echo " Does Emacs use -lpng? ${HAVE_PNG}" |
25267
3bb9959ad6cd
Add --with-toolkit-scroll-bars. If "no",
Gerd Moellmann <gerd@gnu.org>
parents:
25247
diff
changeset
|
2882 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
12319
b9adf75f0b29
Test whether XFree86 needs -b i486-linuxaout to link.
Richard M. Stallman <rms@gnu.org>
parents:
12206
diff
changeset
|
2883 echo |
8636 | 2884 |
2885 # Remove any trailing slashes in these variables. | |
48431 | 2886 [test "${prefix}" != NONE && |
8636 | 2887 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
2888 test "${exec_prefix}" != NONE && | |
48431 | 2889 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] |
8636 | 2890 |
36353
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2891 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2892 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2893 ## from Makefile.c can correctly provide the arg `-traditional' to the |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2894 ## C preprocessor. |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2895 |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2896 AC_EGREP_CPP(yes..yes, |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2897 [yes..yes], |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2898 CPP_NEED_TRADITIONAL=no, |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2899 CPP_NEED_TRADITIONAL=yes) |
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2900 |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2901 AC_OUTPUT(Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \ |
18655
7ddb2d92ef16
(leim/Makefile): Generate this.
Richard M. Stallman <rms@gnu.org>
parents:
18499
diff
changeset
|
2902 man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in \ |
41430
5413abaea7d8
(AC_OUTPUT): Add lispintro/Makefile.
Eli Zaretskii <eliz@gnu.org>
parents:
41147
diff
changeset
|
2903 lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile, [ |
8680 | 2904 |
10152
030853f9aa93
(rs6000-ibm-aix4.1*): New alternative.
Richard M. Stallman <rms@gnu.org>
parents:
10098
diff
changeset
|
2905 ### Make the necessary directories, if they don't exist. |
23590 | 2906 for dir in etc lisp ; do |
10098
62d0ba6a531b
Don't try to make directories that are guaranteed to already exist.
David J. MacKenzie <djm@gnu.org>
parents:
10063
diff
changeset
|
2907 test -d ${dir} || mkdir ${dir} |
8636 | 2908 done |
2909 | |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2910 # Build src/Makefile from ${srcdir}/src/Makefile.c |
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2911 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c |
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2912 # This must be done after src/config.h is built, since we rely on that file. |
8636 | 2913 |
2914 # Now get this: Some word that is part of the ${srcdir} directory name | |
2915 # or the ${configuration} value might, just might, happen to be an | |
2916 # identifier like `sun4' or `i386' or something, and be predefined by | |
2917 # the C preprocessor to some helpful value like 1, or maybe the empty | |
2918 # string. Needless to say consequent macro substitutions are less | |
2919 # than conducive to the makefile finding the correct directory. | |
48431 | 2920 [undefs="`echo $top_srcdir $configuration $canonical | |
8636 | 2921 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ |
2922 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
48431 | 2923 `"] |
8636 | 2924 |
24410
c4dcba33da91
Use epaths.h and epaths-force instead of paths....
Richard M. Stallman <rms@gnu.org>
parents:
24383
diff
changeset
|
2925 echo creating src/epaths.h |
40253
a303509b9c29
Use $MAKE for `make' if set.
Gerd Moellmann <gerd@gnu.org>
parents:
40059
diff
changeset
|
2926 ${MAKE-make} epaths-force |
15899
4ee67c1476f4
Generate src/paths.h here.
Richard M. Stallman <rms@gnu.org>
parents:
15883
diff
changeset
|
2927 |
33635
6242368d9e4c
Use -traditional with GNU cpp.
Gerd Moellmann <gerd@gnu.org>
parents:
33283
diff
changeset
|
2928 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
6242368d9e4c
Use -traditional with GNU cpp.
Gerd Moellmann <gerd@gnu.org>
parents:
33283
diff
changeset
|
2929 # `..' to `. .' unless invoked with -traditional |
6242368d9e4c
Use -traditional with GNU cpp.
Gerd Moellmann <gerd@gnu.org>
parents:
33283
diff
changeset
|
2930 |
36353
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2931 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
33635
6242368d9e4c
Use -traditional with GNU cpp.
Gerd Moellmann <gerd@gnu.org>
parents:
33283
diff
changeset
|
2932 CPPFLAGS="$CPPFLAGS -traditional" |
6242368d9e4c
Use -traditional with GNU cpp.
Gerd Moellmann <gerd@gnu.org>
parents:
33283
diff
changeset
|
2933 fi |
6242368d9e4c
Use -traditional with GNU cpp.
Gerd Moellmann <gerd@gnu.org>
parents:
33283
diff
changeset
|
2934 |
8636 | 2935 echo creating lib-src/Makefile |
2936 ( cd lib-src | |
2937 rm -f junk.c junk1.c junk2.c | |
2938 sed -e '/start of cpp stuff/q' \ | |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2939 < Makefile.c > junk1.c |
8636 | 2940 sed -e '1,/start of cpp stuff/d'\ |
39148
b18544b16624
Avoid `$@' which is handled specially in
Gerd Moellmann <gerd@gnu.org>
parents:
38809
diff
changeset
|
2941 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2942 < Makefile.c > junk.c |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
2943 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
8636 | 2944 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
2945 cat junk1.c junk2.c > Makefile.new | |
2946 rm -f junk.c junk1.c junk2.c | |
2947 chmod 444 Makefile.new | |
2948 mv -f Makefile.new Makefile | |
2949 ) | |
2950 | |
2951 echo creating src/Makefile | |
2952 ( cd src | |
2953 rm -f junk.c junk1.c junk2.c | |
2954 sed -e '/start of cpp stuff/q' \ | |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2955 < Makefile.c > junk1.c |
8636 | 2956 sed -e '1,/start of cpp stuff/d'\ |
39148
b18544b16624
Avoid `$@' which is handled specially in
Gerd Moellmann <gerd@gnu.org>
parents:
38809
diff
changeset
|
2957 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
12580
03d3249e5d24
Rename {src,lib-src}/Makefile.in.in to Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
12525
diff
changeset
|
2958 < Makefile.c > junk.c |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
2959 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
8636 | 2960 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
2961 cat junk1.c junk2.c > Makefile.new | |
2962 rm -f junk.c junk1.c junk2.c | |
2963 chmod 444 Makefile.new | |
2964 mv -f Makefile.new Makefile | |
2965 ) | |
10632
202c70b39c10
Create a .gdbinit that sources the real one, if using a different
David J. MacKenzie <djm@gnu.org>
parents:
10530
diff
changeset
|
2966 |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
2967 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
10632
202c70b39c10
Create a .gdbinit that sources the real one, if using a different
David J. MacKenzie <djm@gnu.org>
parents:
10530
diff
changeset
|
2968 echo creating src/.gdbinit |
40054
37e17a8f108b
Make ready for autoconf 2.5x.
Andreas Schwab <schwab@suse.de>
parents:
39148
diff
changeset
|
2969 echo source $srcdir/src/.gdbinit > src/.gdbinit |
10632
202c70b39c10
Create a .gdbinit that sources the real one, if using a different
David J. MacKenzie <djm@gnu.org>
parents:
10530
diff
changeset
|
2970 fi |
202c70b39c10
Create a .gdbinit that sources the real one, if using a different
David J. MacKenzie <djm@gnu.org>
parents:
10530
diff
changeset
|
2971 |
18655
7ddb2d92ef16
(leim/Makefile): Generate this.
Richard M. Stallman <rms@gnu.org>
parents:
18499
diff
changeset
|
2972 # This is how we know whether to re-run configure in certain cases. |
7ddb2d92ef16
(leim/Makefile): Generate this.
Richard M. Stallman <rms@gnu.org>
parents:
18499
diff
changeset
|
2973 touch src/config.stamp |
7ddb2d92ef16
(leim/Makefile): Generate this.
Richard M. Stallman <rms@gnu.org>
parents:
18499
diff
changeset
|
2974 |
36353
f98c16e68579
Use AC_EGREP_CPP to check if the C preprocessor
Gerd Moellmann <gerd@gnu.org>
parents:
35290
diff
changeset
|
2975 ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"]) |
33674
8501df083ce8
(AC_OUTPUT): Arrange to emit definitions of
Gerd Moellmann <gerd@gnu.org>
parents:
33668
diff
changeset
|
2976 |