annotate configure.in @ 140:585fb297b004 r20-2b4

Import from CVS: tag r20-2b4
author cvs
date Mon, 13 Aug 2007 09:32:43 +0200
parents b980b6286996
children 318232e2a3f0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1 dnl -*- mode: m4; -*-
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 dnl Synched up with: FSF 19.31.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 dnl (19.29 -- 19.31 use Autoconf 2.x instead of Autoconf 1.x.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 dnl Some stuff related to this change has not been synched because
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 dnl it can't be until we switch to Autoconf 2.x.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 dnl This is an autoconf script.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 dnl To rebuild the `configure' script from this, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 dnl autoconf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 dnl in the directory containing this script. You must have autoconf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 dnl version 1.9 or later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 dnl The following text appears in the resulting `configure' script,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 dnl explaining how to rebuild it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 AC_PREREQ(1.9)dnl means 'delete newline' and this one needs to be here
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
17 #!/bin/sh
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 #### Configuration script for XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 #### Copyright (C) 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #### Copyright (C) 1995, 1996 Ben Wing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ### Don't edit this script!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ### This script was automatically generated by the `autoconf' program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ### from the file `./configure.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ### To rebuild it, execute the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ### autoconf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ### in the this directory. You must have autoconf version 1.9 or later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ### This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 ### XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ### under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ### the Free Software Foundation; either version 2, or (at your
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 ### option) any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 ### XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ### WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ### General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ### You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ### along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ### 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ### Since XEmacs has configuration requirements that autoconf can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ### meet, this file is an unholy marriage of custom-baked
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ### configuration code and autoconf macros.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ### We use the m4 quoting characters [ ] (as established by the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ### autoconf system) to include large sections of raw sewage - Oops, I
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ### mean, shell code - in the final configuration script.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 ### Usage: configure config_name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ### If configure succeeds, it leaves its status in config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ### If configure fails after disturbing the status quo,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ### config.status is removed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ### Remove any more than one leading "." element from the path name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ### If we don't remove them, then another "./" will be prepended to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ### the file name each time we use config.status, and the program name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ### will get larger and larger. This wouldn't be a problem, except
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ### that since progname gets recorded in all the Makefiles this script
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ### produces, move-if-change thinks they're different when they're
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ### not.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 ### It would be nice if we could put the ./ in a \( \) group and then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 ### apply the * operator to that, so we remove as many leading ./././'s
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 ### as are present, but some seds (like Ultrix's sed) don't allow you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 ### apply * to a \( \) group. Bleah.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 progname="`echo $0 | sed 's:^\./\./:\./:'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 # Establish some default values #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
81 #run_in_place='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 prefix='/usr/local'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 exec_prefix='${prefix}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 bindir='${exec_prefix}/bin'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 # FSF 19.29 changes to:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 # datadir='${prefix}/share'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 # sharedstatedir='${prefix}/com'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 # libexecdir='${exec_prefix}/libexec'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 datadir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 statedir='${prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 libdir='${exec_prefix}/lib'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 mandir='${prefix}/man/man1'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 infodir='${prefix}/lib/xemacs-${version}/info'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 infodir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 lispdir='${datadir}/xemacs-${version}/lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 lispdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 sitelispdir='${datadir}/xemacs/site-lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 etcdir='${datadir}/xemacs-${version}/etc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 etcdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 lockdir='${statedir}/xemacs/lock'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 lockdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 archlibdir='${libdir}/xemacs-${version}/${configuration}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 archlibdir_user_defined='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 with_menubars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 with_scrollbars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106 with_dialogs=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 const_is_losing='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 puresize=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 cflags='NO_CFLAGS_DEFINED'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 dynamic=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 with_x11=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 rel_alloc='default'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 use_system_malloc='default'
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
114 internal_makefile_list='Makefile lib-src/Makefile.in src/Makefile.in lwlib/Makefile.in dynodump/Makefile.in'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 energize_version='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 native_sound_lib=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 # make normal error-checking be the default in alpha and beta versions, so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 # that bugs get noticed. Change this for released versions.
126
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
119 error_check_default='no'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 error_check_extents=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 error_check_typecheck=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 error_check_bufpos=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 error_check_gc=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 error_check_malloc=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 # debug=yes must be set when error checking is present. This should be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 # fixed up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 debug=$error_check_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 quantify='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 # use-assertions should be 'yes' by default. Too many people in this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 # world have core dumps turned off by default or "can't find where the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 # core file went". At least we should get some useful output ...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 use_assertions='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 # the following is set to yes or no later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 with_gif=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 # the following is set to yes or no later.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 with_toolbars=''
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 with_tty='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 use_union_type='no'
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
139 with_dnet=''
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 # # gnu echo silently eats `--help', `--version', `-n', `-e', `-E', `-n'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 # # other versions of echo eat any strings beginning with `-n'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 # # when parsing arguments, special case these strings and don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 # # pass them through echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 # echo=/bin/echo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 # this approach abandoned in favor of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 # echo "" ${stuff_to_filter} | sed -e 's:^ ::'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 # On Sun systems, people sometimes set up the variable CPP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 # with a value that is a directory, not an executable at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 # Detect that case, and ignore that value.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
154 test -n "$CPP" -a -d "$CPP" && CPP=
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 # Usage messages #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
162 short_usage="Usage: ${progname} CONFIGURATION [[-OPTION[=VALUE] ...]]
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 Set compilation and installation parameters for XEmacs, and report.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 CONFIGURATION specifies the machine and operating system to build for.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 Note that for most of the following options, you can explicitly enable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 them using \`--OPTION=yes' and explicitly disable them using \`--OPTION=no'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 This is especially useful for auto-detected options.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 Options marked with a (*) are autodetected.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 General options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 --help Issue this usage message.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 --verbose Display the results of configure tests.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 --extra-verbose Also display the output of any compiler invocation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (Useful when feature tests are coming out wrong.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 Compiler options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 --compiler=XXXX Specify compiler.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 --with-gcc (*) Use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 --with-lcc Use Lucid's LCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 --with-gcc=no Don't use GCC to compile XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 --with-gnu-make Write the Makefiles to take advantage of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 special features of GNU Make. (GNU Make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 works fine on the Makefiles even without this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 option. This just allows for simultaneous
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 in-place and --srcdir building.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 --cflags=FLAGS Override the default values for CFLAGS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 --site-includes=DIR Other header file directories. Separate multiple
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 dirs with spaces and use quotes to enclose.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 --site-libraries=DIR Other library directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 --site-runtime-libraries=DIR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 Paths to add with -R flag.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 --dynamic=yes Link dynamically if supported by system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 --dynamic=no Force static linking on systems where dynamic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 linking is the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 --srcdir=DIR Look for the XEmacs source files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 See also --with-gnu-make.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 --const-is-losing=no Allow the use of const in the source code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 Installation options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 --prefix=DIR Install files below DIR. Defaults to \`${prefix}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 Window-system options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 --with-x (*) Support the X Window System.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 --with-x=no Don't support X.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 --x-includes=DIR Search for X header files in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 --x-libraries=DIR Search for X libraries in DIR.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 --with-menubars=TYPE Use TYPE menubars (lucid, motif, or no). The Lucid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 widgets emulate Motif (mostly) but are faster.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 *WARNING* The Motif menubar is currently broken.
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
221 --with-scrollbars=TYPE Use TYPE scrollbars (lucid, motif, athena,
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
222 athena3d, or no).
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
223 --with-dialogs=TYPE Use TYPE dialog boxes (motif, athena, athena3d, or no).
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 (Lucid menubars and scrollbars are the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 Motif dialog boxes will be used if Motif can be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 found.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 --with-cde (*) Compile in support for CDE drag and drop.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
228 --with-offix (*) Compile in support for OffiX drag and drop.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 --with-xpm (*) Compile with support for XPM files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 It is highly recommended that you obtain XPM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 (version 3.4g or better) if you don't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 have it. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 --with-xmu=no (*) For those unfortunates whose vendors don't ship Xmu.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 Additional features:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 --with-toolbars=no Don't compile with any toolbar support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 --with-tooltalk Support the ToolTalk IPC protocol.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 --with-sparcworks Support the Sun Sparcworks development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 --with-energize Support the Lucid Energize development environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 This doesn't currently work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 --with-socks Compile with support for SOCKS (an Internet proxy).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 --with-term Compile with support for TERM (a way to multiplex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 serial lines and provide vaguely Internet-like
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 functionality over a simple dialup connection,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 used on Linux and other systems. NOTE: We can't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 guarantee that our TERM support coexists well
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 with standard Internet connections).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 --with-xface (*) Compile with support for X-Face mail header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 conversion. Requires the compface library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 --with-gif Compile with support for GIF image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 This requires no special support and defaults to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 \`yes'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 --with-jpeg (*) Compile with support for JPEG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 Requires libjpeg from the Independent JPEG Group.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 --with-png (*) Compile with support for PNG image conversion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 Requires libpng. Get it from the XEmacs FTP site.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 Accepted values are \`yes', \`no', and \`gnuz'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 if you want to use -lgz instead of -lz.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 --with-tiff Compile with support for TIFF image conversion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 (not yet implemented).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 --with-database=type (*) Compile with database support. Valid types are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 \`no' or a comma-separated list of one or more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 of \`dbm', \`gnudbm', or \`berkdb'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 --external-widget Compile with external widget support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 --with-sound=native (*) Compile with native sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 --with-sound=nas Compile with network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 --with-sound=both Compile with native and network sound support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 --native-sound-lib=LIB Native sound support library. Needed on Suns
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 with --with-sound=both because both sound libraries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274 are called libaudio.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 --with-mocklisp Compile with Mocklisp support. Don't do this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 unless you have a Mocklisp program that you need
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277 to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 --usage-tracking Enable some Sun-internal code. If you don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 know what this is, you don't want it.
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
280 --with-pop support POP for mail retrieval
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
281 --with-kerberos support Kerberos-authenticated POP
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
282 --with-hesiod support Hesiod to get the POP server host
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
283 --with-dnet (*) Compile with support for DECnet.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
285 Internationalization options:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
286
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
287 --with-mule Compile with Mule (MUlti-Lingual Emacs) support,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
288 needed to suport non-Latin-1 (including Asian) languages.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
289 --with-xim=xlib Compile with support for X input methods,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
290 --with-xim=motif (*) Used in conjunction with Mule support.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
291 Use either raw Xlib to provide XIM support, or
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
292 the Motif XmIm* routines (when available).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
293 If the XmIm* routines are autodetected,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
294 then the default is --with-xim=motif, else --with-xim=no.
140
585fb297b004 Import from CVS: tag r20-2b4
cvs
parents: 136
diff changeset
295 NOTE: On some systems like SunOS4 use of this option
585fb297b004 Import from CVS: tag r20-2b4
cvs
parents: 136
diff changeset
296 will cause XEmacs to crash at startup.
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
297 --with-canna Compile with support for Canna (a Japanese input method
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
298 used in conjunction with Mule support).
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
299 --with-wnn Compile with support for WNN (a multi-language input method
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
300 used in conjunction with Mule support).
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
301 This is beta level code.
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
302 --with-wnn6 Compile with support for WNN version 6
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
303 This is alpha level code.
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
304 --wnn-includes=DIR Search for WNN header files in DIR.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
305 --wnn-libraries=DIR Search for WNN libraries in DIR.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
306 --with-i18n3 Compile with I18N level 3 (support for message
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
307 translation). This doesn't currently work.
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
308 --canna-includes=DIR Search for Canna header files in DIR.
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
309 --canna-libraries=DIR Search for Canna libraries in DIR.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
310
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 Debugging options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314 --debug Compile with support for debugging XEmacs.
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
315 (Causes code-size increase and little loss of speed.)
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
316 --error-checking=TYPE[[,TYPE]]...
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 Compile with internal error-checking added.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 Causes noticeable loss of speed. Valid types
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319 are extents, bufpos, malloc, gc, typecheck.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 --error-checking=none Disable all internal error-checking (the default).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 --error-checking=all Enable all internal error-checking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 --memory-usage-stats Compile with additional code to allow you to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 determine what XEmacs's memory is being used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 for. Causes a small code increase but no loss
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325 of speed. Normally enabled when --debug is given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 --no-doc-file Don't rebuild the DOC file unless it's explicitly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 deleted. Only use during development. (It speeds
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 up the compile-run-test cycle.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 --use-union-type Enable or disable use of a union, instead of an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 int, for the fundamental Lisp_Object type; this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 provides stricter type-checking. Only works with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 some systems and compilers.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 Other options:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 --puresize=VALUE Override default amount of space for pure Lisp code.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 --rel-alloc Use the relocating allocator (default for this option
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 is system-dependent).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 --use-system-malloc Force use of the system malloc, rather than GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341 malloc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 You may also specify any of the \`path' variables found in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 so on. Note that we recommend against explicitly setting any of these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 variables. See the INSTALL file for a complete list plus the reasons
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
347 we advise not changing them.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 If successful, ${progname} leaves its status in config.status. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 unsuccessful after disturbing the status quo, it removes config.status."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 # Options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
358 define([USAGE_ERROR],
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
359 [(echo "${progname}: Usage error:"
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
360 echo " " $1
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
361 echo " Use \`${progname} --help' for more details.") >&2 && exit 1])
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
362
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 ### Record all the arguments, so we can save them in config.status.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 arguments="$@"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 ### Shell Magic: Quote the quoted arguments in ARGUMENTS. At a later date,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 ### in order to get the arguments back in $@, we have to do an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 ### `eval set x "$quoted_arguments"; shift'.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
369 ### We use sed to turn embedded ' into '"'"'. I truly hate sh's quoting.
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
370 quoted_sed_magic=s/"'"/"'"'"'"'"'"'"'"/g
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 quoted_arguments=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 for i in "$@"; do
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
373 case "$i" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
375 | --no-cr | --no-c) ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
376 -norecursion | --norecursion | --norecursio | --norecursi \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
377 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
378 *)
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
379 quoted_i="`echo $i | sed $quoted_sed_magic`"
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
380 quoted_arguments="$quoted_arguments '$quoted_i'" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
381 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
384 ### Don't use shift -- that destroys the argument list, which autoconf needs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
385 ### to produce config.status. It turns out that "set - ${arguments}" doesn't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
386 ### work portably.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387 ### However, it also turns out that many shells cannot expand ${10} at all.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 ### So using an index variable doesn't work either. It is possible to use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
389 ### some shell magic to make 'set x "$arguments"; shift' work portably.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
390 while test $# != 0; do
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
391 arg="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
392 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 ## Anything starting with a hyphen we assume is an option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
395 -* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
396 ## Separate the switch name from the value it's being given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
397 case "${arg}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398 -*=*)
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
399 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\([[^=]]*\)=.*$:\1:'`
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
400 val=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*[[^=]]*=\(.*\)$:\1:'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 valomitted=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403 # ## special case these strings since echo may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 # ## silently eat them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 # --help ) opt=help val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406 # --version ) opt=version val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 # -e ) opt=e val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
408 # -E ) opt=E val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 # -n ) opt=n val=yes valomitted=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410 -*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 ## If FOO is a boolean argument, --FOO is equivalent to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 ## --FOO=yes. Otherwise, the value comes from the next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 ## argument - see below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 opt=`echo '' ${arg} | sed -e 's:^ ::' -e 's:^-*\(.*\)$:\1:'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 val="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 valomitted=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 ## Change `-' in the option name to `_'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 optname="${opt}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 opt="`echo '' ${opt} | sed -e 's:^ ::' | tr - _`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
423
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 ## Process the option.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
425 case "${opt}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
426
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
427 ## Process (many) boolean options
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
428 run_in_place | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
429 with_x | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
430 with_x11 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
431 with_gcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
432 with_lcc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
433 with_gnu_make | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
434 dynamic | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
435 with_term | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
436 with_cde | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
437 with_offix | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
438 with_xpm | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
439 with_gif | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
440 with_jpeg | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
441 with_tiff | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
442 with_socks | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
443 with_xface | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
444 with_xmu | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
445 quantify | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
446 with_toolbars | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
447 with_tty | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
448 with_i18n3 | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
449 with_mule | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
450 with_canna | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
451 with_wnn | \
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
452 with_wnn6 | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
453 with_mocklisp | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
454 with_energize | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
455 with_sparcworks | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
456 with_tooltalk | \
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
457 with_pop | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
458 with_kerberos | \
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
459 with_hesiod | \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
460 with_dnet | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
461 external_widget | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
462 verbose | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
463 extra_verbose | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
464 const_is_losing | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
465 usage_tracking | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
466 use_union_type | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
467 debug | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
468 use_assertions | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
469 memory_usage_stats | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
470 no_doc_file )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 ## Make sure the value given was either "yes" or "no".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 n | no ) val=no ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
475 * ) USAGE_ERROR("The \`--${optname}' option requires a boolean value: \`yes' or \`no'.") ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
477 eval "${opt}=\"${val}\"" ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
478
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
479
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
480 ## Options that take a user-supplied value, as in --puresize=8000000
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
481 srcdir | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
482 compiler | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
483 puresize | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
484 native_sound_lib | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
485 x_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
486 x_libraries | \
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
487 wnn_includes | \
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
488 wnn_libraries | \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
489 canna_includes | \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
490 canna_libraries | \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
491 site_includes | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
492 site_libraries | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
493 site_runtime_libraries )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
494 ## If the value was omitted, get it from the next argument.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
495 if test "${valomitted}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
496 ## Get the next argument from the argument list, if there is one.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
497 if test "$#" = 0 ; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
498 USAGE_ERROR("The \`--${optname}' option requires a value.");
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
502 eval "${opt}=\"${val}\""
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
503 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
504
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
505 ### Options that take "yes", "no", or "default" values
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
506 rel_alloc | \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
507 use_system_malloc )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
508 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
509 y | ye | yes ) val=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510 n | no ) val=no ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
511 d | de | def | defa | defau | defaul | default )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
512 val=default ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
513 * ) USAGE_ERROR(["The \`--${optname}' option requires one of these values:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
514 \`yes', \`no', or \`default'."]) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
515 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
516 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
519 ## Has the user requested database support?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
520 "with_database" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
521 with_database_berkdb=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
522 with_database_dbm=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
523 with_database_gnudbm=no
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
524 ## Make sure the value given was `no' or a list of berkdb, dbm, gnudbm
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
525 for x in `echo "${val}" | sed 's/,/ /'` ; do
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
526 case "${x}" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
527 no ) : ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
528 b | be | ber | berk | berkd | berkdb ) with_database_berkdb=yes ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
529 d | db | dbm ) with_database_dbm=yes ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
530 g | gn | gnu | gnud | gnudb | gnudbm ) with_database_gnudbm=yes ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
531 * ) USAGE_ERROR(["The \`--${optname}' option value
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
532 must be either \`no' or a comma-separated list
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
533 of one or more of \`berkdb', \`dbm', or \`gnudbm'."]) ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
534 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
535 done
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
536 if test "${with_database_dbm}" = "yes" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
537 "${with_database_gnudbm}" = "yes" ; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
538 USAGE_ERROR("Only one of \`dbm' and \`gnudbm' may be specified
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
539 with the \`--${optname}' option.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
541 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
542
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
543 ## Has the user requested sound support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
544 "with_sound" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545 ## value can be native, nas or both. yes is allowed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
546 ## as a backwards compatible synonym for native
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
547 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
548 y | ye | yes ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
549 n | no | non | none ) val=no;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
550 na | nat | nati | nativ | native ) val=native ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 ne | net | neta | netau | netaud | netaudi | netaudio | nas ) val=nas ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 b | bo | bot | both ) val=both;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
553 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
554 \`native', \`nas', \`both', or \`none'."]) ;;
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
555 esac
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
556 eval "${opt}=\"${val}\""
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
557 ;;
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
558
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
559 ## Has the user requested XIM support?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
560 "with_xim" )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
561 ## value can be xlib or motif
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
562 case "${val}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
563 y | ye | yes ) val=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
564 n | no | non | none ) val=no ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
565 x | xl | xli | xlib ) val=xlib ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
566 m | mo | mot | moti | motif ) val=motif ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
567 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
568 \`motif', \`xlib', \`yes', or \`no'."]) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
569 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
570 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
571 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
572
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
573 ## Has the user requested PNG support?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
574 "with_png" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
575 ## Make sure the value given was either "yes", "no", or "gnuz".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
576 case "${val}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
577 y | ye | yes ) val=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
578 n | no ) val=no ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
579 g | gn | gnu | gnuz ) val=gnuz ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
580 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
581 \`yes', \`no', or \`gnuz'."]) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
582 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
583 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
584 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
585
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
586 ## Has the user requested error-checking?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
587 "error_checking" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
588 ## value can be all, none, and/or a list of categories to check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
589 ## Example: --error-checking=all,noextents,nobufpos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
590 ## Example: --error-checking=none,malloc,gc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
591
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
592 for x in `echo "${val}" | sed 's/,/ /'` ; do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
593 case "${x}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
594 # all and none are only permitted as the first in the list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
595 n | no | non | none ) new_default=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
596 a | al | all ) new_default=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
597
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
598 extents ) error_check_extents=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
599 noextents ) error_check_extents=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
600
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601 typecheck ) error_check_typecheck=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
602 notypecheck ) error_check_typecheck=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
603
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
604 bufpos ) error_check_bufpos=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
605 nobufpos ) error_check_bufpos=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
606
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
607 gc ) error_check_gc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
608 nogc ) error_check_gc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
609
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
610 malloc ) error_check_malloc=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
611 nomalloc ) error_check_malloc=no ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
612
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
613 * ) bogus_error_check=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
614 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
615 if test "$bogus_error_check" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
616 \( -n "$new_default" -a -n "$echeck_notfirst" \) ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
617 if test $error_check_default = yes ; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
618 types="\`all' (default), \`none', \`noextents', \`notypecheck', \`nobufpos', \`nogc', and \`nomalloc'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
619 else
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
620 types="\`all', \`none' (default), \`extents', \`typecheck', \`bufpos', \`gc', and \`malloc'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
621 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
622 USAGE_ERROR(["Valid types for the \`--${optname}' option are:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
623 $types."])
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
624 elif test "$new_default" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 error_check_extents=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626 error_check_typecheck=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 error_check_bufpos=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 error_check_gc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 error_check_malloc=$new_default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 new_default= # reset this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632 echeck_notfirst=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 ## Has the user tried to tell us where the X files are?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637 ## I think these are dopey, but no less than three alpha
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 ## testers, at large sites, have said they have their X files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 ## installed in odd places.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 ## Has the user specified one of the path options?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
643 mandir | infodir | lispdir | etcdir | lockdir | archlibdir | \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
644 sitelispdir | docdir )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
645 ## If the value was omitted, get it from the next argument.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
646 if test "${valomitted}" = "yes" ; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
647 if test "$#" = 0 ; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
648 USAGE_ERROR("The \`--${optname}' option requires a value.");
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
649 fi
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
650 val="$1"; shift
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 ## Changing exec_prefix or libdir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 ## of archlibdir. Changing datadir will change the default value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656 ## of etcdir and lispdir. Changing statedir will change the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 ## default value of lockdir.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
658 if test "${opt}" = exec_prefix; then archlibdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
659 elif test "${opt}" = libdir ; then archlibdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
660 elif test "${opt}" = archlibdir ; then archlibdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
661 elif test "${opt}" = lispdir ; then lispdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
662 elif test "${opt}" = etcdir ; then etcdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
663 elif test "${opt}" = datadir ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
664 lispdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
665 etcdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
666 elif test "${opt}" = statedir ; then lockdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
667 elif test "${opt}" = lockdir ; then lockdir_user_defined=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
668 elif test "${opt}" = infodir ; then infodir_user_defined=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 ## Has the user specified values to override CFLAGS?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673 cflags )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 ## If the value was omitted, get it from the next argument.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
675 if test "${valomitted}" = "yes" ; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
676 if test "$#" = 0 ; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
677 USAGE_ERROR("The \`--${optname}' option requires a value.");
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679 val="$1"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 eval "${opt}_specified=1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685 ## --no-create added by autoconf for use by config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 "no_create" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689 ## Has the user asked for some help?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 "usage" | "help" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
691 echo "${short_usage}" | ${PAGER:-more}
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
692 exit 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 ## Has the user specified what toolkit to use for the menubars,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 ## scrollbar or dialogs?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 "with_menubars" | "with_scrollbars" | "with_dialogs" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698 ## value can be lucid, motif, or athena.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 case "${val}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 l | lu | luc | luci | lucid ) val=lucid ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 m | mo | mot | moti | motif ) val=motif ;;
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
702 athena3d | athena-3d ) val=athena3d ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 a | at | ath | athe | athen | athena ) val=athena ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 n | no | non | none ) val=no ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
705 * ) USAGE_ERROR(["The \`--${optname}' option must have one of these values:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
706 \`lucid', \`motif', \`athena', or \`no'."]) ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 eval "${opt}=\"${val}\""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711 ## Fail on unrecognized arguments.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
712 * ) USAGE_ERROR("Unrecognized option: ${arg}") ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
716
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
717 ## Anything not starting with a hyphen we assume is a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
718 ## configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
719 *)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
720 configuration=${arg}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
721 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
723 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
724 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728 # Finish options processing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 ### Get the arguments back. See the diatribe on Shell Magic above.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 eval set x "$quoted_arguments"; shift
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
735 ### Argument interdependencies
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
736 if test "${with_energize}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
737 with_menubars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
738 with_scrollbars="motif"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
739 with_dialogs="motif"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
740 with_tooltalk="yes"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
741 internal_makefile_list="$internal_makefile_list lwlib/energize/Makefile.in"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
742 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
743
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
744 ### --extra-verbose implies --verbose
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
745 test "${extra_verbose}" = yes && verbose=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
746
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
747 ### Sparcworks requires tooltalk
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
748 test "${with_sparcworks}" = yes && with_tooltalk=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
749
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
750 ### debug implies other options
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
751 test "${debug}" = "yes" && use_assertions=yes memory_usage_stats=yes
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
752
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
753 ### with_x is a synonym for with_x11
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
754 test -n "${with_x}" && with_x11="${with_x}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
755
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
756 ### Can't specify 2 compilers
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
757 if test "${with_gcc}" = "yes" -a "${with_lcc}" = "yes"; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
758 USAGE_ERROR("Only one of --with-gcc and --with-lcc may be specified.")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
759 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
760
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
761 ### Ignore useless run-in-place flag
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
762 if test "${run_in_place}" = "yes"; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
763 AC_WARN(The --run-in-place option is ignored because it is unnecessary.)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
764 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
765
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
766 ###########################################################################
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
767 if test "${configuration}" = "" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768 echo '- You did not tell me what kind of host system you want to configure.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 - I will attempt to guess the kind of system this is.' 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 guesssys=`echo ${progname} | sed 's/configure$/config.guess/'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 if configuration=`${CONFIG_SHELL-/bin/sh} ${guesssys}` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 echo "- Looks like this is a ${configuration}" 1>&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 else
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
774 USAGE_ERROR("Failed to guess the system type. You need to tell me.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
778 ### Find the source directory.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 ## If it's not specified, see if `.' or `..' might work.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 "" )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
783 for dir in "`echo $0 | sed 's|//|/|' | sed 's|/[[^/]]*$||'`" "." ".." ; do
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
784 if test -f "$dir/src/lisp.h" -a \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
785 -f "$dir/lisp/version.el" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
786 srcdir="${dir}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
787 break
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
788 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
789 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
790 if test -z "${srcdir}" ; then
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
791 USAGE_ERROR(["Neither the current directory nor its parent seem to
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
792 contain the XEmacs sources. If you do not want to build XEmacs in its
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
793 source tree, you should run \`${progname}' in the directory in which
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
794 you wish to build XEmacs, using the \`--srcdir' option to say where the
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
795 sources may be found."])
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
796 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
799 ## Otherwise, check if the directory they specified is okay.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
800 * )
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
801 if test ! -d "${srcdir}" -o \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
802 ! -f "${srcdir}/src/lisp.h" -o \
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
803 ! -f "${srcdir}/lisp/version.el" ; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
804 USAGE_ERROR(["The directory specified with the \`--srcdir' option,
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
805 \`${srcdir}', doesn't seem to contain the XEmacs sources. You should
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
806 either run the \`${progname}' script at the top of the XEmacs source
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
807 tree, or use the \`--srcdir' option to specify the XEmacs source directory."])
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 ## We check for this now instead of later when we check for other
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 ## programs because we need to use its return value now.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
814 AC_LN_S
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 AC_VERBOSE("setting LN_S to ${LN_S}")
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
817
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 #### Make symlinks for etc, lisp, and info directories while the path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 #### is still relative. We don't symlink lock because someone may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 #### have stuck the source on a read-only partition. Instead we'll
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821 #### create it as an actual directory later on if it doesn't already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 #### exist.
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
823 for dir in lisp etc man info site-lisp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 do
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
825 if test ! -d $dir ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 echo Making symbolic link to ${srcdir}/$dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 ${LN_S} ${srcdir}/$dir .
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829 done
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
830
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 #### Make srcdir absolute, if it isn't already. It's important to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 #### avoid running the path through pwd unnecessary, since pwd can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833 #### give you automounter prefixes, which can go away.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 case "${srcdir}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 /* ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836 . )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 ## We may be able to use the $PWD environment variable to make this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 ## absolute. But sometimes PWD is inaccurate.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
839 if test "${PWD}" != "" -a "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 srcdir="$PWD"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 srcdir="`(cd ${srcdir}; pwd)`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 #### Check if the source directory already has a configured system in it.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
849 if test `pwd` != `sh -c cd ${srcdir} && pwd` \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
850 && test -f "${srcdir}/src/config.h"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 (echo "${progname}: WARNING: The directory tree \`${srcdir}' is being used"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852 echo " as a build directory right now; it has been configured in its own"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 echo " right. To configure in another directory as well, you MUST"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 echo " use GNU make. If you do not have GNU make, then you must"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 echo " now do \`make distclean' in ${srcdir},"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856 echo " and then run ${progname} again.") >&2
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
857 extrasub='/^VPATH[[ ]]*=/c\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 vpath %.c $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 vpath %.h $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 vpath %.y $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 vpath %.l $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862 vpath %.s $(srcdir)\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 vpath %.in $(srcdir)'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 ### Make the necessary directories, if they don't exist.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
867 for dir in ./src ./lib-src ./dynodump ./lwlib ./lock ; do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
868 if test ! -d ${dir} ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 mkdir ${dir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 done
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
872 if test "${with_energize}" = "yes" -a ! -d ./lwlib/energize; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 mkdir ./lwlib/energize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 # Determine the s&m files to use #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882 #### Given the configuration name, set machfile and opsysfile to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 #### names of the m/*.h and s/*.h files we should use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 ### Canonicalize the configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 echo "checking the configuration name"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 # allow -energize prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 internal_configuration=`echo ${configuration} | sed 's/-energize//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889 # allow --sparcworks prefix on configuration name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 internal_configuration=`echo ${configuration} | sed 's/-sparcworks//'`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 if canonical=`${srcdir}/config.sub "${internal_configuration}"` ; then : ; else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 exit $?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895 ### If you add support for a new configuration, add code to this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 ### switch statement to recognize your configuration name and select
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 ### the appropriate operating system and machine description files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 ### You would hope that you could choose an m/*.h file pretty much
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 ### based on the machine portion of the configuration name, and an s-
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 ### file based on the operating system portion. However, it turns out
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 ### that each m/*.h file is pretty manufacturer-specific - for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 ### machines. So we basically have to have a special case for each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906 ### configuration name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 ### As far as handling version numbers on operating systems is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
909 ### concerned, make sure things will fail in a fixable way. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 ### /etc/MACHINES doesn't say anything about version numbers, be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911 ### prepared to handle anything reasonably. If version numbers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 ### matter, be sure /etc/MACHINES says something about it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913 ###
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914 ### Eric Raymond says we should accept strings like "sysvr4" to mean
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 ### "System V Release 4"; he writes, "The old convention encouraged
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916 ### confusion between `system' and `release' levels'."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 machine='' opsys='' unported=no need_dynodump=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 ## NetBSD ports
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 *-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923 opsys=netbsd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
925 sparc-*-netbsd*) machine=sparc ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
926 i[[3-9]]86-*-netbsd*) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 # Yes, this is somewhat bogus.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 machine=hp9000s300 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
930 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
931 pmax-*-netbsd* | mips-*-netbsd* ) machine=pmax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935 ## Acorn RISCiX:
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
936 arm-acorn-riscix1.1* ) machine=acorn opsys=riscix1-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
937 arm-acorn-riscix1.2* | arm-acorn-riscix ) machine=acorn opsys=riscix1-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 ## Alliant machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 ## Strictly speaking, we need the version of the alliant operating
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 ## system to choose the right machine file, but currently the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942 ## configuration name doesn't tell us enough to choose the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943 ## one; we need to give alliants their own operating system name to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 ## do this right. When someone cares, they can help us.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
945 fx80-alliant-* ) machine=alliant4 opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
946 i860-alliant-* ) machine=alliant-2800 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948 ## Alpha (DEC) machines.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 ## XEmacs change: split apart into numerous files.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
950 alpha-*-* )
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
951 machine=alpha
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
952 case "${canonical}" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
953 *-dec-osf1.3 | *-dec-osf2* ) opsys=decosf1-3 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
954 *-dec-osf1.2 | *-dec-osf1* ) opsys=decosf1-2 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
955
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
956 ## XEmacs: Add switch for OSF 1 version 3 (roth@cse.ucsc.edu)
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
957 ## XEmacs: Add switch for Digital Unix version 4 (srivasta@pilgrim.umass.edu)
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
958 *-dec-osf3.[[2-9]] ) opsys=decosf3-2 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
959 *-dec-osf3* ) opsys=decosf3-1 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
960 *-dec-osf4* ) opsys=decosf4-0 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
961 *-*-linux* ) opsys=linux ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
962 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
963 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 ## Altos 3068
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
966 m68*-altos-sysv* ) machine=altos opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 ## Amdahl UTS
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
969 580-amdahl-sysv* ) machine=amdahl opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 ## Apollo, Domain/OS
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
972 m68*-apollo-* ) machine=apollo opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 ## AT&T 3b2, 3b5, 3b15, 3b20
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
975 we32k-att-sysv* ) machine=att3b opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 ## AT&T 3b1 - The Mighty Unix PC!
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
978 m68*-att-sysv* ) machine=7300 opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
980 ## Bull machines
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
981 rs6000-bull-bosx* ) machine=ibmrs6000 opsys=aix3-2 ;; # dpx20
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
982 m68*-bull-sysv3* ) machine=dpx2 opsys=usg5-3 ;; # dpx2
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
983 m68*-bull-sysv2* ) machine=sps7 opsys=usg5-2 ;; # sps7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985 ## CCI 5/32, 6/32 -- see "Tahoe".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 ## Celerity
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988 ## I don't know what configuration name to use for this; config.sub
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 ## doesn't seem to know anything about it. Hey, Celerity users, get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 ## in touch with us!
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
991 celerity-celerity-bsd* ) machine=celerity opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993 ## Clipper
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 ## What operating systems does this chip run that XEmacs has been
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995 ## tested on?
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
996 clipper-* ) machine=clipper
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
997 ## We'll use the catch-all code at the bottom to guess the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
998 ## operating system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
999 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1001 ## Convex
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1002 *-convex-bsd* | *-convex-convexos* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1003 machine=convex opsys=bsd4-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1004 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1005 NON_GNU_CPP="cc -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1006 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1007
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1008 ## Cubix QBx/386
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1009 i[[3-9]]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1010
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1011 ## Cydra 5
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1012 cydra*-cydrome-sysv* ) machine=cydra5 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1013
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1014 ## Data General AViiON Machines
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1015 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1016 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) machine=aviion opsys=dgux5-4r3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1017 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) machine=aviion opsys=dgux5-4r2 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1018 m88k-dg-dgux* ) machine=aviion opsys=dgux ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1019
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1020 ## Dec Mips machines
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1021 mips-dec-* )
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1022 machine=pmax
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1023 case "${canonical}" in
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1024 *-*-ultrix[[0-3]].* | *-*-ultrix4.0* | *-*-bsd4.2* ) opsys=bsd4-2 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1025 *-*-ultrix4.[[12]]* | *-*-bsd* ) opsys=bsd4-3 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1026 *-*-ultrix* ) opsys=ultrix4-3 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1027 *-*-osf* ) opsys=osf1 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1028 *-*-mach_bsd4.3* ) opsys=mach-bsd4-3 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1029 esac
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1030 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1031
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1032 ## Motorola Delta machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1033 m68k-motorola-sysv* | m68000-motorola-sysv* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1034 machine=delta opsys=usg5-3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1035 if test -z "`type gnucc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1036 then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1037 if test -s /etc/167config
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1038 then CC="gnucc -m68040"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1039 else CC="gnucc -m68881"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1040 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1041 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1042 if test -z "`type gcc | grep 'not found'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1043 then CC=gcc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1044 else CC=cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1045 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1046 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1047 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1048 m88k-motorola-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1049 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1050 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1051 # I hope there are not other 4.0 versions for this machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1052 # which really need usg5-4 instead.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1053 machine=delta88k opsys=usg5-4-2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1054 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1055 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) machine=delta88k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1056
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1057 ## Dual machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1058 m68*-dual-sysv* ) machine=dual opsys=usg5-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1059 m68*-dual-uniplus* ) machine=dual opsys=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1060
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1061 ## Elxsi 6400
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1062 elxsi-elxsi-sysv* ) machine=elxsi opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1063
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1064 ## Encore machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1065 ns16k-encore-bsd* ) machine=ns16000 opsys=umax ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1067 ## Gould Power Node and NP1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1068 pn-gould-bsd4.2* ) machine=gould opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1069 pn-gould-bsd4.3* ) machine=gould opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1070 np1-gould-bsd* ) machine=gould-np1 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1071
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1072 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1073 ## as far as XEmacs is concerned).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1074 m88k-harris-cxux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1075 # Build needs to be different on 7.0 and later releases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1076 case "`uname -r`" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1077 [[56]].[[0-9]] ) machine=nh4000 opsys=cxux ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1078 [[7]].[[0-9]] ) machine=nh4000 opsys=cxux7 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1079 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1080 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1081 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1082 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1083 m68k-harris-cxux* ) machine=nh3000 opsys=cxux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1084 ## Harris power pc NightHawk running Power UNIX (Series 6000)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1085 powerpc-harris-powerunix )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1086 machine=nh6000 opsys=powerunix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1087 NON_GNU_CPP="cc -Xo -E -P"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1088 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1089
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1090 ## Honeywell XPS100
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1091 xps*-honeywell-sysv* ) machine=xps100 opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1092
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1093 ## HP 9000 series 200 or 300
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1094 m68*-hp-bsd* ) machine=hp9000s300 opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1095
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1096 ## HP-UX on HP's
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1097 *-hp-hpux* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1098 NON_GNU_CC="cc -Aa"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1099 NON_GNU_CPP="cc -Aa -E"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1100
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1101 ### Figure out machine and opsys orthogonally
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1102 case "${canonical}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1103 m68* ) machine=hp9000s300 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1104 hppa* ) machine=hp800 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1105 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1106
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1107 case "${canonical}" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1108 *-hp-hpux7* ) opsys=hpux ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1109 *-hp-hpux8* ) opsys=hpux8 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1110 *-hp-hpux9* ) opsys=hpux9 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1111 *-hp-hpux10* ) opsys=hpux10 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1112 * )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1113 case "`uname -r`" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1114 ## Someone's system reports A.B8.05 for this.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1115 ## I wonder what other possibilities there are.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1116 *.B8.* ) opsys=hpux8 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1117 *.08.* ) opsys=hpux8 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1118 *.09.* ) opsys=hpux9 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1119 *.10.* ) opsys=hpux10 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1120 * ) opsys=hpux ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1121 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1122 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1123 esac
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1124
92
6a43545367ac Import from CVS: tag r20-0test1
cvs
parents: 90
diff changeset
1125 if test $opsys = hpux10 ; then
90
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1126 NON_GNU_CC="cc -Ae"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1127 NON_GNU_CPP="cc -Ae -E"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1128 fi
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
1129
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1130 case "${canonical}" in *-hp-hpux*shr* ) opsys="${opsys}-shr" ;; esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1131 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1132
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1133 hppa-*-nextstep* ) machine=hp800 opsys=nextstep ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1134
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1135 ## Orion machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1136 orion-orion-bsd* ) machine=orion opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1137 clipper-orion-bsd* ) machine=orion105 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1139 ## IBM machines
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1140 i[[3-9]]86-ibm-aix1.1* ) machine=ibmps2-aix opsys=usg5-2-2 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1141 i[[3-9]]86-ibm-aix1.[[23]]* | i[[3-9]]86-ibm-aix* ) machine=ibmps2-aix opsys=usg5-3 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1142 i370-ibm-aix*) machine=ibm370aix opsys=usg5-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1143 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) machine=ibmrs6000 opsys=aix3-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1144 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) machine=ibmrs6000 opsys=aix3-2-5 ;;
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
1145 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) machine=ibmrs6000 opsys=aix4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1146 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) machine=ibmrs6000 opsys=aix4-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1147 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) machine=ibmrs6000 opsys=aix4 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1148 rs6000-ibm-aix* | powerpc-ibm-aix* ) machine=ibmrs6000 opsys=aix3-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1149 romp-ibm-bsd4.3* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1150 romp-ibm-bsd4.2* ) machine=ibmrt opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1151 romp-ibm-aos4.3* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1152 romp-ibm-aos4.2* ) machine=ibmrt opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1153 romp-ibm-aos* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1154 romp-ibm-bsd* ) machine=ibmrt opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1155 romp-ibm-aix* ) machine=ibmrt-aix opsys=usg5-2-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1156 romp-ibm-mach* ) machine=ibmrt opsys=mach-bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1158 ## Integrated Solutions `Optimum V'
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1159 m68*-isi-bsd4.2* ) machine=isi-ov opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1160 m68*-isi-bsd4.3* ) machine=isi-ov opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1161
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1162 ## Intel 386 machines where we do care about the manufacturer
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1163 i[[3-9]]86-intsys-sysv* ) machine=is386 opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1165 ## Prime EXL
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1166 i[[3-9]]86-prime-sysv* ) machine=i386 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1167
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1168 ## Sequent Symmetry running Dynix
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1169 i[[3-9]]86-sequent-bsd* ) machine=symmetry opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1170
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1171 ## Sequent Symmetry running DYNIX/ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1172 ## Use the old cpp rather than the newer ANSI one.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1173 i[[3-9]]86-sequent-ptx* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1174 machine=sequent-ptx opsys=ptx
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1175 NON_GNU_CPP="/lib/cpp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1176 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1177
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1178 ## Unspecified sysv on an ncr machine defaults to svr4.2.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1179 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1180 i[[3-9]]86-ncr-sysv* ) machine=ncr386 opsys=usg5-4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1181
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1182 ## Intel Paragon OSF/1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1183 i860-intel-osf1* ) machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1184
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1185 ## Intel 860
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1186 i860-*-sysv4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1187 machine=i860 opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1188 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1189 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1190 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1191
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1192 ## Masscomp machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1193 m68*-masscomp-rtu* ) machine=masscomp opsys=rtu ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1194
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1195 ## Megatest machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1196 m68*-megatest-bsd* ) machine=mega68 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1198 ## Workstations sold by MIPS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1199 ## This is not necessarily all workstations using the MIPS processor -
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1200 ## Irises are produced by SGI, and DECstations by DEC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1202 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1203 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1204 ## it gives for choosing between the alternatives seems to be "Use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1205 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1206 ## the BSD world." I'll assume that these are instructions for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1207 ## handling two odd situations, and that every other situation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1208 ## should use mips.h and usg5-2-2, they being listed first.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1209 mips-mips-usg* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1210 machine=mips4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1211 ## Fall through to the general code at the bottom to decide on the OS.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1212 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1213 mips-mips-riscos4 )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1214 machine=mips4
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1215 NON_GNU_CC="cc -systype bsd43"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1216 NON_GNU_CPP="cc -systype bsd43 -E"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1217 case "${canonical}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1218 mips-mips-riscos4* ) opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1219 mips-mips-riscos5* ) opsys=riscos5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1220 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1221 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1222 mips-mips-bsd* ) machine=mips opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1223 mips-mips-* ) machine=mips opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1225 ## NeXT
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1226 m68*-next-* | m68k-*-nextstep* ) machine=m68k opsys=nextstep ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1227
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1228 ## The complete machine from National Semiconductor
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1229 ns32k-ns-genix* ) machine=ns32000 opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1230
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1231 ## NCR machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1232 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) machine=tower32 opsys=usg5-2-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1233 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) machine=tower32v3 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1234
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1235 ## Nixdorf Targon 31
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1236 m68*-nixdorf-sysv* ) machine=targon31 opsys=usg5-2-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1237
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1238 ## Nu (TI or LMI)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1239 m68*-nu-sysv* ) machine=nu opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1240
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1241 ## Plexus
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1242 m68*-plexus-sysv* ) machine=plexus opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1244 ## Pyramid machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1245 ## I don't really have any idea what sort of processor the Pyramid has,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1246 ## so I'm assuming it is its own architecture.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1247 pyramid-pyramid-bsd* ) machine=pyramid opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1248
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1249 ## Sequent Balance
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1250 ns32k-sequent-bsd4.2* ) machine=sequent opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1251 ns32k-sequent-bsd4.3* ) machine=sequent opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1252
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1253 ## Siemens Nixdorf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1254 mips-siemens-sysv* | mips-sni-sysv*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1255 machine=mips-siemens opsys=usg5-4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1256 NON_GNU_CC=/usr/ccs/bin/cc
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1257 NON_GNU_CPP=/usr/ccs/lib/cpp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1258 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1260 ## Silicon Graphics machines
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1261 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1262 m68*-sgi-iris3.5* ) machine=irist opsys=iris3-5 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1263 m68*-sgi-iris3.6* | m68*-sgi-iris*) machine=irist opsys=iris3-6 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1264 ## Iris 4D
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1265 mips-sgi-irix3.* ) machine=iris4d opsys=irix3-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1266 mips-sgi-irix4.* ) machine=iris4d opsys=irix4-0 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1267 mips-sgi-irix6* ) machine=iris4d opsys=irix6-0 NON_GNU_CC="cc -Olimit 2000" ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1268 mips-sgi-irix5.[[3-9]]* ) machine=iris4d opsys=irix5-3 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1269 mips-sgi-irix5.2* ) machine=iris4d opsys=irix5-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1270 mips-sgi-irix5.1* ) machine=iris4d opsys=irix5-1 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1271 mips-sgi-irix* ) machine=iris4d opsys=irix5-0 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1272
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1273 ## SONY machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1274 m68*-sony-bsd4.2* ) machine=news opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1275 m68*-sony-bsd4.3* ) machine=news opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1276 m68*-sony-newsos3* | m68*-sony-news3*) machine=news opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1277 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) machine=news-risc opsys=bsd4-3 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1278 mips-sony-news* ) machine=news-risc opsys=newsos5 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1279
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1280 ## Stride
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1281 m68*-stride-sysv* ) machine=stride opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1282
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1283 ## Suns
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1284 sparc-*-linux* ) machine=sparc opsys=linux ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1285
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1286 *-*-solaris* | *-*-sunos* | *-sun-mach* | *-sun-bsd* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1287 # Hardware type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1288 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1289 m68*-sunos1* ) machine=sun1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1290 m68*-sunos2* ) machine=sun2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1291 m68* ) machine=sun3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1292 i[[3-9]]86*-sun-sunos[[34]]* ) machine=sun386 ;;
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1293 i[[3-9]]86-*-* ) machine=intel386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1294 rs6000* ) machine=rs6000 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1295 sparc* ) machine=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1296 powerpc* ) machine=powerpc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1297 * ) unported=yes ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1298 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1299
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1300 # Make `canonical' even more so.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1301 case "${canonical}" in *-sunos5*)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1302 canonical="`echo \"${canonical}\" | sed -e s/sunos5/solaris2/`";;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1303 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1304
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1305 # On SunOS 4, use /usr/lib/cpp, sans dynodump, /bin/ranlib
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1306 # On SunOS 5, use /usr/ccs/lib/cpp, need dynodump, RANLIB not needed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1307 # But, SunOS 5.6 no longer needs dynodump because it has a similar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1308 # function integrated.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1309 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1310 *-sunos4* )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1311 test -f /usr/lib/cpp && NON_GNU_CPP=/usr/lib/cpp ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1312 *-solaris2* )
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1313 test -f /usr/ccs/lib/cpp && NON_GNU_CPP=/usr/ccs/lib/cpp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1314 RANLIB=':'
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1315 case "${canonical}" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1316 *-solaris2.[[6-9]]* ) need_dynodump=no ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1317 *-solaris2* ) need_dynodump=yes ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1318 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1319 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1320
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1321 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1322 ## The Sun386 didn't get past 4.0.
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1323 i[[3-9]]86-*-sunos4* ) opsys=sunos4-0 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1324 *-sunos4.0* ) opsys=sunos4-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1325 *-sunos4.1.2* ) opsys=sunos4-1-2 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1326 *-sunos4.1.3* ) opsys=sunos4-1-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1327 *-sunos4.1.[[4-9]]* ) opsys=sunos4-1-4 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1328 *-sunos4* | *-sunos ) opsys=sunos4-1 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1329
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1330 *-solaris2.3* ) opsys=sol2-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1331 *-solaris2.4* ) opsys=sol2-4 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1332 *-solaris2.5* ) opsys=sol2-5 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1333 *-solaris2.[[6-9]]* ) opsys=sol2-6 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1334 *-solaris* ) opsys=sol2 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1335
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1336 *-mach* ) opsys=mach-bsd4-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1337 * ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1338 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1339
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1340 case "${canonical}" in *-sunos4*shr* ) opsys="${opsys}-shr" ;; esac
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1341
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1342 ## Watch out for a compiler that is guaranteed not to work.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1343 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1344 *-solaris* ) test "$CC" = "/usr/ucb/cc" && unset CC ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1345 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1346 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1347
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1348 sparc-*-nextstep* ) machine=sparc opsys=nextstep ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1349
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1350 ## Tadpole 68k
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1351 m68*-tadpole-sysv* ) machine=tad68k opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1353 ## Tahoe machines
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1354 tahoe-tahoe-bsd4.2* ) machine=tahoe opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1355 tahoe-tahoe-bsd4.3* ) machine=tahoe opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1357 ## Tandem Integrity S2
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1358 mips-tandem-sysv* ) machine=tandem-s2 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1359
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1360 ## Tektronix XD88
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1361 m88k-tektronix-sysv3* ) machine=tekxd88 opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1362
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1363 ## Tektronix 16000 box (6130?)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1364 ns16k-tektronix-bsd* ) machine=ns16000 opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1365 ## Tektronix 4300
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1366 ## src/m/tek4300.h hints that this is a m68k machine.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1367 m68*-tektronix-bsd* ) machine=tek4300 opsys=bsd4-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1368
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1369 ## Titan P2 or P3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1370 ## We seem to have lost the machine-description file titan.h!
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1371 titan-titan-sysv* ) machine=titan opsys=usg5-3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1372
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1373 ## Ustation E30 (SS5E)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1374 m68*-unisys-uniplus* ) machine=ustation opsystem=unipl5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1375
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1376 ## Vaxen.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1377 vax-dec-* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1378 machine=vax
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1379 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1380 *-bsd4.1* ) opsys=bsd4-1 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1381 *-bsd4.2* | *-ultrix[[0-3]].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1382 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1383 *-sysv[[01]]* | *-sysvr[[01]]* ) opsys=usg5-0 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1384 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1385 *-vms* ) opsys=vms ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1386 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1387 * ) unported=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1388 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1389 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1390
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1391 ## Whitechapel MG1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1392 ## We don't know what sort of OS runs on these; we'll let the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1393 ## operating system guessing code below try.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1394 ns16k-whitechapel-* ) machine=mg1 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1395
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1396 ## Wicat
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1397 m68*-wicat-sysv* ) machine=wicat opsys=usg5-2 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1399 ## Intel 386 machines where we don't care about the manufacturer
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1400 i[[3-9]]86-*-* )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1401 machine=intel386
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1402 case "${canonical}" in
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1403 *-isc1.* | *-isc2.[[01]]* ) opsys=386-ix ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1404 *-isc2.2* ) opsys=isc2-2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1405 *-isc4.0* ) opsys=isc4-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1406 *-isc4.* ) opsys=isc4-1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1407 GCC_TEST_OPTIONS=-posix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1408 NON_GCC_TEST_OPTIONS=-Xp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1409 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1410 *-isc* ) opsys=isc3-0 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1411 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1412 *-esix* ) opsys=esix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1413 *-mach* ) opsys=mach-bsd4-3 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1414 *-xenix* ) opsys=xenix ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1415 *-linux* ) opsys=linux ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1416 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1417 *-bsd386* | *-bsdi1* ) opsys=bsd386 ;;
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
1418 *-bsdi3* ) opsys=bsdos3 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1419 *-bsdi2.1* ) opsys=bsdos2-1 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1420 *-bsdi2* ) opsys=bsdos2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1421 *-sco3.2v5* ) opsys=sco5 ;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1422 ## This is a pain. Like the current USL cc, SCO's cc -E
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1423 ## tokenizes as it preprocesses, making configure very
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1424 ## unhappy. Unfortunately, /lib/cpp doesn't understand
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1425 ## flags like "-b elf", so we have to cheat in order to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1426 ## pick up the right defines for UNEXEC from the s-file.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1427 ## 01/05/95 robertl@dgii.com
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1428 if test "${dynamic}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1429 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1430 else
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1431 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1432 fi ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1433 *-386bsd* ) opsys=386bsd ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1434 *-freebsd* ) opsys=freebsd ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1435 *-nextstep* ) opsys=nextstep ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1436 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1437 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1438 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1439
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1440 ## Linux/68k
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1441 m68k-*-linux* ) machine=m68k opsys=linux ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1442
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1443 * ) unported=yes ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1444 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1445
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1446 ### If the code above didn't choose an operating system, just choose
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1447 ### an operating system based on the configuration name. You really
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1448 ### only want to use this when you have no idea what the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1449 ### operating system is; if you know what operating systems a machine
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1450 ### runs, it's cleaner to make it explicit in the case statement
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1451 ### above.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1452 if test -z "${opsys}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1453 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1454 *-gnu* ) opsys=gnu ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1455 *-bsd4.[[01]] ) opsys=bsd4-1 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1456 *-bsd4.2 ) opsys=bsd4-2 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1457 *-bsd4.3 ) opsys=bsd4-3 ;;
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1458 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1459 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1460 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1461 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1462 *-sysv4.1* | *-sysvr4.1* ) opsys=usg5-4 NON_GNU_CPP=/usr/lib/cpp ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1463 *-sysv4.[[2-9]]* | *-sysvr4.[[2-9]]* )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1464 if test -z "$NON_GNU_CPP" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1465 if test -f /usr/ccs/lib/cpp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1466 then NON_GNU_CPP=/usr/ccs/lib/cpp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1467 else NON_GNU_CPP=/lib/cpp
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1468 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1469 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1470 opsys=usg5-4-2 ;;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1471 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1472 * ) unported=yes ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1473 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1474 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1475
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1476 test -z "$RANLIB" && RANLIB=ranlib
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1477
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1478 if test ${unported} = yes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1479 (echo "${progname}: XEmacs hasn't been ported to \`${canonical}' systems."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1480 echo "${progname}: Check \`etc/MACHINES' for recognized configuration names."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1481 ) >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1482 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1483 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1484
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1485 if test "${dynamic}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1486 case "${opsys}" in
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1487 hpux* | sunos4* | sco5 ) opsys="${opsys}-shr" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1488 esac
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1489 elif test "${dynamic}" = "no" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1490 case "${opsys}" in
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1491 sol2* | decosf1-3 | decosf3-* | decosf4-* | linux ) opsys="${opsys}-static" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1492 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1493 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1494
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1495 dynodump_arch=''
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1496 if test "${need_dynodump}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1497 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1498 sparc* ) dynodump_arch=sparc ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1499 powerpc* ) dynodump_arch=ppc ;;
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1500 i[[3-9]]86* ) dynodump_arch=i386 ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1501 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1502 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1503
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1504 machfile="m/${machine}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1505 opsysfile="s/${opsys}.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1506
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1507
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1508 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1509 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1510 # Determine the compiler, set up for feature testing #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1511 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1512 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1513
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1514 dnl -----------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1515 dnl Let's do a couple of macro (re)definitions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1516 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1517 dnl First we redefine AC_TEST_CPP so that we can see the error output
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1518 dnl from preprocessor runs. This definition is identical to the standard
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1519 dnl one supplied by Autoconf 1.11 extra for the extra_verbose check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1520 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1521 dnl Note that we *must* include the brackets around the macro definition
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1522 dnl name here. Autoconf has redefined the quoting characters to be brackets,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1523 dnl and if we don't supply them, the original definition will get
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1524 dnl substituted in place of the macro name!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1525 dnl
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1526
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1527 dnl Following macro is useful shorthand
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1528 define([IF_YES_AC_DEFINE],test "${$1}" = yes && [AC_DEFINE]($2))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1529
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1530 define([AC_TEST_CPP],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1531 [AC_REQUIRE_CPP()dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1532 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1533 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1534 [$1]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1535 EOF
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1536 dnl # Some shells (Coherent) do redirections in the wrong order, so need
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1537 dnl # the parens.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1538 dnl # The exec was added by Mly to make this work under BSDI
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1539 ac_err=`eval "(exec $ac_cpp conftest.${ac_ext} >/dev/null) 2>&1"`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1540 dnl # Use test here, not brackets, to avoid strange autoconf-quoting lossage.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1541 if test "${extra_verbose}" = "yes" && test -n "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1542 echo "$ac_err"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1543 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1544 if test -z "$ac_err"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1545 ifelse([$2], , :, [rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1546 $2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1547 ])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1548 ifelse([$3], , , [else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1549 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1550 $3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1551 ])dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1552 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1553 rm -f conftest*])dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1554 dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1555 dnl Second, a macro of our own:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1556 dnl Subroutine to find version of X being used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1557 dnl It can't use xmkmf because the first version in the user's path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1558 dnl may not belong to the version of X that is being built with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1559 define(AC_FIND_X_VERSION,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1560 [AC_CHECKING(the version of X11 being used)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1561 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1562 #include <X11/Intrinsic.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1563 int main() {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1564 #if (XlibSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1565 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1566 #elif (XlibSpecificationRelease == 5)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1567 printf ("X11R5\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1568 #elif (XlibSpecificationRelease == 6)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1569 printf ("X11R6\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1570 #elif (XtSpecificationRelease == 4)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1571 printf ("X11R4\n");
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1572 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1573 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1574 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1575 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1576 dnl We need to run this which will prevent cross-configuring. But since
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1577 dnl we can't do that anyhow, oh darn.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1578 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1579 LIBS="${LIBS} ${DEFS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1580 if eval $ac_compile; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1581 case "`./conftest`" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1582 X11R4 ) AC_DEFINE(THIS_IS_X11R4) ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1583 X11R5 ) AC_DEFINE(THIS_IS_X11R5) ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1584 X11R6 ) AC_DEFINE(THIS_IS_X11R6) ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1585 esac
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1586 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1587 LIBS=$ac_save_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1588 rm -f conftest*]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1589 )dnl
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1590 dnl -----------------------------------------------------------------------
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1591 AC_LANG_C
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1592 AC_PREPARE(lisp)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1593 AC_CONFIG_HEADER(src/config.h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1594
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1595 if test "${extra_verbose}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1596 # This is identical to the version that A\C_LANG_C generates except that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1597 # it omits the redirection of all output to /dev/null.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1598 ac_compile='${CC-cc} $CFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1599 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1600
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1601 #### Choose a compiler.
92
6a43545367ac Import from CVS: tag r20-0test1
cvs
parents: 90
diff changeset
1602 if test "x$CC" = x ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1603 cc_specified=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1604 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1605
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1606 # Save the value of CFLAGS that the user specified.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1607 SPECIFIED_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1608
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1609 if test "${with_gcc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1610 CC="${compiler-gcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1611 GCC=1
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1612 elif test "${with_lcc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1613 CC="${compiler-lcc}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1614 dash_r_space=' ' # this bullshit is here because lcc for solaris
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1615 # will not accept -Rargument.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1616 # It needs -R argument instead. Yuck yuck yuck.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1617 test -z "$NON_GNU_CPP" && NON_GNU_CPP="yes" # this is handled specially below...
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1618 elif test "${compiler}" != "" ; then CC="${compiler}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1619 elif test "${with_gcc}" = "no" ; then CC="cc"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1620 elif test "${with_lcc}" = "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1621 test -z "$CC" && CC=cc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1622 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1623 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1624 * )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1625 AC_PROG_CC
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1626 if test "${CC}" = "gcc" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1627 with_gcc="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1628 GCC=1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1629 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1630 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1631 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1632 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1633
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1634 #### Some systems specify a CPP to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1635 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1636 #### to use that one.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1637 if test "x$NON_GNU_CPP" = x -o x$GCC = x1
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1638 then true
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1639 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1640 if test "x$CPP" = x ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1641 if test "${with_lcc}" = "yes" -a "${NON_GNU_CPP}" = "yes"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1642 CPP='gcc -E -traditional' # cross fingers and hope it's there....
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1643 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1644 CPP="$NON_GNU_CPP"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1645 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1646 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1647 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1648
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1649 #### Some systems specify a CC to use unless we are using GCC.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1650 #### Now that we know whether we are using GCC, we can decide whether
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1651 #### to use that one.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1652 if test "x$NON_GNU_CC" = x -o x$GCC = x1 -o x$cc_specified = x1
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1653 then true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1654 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1655 CC="$NON_GNU_CC"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1656 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1657
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1658 ## Huh? I commented out the following because it always enabled
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1659 ## the "test" options, whatever the hell those are supposed to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1660 ## for, and the result is that SunOS builds were always static.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1661
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1662 # test x$GCC = x1 -a "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1663 # test x$GCC = x -a "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1664
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1665 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1666 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1667 # Do some misc autoconf-special tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1668 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1669 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1670
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1671 #### Some other nice autoconf tests. If you add a test here which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1672 #### should make an entry in src/config.h, don't forget to add an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1673 #### #undef clause to src/config.h.in for autoconf to modify.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1674 dnl checks for programs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1675 AC_PROG_CPP
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1676
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1677 case "${canonical}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1678 *-sun-sunos* )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1679 if test "${CPP}" = "acc -E" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1680 CPP="acc -E -Xs"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1681 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1682 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1683 esac
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1684
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1685 AC_PROG_RANLIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1686 AC_PROG_INSTALL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1687 AC_PROG_YACC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1688
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1689 dnl checks for UNIX variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1690 AC_AIX
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1691
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1692 dnl checks for header files
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1693 AC_HAVE_HEADERS(mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h)
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1694 AC_HAVE_HEADERS(utime.h sys/wait.h libintl.h locale.h libgen.h)
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1695 AC_HAVE_HEADERS(linux/version.h kstat.h sys/pstat.h inttypes.h)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1696 AC_STDC_HEADERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1697 AC_TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1698 AC_SYS_SIGLIST_DECLARED
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1699
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1700 dnl Some systems have utime.h but don't declare the struct anyplace.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1701 AC_COMPILE_CHECK(struct utimbuf,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1702 [#ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1703 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1704 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1705 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1706 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1707 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1708 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1709 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1710 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1711 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1712 #ifdef HAVE_UTIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1713 #include <utime.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1714 #endif], [static struct utimbuf x; x.actime = x.modtime;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1715 AC_DEFINE(HAVE_STRUCT_UTIMBUF))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1716
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1717 dnl checks for typedefs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1718 AC_RETSIGTYPE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1719
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1720 AC_COMPILE_CHECK(struct timeval,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1721 [#ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1722 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1723 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1724 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1725 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1726 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1727 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1728 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1729 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1730 #endif], [static struct timeval x; x.tv_sec = x.tv_usec;], [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1731 HAVE_TIMEVAL=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1732 AC_DEFINE(HAVE_TIMEVAL)],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1733 [HAVE_TIMEVAL=no])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1734
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1735 dnl checks for structure members
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1736 AC_STRUCT_TM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1737 AC_TIMEZONE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1738
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1739 dnl checks for compiler characteristics
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1740 AC_CONST
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1741
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1742 dnl check for Make feature
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1743 AC_SET_MAKE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1744
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1745 dnl check byte order
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1746 AC_WORDS_BIGENDIAN
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1747
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1748 dnl check for long file names
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1749 AC_LONG_FILE_NAMES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1750
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1751 echo "checking for -xildoff compiler flag"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1752 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1753 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1754 :
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1755 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1756 AC_VERBOSE(defining NEED_XILDOFF)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1757 need_xildoff=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1758 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1759 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1760
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1761 dnl other checks for UNIX variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1762 # What the hell was this doing here??????
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1763 ### echo > confdefs.h # this gets nuked above...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1764
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1765 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1766 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1767 # Choose a window system #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1768 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1769 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1770
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1771 #### Choose a window system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1772 echo "checking for specified window system"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1773
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1774 window_system=''
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1775 case "${with_x11}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1776 yes ) window_system=${window_system}x11 ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1777 no ) window_system=${window_system}none ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1778 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1779
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1780 case "${window_system}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1781 "none" | "x11" ) ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1782 "" )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1783 # --x-includes or --x-libraries implies --with-x11.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1784 if test -n "${x_includes}" -o -n "${x_libraries}"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1785 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1786 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1787 echo " No window system specified. Looking for X11."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1788 # If the user didn't specify a window system and we found X11, use it.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1789 if test -r /usr/lib/libX11.a \
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1790 -o -d /usr/include/X11 \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1791 -o -d /usr/X386/include \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1792 -o -d /usr/X11R6/include \
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1793 -o -d ${x_includes}/X11 ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1794 window_system=x11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1795 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1796 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1797 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1798 * )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1799 echo "Don't specify a window system more than once." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1800 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1801 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1802 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1803
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1804 case "${window_system}" in "" | "x11" )
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1805 ### If the user hasn't specified where we should find X, try
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1806 ### letting autoconf figure that out.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1807 if test -z "${x_includes}${x_libraries}" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1808 AC_FIND_X
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1809 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1810 if test -n "${x_includes}${x_libraries}" ; then window_system=x11 ; fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1811 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1812 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1813
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1814 test -z "${window_system}" && window_system="none"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1815
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1816 if test "${window_system}" = "none" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1817 if test "${with_tty}" != "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1818 echo "No window system support, and no TTY support." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1819 echo "Unable to proceed." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1820 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1821 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1822 for feature in cde offix menubars scrollbars toolbars dialogs xim tiff
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1823 do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1824 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1825 AC_WARN(--with-$feature ignored: Not valid without X support)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1826 fi
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1827 eval "with_$feature=no"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1828 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1829 elif test -z "${with_toolbars}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1830 with_toolbars='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1831 fi
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
1832
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1833 runtime_arg="-R${dash_r_space}"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1834
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1835 case "${canonical}" in
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1836 *-sun-solaris* | *-sun-sunos5* )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1837 add_runtime_flag=yes ;;
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1838 *-sgi-irix5.* )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1839 # In the IRIX 5.3 ld, only the last -rpath arg has any effect. This is
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1840 # fundamentaly incompatible with having separate LD_SWITCH_X_SITE
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1841 # and LD_SWITCH_SITE variables. Fortunately, SGI fixed this by 6.2.
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1842 if test -n "${x_libraries}" || test -n "${site_runtime_libraries}" ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1843 (echo "WARNING: The IRIX 5 ld ignores all but the last -rpath argument,";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1844 echo " so if you need to specify more than one additional";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1845 echo " runtime library directory, you will have to do so";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1846 echo " manually by setting the environment variable";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1847 echo " LD_SWITCH_SITE to '-rpath <path>' before running";
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1848 echo " configure. If you have only one additional directory,"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1849 echo " you can specify it with --site-runtime-libraries.") >&2
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1850 fi
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1851 runtime_arg="-rpath " ;;
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1852 *-sgi-irix* )
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1853 # Note that IRIX gcc (as of 2.7.2) doesn't accept -rpath, so
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1854 # using it can cause trouble. Specifying --use-gcc=no will work
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1855 # around this, but the real problem is that configure uses $LDFLAGS
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1856 # as arguments to $(CC), instead of using prefix-args like the
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1857 # src/Makefile does.
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1858 add_runtime_flag=yes;
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1859 runtime_arg="-rpath " ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1860 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1861
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1862 if test -n "${x_libraries}" ; then
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
1863 if test "${add_runtime_flag}" = "yes" ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1864 LD_SWITCH_X_SITE="-L${x_libraries} ${runtime_arg}${x_libraries}"
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1865 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1866 LD_SWITCH_X_SITE="-L${x_libraries}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1867 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1868 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1869 # LD_SWITCH_X_SITE_AUX (from FSF) is ill-conceived. See s/sol2*.h.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1870 # test -n "${x_libraries}" -a LD_SWITCH_X_SITE_AUX="-R${x_libraries}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1871 test -n "${x_includes}" && C_SWITCH_X_SITE="-I${x_includes}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1872
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1873 if test -n "${site_libraries}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1874 for arg in ${site_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1875 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1876 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1877 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1878 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1879 if test -n "${site_runtime_libraries}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1880 for arg in ${site_runtime_libraries}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1881 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1882 LD_SWITCH_SITE="${LD_SWITCH_SITE} -L${arg}"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
1883 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${runtime_arg}${arg}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1884 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1885 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1886 if test -n "${site_includes}" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1887 for arg in ${site_includes}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1888 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1889 C_SWITCH_SITE="${C_SWITCH_SITE} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1890 CPP="${CPP} -I${arg}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1891 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1892 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1893
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1894 # FSF 19.29 has some bitmapdir stuff here.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1895 bitmapdir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1896
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1897 # Avoid forcing the search of /usr/include before fixed include files.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1898 test "$C_SWITCH_X_SITE" = "-I/usr/include" && C_SWITCH_X_SITE=" "
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1899
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1900 # Need for check for audio/Xtutil.h.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1901 CPP="${CPP} ${C_SWITCH_X_SITE}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1902
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1903 case "${window_system}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1904 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1905 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1906 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1907
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1908 if test "${opsys}" = "hpux9"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1909 case "${x_libraries}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1910 *X11R4* ) opsysfile="s/hpux9-x11r4.h" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1911 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1912 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1913
74
54cc21c15cbb Import from CVS: tag r20-0b32
cvs
parents: 72
diff changeset
1914 if test "${opsys}" = "hpux9-shr"; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1915 case "${x_libraries}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
1916 *X11R4* ) opsysfile="s/hpux9shxr4.h" ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1917 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1918 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1919
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1920 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1921 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1922 # Extract some information from the operating system and machine files #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1923 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1924 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1925
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1926 echo "examining the machine- and system-dependent files to find out"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1927 echo " - which libraries the lib-src programs will want, and"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1928 echo " - whether the GNU malloc routines are usable."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1929
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1930 ### First figure out CFLAGS (which we use for running the compiler here)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1931 ### and REAL_CFLAGS (which we use for real compilation).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1932 ### The two are the same except on a few systems, where they are made
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1933 ### different to work around various lossages. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1934 ### GCC 2.5 on Linux needs them to be different because it treats -g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1935 ### as implying static linking.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1936
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1937 ### If the CFLAGS env var is specified, we use that value
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1938 ### instead of the default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1939
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1940 ### It's not important that this name contain the PID; you can't run
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1941 ### two configures in the same directory and have anything work
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1942 ### anyway.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1943 tempcname="conftest.c"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1944
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1945 echo '
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1946 #define NOT_C_CODE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1947 #include "'${srcdir}'/src/'${opsysfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1948 #include "'${srcdir}'/src/'${machfile}'"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1949 #ifndef LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1950 #define LIBS_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1951 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1952 #ifndef LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1953 #define LIBS_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1954 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1955 #ifndef C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1956 #define C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1957 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1958 #ifndef C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1959 #define C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1960 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1961 #ifndef C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1962 #define C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1963 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1964 #ifndef LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1965 #define LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1966 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1967 #ifndef LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1968 #define LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1969 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1970 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM LIB_STANDARD
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1971 configure___ c_switch_system=C_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1972 configure___ c_switch_x_system=C_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1973 configure___ ld_switch_x_system=LD_SWITCH_X_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1974 configure___ c_switch_machine=C_SWITCH_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1975
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1976 #ifndef LIB_X11_LIB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1977 #define LIB_X11_LIB -lX11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1978 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1979
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1980 #ifndef LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1981 #define LIBX11_MACHINE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1982 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1983
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1984 #ifndef LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1985 #define LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1986 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1987 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1988
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1989 #ifdef UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1990 configure___ unexec=UNEXEC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1991 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1992 configure___ unexec=unexec.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1993 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1994
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1995 #ifdef SYSTEM_MALLOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1996 configure___ system_malloc=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1997 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1998 configure___ system_malloc=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1999 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2000
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2001 #ifndef C_DEBUG_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2002 #define C_DEBUG_SWITCH -g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2003 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2004
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2005 #ifndef C_OPTIMIZE_SWITCH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2006 #define C_OPTIMIZE_SWITCH -O
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2007 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2008
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2009 #ifdef THIS_IS_CONFIGURE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2010
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2011 /* Get the CFLAGS for tests in configure. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2012 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2013 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2014 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2015 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2016 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2017
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2018 #else /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2019
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2020 /* Get the CFLAGS for real compilation. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2021 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2022 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2023 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2024 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2025 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2026
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2027 #endif /* not THIS_IS_CONFIGURE */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2028 ' > ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2029 # The value of CPP is a quoted variable reference, so we need to do this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2030 # to get its actual value...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2031 CPP=`eval "echo $CPP"`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2032 eval `${CPP} -Isrc ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2033 | grep 'configure___' \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2034 | sed -n -e 's/^configure___ \([[^=]]*=\)\(.*\)$/\1"\2"/p'`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2035 if test "x$SPECIFIED_CFLAGS" = x ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2036 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2037 | grep 'configure___' \
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2038 | sed -n -e 's/^configure___ \([[^=]]*=\)\(.*\)$/\1"\2"/p'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2039 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2040 REAL_CFLAGS="$CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2041 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2042 rm ${tempcname}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2043
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2044 # override CFLAGS if user wishes
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2045 if test "${cflags}" != "NO_CFLAGS_DEFINED" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2046 REAL_CFLAGS=${cflags}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2047 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2048
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2049 ### Compute the unexec source name from the object name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2050 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2051
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2052 # Do the opsystem or machine files prohibit the use of the GNU malloc?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2053 # Assume not, until told otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2054 GNU_MALLOC=yes
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2055 if test "${system_malloc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2056 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2057 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2058 (The GNU allocators don't work with this system configuration.)"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2059 elif test "${use_system_malloc}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2060 GNU_MALLOC=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2061 GNU_MALLOC_reason="
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2062 (User chose not to use GNU allocators.)"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2063 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2064
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2065 LISP_FLOAT_TYPE=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2066
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2067
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2068 #### Add the libraries to LIBS and check for some functions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2069
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2070 CPPFLAGS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2071 DEFS="${C_SWITCH_SITE} $c_switch_system $c_switch_machine $c_switch_x_system $DEFS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2072 LIBS="${LD_SWITCH_SITE} $ld_switch_x_system $libsrc_libs $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2073
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2074 dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2075 dnl and also adds -ldnet to LIBS, which Autoconf uses for checks.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2076 dnl FSF 19.29 also checks for function dnet_ntoa.
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
2077 test "${with_dnet}" != "no" -a \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
2078 "${with_dnet}" != "yes" && { AC_HAVE_LIBRARY(-ldnet, with_dnet="yes") }
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
2079 IF_YES_AC_DEFINE(with_dnet, HAVE_LIBDNET)
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
2080
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2081 dnl This causes -lresolv to get used in subsequent tests,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2082 dnl which causes failures on some systems such as HPUX 9.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2083 dnl FSF 19.29 also checks for function gethostbyname.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2084 dnl AC_HAVE_LIBRARY(-lresolv)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2085
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2086 dnl Alternative to getloadavg() that doesn't require root priveleges
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2087 AC_HAVE_LIBRARY(-lkstat)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2088
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2089 dnl Use -lintl if Mule available.
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2090 AC_HAVE_LIBRARY(-lintl, AC_DEFINE(HAVE_LIBINTL))
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
2091
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2092 AC_HAVE_LIBRARY(-lXbsd, LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2093
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2094 dnl FSF 19.29 also checks for function cma_open.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2095 AC_HAVE_LIBRARY(-lpthreads, HAVE_PTHREADS=yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2096 if test -n "${HAVE_PTHREADS}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2097 AC_DEFINE(HAVE_PTHREADS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2098 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2099 decosf* ) CFLAGS="${CFLAGS} -threads" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2100 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2101 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2102
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2103 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2104 AC_CHECKING(for XFree86)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2105 if test -d /usr/X386/include; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2106 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2107 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X386/include"
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 76
diff changeset
2108 elif test -f /etc/XF86Config -o \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 76
diff changeset
2109 -f /etc/X11/XF86Config -o \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 76
diff changeset
2110 -f /usr/X11R6/lib/X11/XF86Config; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2111 HAVE_XFREE386=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2112 test -z "${C_SWITCH_X_SITE}" && C_SWITCH_X_SITE="-I/usr/X11R6/include"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2113 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2114 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2115 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2116 AC_VERBOSE(${HAVE_XFREE386})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2117 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2118 HAVE_XFREE386=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2119 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2121 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2122 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2123 # Test for various X-specific features #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2124 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2125 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2127 # Change CFLAGS temporarily for damn binutils 2.6.0.10 check.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2128 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2129 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2130 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2131 CFLAGS="-Wl,-rpath-link,/usr/X11R6/lib $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2132 AC_COMPILE_CHECK(whether path-link option is needed, [],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2133 [;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2134 [need_path_link=yes],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2135 [need_path_link=no])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2136 if test "${need_path_link}" = "no"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2137 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2138 AC_VERBOSE(no)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2139 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2140 AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2141 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2142 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2143 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2144 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2145
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2146 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2147 # for the tests that follow. We set it back to REAL_CFLAGS later on.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2149 if test "${HAVE_X_WINDOWS}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2150 DEFS="$C_SWITCH_X_SITE $DEFS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2151 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2152 LIBS="$LIBX $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2153 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2154
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2155 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2156 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2157 # but it's more convenient here to set LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2158 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2159 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2160 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2161 export LD_RUN_PATH
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2162 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2164 if test "${HAVE_XFREE386}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2165 case "${opsys}" in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2166 linux* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2167 AC_COMPILE_CHECK(whether XFree86 needs -b to link, [],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2168 [XOpenDisplay ("foo");],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2169 [xfree86_first_failure=no],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2170 [xfree86_first_failure=yes])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2171 if test "${xfree86_first_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2172 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2173 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2174 OLD_CPPFLAGS="$CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2175 OLD_LIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2176 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2177 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2178 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2179 LIBS="$LIBS -b i486-linuxaout"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2180 AC_COMPILE_CHECK(,[],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2181 [XOpenDisplay ("foo");],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2182 [xfree86_second_failure=no],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2183 [xfree86_second_failure=yes])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2184 if test "${xfree86_second_failure}" = "yes"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2185 # If we get the same failure with -b, there is no use adding -b.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2186 # So take it out. This plays safe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2187 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2188 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2189 CPPFLAGS="$OLD_CPPFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2190 LIBS="$OLD_LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2191 AC_VERBOSE(no)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2192 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2193 AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2194 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2195 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2196 AC_VERBOSE(no)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2197 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2198 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2199 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2200 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2201
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2202 # A C_CHECK_FUNCS(XrmSetDatabase XScreenResourceString \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2203 #XScreenNumberOfScreen XSetWMProtocols)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2204 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2206 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2207 # make sure we can find libX11.*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2208 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2209 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2210 internal_xlibs_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2211 AC_HAVE_LIBRARY(-lX11, internal_xlibs_found='yes')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2212 if test "${internal_xlibs_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2213 echo "Unable to find X11 libraries." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2214 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2215 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2216 AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2217 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2218 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2220 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2221 # make sure we can find Intrinsic.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2222 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2223 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2224 internal_xincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2225 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2226 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2227 if test -f `echo "${arg}/X11/Intrinsic.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2228 internal_xincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2229 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2230 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2231 if test "${internal_xincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2232 echo "Unable to find X11 header files." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2233 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2234 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2235 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2236
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2237 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2238 # Sun OS 4 systems need the following kludge
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2239 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2240 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2241 case "${canonical}" in *-sunos4* )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2242 LIBS="$LIBS -u _XtToolkitInitialize -u _get_applicationShellWidgetClass" ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2243 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2244 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2245
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2246 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2247 # See if we can find Xauth.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2248 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2249 with_xauth='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2250 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2251 internal_xauth_lib_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2252 AC_HAVE_LIBRARY(-lXau, internal_xauth_lib_found='yes')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2253 if test "${internal_xauth_lib_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2254 internal_xauth_includes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2255 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2256 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2257 if test -f `echo "${arg}/X11/Xauth.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2258 internal_xauth_includes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2259 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2260 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2261 if test "${internal_xauth_includes_found}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2262 with_xauth='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2263 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2264 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2265 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2266 IF_YES_AC_DEFINE(with_xauth, HAVE_XAUTH)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2268 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2269 # See if we can find CDE.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2270 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2271 if test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2272 "${with_cde}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2273 "${with_cde}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2274 internal_cde_lib_found='no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2275 AC_HAVE_LIBRARY(-lDtSvc, internal_cde_lib_found='yes')
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2276 if test "${internal_cde_lib_found}" = "no" -a -f "/usr/dt/lib/libDtSvc.a"; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2277 internal_cde_lib_found="yes"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2278 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2279 if test "${internal_cde_lib_found}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2280 internal_cde_includes_found='no'
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2281 for arg in ${DEFS} /usr/include /usr/dt/include ; do
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2282 if test -f `echo "${arg}/Dt/Dt.h" | sed 's/^\-I//'` ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2283 internal_cde_includes_found='yes'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2284 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2285 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2286 if test "${internal_cde_includes_found}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2287 with_cde='yes'
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2288 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2289 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2290 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2291 IF_YES_AC_DEFINE(with_cde, HAVE_CDE)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2292
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2293 # having CDE implies Tooltalk
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2294 if test "${with_cde}" = "yes" -a \
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2295 "${with_tooltalk}" != "no" -a \
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2296 "${with_tooltalk}" != "none" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2297 with_tooltalk='yes'
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2298 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2299
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2300 # having CDE requires Motif
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2301 if test "${with_cde}" = "yes" ; then
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2302 motif_libs="-lXm -lXt"
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2303 fi
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2304
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2305 #
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2306 # See if we can find OffiX.
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2307 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2308 if test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2309 "${with_offix}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2310 "${with_offix}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2311 internal_offix_lib_found='no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2312 AC_HAVE_LIBRARY(-lDnd, internal_offix_lib_found='yes')
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2313 if test "${internal_offix_lib_found}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2314 internal_offix_includes_found='no'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2315 for arg in ${DEFS} /usr/include ; do
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2316 if test -f `echo "${arg}/OffiX/DragAndDrop.h" | sed 's/^\-I//'` ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2317 internal_offix_includes_found='yes'
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2318 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2319 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2320 test "${internal_offix_includes_found}" = "yes" && with_offix='yes'
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2321 fi
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
2322 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2323 IF_YES_AC_DEFINE(with_offix, HAVE_OFFIX_DND)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2324
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2325 # X window options
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2326 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2327 AC_FIND_X_VERSION
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2328 AC_HAVE_HEADERS(X11/Xlocale.h)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2329 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2330
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2331 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2332 # if Energize specified, make sure we can find its need libraries/headers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2333 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2334 if test "${with_energize}" = "yes" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2335 AC_HAVE_LIBRARY(-lenergize, energize_version='3.X')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2336 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2337 AC_HAVE_LIBRARY(-lconn, energize_version='2.X')
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2338 if test "${energize_version}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2339 echo "Unable to find Energize library." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2340 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2341 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2342 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2343
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2344 internal_eincludes_found='no'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2345 for arg in ${DEFS} /usr/include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2346 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2347 if test -f `echo "${arg}/editorconn.h" | sed 's/^\-I//'` ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2348 internal_eincludes_found='yes'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2349 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2350 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2351 if test "${internal_eincludes_found}" = "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2352 echo "Unable to find Energize editorconn.h header file." >&2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2353 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2354 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2355 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2357 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2358 # logb and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2359 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2360 AC_HAVE_LIBRARY(-lm)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2361
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2362 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2363 # see if XPM is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2364 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2365 test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2366 "${with_xpm}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2367 "${with_xpm}" != "yes" && { AC_HAVE_LIBRARY(-lXpm, with_xpm="yes") }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2368
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2369 IF_YES_AC_DEFINE(with_xpm, HAVE_XPM)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2370
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2371 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2372 # see if Xmu is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2373 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2374 # FSF 19.31 has this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2375 #dnl If using toolkit, check whether libXmu.a exists.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2376 #dnl tranle@intellicorp.com says libXmu.a can need XtMalloc in libXt.a to link.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2377 # OLDLIBS="$LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2378 # if test x$HAVE_X11XTR6 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2379 # LIBS="-lXt -lSM -lICE $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2380 # else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2381 # LIBS="-lXt $LIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2382 # fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2383 # A C_CHECK_LIB(Xmu, XmuConvertStandardSelection)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2384 # LIBS="$OLDLIBS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2385
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2386 if test "${window_system}" != "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2387 if test "${with_xmu}" != "no" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2388 test "${with_xmu}" != "yes" && { AC_HAVE_LIBRARY(-lXmu, with_xmu="yes") }
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2389 # On SunOS4 (and 5!) we must kludge harder to try to detect Xmu
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2390 # Upgrade to autoconf 2 and use ac_check_lib - mrb
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2391 if test "${with_xmu}" != "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2392 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2393 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2394 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm"
88
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
2395 if test ${machine} = sparc -a ${opsys} = linux; then
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
2396 LIBS="${LIBS} -lICE -lSM"
821dec489c24 Import from CVS: tag r20-0
cvs
parents: 84
diff changeset
2397 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2398 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2399 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2400 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2401 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2402 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2403 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2404 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2405 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2406 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2407 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2408 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2409 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2410 fi
90
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2411 # Sparc/Linux test - fp
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2412 if test "${with_xmu}" != "yes" -a ${machine} = sparc -a ${opsys} = linux; then
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2413 # begin expansion of ac_have_library
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2414 ac_save_LIBS="${LIBS}"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2415 LIBS="${LIBS} -lXmu -lXt -lXext -lX11 -lm -lICE -lSM"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2416 ac_have_lib=""
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2417 cat > conftest.${ac_ext} <<EOF
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2418 int main() { return 0; }
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2419 EOF
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2420 if eval $ac_compile; then
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2421 rm -rf conftest*
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2422 ac_have_lib="1"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2423 fi
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2424 rm -f conftest*
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2425 LIBS="${ac_save_LIBS}"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2426 test -n "${ac_have_lib}" && with_xmu="yes"
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2427 # end expansion of ac_have_library
99da576a67e7 Import from CVS: tag xemacs-20-0
cvs
parents: 88
diff changeset
2428 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2429 # On UnixWare 2.1 we must kludge harder to try to detect Xmu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2430 # Upgrade to autoconf 2 and use ac_check_lib - mrb
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2431 if test "${with_xmu}" != "yes" && test -f "/.UpgradeVer2.1" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2432 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2433 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2434 if test x$HAVE_XFREE386 = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2435 LIBS="-lXt -lSM -lICE ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2436 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2437 LIBS="${LIBS} -lXmu -lXt -lXext -lX11"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2438 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2439 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2440 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2441 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2442 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2443 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2444 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2445 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2446 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2447 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2448 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2449 test -n "${ac_have_lib}" && with_xmu="yes"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2450 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2451 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2452 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2453 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2454 IF_YES_AC_DEFINE(with_xmu, HAVE_XMU)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2455
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2456 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2457 # see if COMPFACE is hanging around somewhere
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2458 #
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2459 if test "${window_system}" != "none" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2460 "${with_xface}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2461 "${with_xface}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2462 AC_HEADER_CHECK(compface.h, compface_incl="yes", with_xface="no")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2463 if test "${compface_incl}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2464 AC_HAVE_LIBRARY(-lcompface, with_xface="yes")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2465 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2466 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2467 IF_YES_AC_DEFINE(with_xface, HAVE_XFACE)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2468
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2469 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2470 # check whether we're using GIF support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2471 #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2472 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2473 if test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2474 with_gif=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2475 elif test "${with_gif}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2476 echo "GIF support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2477 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2478 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2479 elif test -z "${with_gif}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2480 with_gif=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2481 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2482 IF_YES_AC_DEFINE(with_gif, HAVE_GIF)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2483
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2484 dnl # autodetect JPEG
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2485 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2486 if test -z "${with_jpeg}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2487 with_jpeg=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2488 elif test "${with_jpeg}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2489 echo "JPEG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2490 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2491 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2492 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2493 if test "${with_jpeg}" != "no" -a \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2494 "${with_jpeg}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2495 AC_HEADER_CHECK(jpeglib.h, jpeglib_incl="yes", with_jpeg="no")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2496 test "${jpeglib_incl}" = "yes" && { AC_HAVE_LIBRARY(-ljpeg, with_jpeg="yes") }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2497 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2498 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2499 IF_YES_AC_DEFINE(with_jpeg, HAVE_JPEG)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2500
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2501 dnl ### autodetect PNG
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2502 if test "${window_system}" = "none" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2503 if test -z "${with_png}" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2504 with_png=no
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2505 elif test "${with_png}" != "no" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2506 echo "PNG support cannot be specified without a window system."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2507 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2508 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2509 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2510 test -z "${with_png}" && { AC_HEADER_CHECK(png.h, , with_png="no") }
84
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2511 test -z "${with_png}" && { AC_FUNC_CHECK(pow, , with_png="no") }
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2512 if test -z "${with_png}" ; then
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2513 AC_HAVE_LIBRARY(-lz, with_png="yes")
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2514 test -z "${with_png}" && { AC_HAVE_LIBRARY(-lgz, with_png="gnuz", with_png="no") }
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2515 if test "${with_png}" != "no"; then
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2516 png_save_libs="${LIBS}"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2517 case "${with_png}" in
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2518 yes ) LIBS="${LIBS} -lz" ;;
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2519 gnuz ) LIBS="${LIBS} -lgz" ;;
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2520 esac
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2521 AC_HAVE_LIBRARY(-lpng, , with_png="no")
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2522 LIBS="$png_save_libs"
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2523 fi
ac0620f6398e Import from CVS: tag r20-0b92
cvs
parents: 82
diff changeset
2524 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2525 case "${with_png}" in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2526 yes ) AC_DEFINE(HAVE_PNG) ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2527 gnuz ) AC_DEFINE(HAVE_PNG) AC_DEFINE(HAVE_PNG_GNUZ) ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2528 esac
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2529
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2530 dnl ### autodetect TIFF (not yet implemented)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2531 IF_YES_AC_DEFINE(with_tiff, HAVE_TIFF)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2532
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2533 # We use Lucid toolkit defaults for the menubars and scrollbars, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2534 # if Motif is available we use it for the dialog boxes.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2535 if test "${window_system}" != "none" ; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2536 save_libs="${LIBS}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2537 if test "x${with_dialogs}" = "x" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2538 # We can't use ac_have_library because it simply appends -lXm to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2539 # end of the link line which is insufficient since -lXm will generate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2540 # dependencies on -lXt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2541 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2542 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2543 LIBS="${LIBS} -lXm -lXt ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2544 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2545 test -n "$silent" || echo "checking for -lXm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2546 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2547 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2548
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2549 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2550 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2551 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2552 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2553 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2554 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2555
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2556 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2557 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2558 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2559 if test -n "${ac_have_lib}"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2560 :; with_dialogs="motif" motif_libs="-lXm -lXt"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2561 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2562 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2563 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2564 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2565 # Sigh. My Motif (MoTeeth) under Linux also depends on Xpm and Xext.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2566 if test "${with_dialogs}" != "motif" ; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2567 # begin expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2568 ac_save_LIBS="${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2569 LIBS="${LIBS} -lXm -lXt -lXpm -lXext ${LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2570 ac_have_lib=""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2571 test -n "$silent" || echo "checking for -lXm in another way"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2572 cat > conftest.${ac_ext} <<EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2573 #include "confdefs.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2574
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2575 int main() { return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2576 int t() { main();; return 0; }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2577 EOF
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2578 if eval $ac_compile; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2579 rm -rf conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2580 ac_have_lib="1"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2581
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2582 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2583 rm -f conftest*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2584 LIBS="${ac_save_LIBS}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2585 if test -n "${ac_have_lib}"; then
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2586 :; with_dialogs="motif" motif_libs="-lXm -lXt -lXpm -lXext"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2587 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2588 :;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2589 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2590 # end expansion of ac_have_library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2591 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2592 test "${with_dialogs}" = "motif" && AC_VERBOSE(Found Motif)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2593 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2594 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2595
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2596 # Finish ensuring that we have values for the various toolkit items.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2597
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2598 test "${with_menubars}" = "motif" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2599 "${with_scrollbars}" = "motif" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2600 "${with_dialogs}" = "motif" && with_motif="yes"
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2601 test "${with_menubars}" = "athena" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2602 "${with_scrollbars}" = "athena" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2603 "${with_dialogs}" = "athena" && with_athena="yes"
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2604 test "${with_menubars}" = "athena3d" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2605 "${with_scrollbars}" = "athena3d" -o \
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2606 "${with_dialogs}" = "athena3d" && with_athena="yes"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2607 test "${with_menubars}" = "" && with_menubars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2608 test "${with_menubars}" = "athena" && with_menubars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2609 test "${with_scrollbars}" = "" && with_scrollbars="lucid"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2610 test "${with_dialogs}" = "" && with_dialogs="athena"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2611 test "${with_dialogs}" = "lucid" && with_dialogs="athena"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2612
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2613 test "${with_menubars}" != "no" && AC_DEFINE(HAVE_MENUBARS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2614 test "${with_scrollbars}" != "no" && AC_DEFINE(HAVE_SCROLLBARS)
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
2615 test "${with_dialogs}" != "no" && AC_DEFINE(HAVE_DIALOGS)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2616
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2617 test "${with_menubars}" = "lucid" && AC_DEFINE(LWLIB_MENUBARS_LUCID)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2618 test "${with_menubars}" = "motif" && AC_DEFINE(LWLIB_MENUBARS_MOTIF)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2619 test "${with_scrollbars}" = "lucid" && AC_DEFINE(LWLIB_SCROLLBARS_LUCID)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2620 test "${with_scrollbars}" = "motif" && AC_DEFINE(LWLIB_SCROLLBARS_MOTIF)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2621 test "${with_scrollbars}" = "athena" && AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2622 if test "${with_scrollbars}" = "athena3d"; then
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2623 AC_DEFINE(LWLIB_SCROLLBARS_ATHENA)
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2624 AC_DEFINE(LWLIB_SCROLLBARS_ATHENA3D)
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2625 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2626 test "${with_dialogs}" = "motif" && AC_DEFINE(LWLIB_DIALOGS_MOTIF)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2627 test "${with_dialogs}" = "athena" && AC_DEFINE(LWLIB_DIALOGS_ATHENA)
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2628 if test "${with_dialogs}" = "athena3d"; then
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2629 AC_DEFINE(LWLIB_DIALOGS_ATHENA)
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2630 AC_DEFINE(LWLIB_DIALOGS_ATHENA3D)
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
2631 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2632
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2633 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2634 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2635 # Misc other feature tests #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2636 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2637 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2638
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2639 # Mule-dependent option processing
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2640 if test "$with_mule" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2641 # Do we have the XmIm* routines? And if so, do we want to use them?
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2642 test "$with_xim" != no && AC_CHECKING(for XIM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2643 if test -z "$with_xim" -o "$with_xim" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2644 xim_save_libs="$LIBS"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2645 LIBS="${motif_libs} ${LIBS}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2646 AC_FUNC_CHECK(XmImMbLookupString, have_XmIm=yes, have_XmIm=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2647 LIBS="$xim_save_libs"
140
585fb297b004 Import from CVS: tag r20-2b4
cvs
parents: 136
diff changeset
2648 if test "$with_xim" = "yes" -a "$have_XmIm" = "yes"; then with_xim=motif
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2649 elif test "$with_xim" = "yes"; then with_xim=xlib
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2650 else with_xim=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2651 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2652 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2653 if test "$with_xim" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2654 AC_DEFINE(HAVE_XIM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2655 test "$with_xim" = "xlib" && AC_DEFINE(XIM_XLIB)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2656 test "$with_xim" = "motif" && AC_DEFINE(XIM_MOTIF)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2657 fi
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
2658 # wnn6 implies wnn support
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
2659 if test "$with_wnn6" = "yes" ; then
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
2660 with_wnn=yes
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
2661 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2662 else # Other internationalization features depend on Mule
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2663 with_mule="no"
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
2664 for feature in xim canna wnn wnn6 ; do
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2665 if eval "test -n \"\$with_$feature\" -a \"\$with_$feature\" != no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2666 AC_WARN(--with-$feature ignored: Not valid without Mule support)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2667 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2668 eval "with_$feature=no"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2669 done
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2670 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2671
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2672 #
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2673 # set defaults for finding WNN includes and libs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2674 #
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2675 if test "${with_wnn}" = "yes" ; then
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2676 for arg in "-I${wnn_includes}" "-I/usr/X11R6/include/wnn" "-I/usr/include/wnn"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2677 do
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2678 if test -f `echo "${arg}/wnnerror.h" | sed 's/^\-I//'` ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2679 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2680 wnn_includes=${arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2681 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2682 done
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2683 for arg in "-L${wnn_libraries}" "-L/usr/X11R6/lib" "-L/usr/lib"
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2684 do
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2685 if test -f `echo "${arg}/libwnn.a" | sed 's/^\-L//'` ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2686 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2687 wnn_libraries=${arg}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2688 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2689 done
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2690 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2691
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2692 #
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2693 # set defaults for finding Canna includes and libs
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2694 #
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2695 if test "${with_canna}" = "yes" ; then
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2696 for arg in "-I${canna_includes}" "-I/usr/X11R6/include"
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2697 do
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2698 if test -f `echo "${arg}/canna/RK.h" | sed 's/^\-I//'` ; then
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2699 C_SWITCH_SITE="${C_SWITCH_SITE} ${arg}"
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2700 canna_includes=${arg}
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2701 fi
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2702 done
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 112
diff changeset
2703 for arg in "-L${canna_libraries}" "-L/usr/X11R6/lib"
110
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2704 do
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2705 if test -f `echo "${arg}/libcanna.a" | sed 's/^\-L//'` ; then
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2706 LD_SWITCH_SITE="${LD_SWITCH_SITE} ${arg}"
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2707 canna_libraries=${arg}
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2708 fi
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2709 done
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2710 fi
fe104dbd9147 Import from CVS: tag r20-1b7
cvs
parents: 108
diff changeset
2711
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2712 # If netdb.h doesn't declare h_errno, we must declare it by hand.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2713 AC_COMPILE_CHECK(declaration of h_errno in netdb.h,
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2714 [#include <netdb.h>],
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2715 [int i = h_errno;],
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2716 AC_DEFINE(HAVE_H_ERRNO))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2717
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2718 AC_COMPILE_CHECK(sigsetjmp,
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2719 [#include <setjmp.h>],
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2720 [sigjmp_buf bar; sigsetjmp (bar, 0);],
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2721 AC_DEFINE(HAVE_SIGSETJMP))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2722
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2723 AC_CHECKING(whether localtime caches TZ)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2724 emacs_cv_localtime_cache=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2725 AC_TEST_PROGRAM([#include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2726 #if 1 /* STDC_HEADERS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2727 # include <stdlib.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2728 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2729 extern char **environ;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2730 unset_TZ ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2731 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2732 char **from, **to;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2733 for (to = from = environ; (*to = *from); from++)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2734 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2735 to++;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2736 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2737 main()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2738 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2739 time_t now = time ((time_t *) 0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2740 int hour_GMT0, hour_unset;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2741 if (putenv ("TZ=GMT0") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2742 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2743 hour_GMT0 = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2744 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2745 hour_unset = localtime (&now)->tm_hour;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2746 if (putenv ("TZ=PST8") != 0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2747 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2748 if (localtime (&now)->tm_hour == hour_GMT0)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2749 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2750 unset_TZ ();
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2751 if (localtime (&now)->tm_hour != hour_unset)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2752 exit (1);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2753 exit (0);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2754 }], emacs_cv_localtime_cache=no, emacs_cv_localtime_cache=yes,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2755 [# If we have tzset, assume the worst when cross-compiling.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2756 emacs_cv_localtime_cache=yes])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2757 AC_VERBOSE("$emacs_cv_localtime_cache")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2758 if test x$emacs_cv_localtime_cache = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2759 AC_DEFINE(LOCALTIME_CACHE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2760 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2761
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2762 if test "x$HAVE_TIMEVAL" = xyes; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2763 AC_COMPILE_CHECK(whether gettimeofday can't accept two arguments,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2764 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2765 #ifdef TIME_WITH_SYS_TIME
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2766 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2767 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2768 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2769 #ifdef HAVE_SYS_TIME_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2770 #include <sys/time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2771 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2772 #include <time.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2773 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2774 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2775 ],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2776 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2777 struct timeval time;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2778 struct timezone dummy;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2779 gettimeofday (&time, &dummy);
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2780 ],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2781 [AC_VERBOSE(no)],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2782 [AC_VERBOSE(yes)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2783 AC_DEFINE(GETTIMEOFDAY_ONE_ARGUMENT)])
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2784 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2785
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2786 AC_COMPILE_CHECK(whether inline functions are supported,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2787 ,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2788 [
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2789 inline int
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2790 foo ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2791 {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2792 return 0;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2793 }
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2794 ],
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2795 AC_DEFINE(HAVE_INLINE))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2796
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2797 # This does all sorts of magic to make sure alloca() works OK.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2798 # It might even add some junk to the top of <config.h>.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2799 # (I don't understand what goes on here, but it seems to work.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2800 AC_ALLOCA
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2801
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2802 # Check whether vfork exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2803 # than just check for its existence.) If so, it defines HAVE_VFORK_H.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2804 # If not, it defines vfork to be fork.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2805 AC_VFORK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2806
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2807 # Check whether mmap exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2808 # than just check for its existence.) If so, it defines HAVE_MMAP.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2809 # Actually, this seems to rule out some cases where mmap() can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2810 # work fine for our purposes (e.g. HPUX). We get a big win out
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2811 # of using mmap(), so let's go back to the old way.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2812 dnl AC_MMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2813
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2814 # Check whether strcoll exists and works correctly. (This does more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2815 # than just check for its existence.) If so, it defines HAVE_STRCOLL.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2816 AC_STRCOLL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2817
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2818 AC_SIZEOF_TYPE(short)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2819 AC_SIZEOF_TYPE(int)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2820 AC_SIZEOF_TYPE(long)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2821
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2822 # FSF 19.29 does this:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2823 # # fmod, logb, and frexp are found in -lm on most systems.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2824 # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2825 # A C_CHECK_LIB(m, sqrt)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2826
72
b9518feda344 Import from CVS: tag r20-0b31
cvs
parents: 70
diff changeset
2827 AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2828
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2829 # Check for mmap.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2830 found_mmap=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2831 AC_FUNC_CHECK(mmap, , found_mmap=)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2832 test -n "$found_mmap" && AC_DEFINE(HAVE_MMAP)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2833
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2834 dnl # rel_alloc requires either GNU malloc or system malloc with mmap
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2835 dnl # We only turn rel_alloc on by default if mmap is available.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2836 test "${GNU_MALLOC}" != "yes" -a "${found_mmap}" != "true" && rel_alloc=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2837 test "${rel_alloc}" = "default" -a "${found_mmap}" = "true" && rel_alloc=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2838
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2839 # Check for Internet sockets.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2840
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2841 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2842 AC_FUNC_CHECK(socket, , ok_so_far=)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2843 test -n "$ok_so_far" && { AC_HEADER_CHECK(netinet/in.h, , ok_so_far=) }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2844 test -n "$ok_so_far" && { AC_HEADER_CHECK(arpa/inet.h, , ok_so_far=) }
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2845 if test -n "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2846 AC_DEFINE(HAVE_SOCKETS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2847 # Check for the sun_len member in struct sockaddr_un.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2848
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2849 AC_COMPILE_CHECK(sun_len member in struct sockaddr_un,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2850 [#include <sys/types.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2851 #include <sys/socket.h>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2852 #include <sys/un.h>], [static struct sockaddr_un x; x.sun_len = 1;],
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2853 AC_DEFINE(HAVE_SOCKADDR_SUN_LEN))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2854 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2855
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2856 # Check for SYS V IPC. (Inferior to sockets.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2857
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2858 if test -z "$ok_so_far"; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2859 ok_so_far=true
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2860 AC_FUNC_CHECK(msgget, , ok_so_far=)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2861 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/ipc.h, , ok_so_far=) }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2862 test -n "$ok_so_far" && { AC_HEADER_CHECK(sys/msg.h, , ok_so_far=) }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2863 test -n "$ok_so_far" && AC_DEFINE(HAVE_SYSVIPC)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2864 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2865
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2866 # Check for directory variants
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2867
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2868 sysv_system_dir=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2869 nonsystem_dir_library=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2870 AC_HEADER_CHECK(dirent.h, sysv_system_dir=yes, )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2871 test -z "$sysv_system_dir" &&
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2872 { AC_HEADER_CHECK(sys/dir.h, , nonsystem_dir_library=yes) }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2873 if test -n "$sysv_system_dir" ; then AC_DEFINE(SYSV_SYSTEM_DIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2874 elif test -n "$nonsystem_dir_library" ; then AC_DEFINE(NONSYSTEM_DIR_LIBRARY)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2875 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2876
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2877 dnl # Check for terminal I/O variants
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2878
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2879 echo "checking how to do terminal I/O"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2880
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2881 have_termios=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2882 have_termio=
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2883 AC_HEADER_CHECK(termios.h, have_termios=yes, )
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2884 dnl # TERMIOS systems may have termio.h, but not vice-versa, I think.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2885 test -z "$have_termios" && { AC_HEADER_CHECK(termio.h, have_termio=yes, ) }
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2886 if test -n "$have_termios" ; then AC_DEFINE(HAVE_TERMIOS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2887 elif test -n "$have_termio" ; then AC_DEFINE(HAVE_TERMIO)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2888 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2890 # Check for nlist.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2891 AC_HEADER_CHECK(nlist.h, AC_DEFINE(NLIST_STRUCT), )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2892
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2893 # AIX export list
76
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 74
diff changeset
2894 if test -f /usr/lpp/X11/bin/smt.exp ; then
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 74
diff changeset
2895 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/lpp/X11/bin/smt.exp)
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 74
diff changeset
2896 elif test -f /usr/bin/X11/smt.exp ; then
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 74
diff changeset
2897 AC_DEFINE(AIX_SMT_EXP, -bI:/usr/bin/X11/smt.exp)
c0c698873ce1 Import from CVS: tag r20-0b33
cvs
parents: 74
diff changeset
2898 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2899
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2900 dnl # Set up the CFLAGS for real compilation, so we can substitute it.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2901 CFLAGS="$REAL_CFLAGS"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2902
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2903 dnl # Find out which version of XEmacs this is.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2904 file="${srcdir}/lisp/version.el"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2905 version=`sed -ne 's/^(defconst emacs-version "\(.*\)".*/\1/p' "$file"`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2906 if test -z "${version}"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2907 echo "${progname}: can't find current emacs version in \"$file\"." >&2
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2908 exit 1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2909 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2910 beta=`sed -ne 's/^.*XEmacs Lucid (beta\([[0-9]][[0-9]]*\)).*$/\1/p' "$file"`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2911 test -n "$beta" && version="${version}-b${beta}"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2912
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2913
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2914 dnl # Check for sound of various sorts.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2915
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2916 # the following needs to be fixed for SGI.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2917 if test -z "${native_sound_lib}" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2918 if test -r /usr/demo/SOUND/lib/libaudio.a; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2919 native_sound_lib=/usr/demo/SOUND/lib/libaudio.a
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2920 elif test -r /usr/demo/SOUND/libaudio.a ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2921 native_sound_lib=/usr/demo/SOUND/libaudio.a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2922 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2923 case "${canonical}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2924 *-sgi-* ) AC_HAVE_LIBRARY(-laudio, native_sound_lib="-laudio") ;;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2925 hppa*-hp-hpux* ) AC_HAVE_LIBRARY(-lAlib, native_sound_lib="-lAlib") ;;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2926 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2927 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2928 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2929 test -z "${with_sound}" -a -n "${native_sound_lib}" && with_sound="native";
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2930
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2931 #### If the nas library doesn't contain the error jump point, then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2932 #### we force safer behaviour.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2933
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2934 if test "${with_sound}" = "nas" -o \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2935 "${with_sound}" = "both"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2936 AC_HEADER_EGREP(AuXtErrorJump,audio/Xtutil.h, , old_nas=true)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2937 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2938
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2939 if test "${with_cde}" = "yes" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2940 if test -f "/usr/dt/include/Dt/Dt.h" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2941 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} -I/usr/dt/include"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2942 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2943 if test -f "/usr/dt/lib/libDtSvc.a" ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2944 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} -L/usr/dt/lib"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2945 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2946 fi
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2947
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2948 if test "${with_tooltalk}" = "yes" ; then
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2949 for arg in "-I/usr/include/desktop" "-I${OPENWINHOME-/usr/openwin}/include/desktop" "-I/usr/dt/include/Tt"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2950 do
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2951 if test -f `echo "${arg}/tt_c.h" | sed 's/^\-I//'` ; then
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 98
diff changeset
2952 C_SWITCH_X_SITE="${C_SWITCH_X_SITE} ${arg}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2953 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2954 done
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
2955 for arg in "-L/usr/lib" "-L${OPENWINHOME-/usr/openwin}/lib" "-L/usr/dt/lib"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2956 do
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2957 case "${arg}" in
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2958 -L*) if test -f `echo "${arg}/libtt.a" | sed 's/^\-L//'` ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2959 dash_r=''
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
2960 if test "${add_runtime_flag}" = "yes" ; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
2961 dash_r=`echo ${arg} | sed "s/^-L */${runtime_arg}/"`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2962 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2963 LD_SWITCH_X_SITE="${LD_SWITCH_X_SITE} ${arg} ${dash_r}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2964 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2965 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2966 esac
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2967 done
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2968 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2969
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2970 dnl Check for ncurses.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2971
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2972 if test "${with_tty}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2973 AC_HAVE_LIBRARY(-lncurses, have_ncurses=yes, have_ncurses=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2974 if test "${have_ncurses}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2975 AC_DEFINE(HAVE_NCURSES)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2976 AC_HEADER_CHECK(ncurses/term.h, have_ncurses_term_h=yes, have_ncurses_term_h=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2977 IF_YES_AC_DEFINE(have_ncurses_term_h, HAVE_NCURSES_TERM_H)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2978 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2979 if test "${have_ncurses_curses_h}" = "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2980 dnl Try again, and check for the bogus ncurses/ include bug.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2981 dnl (i.e. ncurses/curses.h bogusly includes <unctrl.h> instead of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2982 dnl <ncurses/unctrl.h>)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2983 OLD_CPP="${CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2984 CPP="${CPP} -I/usr/include/ncurses"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2985 AC_HEADER_CHECK(ncurses/curses.h, have_ncurses_curses_h=yes, have_ncurses_curses_h=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2986 if test "${have_ncurses_curses_h}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2987 site_includes="${site_includes} /usr/include/ncurses"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2988 C_SWITCH_SITE="${C_SWITCH_SITE} -I/usr/include/ncurses"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2989 AC_VERBOSE(Your system has the bogus ncurses include bug.)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2990 else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2991 CPP="${OLD_CPP}"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2992 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2993 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2994 IF_YES_AC_DEFINE(have_ncurses_curses_h, HAVE_NCURSES_CURSES_H)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2995 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2996 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2997
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2998 dnl Check for database support.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
2999
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3000 dnl <mdiers@logware.de>
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3001 dnl We don't necessarily have to have libdb/lib(g)dbm for DB/(G)DBM support.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3002 dnl On FreeBSD, both DB and DBM are part of libc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3003 dnl Note that unless support for DB/(G)DBM is explicitly disabled, we always
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3004 dnl want to check for libdb/lib(g)dbm. Also note that libc will not be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3005 dnl checked if we have the libraries.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3006 dnl If support for DB/(G)DBM is requested, but we neither have libdb/lib(g)dbm,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3007 dnl nor does libc implement it, we are a bit lost :)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3008
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3009 if test "${with_database_berkdb}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3010 AC_HAVE_LIBRARY(-ldb, have_libdb=yes, have_libdb=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3011 IF_YES_AC_DEFINE(have_libdb, HAVE_LIBDB)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3012 if test "${with_database_berkdb}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3013 if test "${have_libdb}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3014 with_database_berkdb=yes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3015 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3016 AC_FUNC_CHECK(dbopen, with_database_berkdb=yes, with_database_berkdb=no)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3017 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3018 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3019 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3020 IF_YES_AC_DEFINE(with_database_berkdb, HAVE_BERKELEY_DB)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3021
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3022 if test "${with_database_gnudbm}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3023 AC_HAVE_LIBRARY(-lgdbm, have_libgdbm=yes, have_libgdbm=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3024 IF_YES_AC_DEFINE(have_libgdbm, HAVE_LIBGDBM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3025 test -z "${with_database_gnudbm}" && with_database_gnudbm="${have_libgdbm}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3026 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3027 if test "${with_database_gnudbm}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3028 AC_DEFINE(HAVE_DBM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3029 AC_DEFINE(HAVE_GNU_DBM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3030 with_database_dbm=no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3031 fi
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3032
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3033 if test "${with_database_dbm}" != "no" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3034 AC_HAVE_LIBRARY(-ldbm, have_libdbm=yes, have_libdbm=no)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3035 IF_YES_AC_DEFINE(have_libdbm, HAVE_LIBDBM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3036 if test "${with_database_dbm}" != "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3037 if test "${have_libdbm}" = "yes" ; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3038 with_database_dbm=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3039 else
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3040 AC_FUNC_CHECK(dbm_open, with_database_dbm=yes, with_database_dbm=no)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3041 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3042 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3043 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3044 IF_YES_AC_DEFINE(with_database_dbm, HAVE_DBM)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3045
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3046
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3047 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3048 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3049 # Substitute into Makefile and config.h #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3050 # #
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3051 ############################################################################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3052
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3053 dnl what sort of things we'll be editing into Makefile and config.h.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3054 dnl configuration here uncanonicalized to avoid exceeding size limits.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3055
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3056 AC_SUBST(version)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3057 AC_SUBST(configuration)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3058 AC_SUBST(canonical)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3059 AC_SUBST(srcdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3060 AC_SUBST(prefix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3061 AC_SUBST(exec_prefix)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3062 AC_SUBST(bindir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3063 AC_SUBST(datadir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3064 AC_SUBST(statedir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3065 AC_SUBST(libdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3066 AC_SUBST(mandir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3067 AC_SUBST(infodir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3068 AC_SUBST(infodir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3069 AC_SUBST(lispdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3070 AC_SUBST(lispdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3071 AC_SUBST(sitelispdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3072 AC_SUBST(etcdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3073 AC_SUBST(etcdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3074 AC_SUBST(lockdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3075 AC_SUBST(lockdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3076 AC_SUBST(archlibdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3077 AC_SUBST(archlibdir_user_defined)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3078 AC_SUBST(docdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3079 AC_SUBST(bitmapdir)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3080 AC_SUBST(c_switch_system)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3081 AC_SUBST(c_switch_machine)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3082 AC_SUBST(libsrc_libs)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3083 AC_SUBST(LD_SWITCH_X_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3084 AC_SUBST(LD_SWITCH_X_SITE_AUX)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3085 AC_SUBST(C_SWITCH_X_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3086 AC_SUBST(LD_SWITCH_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3087 AC_SUBST(C_SWITCH_SITE)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3088 AC_SUBST(CFLAGS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3089 AC_SUBST(native_sound_lib)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3090 AC_SUBST(machfile)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3091 AC_SUBST(opsysfile)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3092 AC_SUBST(RANLIB)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3093 AC_SUBST(dynodump_arch)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3094
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3095 AC_DEFINE_UNQUOTED(EMACS_VERSION, "${version}")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3096 AC_DEFINE_UNQUOTED(EMACS_CONFIGURATION, "\"${canonical}\"")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3097 AC_DEFINE_UNQUOTED(config_machfile, "\"${machfile}\"")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3098 AC_DEFINE_UNQUOTED(config_opsysfile, "\"${opsysfile}\"")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3099 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE, ${LD_SWITCH_X_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3100 AC_DEFINE_UNQUOTED(LD_SWITCH_X_SITE_AUX, ${LD_SWITCH_X_SITE_AUX})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3101 AC_DEFINE_UNQUOTED(C_SWITCH_X_SITE, ${C_SWITCH_X_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3102 AC_DEFINE_UNQUOTED(LD_SWITCH_SITE, ${LD_SWITCH_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3103 AC_DEFINE_UNQUOTED(C_SWITCH_SITE, ${C_SWITCH_SITE})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3104 AC_DEFINE_UNQUOTED(UNEXEC_SRC, ${UNEXEC_SRC})
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3105
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3106 dnl Note: as a general rule, *only* define things here that are not
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3107 dnl autodetected. For things that are autodetected, define them
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3108 dnl at the point where the autodetection occurs or would occur,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3109 dnl so that the user gets immediate feedback on the results of the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3110 dnl autodetection.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3111
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 100
diff changeset
3112 test -n "${puresize}" && AC_DEFINE_UNQUOTED(RAW_PURESIZE, ${puresize})
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3113 IF_YES_AC_DEFINE(HAVE_X_WINDOWS,HAVE_X_WINDOWS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3114 IF_YES_AC_DEFINE(HAVE_XFREE386, HAVE_XFREE386)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3115
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3116 if test "${GNU_MALLOC}" = yes; then AC_DEFINE(GNU_MALLOC)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3117 elif test "${use_system_malloc}" = yes; then AC_DEFINE(USE_SYSTEM_MALLOC)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3118 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3119 IF_YES_AC_DEFINE(rel_alloc, REL_ALLOC)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3120 IF_YES_AC_DEFINE(LISP_FLOAT_TYPE, LISP_FLOAT_TYPE)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3121 IF_YES_AC_DEFINE(with_motif, LWLIB_USES_MOTIF)
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
3122 IF_YES_AC_DEFINE(with_athena, LWLIB_USES_ATHENA)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3123 IF_YES_AC_DEFINE(with_toolbars, HAVE_TOOLBARS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3124 IF_YES_AC_DEFINE(with_tty, HAVE_TTY)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3125 IF_YES_AC_DEFINE(with_tooltalk, TOOLTALK)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3126 IF_YES_AC_DEFINE(with_i18n3, I18N3)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3127 IF_YES_AC_DEFINE(with_mule, MULE)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3128 IF_YES_AC_DEFINE(with_canna, HAVE_CANNA)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3129 IF_YES_AC_DEFINE(with_wnn, HAVE_WNN)
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 92
diff changeset
3130 IF_YES_AC_DEFINE(with_wnn6, WNN6)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3131 IF_YES_AC_DEFINE(with_mock, MOCKLISP_SUPPORT)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3132 IF_YES_AC_DEFINE(with_sparcworks,SUNPRO)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3133 IF_YES_AC_DEFINE(usage_tracking, USAGE_TRACKING)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3134 IF_YES_AC_DEFINE(need_dynodump, DYNODUMP)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3135 IF_YES_AC_DEFINE(need_xildoff, NEED_XILDOFF)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3136 IF_YES_AC_DEFINE(with_gcc, USE_GCC)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3137 IF_YES_AC_DEFINE(with_lcc, USE_LCC)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3138 IF_YES_AC_DEFINE(with_socks, HAVE_SOCKS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3139 IF_YES_AC_DEFINE(with_term, HAVE_TERM)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3140 IF_YES_AC_DEFINE(external_widget,EXTERNAL_WIDGET)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3141 IF_YES_AC_DEFINE(with_gnu_make, USE_GNU_MAKE)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3142 IF_YES_AC_DEFINE(no_doc_file, NO_DOC_FILE)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3143 IF_YES_AC_DEFINE(const_is_losing,CONST_IS_LOSING)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3144 IF_YES_AC_DEFINE(use_assertions, USE_ASSERTIONS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3145 IF_YES_AC_DEFINE(debug, DEBUG_XEMACS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3146 IF_YES_AC_DEFINE(quantify, QUANTIFY)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3147 IF_YES_AC_DEFINE(memory_usage_stats, MEMORY_USAGE_STATS)
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3148 IF_YES_AC_DEFINE(with_pop, MAIL_USE_POP)
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3149 IF_YES_AC_DEFINE(with_kerberos, KERBEROS)
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3150 IF_YES_AC_DEFINE(with_hesiod, HESIOD)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3151
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3152 IF_YES_AC_DEFINE(error_check_extents, ERROR_CHECK_EXTENTS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3153 IF_YES_AC_DEFINE(error_check_typecheck, ERROR_CHECK_TYPECHECK)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3154 IF_YES_AC_DEFINE(error_check_bufpos, ERROR_CHECK_BUFPOS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3155 IF_YES_AC_DEFINE(error_check_gc, ERROR_CHECK_GC)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3156 IF_YES_AC_DEFINE(error_check_malloc, ERROR_CHECK_MALLOC)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3157
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3158 if test "${with_energize}" = yes; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3159 AC_DEFINE(ENERGIZE)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3160 test "${energize_version}" = "2.X" && AC_DEFINE(ENERGIZE_2)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3161 test "${energize_version}" = "3.X" && AC_DEFINE(ENERGIZE_3)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3162 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3163
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3164 test "${with_sound}" = "native" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NATIVE_SOUND)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3165 test "${with_sound}" = "nas" -o "${with_sound}" = "both" && AC_DEFINE(HAVE_NAS_SOUND)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3166 test "${old_nas}" = "true" && AC_DEFINE(NAS_NO_ERROR_JUMP)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3167
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3168 test "${use_union_type}" != yes && AC_DEFINE(NO_UNION_TYPE)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3169
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3170 dnl ############################################################################
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3171 dnl # Report on what we decided to do #
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3172 dnl ############################################################################
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3173
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3174 (
134
34a5b81f86ba Import from CVS: tag r20-2b1
cvs
parents: 126
diff changeset
3175 if test -f /etc/osversion; then
34a5b81f86ba Import from CVS: tag r20-2b1
cvs
parents: 126
diff changeset
3176 # SONY NEWS-OS
34a5b81f86ba Import from CVS: tag r20-2b1
cvs
parents: 126
diff changeset
3177 echo "osversion: `cat /etc/osversion`"
34a5b81f86ba Import from CVS: tag r20-2b1
cvs
parents: 126
diff changeset
3178 eles
34a5b81f86ba Import from CVS: tag r20-2b1
cvs
parents: 126
diff changeset
3179 echo "uname -a: `uname -a`"
34a5b81f86ba Import from CVS: tag r20-2b1
cvs
parents: 126
diff changeset
3180 fi
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3181 echo ""
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3182 echo "$0 $quoted_arguments"
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3183 ) >> Installation
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3184 # Start stdout redirection to '| tee -a Installation'
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3185 (
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3186 echo "
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3187
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3188 Configured for \`${canonical}'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3190 Where should the build process find the source code? ${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3191 What installation prefix should install use? ${prefix}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3192 What operating system and machine description files should XEmacs use?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3193 \`${opsysfile}' and \`${machfile}'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3194 What compiler should XEmacs be built with? ${CC} ${CFLAGS}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3195 Should XEmacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3196 Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3197 What window system should XEmacs use? ${window_system}${x_includes+
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3198 Where do we find X Windows header files? }${x_includes}${x_libraries+
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3199 Where do we find X Windows libraries? }${x_libraries}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3200
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3201 if test -n "$site_includes"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3202 echo " Additional header files: ${site_includes}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3203 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3204
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3205 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3206 echo " Additional libraries: ${site_libraries} ${site_runtime_libraries}"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3207 elif test -n "$site_libraries"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3208 echo " Additional libraries: ${site_libraries}"
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3209 elif test -n "$site_runtime_libraries"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3210 echo " Additional libraries: ${site_runtime_libraries}"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3211 fi
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
3212 test "$with_dnet" = yes && echo " Compiling in support for DNET."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3213 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3214 test "$with_term" = yes && echo " Compiling in support for TERM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3215 test "$with_xauth" = yes && echo " Compiling in support for XAUTH."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3216 test "$with_xpm" = yes && echo " Compiling in support for XPM."
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3217 if test "$with_xmu" != yes -a "$window_system" != none; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3218 echo " No Xmu; substituting equivalent routines."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3219 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3220 test "$with_xface" = yes && echo " Compiling in support for X-Face headers."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3221 test "$with_gif" = yes && echo " Compiling in support for GIF image conversion."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3222 test "$with_jpeg" = yes && echo " Compiling in support for JPEG image conversion."
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3223 if test "$with_png" = yes -o "$with_png" = gnuz; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3224 echo " Compiling in support for PNG image conversion."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3225 fi
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3226 if test "$with_png" = gnuz; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3227 echo " (Using -lgz instead of -lz.)"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3228 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3229 test "$with_tiff" = yes && echo " Compiling in support for TIFF image conversion (not implemented)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3230
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3231 test "$with_sound" = nas && echo " Compiling in network sound support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3232 test "$with_sound" = native && echo " Compiling in native sound support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3233 test "$with_sound" = both && echo " Compiling in both network and native sound support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3234 test "$old_nas" = true && echo " nas library lacks error trapping, will play synchronously"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3235
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3236 test "$with_database_berkdb" = yes && echo " Compiling in support for Berkeley DB."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3237 test "$with_database_dbm" = yes && echo " Compiling in support for DBM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3238 test "$with_database_gnudbm" = yes && echo " Compiling in support for GNU DBM."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3239
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3240 test "$have_ncurses" = yes && echo " Compiling in support for ncurses."
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3241 test "$with_socks" = yes && echo " Compiling in support for SOCKS."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3242
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3243 test "$with_mule" = yes && echo " Compiling in Mule (multi-lingual) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3244 test "$with_xim" != no && echo " Compiling in XIM (X11R5+ I18N input method) support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3245 test "$with_xim" = motif && echo " Using Motif to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3246 test "$with_xim" = xlib && echo " Using raw Xlib to provide XIM support."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3247 test "$with_canna" = yes && echo " Compiling in support for Canna on Mule."
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3248 if test "$with_wnn" = yes; then
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3249 echo " Compiling in support for the WNN input method on Mule."
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3250 test "$with_wnn6" = yes && echo " WNN support for version 6."
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3251 echo " Finding WNN includes with: ${wnn_includes}"
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3252 echo " Finding WNN libs with: ${wnn_libraries}"
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3253 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3254 test "$with_i18n3" = yes && echo " Compiling in I18N support, level 3 (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3255
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3256 test "$with_cde" = yes && echo " Compiling in support for CDE."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3257 test "$with_tooltalk" = yes && echo " Compiling in support for ToolTalk."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3258 test "$with_offix" = yes && echo " Compiling in support for OffiX."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3259 test "$with_mocklisp" = yes && echo " Compiling in support for Mocklisp."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3260 test "$with_sparcworks" = yes && echo " Compiling in support for SparcWorks."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3261 test "$with_energize" = yes && echo " Compiling in support for Lucid Energize (doesn't currently work)."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3262 test "$with_menubars" = "lucid" && echo " Using the Lucid menubar."
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3263 if test "$with_menubars" = "motif"; then
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3264 echo " Using the Motif menubar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3265 echo " *WARNING* The Motif menubar is currently buggy. We recommend"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3266 echo " that you use the Lucid menubar instead. Re-run"
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3267 echo " configure with --with-menubars='lucid'."
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3268 fi
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3269 test "$with_scrollbars" = lucid && echo " Using the Lucid scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3270 test "$with_scrollbars" = motif && echo " Using the Motif scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3271 test "$with_scrollbars" = athena && echo " Using the Athena scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3272 test "$with_scrollbars" = athena3d && echo " Using the Athena-3d scrollbar."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3273 test "$with_dialogs" = motif && echo " Using the Motif dialog boxes."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3274 test "$with_dialogs" = athena && echo " Using the Athena dialog boxes."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3275 test "$with_dialogs" = athena3d && echo " Using the Athena-3d dialog boxes."
126
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
3276 test "$with_pop" = yes && echo " Using POP for mail access"
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
3277 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication"
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
3278 test "$with_hesiod" = yes && echo " Using Hesiod to get POP server host"
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3279
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3280 test "${use_union_type}" = yes && echo " Using the union type for Lisp_Objects."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3281 test "${debug}" = yes && echo " Compiling in extra code for debugging."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3282 test "${memory_usage_stats}" = yes && echo " Compiling in code for checking XEmacs memory usage."
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3283 test "$usage_tracking" = yes && echo " Compiling with usage tracking active (Sun internal)."
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3284 echo ""
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
3285 ) | tee -a Installation
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3286 echo 'The above configure report is appended to "Installation" file.'
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3287 echo ""
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
3288
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3289 dnl ############################################################################
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3290 dnl # Now generate! #
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3291 dnl ############################################################################
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3292
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3293 dnl This has to be called in order for this variable to get into config.status
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3294 AC_SUBST(internal_makefile_list)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3295 # Remove any trailing slashes in these variables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3296 test -n "${prefix}" &&
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3297 prefix=`echo "${prefix}" | sed 's,\([[^/]]\)/*$,\1,'`
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3298 test -n "${exec_prefix}" &&
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3299 exec_prefix=`echo "${exec_prefix}" | sed 's,\([[^/]]\)/*$,\1,'`
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3300
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3301 AC_OUTPUT($internal_makefile_list)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3302 # Build:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3303 # src/Makefile from ${srcdir}/src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3304 # lwlib/Makefile from ${srcdir}/lwlib/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3305 # lib-src/Makefile from ${srcdir}/lib-src/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3306 # dynodump/Makefile from ${srcdir}/dynodump/Makefile.in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3307 # and possibly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3308 # lwlib/energize/Makefile from ${srcdir}/lwlib/energize/Makefile.in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3309 # This must be done after src/config.h is built, since we rely on that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3310 # file. Only do the build if "config.status" is present, since its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3311 # non-presence indicates an error occured.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3312 status=$?
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3313 if test ! -f ./config.status ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3314 exit $status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3315 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3316 topsrcdir=${srcdir}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3317 # We discard all lines in Makefile.in that start with `# Generated' or /**/#
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3318 # because some cpps get confused by them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3319 # Really we should preserve them somehow into Makefile,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3320 # but that is beyond my level of shell programming.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3321 makefile_command='echo "creating src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3322 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3323 ( cd ./src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3324 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3325 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3326 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3327 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3328 ' sed -e '\''s/^#.*//'\'' '\
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3329 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3330 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3331 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3332 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3333 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3334 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3335 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3336 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3337 eval `echo $makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3338 lwlib_makefile_command='echo "creating lwlib/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3339 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3340 ( cd ./lwlib;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3341 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3342 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3343 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3344 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3345 ' sed -e '\''s/^#.*//'\'' '\
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3346 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3347 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3348 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3349 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3350 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3351 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3352 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3353 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3354 eval `echo $lwlib_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3355 lib_src_makefile_command='echo "creating lib-src/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3356 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3357 ( cd ./lib-src;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3358 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3359 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3360 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3361 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3362 ' sed -e '\''s/^#.*//'\'' '\
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3363 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3364 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3365 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3366 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3367 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3368 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3369 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3370 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3371 eval `echo $lib_src_makefile_command`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3372
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3373 # Mule utilitity programs - currently disabled
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3374 if test "${with_mule_util}" = "yes"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3375 lib_src_mule_makefile_command='echo "creating lib-src/mule/Makefile";
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3376 topsrcdir='"${topsrcdir}"';
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3377 ( cd ./lib-src/mule;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3378 rm -f junk.c;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3379 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3380 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3381 < junk.cpp '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3382 ' sed -e '\''s/^#.*//'\'' '\
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3383 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3384 ' -e '\''s/^ / /'\'' '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3385 ' | sed -n -e '\''/^..*$/p'\'' '\
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3386 ' > Makefile.new;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3387 chmod 444 Makefile.new;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3388 mv -f Makefile.new Makefile;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3389 rm -f junk.c junk.cpp;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3390 )'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3391 eval `echo $lib_src_mule_makefile_command`
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3392 fi # Mule
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3393
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3394 dynodump_makefile_command='echo "creating dynodump/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3395 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3396 ( cd ./dynodump;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3397 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3398 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3399 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3400 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3401 ' sed -e '\''s/^#.*//'\'' '\
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3402 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3403 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3404 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3405 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3406 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3407 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3408 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3409 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3410 eval `echo $dynodump_makefile_command`
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3411 if test "${with_energize}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3412 energize_makefile_command='echo "creating lwlib/energize/Makefile";
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3413 topsrcdir='"${topsrcdir}"';
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3414 ( cd ./lwlib/energize;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3415 rm -f junk.c;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3416 sed -e '\''s/^# Generated.*//'\'' -e '\''s%/\*\*/#.*%%'\'' < Makefile.in > junk.c;
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3417 eval `echo ${CPP} -I. -I${topsrcdir}/src ${CPPFLAGS} junk.c \>junk.cpp`;
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3418 < junk.cpp '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3419 ' sed -e '\''s/^#.*//'\'' '\
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3420 ' -e '\''s/^[[ \f\t]][[ \f\t]]*$//'\'' '\
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3421 ' -e '\''s/^ / /'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3422 ' | sed -n -e '\''/^..*$/p'\'' '\
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3423 ' > Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3424 chmod 444 Makefile.new;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3425 mv -f Makefile.new Makefile;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3426 rm -f junk.c junk.cpp;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3427 )'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3428 eval `echo $energize_makefile_command`
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3429 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3430 # AC-OUTPUT has created `config.status' already. We need to add the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3431 # above commands to re-create `src/Makefile', `lwlib/Makefile',
8
4b173ad71786 Import from CVS: tag r19-15b5
cvs
parents: 6
diff changeset
3432 # `lib-src/Makefile', `dynodump/Makefile', and possibly
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3433 # `lwlib/energize/Makefile', and we need to insert them before the final
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3434 # "exit 0" which appears at the end of `config.status'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3435 <config.status sed -e 's/^exit 0$//' >config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3436 echo $makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3437 echo $lwlib_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3438 echo $lib_src_makefile_command >>config.new
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3439 if test "${with_mule_util}" = "yes"; then
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3440 echo $lib_src_mule_makefile_command >>config.new
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3441 fi
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3442 echo $dynodump_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3443 echo $man_makefile_command >>config.new
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3444 if test "${with_energize}" = "yes" ; then
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3445 echo $energize_makefile_command >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3446 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3447 echo exit 0 >>config.new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3448 mv -f config.new config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3449 chmod +x config.status
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3450 # Don't let the fact that we just rewrote config.status make Makefile think
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3451 # that it is now newer. We have just rewritten all of the Makefiles as well.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3452 MFS="Makefile \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3453 src/Makefile src/Makefile.in \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3454 lib-src/Makefile lib-src/Makefile.in \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3455 dynodump/Makefile dynodump/Makefile.in \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3456 lwlib/Makefile lwlib/Makefile.in"
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3457 chmod a+w $MFS
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3458 touch $MFS
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 68
diff changeset
3459 chmod 444 $MFS
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3460
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3461 if test ! -f src/gdbinit && test -f $topsrcdir/src/gdbinit; then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3462 echo creating src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3463 echo source $topsrcdir/src/gdbinit > src/gdbinit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3464 fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3465
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3466 exit 0
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3467
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3468
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3469 # Local Variables:
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3470 # eval: (modify-syntax-entry ?\" "\"")
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
3471 # End: